diff options
author | Jacopo Mondi <jacopo.mondi@ideasonboard.com> | 2023-03-21 18:20:03 +0100 |
---|---|---|
committer | Jacopo Mondi <jacopo.mondi@ideasonboard.com> | 2023-06-06 18:59:26 +0200 |
commit | d45da036a47369d91ad5fc7e1e656e5f58dda235 (patch) | |
tree | fab18d150638ec95f3afdbcc09375bf3d39c517b /src/ipa/rpi/cam_helper/md_parser_smia.cpp | |
parent | 311e5bc1a8fa06a858e3d930ea57bff796732c8d (diff) |
libcamera: rkisp1: Assign sizes to roles
Currently each RkISP1 path (main and self) generate a configuration
by bounding the sensor's resolution to their respective maximum output
aspect ratio and size.
Size maxResolution = maxResolution_.boundedToAspectRatio(resolution)
.boundedTo(resolution);
In the case of self path, whose maximum size is 1920x1920, the generated
configuration could get assigned unusual sizes, as the result of the
above operation.
As an example, with the imx258 sensor whose resolution is 4208x3118, the
resulting size for the Viewfinder use case is an unusual 1920x1423.
Fix this by assigning to each role a desired output size:
- Use the sensor's resolution for StillCapture and Raw
- Use 1080p for Viewfinder and VideoRecording
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/ipa/rpi/cam_helper/md_parser_smia.cpp')
0 files changed, 0 insertions, 0 deletions