Commit b025431b authored by Ronald S. Bultje's avatar Ronald S. Bultje Committed by Michael Niedermayer

swscale: 10l forgot git add this change from ronald.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 58c03f6d
...@@ -362,10 +362,11 @@ uint16_t dither_scale[15][16]={ ...@@ -362,10 +362,11 @@ uint16_t dither_scale[15][16]={
static av_always_inline void yuv2yuvX16inC_template(const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize, static av_always_inline void yuv2yuvX16inC_template(const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize,
const int16_t *chrFilter, const int16_t **chrSrc, int chrFilterSize, 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, const int16_t **alpSrc, uint16_t *dest, uint16_t *uDest, uint16_t *vDest, uint16_t *aDest,
int dstW, int chrDstW, int big_endian) int dstW, int chrDstW, int big_endian, int output_bits)
{ {
//FIXME Optimize (just quickly written not optimized..) //FIXME Optimize (just quickly written not optimized..)
int i; int i;
int shift = 11 + 16 - output_bits;
#define output_pixel(pos, val) \ #define output_pixel(pos, val) \
if (big_endian) { \ if (big_endian) { \
...@@ -482,13 +483,13 @@ static inline void yuv2yuvX16inC(const int16_t *lumFilter, const int16_t **lumSr ...@@ -482,13 +483,13 @@ static inline void yuv2yuvX16inC(const int16_t *lumFilter, const int16_t **lumSr
chrFilter, chrSrc, chrFilterSize, chrFilter, chrSrc, chrFilterSize,
alpSrc, alpSrc,
dest, uDest, vDest, aDest, dest, uDest, vDest, aDest,
dstW, chrDstW, 1); dstW, chrDstW, 1, 16);
} else { } else {
yuv2yuvX16inC_template(lumFilter, lumSrc, lumFilterSize, yuv2yuvX16inC_template(lumFilter, lumSrc, lumFilterSize,
chrFilter, chrSrc, chrFilterSize, chrFilter, chrSrc, chrFilterSize,
alpSrc, alpSrc,
dest, uDest, vDest, aDest, dest, uDest, vDest, aDest,
dstW, chrDstW, 0); dstW, chrDstW, 0, 16);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment