mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-26 10:05:08 +03:00
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:
parent
47d243c44a
commit
f19cbd517b
2 changed files with 15 additions and 9 deletions
|
@ -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_;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue