diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-04-14 23:52:31 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-04-15 01:30:15 +0200 |
commit | 9aafb95ae23095343601baa852043fe77aeeb903 (patch) | |
tree | db3e5eade825f3424a80ca1f44b9248259dbb71d /libswscale/swscale.c | |
parent | 3662e49dde0b193244eae6b8e1ab236aeb247632 (diff) | |
download | ffmpeg-9aafb95ae23095343601baa852043fe77aeeb903.tar.gz |
sws: init input_rgb2yuv_table depending on yuv colorspace
For the default table we keep using the exact previous
coefficients, this way individual functions can be updated seperately
without breaking fate
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale/swscale.c')
-rw-r--r-- | libswscale/swscale.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c index d72a8acefd..0c20a71f71 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -385,15 +385,6 @@ static int swScale(SwsContext *c, const uint8_t *src[], if (!usePal(c->srcFormat)) { pal = c->input_rgb2yuv_table; - pal[BY_IDX] = ((int)(0.114 * 219 / 255 * (1 << RGB2YUV_SHIFT) + 0.5)); - pal[BV_IDX] = (-(int)(0.081 * 224 / 255 * (1 << RGB2YUV_SHIFT) + 0.5)); - pal[BU_IDX] = ((int)(0.500 * 224 / 255 * (1 << RGB2YUV_SHIFT) + 0.5)); - pal[GY_IDX] = ((int)(0.587 * 219 / 255 * (1 << RGB2YUV_SHIFT) + 0.5)); - pal[GV_IDX] = (-(int)(0.419 * 224 / 255 * (1 << RGB2YUV_SHIFT) + 0.5)); - pal[GU_IDX] = (-(int)(0.331 * 224 / 255 * (1 << RGB2YUV_SHIFT) + 0.5)); - pal[RY_IDX] = ((int)(0.299 * 219 / 255 * (1 << RGB2YUV_SHIFT) + 0.5)); - pal[RV_IDX] = ((int)(0.500 * 224 / 255 * (1 << RGB2YUV_SHIFT) + 0.5)); - pal[RU_IDX] = (-(int)(0.169 * 224 / 255 * (1 << RGB2YUV_SHIFT) + 0.5)); } if (isPacked(c->srcFormat)) { |