{"id":16427,"url":"https://patchwork.libcamera.org/api/patches/16427/?format=json","web_url":"https://patchwork.libcamera.org/patch/16427/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/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":"<20220629103018.4025635-2-chenghaoyang@google.com>","date":"2022-06-29T10:30:10","name":"[libcamera-devel,v3,1/9] Add StreamRole in StreamConfiguration","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"77274a45be57fe9a38fa6f5d91bf767c83814527","submitter":{"id":117,"url":"https://patchwork.libcamera.org/api/people/117/?format=json","name":"Cheng-Hao Yang","email":"chenghaoyang@chromium.org"},"delegate":{"id":12,"url":"https://patchwork.libcamera.org/api/users/12/?format=json","username":"uajain","first_name":"Umang","last_name":"Jain","email":"umang.jain@ideasonboard.com"},"mbox":"https://patchwork.libcamera.org/patch/16427/mbox/","series":[{"id":3232,"url":"https://patchwork.libcamera.org/api/series/3232/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=3232","date":"2022-06-29T10:30:09","name":"Use two imgus in ipu3 pipeline handler","version":3,"mbox":"https://patchwork.libcamera.org/series/3232/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/16427/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/16427/checks/","tags":{},"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 77D16BE173\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 29 Jun 2022 10:30:28 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 2823A6563B;\n\tWed, 29 Jun 2022 12:30:28 +0200 (CEST)","from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com\n\t[IPv6:2607:f8b0:4864:20::52b])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 2038060412\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 29 Jun 2022 12:30:25 +0200 (CEST)","by mail-pg1-x52b.google.com with SMTP id h192so14932003pgc.4\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 29 Jun 2022 03:30:25 -0700 (PDT)","from chenghaoyang-low.c.googlers.com.com\n\t(208.158.221.35.bc.googleusercontent.com. [35.221.158.208])\n\tby smtp.gmail.com with ESMTPSA id\n\tjb4-20020a170903258400b00169071538a0sm10946059plb.267.2022.06.29.03.30.22\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tWed, 29 Jun 2022 03:30:23 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1656498628;\n\tbh=IIm2cZngUsiUEYkBau8iCGgMAohwfeH0xvQ4TnD+wKg=;\n\th=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe:\n\tList-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:\n\tFrom;\n\tb=uaB1mU5kbZAkVKvQg8+bqTvfdblaRXJ8hPwwpQ5QecCqru4sc+Rr9COe0CyWyOhuB\n\ts/0SUGTfX+ib+n1UYoPqXZ3XadmfKKIV5aZ3BcV0hjIq7ICJNVG8NVvbpjmTPhJmcy\n\tT9CivgJ/xR9YwfA6bkCkktlEvo/oBhtmtM8nmZPBygDBw/Qg6d7JCTrNGOZFHSs+Cc\n\tnh30pe67iPGHmfi5LGhcZuV+Ml7K/uQ5fKu620Uelwcn+k/e5iDfB78Ty7MYO9x3SH\n\tk/22G1LtM/4dLRpPlCPzXwQFBXl+cnvzyTxWYXrl/xthP9/Gw6d0a3OVBXX2K5N3wq\n\t2HmopdWccSgYw==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org;\n\ts=google; \n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=9ri2f8MX8DhxAdhDF8VN80ETHfxE4jKgxPQyULCGKnc=;\n\tb=LA744NiW7UlzW9vIfZDj7/v552FxavCA9vttsDhT8tKUQVXxz+CaGNFow3ZFCXxIXl\n\t6hquxxvbIs3DqM7UcviRd8WMgfQpfLTo28Aq5zSD9VnhtBz9ywn09mowu/IH9J/1YPlu\n\tBNXWnotvwLCOuoUvjh98Rnv9bEh3BpALu8w+U="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=chromium.org\n\theader.i=@chromium.org header.b=\"LA744NiW\"; \n\tdkim-atps=neutral","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20210112;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=9ri2f8MX8DhxAdhDF8VN80ETHfxE4jKgxPQyULCGKnc=;\n\tb=ATqKhfEm9h5ZgA0MtyJ2KAqkA651W/fBVirtKR6Ixd+nxt0XibjBpiJY+bge84b3LL\n\tBkINv4BtkDH28ST3gYNraInhz+3rms7BkYH0BeuzkjZy92RP+ku/znTeWrCquTeJokmN\n\t1sKpceBbRtAVaSvYfnJJdvfAMNqJtATA+LBcJ2lh1q2Qru2xGMllV5YestwnCp33aHk6\n\tuFCCP1xm7C1LCT71XYCyyMApWFnSRa3/97Jw6jM6akwm6/t3NTosz1UxTnCa6d9u+AMF\n\tGn31n6Rf8tvOzhZhmKdGbCGo+sC5i19ZbfY2OCM9LzSGczUapFfmhaUagKvCv18PDhGh\n\tVLNA==","X-Gm-Message-State":"AJIora+sDBwgO0QvK0ocx18M/y5BmKlFZ1wXjTOtc+7rohMJ1G2qDnrq\n\t4VCamAYhvvef5VdjuonkU6N/1NnbhzUaXLzK","X-Google-Smtp-Source":"AGRyM1uy9DIBwM1WeWKSeA3rZw+yn/gmN24EH+cz1N9pmtlL4HVorwyHOx1iH5B5Jpy4T1JFjaH0ow==","X-Received":"by 2002:a63:ff19:0:b0:403:7c60:ae96 with SMTP id\n\tk25-20020a63ff19000000b004037c60ae96mr2378351pgi.466.1656498623544; \n\tWed, 29 Jun 2022 03:30:23 -0700 (PDT)","X-Google-Original-From":"Harvey Yang <chenghaoyang@google.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Wed, 29 Jun 2022 10:30:10 +0000","Message-Id":"<20220629103018.4025635-2-chenghaoyang@google.com>","X-Mailer":"git-send-email 2.37.0.rc0.161.g10f37bed90-goog","In-Reply-To":"<20220629103018.4025635-1-chenghaoyang@google.com>","References":"<20220629103018.4025635-1-chenghaoyang@google.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v3 1/9] Add StreamRole in\n\tStreamConfiguration","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>","From":"Harvey Yang via libcamera-devel <libcamera-devel@lists.libcamera.org>","Reply-To":"Harvey Yang <chenghaoyang@chromium.org>","Cc":"Harvey Yang <chenghaoyang@chromium.org>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"From: Harvey Yang <chenghaoyang@chromium.org>\n\nTo let ipu3 pipeline handler understand the usage of streams, this patch\nadds StreamRole member variable in StreamConfiguration, which should be\nset by the (Android) adapter.\n\nSigned-off-by: Harvey Yang <chenghaoyang@chromium.org>\n---\n include/libcamera/stream.h | 20 +++++++++++---------\n 1 file changed, 11 insertions(+), 9 deletions(-)","diff":"diff --git a/include/libcamera/stream.h b/include/libcamera/stream.h\nindex f0ae7e62..c9e79226 100644\n--- a/include/libcamera/stream.h\n+++ b/include/libcamera/stream.h\n@@ -22,6 +22,15 @@ namespace libcamera {\n class Camera;\n class Stream;\n \n+enum StreamRole {\n+\tRaw,\n+\tStillCapture,\n+\tVideoRecording,\n+\tViewfinder,\n+};\n+\n+using StreamRoles = std::vector<StreamRole>;\n+\n class StreamFormats\n {\n public:\n@@ -50,6 +59,8 @@ struct StreamConfiguration {\n \n \tstd::optional<ColorSpace> colorSpace;\n \n+\tStreamRole streamRole;\n+\n \tStream *stream() const { return stream_; }\n \tvoid setStream(Stream *stream) { stream_ = stream; }\n \tconst StreamFormats &formats() const { return formats_; }\n@@ -61,15 +72,6 @@ private:\n \tStreamFormats formats_;\n };\n \n-enum StreamRole {\n-\tRaw,\n-\tStillCapture,\n-\tVideoRecording,\n-\tViewfinder,\n-};\n-\n-using StreamRoles = std::vector<StreamRole>;\n-\n class Stream\n {\n public:\n","prefixes":["libcamera-devel","v3","1/9"]}