[libcamera-devel,1/7] libcamera: stream: Add StillCaptureRaw role

Message ID 20200324155145.3896183-2-niklas.soderlund@ragnatech.se
State Superseded
Headers show
Series
  • libcamera: Add support for a RAW still capture
Related show

Commit Message

Niklas Söderlund March 24, 2020, 3:51 p.m. UTC
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@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 include/libcamera/stream.h | 1 +
 src/libcamera/stream.cpp   | 3 +++
 2 files changed, 4 insertions(+)

Patch

diff --git a/include/libcamera/stream.h b/include/libcamera/stream.h
index b1441f8ec6749fda..18142dc997bb8885 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 ea3d214271ad287a..ef16aaa1b2f4586a 100644
--- a/src/libcamera/stream.cpp
+++ b/src/libcamera/stream.cpp
@@ -361,6 +361,9 @@  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, raw still images with low
+ * frame rate.
  * \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