mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-24 00:55:07 +03:00
libcamera: camera_sensor: Support SensorConfiguration
Add a class function to the CameraSensor class to apply a full configuration to the sensor. The configuration shall be fully populated and shall apply without modifications to the sensor. Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Reviewed-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
1602043e62
commit
f446c23842
2 changed files with 90 additions and 0 deletions
|
@ -29,6 +29,7 @@ namespace libcamera {
|
|||
class BayerFormat;
|
||||
class CameraLens;
|
||||
class MediaEntity;
|
||||
class SensorConfiguration;
|
||||
|
||||
struct CameraSensorProperties;
|
||||
|
||||
|
@ -58,6 +59,10 @@ public:
|
|||
Transform transform = Transform::Identity);
|
||||
int tryFormat(V4L2SubdeviceFormat *format) const;
|
||||
|
||||
int applyConfiguration(const SensorConfiguration &config,
|
||||
Transform transform = Transform::Identity,
|
||||
V4L2SubdeviceFormat *sensorFormat = nullptr);
|
||||
|
||||
const ControlInfoMap &controls() const;
|
||||
ControlList getControls(const std::vector<uint32_t> &ids);
|
||||
int setControls(ControlList *ctrls);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue