diff options
author | Diego Biurrun <diego@biurrun.de> | 2014-01-07 12:23:13 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2014-05-27 08:52:34 -0700 |
commit | 0d439fbede03854eac8a978cccf21a3425a3c82d (patch) | |
tree | 91ecc54b480f3011ffda2ad950a0904a0e8df35d /libavcodec/vble.c | |
parent | 888dcd86755d37e55fd74166f6d38ad66d41db58 (diff) | |
download | ffmpeg-0d439fbede03854eac8a978cccf21a3425a3c82d.tar.gz |
dsputil: Split off HuffYUV decoding bits into their own context
Also shorten HuffYUV context member names to avoid clutter.
Diffstat (limited to 'libavcodec/vble.c')
-rw-r--r-- | libavcodec/vble.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/vble.c b/libavcodec/vble.c index a349d8fe59..4d5cd96295 100644 --- a/libavcodec/vble.c +++ b/libavcodec/vble.c @@ -27,14 +27,14 @@ #define BITSTREAM_READER_LE #include "avcodec.h" -#include "dsputil.h" #include "get_bits.h" +#include "huffyuvdsp.h" #include "internal.h" #include "mathops.h" typedef struct { AVCodecContext *avctx; - DSPContext dsp; + HuffYUVDSPContext hdsp; int size; uint8_t *val; /* First holds the lengths of vlc symbols and then their values */ @@ -100,8 +100,8 @@ static void vble_restore_plane(VBLEContext *ctx, AVFrame *pic, if (i) { left = 0; left_top = dst[-stride]; - ctx->dsp.add_hfyu_median_prediction(dst, dst-stride, val, - width, &left, &left_top); + ctx->hdsp.add_hfyu_median_pred(dst, dst - stride, val, + width, &left, &left_top); } else { dst[0] = val[0]; for (j = 1; j < width; j++) @@ -178,7 +178,7 @@ static av_cold int vble_decode_init(AVCodecContext *avctx) /* Stash for later use */ ctx->avctx = avctx; - ff_dsputil_init(&ctx->dsp, avctx); + ff_huffyuvdsp_init(&ctx->hdsp); avctx->pix_fmt = AV_PIX_FMT_YUV420P; avctx->bits_per_raw_sample = 8; |