summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo.mondi@ideasonboard.com>2023-01-29 14:26:27 +0100
committerJacopo Mondi <jacopo.mondi@ideasonboard.com>2023-01-29 14:26:27 +0100
commit8a94ae75a86beabee37e63a191be610353df713b (patch)
treed7a8ef06149cb0117231701fa9e33dffa2ab175e
parent33622bec3b2883b7041ee77d3e304fd94955a0c0 (diff)
fixup! libcamera: imx8-isi: Break out YUV format selectionisi/raw_sensor_v2
-rw-r--r--src/libcamera/pipeline/imx8-isi/imx8-isi.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libcamera/pipeline/imx8-isi/imx8-isi.cpp b/src/libcamera/pipeline/imx8-isi/imx8-isi.cpp
index dff54d9f..75faa95b 100644
--- a/src/libcamera/pipeline/imx8-isi/imx8-isi.cpp
+++ b/src/libcamera/pipeline/imx8-isi/imx8-isi.cpp
@@ -269,12 +269,11 @@ unsigned int ISICameraData::getYuvMediaBusFormat(PixelFormat *pixelFormat) const
};
std::sort(mbusCodes.begin(), mbusCodes.end());
- std::sort(yuvCodes.begin(), mbusCodes.end());
+ std::sort(yuvCodes.begin(), yuvCodes.end());
std::set_intersection(mbusCodes.begin(), mbusCodes.end(),
yuvCodes.begin(), yuvCodes.end(),
std::back_inserter(supportedCodes));
-
if (supportedCodes.empty()) {
LOG(ISI, Warning) << "Cannot find a supported YUV/RGB format";
*pixelFormat = {};