Mercurial > mplayer.hg
comparison libswscale/swscale.c @ 30799:76f3878f34fd
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
author | benoit |
---|---|
date | Fri, 05 Mar 2010 08:32:54 +0000 |
parents | 91f90077acf6 |
children | 9257c04720ed |
comparison
equal
deleted
inserted
replaced
30798:91f90077acf6 | 30799:76f3878f34fd |
---|---|
25 supported Input formats: YV12, I420/IYUV, YUY2, UYVY, BGR32, BGR32_1, BGR24, BGR16, BGR15, RGB32, RGB32_1, RGB24, Y8/Y800, YVU9/IF09, PAL8 | 25 supported Input formats: YV12, I420/IYUV, YUY2, UYVY, BGR32, BGR32_1, BGR24, BGR16, BGR15, RGB32, RGB32_1, RGB24, Y8/Y800, YVU9/IF09, PAL8 |
26 supported output formats: YV12, I420/IYUV, YUY2, UYVY, {BGR,RGB}{1,4,8,15,16,24,32}, Y8/Y800, YVU9/IF09 | 26 supported output formats: YV12, I420/IYUV, YUY2, UYVY, {BGR,RGB}{1,4,8,15,16,24,32}, Y8/Y800, YVU9/IF09 |
27 {BGR,RGB}{1,4,8,15,16} support dithering | 27 {BGR,RGB}{1,4,8,15,16} support dithering |
28 | 28 |
29 unscaled special converters (YV12=I420=IYUV, Y800=Y8) | 29 unscaled special converters (YV12=I420=IYUV, Y800=Y8) |
30 YV12 -> {BGR,RGB}{1,4,8,15,16,24,32} | 30 YV12 -> {BGR,RGB}{1,4,8,12,15,16,24,32} |
31 x -> x | 31 x -> x |
32 YUV9 -> YV12 | 32 YUV9 -> YV12 |
33 YUV9/YV12 -> Y800 | 33 YUV9/YV12 -> Y800 |
34 Y800 -> YUV9/YV12 | 34 Y800 -> YUV9/YV12 |
35 BGR24 -> BGR32 & RGB24 -> RGB32 | 35 BGR24 -> BGR32 & RGB24 -> RGB32 |
194 }; | 194 }; |
195 | 195 |
196 DECLARE_ALIGNED(8, static const uint8_t, dither_2x2_8)[2][8]={ | 196 DECLARE_ALIGNED(8, static const uint8_t, dither_2x2_8)[2][8]={ |
197 { 6, 2, 6, 2, 6, 2, 6, 2, }, | 197 { 6, 2, 6, 2, 6, 2, 6, 2, }, |
198 { 0, 4, 0, 4, 0, 4, 0, 4, }, | 198 { 0, 4, 0, 4, 0, 4, 0, 4, }, |
199 }; | |
200 | |
201 DECLARE_ALIGNED(8, const uint8_t, dither_4x4_16)[4][8]={ | |
202 { 8, 4, 11, 7, 8, 4, 11, 7, }, | |
203 { 2, 14, 1, 13, 2, 14, 1, 13, }, | |
204 { 10, 6, 9, 5, 10, 6, 9, 5, }, | |
205 { 0, 12, 3, 15, 0, 12, 3, 15, }, | |
199 }; | 206 }; |
200 | 207 |
201 DECLARE_ALIGNED(8, const uint8_t, dither_8x8_32)[8][8]={ | 208 DECLARE_ALIGNED(8, const uint8_t, dither_8x8_32)[8][8]={ |
202 { 17, 9, 23, 15, 16, 8, 22, 14, }, | 209 { 17, 9, 23, 15, 16, 8, 22, 14, }, |
203 { 5, 29, 3, 27, 4, 28, 2, 26, }, | 210 { 5, 29, 3, 27, 4, 28, 2, 26, }, |