diff options
author | Peter Schlaile <peter@schlaile.de> | 2009-08-14 02:15:28 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2009-08-14 02:15:28 +0000 |
commit | 562f6853078bf541b8d8d8888c92ca5ab0123aa5 (patch) | |
tree | 06f1be68266432b116e0a692d5570d2994817c7f /libswscale/x86/yuv2rgb_mmx.c | |
parent | 9ae443f420eba5907a751d554185de4662d94968 (diff) | |
download | ffmpeg-562f6853078bf541b8d8d8888c92ca5ab0123aa5.tar.gz |
BGR32 MMX special convertor.
Patch by Peter Schlaile < peter at schlaile dot de >
Originally committed as revision 29515 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/x86/yuv2rgb_mmx.c')
-rw-r--r-- | libswscale/x86/yuv2rgb_mmx.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libswscale/x86/yuv2rgb_mmx.c b/libswscale/x86/yuv2rgb_mmx.c index ced537fcce..e0b76e0b2d 100644 --- a/libswscale/x86/yuv2rgb_mmx.c +++ b/libswscale/x86/yuv2rgb_mmx.c @@ -67,6 +67,11 @@ SwsFunc ff_yuv2rgb_init_mmx(SwsContext *c) if (HAVE_7REGS) return yuva420_rgb32_MMX2; break; }else return yuv420_rgb32_MMX2; + case PIX_FMT_BGR32: + if (CONFIG_SWSCALE_ALPHA && c->srcFormat == PIX_FMT_YUVA420P){ + if (HAVE_7REGS) return yuva420_bgr32_MMX2; + break; + }else return yuv420_bgr32_MMX2; case PIX_FMT_BGR24: return yuv420_rgb24_MMX2; case PIX_FMT_RGB565: return yuv420_rgb16_MMX2; case PIX_FMT_RGB555: return yuv420_rgb15_MMX2; @@ -79,6 +84,11 @@ SwsFunc ff_yuv2rgb_init_mmx(SwsContext *c) if (HAVE_7REGS) return yuva420_rgb32_MMX; break; }else return yuv420_rgb32_MMX; + case PIX_FMT_BGR32: + if (CONFIG_SWSCALE_ALPHA && c->srcFormat == PIX_FMT_YUVA420P){ + if (HAVE_7REGS) return yuva420_bgr32_MMX; + break; + }else return yuv420_bgr32_MMX; case PIX_FMT_BGR24: return yuv420_rgb24_MMX; case PIX_FMT_RGB565: return yuv420_rgb16_MMX; case PIX_FMT_RGB555: return yuv420_rgb15_MMX; |