From f78fcc64f227bf7a8f924c158ce9cd42f5e9c942 Mon Sep 17 00:00:00 2001
From: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Date: Mon, 25 Nov 2024 10:43:34 +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>
Signed-off-by: Guillaume La Roque <glaroque@baylibre.com>
---
 v4l2/include/v4l2_codec2/v4l2/V4L2Decoder.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/v4l2/include/v4l2_codec2/v4l2/V4L2Decoder.h b/v4l2/include/v4l2_codec2/v4l2/V4L2Decoder.h
index e569c1c..b1e4047 100644
--- a/v4l2/include/v4l2_codec2/v4l2/V4L2Decoder.h
+++ b/v4l2/include/v4l2_codec2/v4l2/V4L2Decoder.h
@@ -31,7 +31,6 @@ namespace android {
 // 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