From 8050dfdfb284874e3989301771e8011422e78c7a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 24 May 2011 17:48:41 +0200 Subject: [PATCH] swscale: Switch to ronalds yuv2yuvX16inC_template() its very similar to baptsites and supports alpha Signed-off-by: Michael Niedermayer --- libswscale/swscale.c | 46 +------------------------------------------- 1 file changed, 1 insertion(+), 45 deletions(-) diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 0bfa3537fd..c048180e1d 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -421,50 +421,6 @@ static av_always_inline void yuv2yuvX16inC_template(const int16_t *lumFilter, co } } -static av_always_inline void yuv2yuvXNinC_template(const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize, - const int16_t *chrFilter, const int16_t **chrSrc, int chrFilterSize, - const int16_t **alpSrc, uint16_t *dest, uint16_t *uDest, uint16_t *vDest, uint16_t *aDest, - int dstW, int chrDstW, int big_endian, int depth) -{ - //FIXME Optimize (just quickly written not optimized..) - int i; - - for (i = 0; i < dstW; i++) { - int val = 1 << (26-depth); - int j; - - for (j = 0; j < lumFilterSize; j++) - val += lumSrc[j][i] * lumFilter[j]; - - if (big_endian) { - AV_WB16(&dest[i], av_clip(val >> (27-depth), 0, (1<> (27-depth), 0, (1<> (27-depth), 0, (1<> (27-depth), 0, (1<> (27-depth), 0, (1<> (27-depth), 0, (1<