summaryrefslogtreecommitdiffstats
path: root/postproc/rgb2rgb.c
diff options
context:
space:
mode:
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