From cbe327881e48cf8ef5fa19dd92b787d281f9ce62 Mon Sep 17 00:00:00 2001 From: Mattijs Korpershoek <mkorpershoek@baylibre.com> Date: Fri, 17 Nov 2023 16:22:56 +0100 Subject: [PATCH] HACK: TI: v4l2_codec2: decoder: default to NV12 output The AM62P gralloc implementation defaults to NV12 when the YCBCR_420_888 format is requested. This is a requirement for using libcamera. Make sure we configure the video decoder to use the same pixel format. Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> --- components/V4L2Decoder.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/components/V4L2Decoder.cpp b/components/V4L2Decoder.cpp index cc2c1d1..a9a52d8 100644 --- a/components/V4L2Decoder.cpp +++ b/components/V4L2Decoder.cpp @@ -30,7 +30,6 @@ constexpr size_t kNumExtraOutputBuffers = 4; // Currently we only support flexible pixel 420 format YCBCR_420_888 in Android. // Here is the list of flexible 420 format. constexpr std::initializer_list<uint32_t> kSupportedOutputFourccs = { - Fourcc::YU12, Fourcc::YV12, Fourcc::YM12, Fourcc::YM21, Fourcc::NV12, Fourcc::NV21, Fourcc::NM12, Fourcc::NM21, }; -- GitLab