From 9cb56229bcd96448ae133c5b42622e1c1e740197 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Thu, 7 May 2026 22:18:39 +0300 Subject: kms++: Update pixel formats to latest upstream --- kms++util/src/conv-gray.h | 2 +- kms++util/src/conv-yuv-planar-packed.h | 4 ++-- kms++util/src/conv-yuv-semiplanar.h | 6 +++--- kms++util/src/testpat.cpp | 8 ++++---- 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'kms++util/src') diff --git a/kms++util/src/conv-gray.h b/kms++util/src/conv-gray.h index fed8c5c..7fead46 100644 --- a/kms++util/src/conv-gray.h +++ b/kms++util/src/conv-gray.h @@ -28,7 +28,7 @@ using Y12_Layout = FormatLayout>>; -using Y10_P32_Layout = FormatLayout, // Y0 ComponentLayout, // Y1 ComponentLayout, // Y2 diff --git a/kms++util/src/conv-yuv-planar-packed.h b/kms++util/src/conv-yuv-planar-packed.h index 4475100..481b594 100644 --- a/kms++util/src/conv-yuv-planar-packed.h +++ b/kms++util/src/conv-yuv-planar-packed.h @@ -9,9 +9,9 @@ namespace kms { -/* YUV Planar Packed (only X403 for now) */ +/* YUV Planar Packed (only T430 for now) */ -struct X403_Layout : FormatLayout < +struct T430_Layout : FormatLayout < PlaneLayout, ComponentLayout, diff --git a/kms++util/src/conv-yuv-semiplanar.h b/kms++util/src/conv-yuv-semiplanar.h index f9d771d..81117c1 100644 --- a/kms++util/src/conv-yuv-semiplanar.h +++ b/kms++util/src/conv-yuv-semiplanar.h @@ -35,7 +35,7 @@ using NV16_Layout = NV12_Family_Layout; template -struct XV15_Family_Layout +struct P030_Family_Layout : public FormatLayout< PlaneLayout, @@ -56,8 +56,8 @@ struct XV15_Family_Layout static constexpr size_t v_sub = VSub; }; -using XV15_Layout = XV15_Family_Layout<2, 2>; -using XV20_Layout = XV15_Family_Layout<2, 1>; +using P030_Layout = P030_Family_Layout<2, 2>; +using P230_Layout = P030_Family_Layout<2, 1>; template struct SubsampleHelper { diff --git a/kms++util/src/testpat.cpp b/kms++util/src/testpat.cpp index e424103..b9f1e56 100644 --- a/kms++util/src/testpat.cpp +++ b/kms++util/src/testpat.cpp @@ -379,8 +379,8 @@ static void draw_test_pattern_part(IFramebuffer& fb, size_t start_y, size_t end_ break; switch (fb.format()) { - CASE_YUV_SEMI(XV20); - CASE_YUV_SEMI(XV15); + CASE_YUV_SEMI(P230); + CASE_YUV_SEMI(P030); CASE_YUV_SEMI(NV12); CASE_YUV_SEMI(NV21); CASE_YUV_SEMI(NV16); @@ -429,9 +429,9 @@ static void draw_test_pattern_part(IFramebuffer& fb, size_t start_y, size_t end_ CASE_YUV_PLANAR(YVU420); CASE_Y_ONLY(Y8); - CASE_Y_ONLY(Y10_P32); + CASE_Y_ONLY(XYYY2101010); - CASE_YUV_PLANAR_PACKED(X403); + CASE_YUV_PLANAR_PACKED(T430); CASE_RAW(SRGGB8); CASE_RAW(SGBRG8); -- cgit v1.2.3