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:
Laurent Pinchart 2021-01-31 19:26:08 +02:00
parent 47d243c44a
commit f19cbd517b
2 changed files with 15 additions and 9 deletions

View file

@ -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_;
};