From patchwork Mon Mar 16 02:41:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 3110 Return-Path: Received: from bin-mail-out-05.binero.net (bin-mail-out-05.binero.net [195.74.38.228]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id BA1F460417 for ; Mon, 16 Mar 2020 03:42:31 +0100 (CET) X-Halon-ID: b6354c3c-672f-11ea-9f40-0050569116f7 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (p4fca2392.dip0.t-ipconnect.de [79.202.35.146]) by bin-vsp-out-03.atm.binero.net (Halon) with ESMTPA id b6354c3c-672f-11ea-9f40-0050569116f7; Mon, 16 Mar 2020 03:42:00 +0100 (CET) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Mon, 16 Mar 2020 03:41:41 +0100 Message-Id: <20200316024146.2474424-2-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200316024146.2474424-1-niklas.soderlund@ragnatech.se> References: <20200316024146.2474424-1-niklas.soderlund@ragnatech.se> MIME-Version: 1.0 Subject: [libcamera-devel] [RFC 1/6] libcamera: stream: Add StillCaptureRaw role 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: , X-List-Received-Date: Mon, 16 Mar 2020 02:42:32 -0000 Add role to be used for streams capturing frames in a raw format for still capture in a low frame rate. Signed-off-by: Niklas Söderlund Reviewed-by: Laurent Pinchart Reviewed-by: Jacopo Mondi --- include/libcamera/stream.h | 1 + src/libcamera/stream.cpp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/include/libcamera/stream.h b/include/libcamera/stream.h index 29a8030dff71d58f..c4c0241ec9f34727 100644 --- a/include/libcamera/stream.h +++ b/include/libcamera/stream.h @@ -58,6 +58,7 @@ private: enum StreamRole { StillCapture, + StillCaptureRaw, VideoRecording, Viewfinder, }; diff --git a/src/libcamera/stream.cpp b/src/libcamera/stream.cpp index f34ea08de03b744e..571bf41e072d00c1 100644 --- a/src/libcamera/stream.cpp +++ b/src/libcamera/stream.cpp @@ -363,6 +363,10 @@ std::string StreamConfiguration::toString() const * \var StillCapture * The stream is intended to capture high-resolution, high-quality still images * with low frame rate. The captured frames may be exposed with flash. + * \var StillCaptureRaw + * The stream is intended to capture high-resolution, high-quality still images + * with low frame rate in a raw format. The captured frames may be exposed with + * flash. * \var VideoRecording * The stream is intended to capture video for the purpose of recording or * streaming. The video stream may produce a high frame rate and may be