From f311208cf1ebbd74f8a3bd111d9172f41188aa83 Mon Sep 17 00:00:00 2001 From: Jason Garrett-Glaser Date: Mon, 2 Aug 2010 20:57:03 +0000 Subject: VP8: much faster DC transform handling A lot of the time the DC block is empty: don't do the WHT in this case. A lot of the rest of the time, there's only one coefficient: make a special DC-only transform for that case. When the block is empty, don't incorrectly mark luma DCT blocks as having DC coefficients. Originally committed as revision 24670 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/vp8dsp.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec/vp8dsp.h') diff --git a/libavcodec/vp8dsp.h b/libavcodec/vp8dsp.h index 47b1a90777..ee5c7ec0fb 100644 --- a/libavcodec/vp8dsp.h +++ b/libavcodec/vp8dsp.h @@ -31,6 +31,7 @@ typedef void (*vp8_mc_func)(uint8_t *dst/*align 8*/, int dstStride, uint8_t *src typedef struct VP8DSPContext { void (*vp8_luma_dc_wht)(DCTELEM block[4][4][16], DCTELEM dc[16]); + void (*vp8_luma_dc_wht_dc)(DCTELEM block[4][4][16], DCTELEM dc[16]); void (*vp8_idct_add)(uint8_t *dst, DCTELEM block[16], int stride); void (*vp8_idct_dc_add)(uint8_t *dst, DCTELEM block[16], int stride); void (*vp8_idct_dc_add4y)(uint8_t *dst, DCTELEM block[4][16], int stride); -- cgit v1.2.3