summaryrefslogtreecommitdiff
path: root/test/v4l2_compat
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo.mondi@ideasonboard.com>2023-01-29 11:16:33 +0100
committerJacopo Mondi <jacopo.mondi@ideasonboard.com>2023-01-29 11:16:33 +0100
commit8e19093264b55e4bb469ddf2801fb923aa060713 (patch)
tree8eb85e2ac79ef8c96c63fde9931b53274ea9e991 /test/v4l2_compat
parent39ee45815cfeceb2f1bf45b20b923d03757c1220 (diff)
libcamera: imx8-isi: Break out YUV format selection
As per the RAW format selection, the media bus format selection procedure relies on the direct association of PixelFormat and media bus code in the formatsMap_ map. As the ISI can generate YUV and RGB formats from any non-Bayer media bus format, break out the YUV/RGB media bus format selection to a separate function. The newly introduced getYuvMediaBusFormat() tests a list of known-supported media bus formats against the list of media bus formats supported by the sensor and tries to prefer media bus codes with the same encoding as the requested PixelFormat. Use the newly introduced function in ISICameraConfiguration::validateYuv() to make sure the sensor can produce a YUV/RGB media bus format. Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Diffstat (limited to 'test/v4l2_compat')
0 files changed, 0 insertions, 0 deletions