diff options
author | kostya <kostya@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-06-02 12:30:11 +0000 |
---|---|---|
committer | kostya <kostya@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-06-02 12:30:11 +0000 |
commit | 615d3ead235409f6824606c1a7523738c328e2c4 (patch) | |
tree | bb672ef2eaaafae789d430386bcbea2f11e5abf9 /libswscale/swscale.c | |
parent | 071cdc07aa1c6bc309be70eb4d8f681ab00bc0d7 (diff) | |
download | mpv-615d3ead235409f6824606c1a7523738c328e2c4.tar.bz2 mpv-615d3ead235409f6824606c1a7523738c328e2c4.tar.xz |
YUV into RGB48 BE/LE conversion support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29342 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale/swscale.c')
-rw-r--r-- | libswscale/swscale.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 921eb2db3a..b87698645e 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -853,6 +853,24 @@ static inline void yuv2nv12XinC(const int16_t *lumFilter, const int16_t **lumSrc #define YSCALE_YUV_2_ANYRGB_C(func, func2, func_g16, func_monoblack)\ switch(c->dstFormat)\ {\ + case PIX_FMT_RGB48BE:\ + case PIX_FMT_RGB48LE:\ + func(uint8_t,0)\ + ((uint8_t*)dest)[ 0]= r[Y1];\ + ((uint8_t*)dest)[ 1]= r[Y1];\ + ((uint8_t*)dest)[ 2]= g[Y1];\ + ((uint8_t*)dest)[ 3]= g[Y1];\ + ((uint8_t*)dest)[ 4]= b[Y1];\ + ((uint8_t*)dest)[ 5]= b[Y1];\ + ((uint8_t*)dest)[ 6]= r[Y2];\ + ((uint8_t*)dest)[ 7]= r[Y2];\ + ((uint8_t*)dest)[ 8]= g[Y2];\ + ((uint8_t*)dest)[ 9]= g[Y2];\ + ((uint8_t*)dest)[10]= b[Y2];\ + ((uint8_t*)dest)[11]= b[Y2];\ + dest+=12;\ + }\ + break;\ case PIX_FMT_RGBA:\ case PIX_FMT_BGRA:\ if (CONFIG_SMALL){\ |