From 0e5d31b16b39f0b4d2e3307714af592dd65cf123 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Thu, 2 Jun 2011 20:17:20 -0700 Subject: swscale: split out unscaled altivec YUV converters in their own file. --- libswscale/swscale.c | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) (limited to 'libswscale/swscale.c') diff --git a/libswscale/swscale.c b/libswscale/swscale.c index d6bdfdd3cc..5327948d3c 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -1857,18 +1857,6 @@ void ff_get_unscaled_swscale(SwsContext *c) if(srcFormat == PIX_FMT_UYVY422 && dstFormat == PIX_FMT_YUV422P) c->swScale= uyvyToYuv422Wrapper; -#if HAVE_ALTIVEC - if ((av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC) && - !(c->flags & SWS_BITEXACT) && - srcFormat == PIX_FMT_YUV420P) { - // unscaled YV12 -> packed YUV, we want speed - if (dstFormat == PIX_FMT_YUYV422) - c->swScale= yv12toyuy2_unscaled_altivec; - else if (dstFormat == PIX_FMT_UYVY422) - c->swScale= yv12touyvy_unscaled_altivec; - } -#endif - /* simple copy */ if ( srcFormat == dstFormat || (srcFormat == PIX_FMT_YUVA420P && dstFormat == PIX_FMT_YUV420P) @@ -1887,9 +1875,11 @@ void ff_get_unscaled_swscale(SwsContext *c) else /* Planar YUV or gray */ c->swScale= planarCopyWrapper; } -#if ARCH_BFIN - ff_bfin_get_unscaled_swscale (c); -#endif + + if (ARCH_BFIN) + ff_bfin_get_unscaled_swscale(c); + if (HAVE_ALTIVEC) + ff_swscale_get_unscaled_altivec(c); } static void reset_ptr(const uint8_t* src[], int format) -- cgit v1.2.3