diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-06-27 23:48:53 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-06-27 23:48:53 +0000 |
commit | b241cbf2cf9b6f98d9788a2d5b03024d6502fa99 (patch) | |
tree | 007e17071bf7f67b0796fb54d76c1e7a7ea6a0a0 /postproc/rgb2rgb.c | |
parent | 81a571a8b372c5821687be907cb6088cac117fb0 (diff) | |
download | ffmpeg-b241cbf2cf9b6f98d9788a2d5b03024d6502fa99.tar.gz |
yvu9 -> yv12 unscaled converter with linear chroma scaling
Originally committed as revision 6583 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
Diffstat (limited to 'postproc/rgb2rgb.c')
-rw-r--r-- | postproc/rgb2rgb.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/postproc/rgb2rgb.c b/postproc/rgb2rgb.c index 962a58945f..3878e4835f 100644 --- a/postproc/rgb2rgb.c +++ b/postproc/rgb2rgb.c @@ -512,6 +512,19 @@ void yvu9toyv12(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, #endif } +void planar2x(const uint8_t *src, uint8_t *dst, int width, int height, int srcStride, int dstStride) +{ +#ifdef CAN_COMPILE_X86_ASM + // ordered per speed fasterst first + if(gCpuCaps.hasMMX2) + planar2x_MMX2(src, dst, width, height, srcStride, dstStride); + else if(gCpuCaps.has3DNow) + planar2x_3DNow(src, dst, width, height, srcStride, dstStride); + else +#endif + planar2x_C(src, dst, width, height, srcStride, dstStride); +} + /** * * height should be a multiple of 2 and width should be a multiple of 2 (if this is a |