From e0f3bc2b3208147c46417bda1411ef20791eeab6 Mon Sep 17 00:00:00 2001 From: Zaggy1024 Date: Thu, 20 Jun 2024 21:42:47 -0500 Subject: [PATCH] LibMedia: Remove fixed-point path for BT.2020 matrix coefficients BT.2020 will mainly be used with bit depths greater than 8, so having this specialization is mostly pointless until we use fixed-point math for higher bit depths. (cherry picked from commit fe2a63d485bc9d494b06a780043eae21adfd6854) --- Userland/Libraries/LibMedia/VideoFrame.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Userland/Libraries/LibMedia/VideoFrame.cpp b/Userland/Libraries/LibMedia/VideoFrame.cpp index 2366e2ee64..8577767d91 100644 --- a/Userland/Libraries/LibMedia/VideoFrame.cpp +++ b/Userland/Libraries/LibMedia/VideoFrame.cpp @@ -138,11 +138,8 @@ static ALWAYS_INLINE DecoderErrorOr convert_to_bitmap_selecting_converter( return convert_to_bitmap_subsampled([](u16 y, u16 u, u16 v) { return ColorConverter::convert_simple_yuv_to_rgb(y, u, v); }, width, height, plane_y, plane_u, plane_v, bitmap); case MatrixCoefficients::BT601: return convert_to_bitmap_subsampled([](u16 y, u16 u, u16 v) { return ColorConverter::convert_simple_yuv_to_rgb(y, u, v); }, width, height, plane_y, plane_u, plane_v, bitmap); - case MatrixCoefficients::BT2020ConstantLuminance: - case MatrixCoefficients::BT2020NonConstantLuminance: - return convert_to_bitmap_subsampled([](u16 y, u16 u, u16 v) { return ColorConverter::convert_simple_yuv_to_rgb(y, u, v); }, width, height, plane_y, plane_u, plane_v, bitmap); default: - VERIFY_NOT_REACHED(); + break; } }