summaryrefslogtreecommitdiff
path: root/libavcodec/huffyuvdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-01-20 22:21:24 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-01-20 22:21:24 +0100
commit883570e6b70ae4d1413d2d2f552687d80b32e1e5 (patch)
tree4f9afd8807f21df02164cb0802ee4822352987f4 /libavcodec/huffyuvdec.c
parentf9c7b14c040fe1c5f9253d7abd474f8b2282903c (diff)
downloadffmpeg-883570e6b70ae4d1413d2d2f552687d80b32e1e5.tar.gz
Move add_hfyu_left_prediction_int16 to losslessviddsp
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/huffyuvdec.c')
-rw-r--r--libavcodec/huffyuvdec.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/libavcodec/huffyuvdec.c b/libavcodec/huffyuvdec.c
index 26c83098c4..59d58a8271 100644
--- a/libavcodec/huffyuvdec.c
+++ b/libavcodec/huffyuvdec.c
@@ -680,26 +680,7 @@ static int left_prediction(HYuvContext *s, uint8_t *dst, const uint8_t *src, int
if (s->bps <= 8) {
return s->dsp.add_hfyu_left_prediction(dst, src, w, acc);
} else {
- //FIXME optimize
- unsigned mask = s->n-1;
- int i;
- const uint16_t *src16 = (const uint16_t *)src;
- uint16_t *dst16 = ( uint16_t *)dst;
-
- for(i=0; i<w-1; i++){
- acc+= src16[i];
- dst16[i]= acc & mask;
- i++;
- acc+= src16[i];
- dst16[i]= acc & mask;
- }
-
- for(; i<w; i++){
- acc+= src16[i];
- dst16[i]= acc & mask;
- }
-
- return acc;
+ return s->llviddsp.add_hfyu_left_prediction_int16(( uint16_t *)dst, (const uint16_t *)src, s->n-1, w, acc);
}
}