diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-05-01 17:45:33 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-05-01 17:52:18 +0200 |
commit | 2514b80045d56411343df80f07276817b5f0d1b0 (patch) | |
tree | 0513197dfd36cbd10ade427918c91ba9237d5373 /libswscale/swscale_internal.h | |
parent | 4818388e6c219bf48fa93bf76ee6ab3dc3fb1e8f (diff) | |
download | ffmpeg-2514b80045d56411343df80f07276817b5f0d1b0.tar.gz |
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 <michaelni@gmx.at>
Diffstat (limited to 'libswscale/swscale_internal.h')
-rw-r--r-- | libswscale/swscale_internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
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() */ |