diff options
author | Hirokazu Honda <hiroh@chromium.org> | 2021-06-10 17:25:37 +0900 |
---|---|---|
committer | Jacopo Mondi <jacopo@jmondi.org> | 2021-06-14 14:10:58 +0200 |
commit | 5d0eb4024932cbf57bcc4d4fb0b37d98522cad7f (patch) | |
tree | f4595c6a3a6259a0e0a135f0422d883401bc28ed /include | |
parent | 0b312cb4acd9e9ce0ab6fce8fe2db1afca4c5fd8 (diff) |
libcamera: CameraSensor: Enable retrieving supported test pattern modes
This enables retrieving supported test pattern modes through
CameraSensorInfo.
Signed-off-by: Hirokazu Honda <hiroh@chromium.org>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/libcamera/internal/camera_sensor.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/libcamera/internal/camera_sensor.h b/include/libcamera/internal/camera_sensor.h index cf6c1c1e..e133ebf4 100644 --- a/include/libcamera/internal/camera_sensor.h +++ b/include/libcamera/internal/camera_sensor.h @@ -39,6 +39,10 @@ public: const std::vector<unsigned int> &mbusCodes() const { return mbusCodes_; } const std::vector<Size> &sizes() const { return sizes_; } Size resolution() const; + const std::vector<int32_t> &testPatternModes() const + { + return testPatternModes_; + } V4L2SubdeviceFormat getFormat(const std::vector<unsigned int> &mbusCodes, const Size &size) const; @@ -65,6 +69,8 @@ private: int validateSensorDriver(); void initVimcDefaultProperties(); void initStaticProperties(); + void initTestPatternModes( + const std::map<int32_t, int32_t> &testPatternModeMap); int initProperties(); const MediaEntity *entity_; @@ -77,6 +83,7 @@ private: V4L2Subdevice::Formats formats_; std::vector<unsigned int> mbusCodes_; std::vector<Size> sizes_; + std::vector<int32_t> testPatternModes_; Size pixelArraySize_; Rectangle activeArea_; |