[libcamera-devel] [RFC PATCH 1/3] libcamera: base: camera_sensor: Expose sensor's formats map
Umang Jain
umang.jain at ideasonboard.com
Fri Jul 30 10:28:26 CEST 2021
Add a getter function formats() to retrieve the V4L2Subdevice::format
map of all the formats that the sensor supports. This will probably be
used by pipeline handlers to match against a custom list of formats
internally while making a selection on sensor's format to be used for
image capture.
Signed-off-by: Umang Jain <umang.jain at ideasonboard.com>
---
include/libcamera/internal/camera_sensor.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/libcamera/internal/camera_sensor.h b/include/libcamera/internal/camera_sensor.h
index db12b07e..d8826e8a 100644
--- a/include/libcamera/internal/camera_sensor.h
+++ b/include/libcamera/internal/camera_sensor.h
@@ -37,6 +37,7 @@ public:
const std::string &model() const { return model_; }
const std::string &id() const { return id_; }
const MediaEntity *entity() const { return entity_; }
+ const V4L2Subdevice::Formats &formats() const { return formats_; }
const std::vector<unsigned int> &mbusCodes() const { return mbusCodes_; }
const std::vector<Size> &sizes() const { return sizes_; }
Size resolution() const;
--
2.31.0
More information about the libcamera-devel
mailing list