From f8bed30d8b176fa030f6737765338bb4a2bcabc9 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Mon, 21 Feb 2011 09:07:13 -0500 Subject: VC1: merge idct8x8, coeff adjustments and put_pixels. Merging these functions allows merging some loops, which makes the results (particularly after SIMD optimizations) much faster. --- libavcodec/vc1dsp.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libavcodec/vc1dsp.h') diff --git a/libavcodec/vc1dsp.h b/libavcodec/vc1dsp.h index a1f3d90574..db9d892a23 100644 --- a/libavcodec/vc1dsp.h +++ b/libavcodec/vc1dsp.h @@ -30,9 +30,13 @@ #include "dsputil.h" +typedef void (*vc1_idct_func)(uint8_t *dest, int line_size, DCTELEM *block); + typedef struct VC1DSPContext { /* vc1 functions */ - void (*vc1_inv_trans_8x8)(DCTELEM *b); + vc1_idct_func vc1_inv_trans_8x8_add; + vc1_idct_func vc1_inv_trans_8x8_put_signed[2]; + vc1_idct_func vc1_inv_trans_8x8_put[2]; void (*vc1_inv_trans_8x4)(uint8_t *dest, int line_size, DCTELEM *block); void (*vc1_inv_trans_4x8)(uint8_t *dest, int line_size, DCTELEM *block); void (*vc1_inv_trans_4x4)(uint8_t *dest, int line_size, DCTELEM *block); -- cgit v1.2.3