diff options
author | benoit <benoit@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-03-05 08:32:54 +0000 |
---|---|---|
committer | benoit <benoit@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-03-05 08:32:54 +0000 |
commit | 11d73c297d4508cc857fd9cfc350cd37f6c779bf (patch) | |
tree | 9911523942e7d9749f9a969c68c53b0e5a258b7c /libswscale/swscale.c | |
parent | 487b94aa88f26bef0b520de127d2eb354ae96f48 (diff) | |
download | mpv-11d73c297d4508cc857fd9cfc350cd37f6c779bf.tar.bz2 mpv-11d73c297d4508cc857fd9cfc350cd37f6c779bf.tar.xz |
libswscale: Extend the unaccelerated path of the unscaled yuv2rgb special
converter with support for rgb444 output format.
Patch by Janusz Krzysztofik jkrzyszt chez tis icnet pl
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30841 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale/swscale.c')
-rw-r--r-- | libswscale/swscale.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c index a4e9aa7a5f..ab77537ff2 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -27,7 +27,7 @@ {BGR,RGB}{1,4,8,15,16} support dithering unscaled special converters (YV12=I420=IYUV, Y800=Y8) - YV12 -> {BGR,RGB}{1,4,8,15,16,24,32} + YV12 -> {BGR,RGB}{1,4,8,12,15,16,24,32} x -> x YUV9 -> YV12 YUV9/YV12 -> Y800 @@ -198,6 +198,13 @@ DECLARE_ALIGNED(8, static const uint8_t, dither_2x2_8)[2][8]={ { 0, 4, 0, 4, 0, 4, 0, 4, }, }; +DECLARE_ALIGNED(8, const uint8_t, dither_4x4_16)[4][8]={ +{ 8, 4, 11, 7, 8, 4, 11, 7, }, +{ 2, 14, 1, 13, 2, 14, 1, 13, }, +{ 10, 6, 9, 5, 10, 6, 9, 5, }, +{ 0, 12, 3, 15, 0, 12, 3, 15, }, +}; + DECLARE_ALIGNED(8, const uint8_t, dither_8x8_32)[8][8]={ { 17, 9, 23, 15, 16, 8, 22, 14, }, { 5, 29, 3, 27, 4, 28, 2, 26, }, |