From 22da57c444cba1683d75835be9cf1e0d5f341571 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Thu, 17 Jul 2025 01:23:10 +0200 Subject: [PATCH] swscale/lut3d: remove unused function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kacper Michajłow --- libswscale/lut3d.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/libswscale/lut3d.c b/libswscale/lut3d.c index f42958cd92..535694e61c 100644 --- a/libswscale/lut3d.c +++ b/libswscale/lut3d.c @@ -131,19 +131,6 @@ static av_always_inline v3u16_t lookup_input16(const SwsLut3D *lut3d, v3u16_t rg return tetrahedral(lut3d, Rx, Gx, Bx, Rf, Gf, Bf); } -static av_always_inline v3u16_t lookup_input8(const SwsLut3D *lut3d, v3u8_t rgb) -{ - static_assert(INPUT_LUT_BITS <= 8, "INPUT_LUT_BITS must be <= 8"); - const int shift = 8 - INPUT_LUT_BITS; - const int Rx = rgb.x >> shift; - const int Gx = rgb.y >> shift; - const int Bx = rgb.z >> shift; - const int Rf = rgb.x & ((1 << shift) - 1); - const int Gf = rgb.y & ((1 << shift) - 1); - const int Bf = rgb.z & ((1 << shift) - 1); - return tetrahedral(lut3d, Rx, Gx, Bx, Rf, Gf, Bf); -} - /** * Note: These functions are scaled such that x == (1 << shift) corresponds to * a value of 1.0. This makes them suitable for use when interpolation LUT