From e3f530feca80627e278e15fbe3b60cef7a6b630d Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Fri, 30 Sep 2011 14:37:11 +0200 Subject: prores: idct sse2/sse4 optimizations. ~3.0-3.5x as fast as original C version, 1.6x as fast overall. --- libavcodec/proresdec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavcodec/proresdec.c') diff --git a/libavcodec/proresdec.c b/libavcodec/proresdec.c index cbbd068a10..3b539a1c49 100644 --- a/libavcodec/proresdec.c +++ b/libavcodec/proresdec.c @@ -545,8 +545,8 @@ static int decode_slice(ProresContext *ctx, int pic_num, int slice_num, if (ctx->qmat_changed || sf != ctx->prev_slice_sf) { ctx->prev_slice_sf = sf; for (i = 0; i < 64; i++) { - ctx->qmat_luma_scaled[i] = ctx->qmat_luma[i] * sf; - ctx->qmat_chroma_scaled[i] = ctx->qmat_chroma[i] * sf; + ctx->qmat_luma_scaled[ctx->dsp.idct_permutation[i]] = ctx->qmat_luma[i] * sf; + ctx->qmat_chroma_scaled[ctx->dsp.idct_permutation[i]] = ctx->qmat_chroma[i] * sf; } } -- cgit v1.2.3