Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hardware/qcom/sdm710/display: Add missing YUV format #76

Open
wants to merge 1 commit into
base: halium-9.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
From 33ac5890c0e6a2f47ac138a5e98cbf4fd4a6b7ea Mon Sep 17 00:00:00 2001
From: Herrie <[email protected]>
Date: Tue, 5 Mar 2024 09:58:45 +0100
Subject: [PATCH] libcopybit: c2d2.h: Add missing YUV format

Fixes build error on Sargo:

hardware/qcom/sdm710/media/libc2dcolorconvert/C2DColorConverter.cpp:483:20: error: use of undeclared identifier 'C2D_COLOR_FORMAT_420_TP10'
return C2D_COLOR_FORMAT_420_TP10 | C2D_FORMAT_UBWC_COMPRESSED;

Signed-off-by: Herman van Hazendonk <[email protected]>
---
libcopybit/c2d2.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/libcopybit/c2d2.h b/libcopybit/c2d2.h
index 315a3ba5..821a6d57 100644
--- a/libcopybit/c2d2.h
+++ b/libcopybit/c2d2.h
@@ -207,6 +207,7 @@ typedef enum {
C2D_COLOR_FORMAT_422_Y42B = 174,

C2D_COLOR_FORMAT_800_Y800 = 190,
+ C2D_COLOR_FORMAT_420_TP10 = 191,

} C2D_YUV_FORMAT;