[FFmpeg-devel] [PATCH 4/5] swscale/lut3d: remove unused function

Kacper Michajłow kasper93 at gmail.com
Thu Jul 17 02:57:05 EEST 2025


Signed-off-by: Kacper Michajłow <kasper93 at gmail.com>
---
 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
-- 
2.50.1



More information about the ffmpeg-devel mailing list