summaryrefslogtreecommitdiff
path: root/postproc/rgb2rgb.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-06-27 23:48:53 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-06-27 23:48:53 +0000
commitb241cbf2cf9b6f98d9788a2d5b03024d6502fa99 (patch)
tree007e17071bf7f67b0796fb54d76c1e7a7ea6a0a0 /postproc/rgb2rgb.c
parent81a571a8b372c5821687be907cb6088cac117fb0 (diff)
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.c13
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