[libcamera-devel] [RFC 1/6] libcamera: stream: Add StillCaptureRaw role

Niklas Söderlund niklas.soderlund at ragnatech.se
Mon Mar 16 03:41:41 CET 2020


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 <niklas.soderlund at ragnatech.se>
---
 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
-- 
2.25.1



More information about the libcamera-devel mailing list