From 3797e9239e6e1f2ef42fb4a5390b640183b5f131 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sun, 12 Jan 2025 19:43:12 +0100 Subject: [PATCH] swscale/x86/swscale: Move some constants to rgb2rgb.c ff_w1111 and ff_bgr2(Y|UV)Offset are only used there (and only on x86-32 since caaec2ea957290941eecfe5d87baf5c0a500b450). Also make them static. Reviewed-by: Michael Niedermayer Signed-off-by: Andreas Rheinhardt --- libswscale/x86/rgb2rgb.c | 20 ++++++++++---------- libswscale/x86/swscale.c | 5 ----- 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/libswscale/x86/rgb2rgb.c b/libswscale/x86/rgb2rgb.c index 6790551a38..6428615adf 100644 --- a/libswscale/x86/rgb2rgb.c +++ b/libswscale/x86/rgb2rgb.c @@ -70,10 +70,6 @@ DECLARE_ASM_CONST(8, uint64_t, mul15_mid) = 0x4200420042004200ULL; DECLARE_ASM_CONST(8, uint64_t, mul15_hi) = 0x0210021002100210ULL; DECLARE_ASM_CONST(8, uint64_t, mul16_mid) = 0x2080208020802080ULL; -DECLARE_ALIGNED(8, extern const uint64_t, ff_bgr2YOffset); -DECLARE_ALIGNED(8, extern const uint64_t, ff_w1111); -DECLARE_ALIGNED(8, extern const uint64_t, ff_bgr2UVOffset); - #define BY ((int)( 0.098*(1<