libcamera: camera_sensor: Add frame length limits to CameraSensorInfo
Sensor frame length is made up of active and inactive (blanking) lines. The minimum and maximum frame length values may be used by pipeline handlers to limit frame durations based on the sensor mode capabilities. Store the minimum and maximum allowable frame length values (in lines) in the CameraSensorInfo structure. These values are computed in CameraSensor::sensorInfo() by querying the sensor subdevice V4L2_CID_VBLANK control limits. This in turn means that V4L2_CID_VBLANK is now a mandatory subdevice control. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
f1b0c7f5e3
commit
d7fd40ea2b
3 changed files with 44 additions and 4 deletions
|
@ -33,6 +33,9 @@ struct CameraSensorInfo {
|
|||
|
||||
uint64_t pixelRate;
|
||||
uint32_t lineLength;
|
||||
|
||||
uint32_t minFrameLength;
|
||||
uint32_t maxFrameLength;
|
||||
};
|
||||
|
||||
class CameraSensor : protected Loggable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue