From 2514b80045d56411343df80f07276817b5f0d1b0 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 1 May 2013 17:45:33 +0200 Subject: sws: share xyzgamma tables. They are currently always constant and thus theres no point to store them in the context. This makes the context 16kb smaller Signed-off-by: Michael Niedermayer --- libswscale/swscale_internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libswscale/swscale_internal.h') diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h index 36ce1ea661..c4ea26f694 100644 --- a/libswscale/swscale_internal.h +++ b/libswscale/swscale_internal.h @@ -478,8 +478,8 @@ typedef struct SwsContext { /* pre defined color-spaces gamma */ #define XYZ_GAMMA (2.6f) #define RGB_GAMMA (2.2f) - int16_t xyzgamma[4096]; - int16_t rgbgamma[4096]; + int16_t *xyzgamma; + int16_t *rgbgamma; int16_t xyz2rgb_matrix[3][4]; /* function pointers for swScale() */ -- cgit v1.2.3