{"id":21243,"url":"https://patchwork.libcamera.org/api/1.1/covers/21243/?format=json","web_url":"https://patchwork.libcamera.org/cover/21243/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20240912045703.3446748-1-chenghaoyang@google.com>","date":"2024-09-12T04:52:47","name":"[0/1] Add metadataCompleted Signal in Camera","submitter":{"id":117,"url":"https://patchwork.libcamera.org/api/1.1/people/117/?format=json","name":"Cheng-Hao Yang","email":"chenghaoyang@chromium.org"},"mbox":"https://patchwork.libcamera.org/cover/21243/mbox/","series":[{"id":4583,"url":"https://patchwork.libcamera.org/api/1.1/series/4583/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=4583","date":"2024-09-12T04:52:47","name":"Add metadataCompleted Signal in Camera","version":1,"mbox":"https://patchwork.libcamera.org/series/4583/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/21243/comments/","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 86B11C324C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 12 Sep 2024 04:57:13 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 0B46A634F9;\n\tThu, 12 Sep 2024 06:57:12 +0200 (CEST)","from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com\n\t[IPv6:2607:f8b0:4864:20::62f])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 94CE5618F0\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 12 Sep 2024 06:57:10 +0200 (CEST)","by mail-pl1-x62f.google.com with SMTP id\n\td9443c01a7336-206aee4073cso6151725ad.1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 11 Sep 2024 21:57:10 -0700 (PDT)","from chenghaoyang-low.c.googlers.com.com\n\t(0.223.81.34.bc.googleusercontent.com. [34.81.223.0])\n\tby smtp.gmail.com with ESMTPSA id\n\td9443c01a7336-2076b01af1esm7048155ad.293.2024.09.11.21.57.06\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tWed, 11 Sep 2024 21:57:07 -0700 (PDT)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=chromium.org header.i=@chromium.org\n\theader.b=\"YEnsaqaV\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=chromium.org; s=google; t=1726117028; x=1726721828;\n\tdarn=lists.libcamera.org; \n\th=content-transfer-encoding:mime-version:message-id:date:subject:cc\n\t:to:from:from:to:cc:subject:date:message-id:reply-to;\n\tbh=X55R9hJ+QWjSBD6TWfqLSGyUEWZd8AKJoHVmFZaXdmo=;\n\tb=YEnsaqaVJN6jcRxHZvNuhW2fnMBS9WwQgo872Rjh652aWaZt+BxsXWjWMCX/n4Q8Lr\n\tpDhBqOGMIjuxk6e2+aF5LGNOkqosuqsb2tpmkMqP9RSahj+H9nblVcQN/WwK541nJ+mT\n\tequ+AnFzBEuXiJ3jtrmkFjTC/j7Mp/ezVLu8M=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20230601; t=1726117028; x=1726721828;\n\th=content-transfer-encoding:mime-version:message-id:date:subject:cc\n\t:to:from:x-gm-message-state:from:to:cc:subject:date:message-id\n\t:reply-to;\n\tbh=X55R9hJ+QWjSBD6TWfqLSGyUEWZd8AKJoHVmFZaXdmo=;\n\tb=PQXPShTksIU3qnD0WlP6H2OwB4PAePAOZEmjMd0qZTVVdE6meK0l/3o6owdPNIZIlq\n\tf/lCYV3Aa2F7hYkRIgGp1kriDPWZnqIkWmXM7tzj4sPyPd8gwZ3QY9lPzwuiRnG5sVOd\n\tG0QXgiXLNB7qGxl2e3Q+mSyL3zd/SzpzWEDlgcdpabJnGCH6eCwpWgU7Q7cirgc5synA\n\tTX598CCGelN8GmX+yQqUa3BLcP+MMAMggOzNeMB0kiQmnF2tuOAoyoOaNQ0KI0IVoVDQ\n\tY6a8E9rhDJeqt+AXnV0VP3kIsiOXZUuoJ+UwHBVMH0MXm6x8VvGuiX9B53A5DvN5Lgem\n\tNh9A==","X-Gm-Message-State":"AOJu0YymUMqPYycO/N35CPUzzJYkYX/1tkh47Wdb90NVRJejqf/xrEnG\n\tqlEWxlfq+SNVJL3kvyW6/016IU2XJ+ORtklbNox680JcQqeVYn1fiA8mIhH2qXcD3U3MVmidG2E\n\t=","X-Google-Smtp-Source":"AGHT+IHo9BSYFwEgeO5SO14Z62kfaxFClJAEObKyayKsFoyH5nvUIh2WA5ufgOKNGgtmKwU1Nf2RDQ==","X-Received":"by 2002:a17:902:da8c:b0:206:fd9d:b88d with SMTP id\n\td9443c01a7336-2076e44def0mr20826945ad.61.1726117028160; \n\tWed, 11 Sep 2024 21:57:08 -0700 (PDT)","From":"Harvey Yang <chenghaoyang@chromium.org>","X-Google-Original-From":"Harvey Yang <chenghaoyang@google.com>","To":"libcamera-devel@lists.libcamera.org","Cc":"Harvey Yang <chenghaoyang@google.com>","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","Content-Transfer-Encoding":"8bit","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Hi folks,\n\nTo allow partial results in Android adapter, this patch adds another\nsignal (along with bufferCompleted) metadataCompleted in class Camera.\n\nAlthough Android allows a partial result to contain both buffers and\nmetadata, we probably don't need such a feature. Splitting them into\ndifferent partial results should fit both MediaTek's and Intel's\nrequirements.\n\nThis patch passed gitlab pipeline:\nhttps://gitlab.freedesktop.org/chenghaoyang/libcamera/-/pipelines/1269599\n\nPatches in Android adapter that implement partial results will follow\nthis one.\n\nBR,\nHarvey\n\nHan-Lin Chen (1):\n  libcamera: Camera: Add signals for completion of metadata as a partial\n    result\n\n include/libcamera/camera.h                    |  1 +\n include/libcamera/internal/pipeline_handler.h |  1 +\n include/libcamera/request.h                   |  5 +++\n src/libcamera/camera.cpp                      |  6 +++\n src/libcamera/pipeline_handler.cpp            | 37 +++++++++++++++++++\n src/libcamera/request.cpp                     | 20 ++++++++++\n 6 files changed, 70 insertions(+)"}