From patchwork Thu Sep 12 04:52:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cheng-Hao Yang X-Patchwork-Id: 21243 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 86B11C324C for ; Thu, 12 Sep 2024 04:57:13 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 0B46A634F9; Thu, 12 Sep 2024 06:57:12 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="YEnsaqaV"; dkim-atps=neutral Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 94CE5618F0 for ; Thu, 12 Sep 2024 06:57:10 +0200 (CEST) Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-206aee4073cso6151725ad.1 for ; Wed, 11 Sep 2024 21:57:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1726117028; x=1726721828; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=X55R9hJ+QWjSBD6TWfqLSGyUEWZd8AKJoHVmFZaXdmo=; b=YEnsaqaVJN6jcRxHZvNuhW2fnMBS9WwQgo872Rjh652aWaZt+BxsXWjWMCX/n4Q8Lr pDhBqOGMIjuxk6e2+aF5LGNOkqosuqsb2tpmkMqP9RSahj+H9nblVcQN/WwK541nJ+mT equ+AnFzBEuXiJ3jtrmkFjTC/j7Mp/ezVLu8M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726117028; x=1726721828; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=X55R9hJ+QWjSBD6TWfqLSGyUEWZd8AKJoHVmFZaXdmo=; b=PQXPShTksIU3qnD0WlP6H2OwB4PAePAOZEmjMd0qZTVVdE6meK0l/3o6owdPNIZIlq f/lCYV3Aa2F7hYkRIgGp1kriDPWZnqIkWmXM7tzj4sPyPd8gwZ3QY9lPzwuiRnG5sVOd G0QXgiXLNB7qGxl2e3Q+mSyL3zd/SzpzWEDlgcdpabJnGCH6eCwpWgU7Q7cirgc5synA TX598CCGelN8GmX+yQqUa3BLcP+MMAMggOzNeMB0kiQmnF2tuOAoyoOaNQ0KI0IVoVDQ Y6a8E9rhDJeqt+AXnV0VP3kIsiOXZUuoJ+UwHBVMH0MXm6x8VvGuiX9B53A5DvN5Lgem Nh9A== X-Gm-Message-State: AOJu0YymUMqPYycO/N35CPUzzJYkYX/1tkh47Wdb90NVRJejqf/xrEnG qlEWxlfq+SNVJL3kvyW6/016IU2XJ+ORtklbNox680JcQqeVYn1fiA8mIhH2qXcD3U3MVmidG2E = X-Google-Smtp-Source: AGHT+IHo9BSYFwEgeO5SO14Z62kfaxFClJAEObKyayKsFoyH5nvUIh2WA5ufgOKNGgtmKwU1Nf2RDQ== X-Received: by 2002:a17:902:da8c:b0:206:fd9d:b88d with SMTP id d9443c01a7336-2076e44def0mr20826945ad.61.1726117028160; Wed, 11 Sep 2024 21:57:08 -0700 (PDT) Received: from chenghaoyang-low.c.googlers.com.com (0.223.81.34.bc.googleusercontent.com. [34.81.223.0]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2076b01af1esm7048155ad.293.2024.09.11.21.57.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 21:57:07 -0700 (PDT) From: Harvey Yang X-Google-Original-From: Harvey Yang To: libcamera-devel@lists.libcamera.org Cc: Harvey Yang Subject: [PATCH 0/1] Add metadataCompleted Signal in Camera Date: Thu, 12 Sep 2024 04:52:47 +0000 Message-ID: <20240912045703.3446748-1-chenghaoyang@google.com> X-Mailer: git-send-email 2.46.0.598.g6f2099f65c-goog MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hi folks, To allow partial results in Android adapter, this patch adds another signal (along with bufferCompleted) metadataCompleted in class Camera. Although Android allows a partial result to contain both buffers and metadata, we probably don't need such a feature. Splitting them into different partial results should fit both MediaTek's and Intel's requirements. This patch passed gitlab pipeline: https://gitlab.freedesktop.org/chenghaoyang/libcamera/-/pipelines/1269599 Patches in Android adapter that implement partial results will follow this one. BR, Harvey Han-Lin Chen (1): libcamera: Camera: Add signals for completion of metadata as a partial result include/libcamera/camera.h | 1 + include/libcamera/internal/pipeline_handler.h | 1 + include/libcamera/request.h | 5 +++ src/libcamera/camera.cpp | 6 +++ src/libcamera/pipeline_handler.cpp | 37 +++++++++++++++++++ src/libcamera/request.cpp | 20 ++++++++++ 6 files changed, 70 insertions(+)