diff options
author | Jacopo Mondi <jacopo.mondi@ideasonboard.com> | 2023-01-29 11:21:57 +0100 |
---|---|---|
committer | Jacopo Mondi <jacopo.mondi@ideasonboard.com> | 2023-04-30 18:40:18 +0200 |
commit | 14995410fe8546350d35108398e8b853c9ced002 (patch) | |
tree | b3d28ba92dcf46081b2e74bbe1f2a5525cca58d0 /LICENSES/GPL-2.0+.txt | |
parent | dd78f2f8add6ad284183e73b4e1eee0f35bd76ba (diff) |
libcamera: imx8-isi: Automatically select media bus code
The ISICameraConfiguration::validate() function selects which media
bus format to configure the sensor with based on the pixel format
of the first configured stream using the media bus code associated to it
in the formatsMap_ map.
In order to remove the PixelFormamt-to-mbus-code association in
formatsMap_ provide a wrapper function for the newly introduced
getRawMediaBusFormat() and getYuvMediaBusFormat() that automatically
selects what media bus format to use based on the first stream pixel
format.
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
Tested-by: Daniel Scally <dan.scally@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'LICENSES/GPL-2.0+.txt')
0 files changed, 0 insertions, 0 deletions