mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-26 10:05:08 +03:00
libcamera: camera_sensor: Expose the camera device
Expose the device backing the CameraSensor instance. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
82eb3f7e6d
commit
d8595ebf20
2 changed files with 9 additions and 0 deletions
|
@ -61,6 +61,8 @@ public:
|
||||||
ControlList getControls(const std::vector<uint32_t> &ids);
|
ControlList getControls(const std::vector<uint32_t> &ids);
|
||||||
int setControls(ControlList *ctrls);
|
int setControls(ControlList *ctrls);
|
||||||
|
|
||||||
|
V4L2Subdevice *device() { return subdev_.get(); }
|
||||||
|
|
||||||
const ControlList &properties() const { return properties_; }
|
const ControlList &properties() const { return properties_; }
|
||||||
int sensorInfo(CameraSensorInfo *info) const;
|
int sensorInfo(CameraSensorInfo *info) const;
|
||||||
|
|
||||||
|
|
|
@ -641,6 +641,13 @@ int CameraSensor::setControls(ControlList *ctrls)
|
||||||
return subdev_->setControls(ctrls);
|
return subdev_->setControls(ctrls);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \fn CameraSensor::device()
|
||||||
|
* \brief Retrieve the camera sensor device
|
||||||
|
* \todo Remove this function by integrating DelayedControl with CameraSensor
|
||||||
|
* \return The camera sensor device
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \fn CameraSensor::properties()
|
* \fn CameraSensor::properties()
|
||||||
* \brief Retrieve the camera sensor properties
|
* \brief Retrieve the camera sensor properties
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue