mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 07:19:45 +03:00
libcamera: camera_sensor: Add parameter to limit returned sensor size
The getFormat function takes the aspect ratio and the area of the requested size into account when choosing the best sensor size. In case the sensor is connected to an rkisp1 the maximum supported frame size of the ISP is another constraining factor for the selection of the best format. Add a maxSize parameter to support such a constraint. Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
This commit is contained in:
parent
041377839b
commit
60e94a0d99
3 changed files with 11 additions and 3 deletions
|
@ -53,7 +53,7 @@ public:
|
|||
|
||||
virtual V4L2SubdeviceFormat
|
||||
getFormat(const std::vector<unsigned int> &mbusCodes,
|
||||
const Size &size) const = 0;
|
||||
const Size &size, const Size maxSize = Size()) const = 0;
|
||||
virtual int setFormat(V4L2SubdeviceFormat *format,
|
||||
Transform transform = Transform::Identity) = 0;
|
||||
virtual int tryFormat(V4L2SubdeviceFormat *format) const = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue