summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-01-31 19:26:08 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-02-05 01:24:35 +0200
commitf19cbd517bd88a20a8b137ac465a3a4288cbc01a (patch)
tree7630cf062be17b3b508d644535d79570614c4a6d /include
parent47d243c44a82c001baddd496bf754cc761dce837 (diff)
libcamera: camera_sensor: Store Bayer pattern in class member
The Bayer pattern is retrieved based on the media bus formats supported by the sensor, when registering camera sensor properties. To prepare for its usage elsewhere in the CameraSensor class, store it in a private member variable. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/internal/camera_sensor.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libcamera/internal/camera_sensor.h b/include/libcamera/internal/camera_sensor.h
index 3e07fcae..c8f81882 100644
--- a/include/libcamera/internal/camera_sensor.h
+++ b/include/libcamera/internal/camera_sensor.h
@@ -20,6 +20,7 @@
namespace libcamera {
+class BayerFormat;
class MediaEntity;
struct CameraSensorInfo {
@@ -92,6 +93,7 @@ private:
Size pixelArraySize_;
Rectangle activeArea_;
+ const BayerFormat *bayerFormat_;
ControlList properties_;
};