diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-01-20 22:21:24 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-01-20 23:02:58 +0100 |
commit | d9779d648e82baf4b9b033443cb3105a2f003651 (patch) | |
tree | 05d2101309bacc30aa45ac20669a6a9d46dddb84 /libavcodec/huffyuvenc.c | |
parent | 13c33c8e1f6876671cafa97865c2e4f6229c7df3 (diff) | |
download | ffmpeg-d9779d648e82baf4b9b033443cb3105a2f003651.tar.gz |
Move sub_hfyu_median_prediction_int16() to losslessviddsp
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/huffyuvenc.c')
-rw-r--r-- | libavcodec/huffyuvenc.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/libavcodec/huffyuvenc.c b/libavcodec/huffyuvenc.c index aba8f9c09c..7c19a08e45 100644 --- a/libavcodec/huffyuvenc.c +++ b/libavcodec/huffyuvenc.c @@ -156,25 +156,7 @@ static void sub_median_prediction(HYuvContext *s, uint8_t *dst, const uint8_t *s if (s->bps <= 8) { s->dsp.sub_hfyu_median_prediction(dst, src1, src2, w , left, left_top); } else { - int i; - uint16_t l, lt; - const uint16_t *src116 = (const uint16_t *)src1; - const uint16_t *src216 = (const uint16_t *)src2; - uint16_t *dst16 = ( uint16_t *)dst; - unsigned mask = s->n - 1; - - l = *left; - lt = *left_top; - - for(i=0; i<w; i++){ - const int pred = mid_pred(l, src116[i], (l + src116[i] - lt) & mask); - lt = src116[i]; - l = src216[i]; - dst16[i] = (l - pred) & mask; - } - - *left = l; - *left_top = lt; + s->llviddsp.sub_hfyu_median_prediction_int16((uint16_t *)dst, (const uint16_t *)src1, (const uint16_t *)src2, s->n - 1, w , left, left_top); } } |