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>
This commit is contained in:
@@ -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_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user