diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-12-23 18:42:11 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2014-05-27 08:54:53 -0700 |
commit | 512f3ffe9b4bb86767c2b1176554407c75fe1a5c (patch) | |
tree | 47f7c9707479b72e570c969576e2dbd94375114f /libavcodec/utvideoenc.c | |
parent | 0d439fbede03854eac8a978cccf21a3425a3c82d (diff) | |
download | ffmpeg-512f3ffe9b4bb86767c2b1176554407c75fe1a5c.tar.gz |
dsputil: Split off HuffYUV encoding bits into their own context
Also shorten HuffYUV context member names to avoid clutter.
Diffstat (limited to 'libavcodec/utvideoenc.c')
-rw-r--r-- | libavcodec/utvideoenc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/utvideoenc.c b/libavcodec/utvideoenc.c index b63858d611..7fa4389950 100644 --- a/libavcodec/utvideoenc.c +++ b/libavcodec/utvideoenc.c @@ -31,6 +31,7 @@ #include "bytestream.h" #include "put_bits.h" #include "dsputil.h" +#include "huffyuvencdsp.h" #include "mathops.h" #include "utvideo.h" #include "huffman.h" @@ -109,6 +110,7 @@ static av_cold int utvideo_encode_init(AVCodecContext *avctx) } ff_dsputil_init(&c->dsp, avctx); + ff_huffyuvencdsp_init(&c->hdsp); /* Check the prediction method, and error out if unsupported */ if (avctx->prediction_method < 0 || avctx->prediction_method > 4) { @@ -312,7 +314,7 @@ static void median_predict(UtvideoContext *c, uint8_t *src, uint8_t *dst, int st /* Rest of the coded part uses median prediction */ for (j = 1; j < height; j++) { - c->dsp.sub_hfyu_median_prediction(dst, src - stride, src, width, &A, &B); + c->hdsp.sub_hfyu_median_pred(dst, src - stride, src, width, &A, &B); dst += width; src += stride; } |