diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2013-03-10 13:32:10 -0700 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-04-19 23:18:08 +0300 |
commit | c10470035e607bb3586e31bb32d7b840d5abe49b (patch) | |
tree | 66df1f782bb2d40ac1db0418ac9b184c5396e284 /libavcodec/mimic.c | |
parent | 8071264f2196d71ff49c3944c33f8d3d83f548f1 (diff) | |
download | ffmpeg-c10470035e607bb3586e31bb32d7b840d5abe49b.tar.gz |
mimic: Use hpeldsp instead of dsputil for half-pel functions
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/mimic.c')
-rw-r--r-- | libavcodec/mimic.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libavcodec/mimic.c b/libavcodec/mimic.c index 0fe83137bb..84e33914cd 100644 --- a/libavcodec/mimic.c +++ b/libavcodec/mimic.c @@ -28,6 +28,7 @@ #include "get_bits.h" #include "bytestream.h" #include "dsputil.h" +#include "hpeldsp.h" #include "thread.h" #define MIMIC_HEADER_SIZE 20 @@ -52,6 +53,7 @@ typedef struct { GetBitContext gb; ScanTable scantable; DSPContext dsp; + HpelDSPContext hdsp; VLC vlc; /* Kept in the context so multithreading can have a constant to read from */ @@ -144,6 +146,7 @@ static av_cold int mimic_decode_init(AVCodecContext *avctx) return ret; } ff_dsputil_init(&ctx->dsp, avctx); + ff_hpeldsp_init(&ctx->hdsp, avctx->flags); ff_init_scantable(ctx->dsp.idct_permutation, &ctx->scantable, col_zag); for (i = 0; i < FF_ARRAY_ELEMS(ctx->frames); i++) { @@ -304,7 +307,7 @@ static int decode(MimicContext *ctx, int quality, int num_coeffs, cur_row, 0); p += src - ctx->flipped_ptrs[ctx->prev_index].data[plane]; - ctx->dsp.put_pixels_tab[1][0](dst, p, stride, 8); + ctx->hdsp.put_pixels_tab[1][0](dst, p, stride, 8); } else { av_log(ctx->avctx, AV_LOG_ERROR, "No such backreference! Buggy sample.\n"); @@ -313,7 +316,7 @@ static int decode(MimicContext *ctx, int quality, int num_coeffs, } else { ff_thread_await_progress(&ctx->frames[ctx->prev_index], cur_row, 0); - ctx->dsp.put_pixels_tab[1][0](dst, src, stride, 8); + ctx->hdsp.put_pixels_tab[1][0](dst, src, stride, 8); } src += 8; dst += 8; |