diff options
author | Jacopo Mondi <jacopo@jmondi.org> | 2021-03-04 14:10:13 +0100 |
---|---|---|
committer | Jacopo Mondi <jacopo@jmondi.org> | 2021-03-08 16:21:13 +0100 |
commit | f484857994075d0e4d33f8897cb3b47c7cf3fd6a (patch) | |
tree | ee1655623c4b2fb84ddf2b14e625baa6065d1ec9 /utils/gen-formats.py | |
parent | 237e23bb19f49814584d99cc6c0a2e80dad46be8 (diff) |
libcamera: camera_sensor: Cap resolution to max frame size
Since commit 96aecfe36508 ("libcamera: camera_sensor: Use active area
size as resolution") the CameraSensor::resolution() method returned the
sensor's active pixel area size.
As the CameraSensor::resolution() method is widely used in the library
code base to retrieve the maximum frame size the sensor can produce,
in case it is smaller than the pixel area size the returned size cannot
be used to configure the sensor correctly.
Fix this by returning the maximum frame resolution the sensor can
produce, or the pixel area size in case the sensor embeds and ISP that
can upscale and the supported maximum frame size is thus larger that
the pixel array size.
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'utils/gen-formats.py')
0 files changed, 0 insertions, 0 deletions