Mercurial > libavcodec.hg
diff vp8dsp.h @ 12342:b4c63ffd959b libavcodec
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.
author | darkshikari |
---|---|
date | Mon, 02 Aug 2010 20:57:03 +0000 |
parents | c7f6ddcc5c01 |
children |
line wrap: on
line diff
--- a/vp8dsp.h Mon Aug 02 20:35:50 2010 +0000 +++ b/vp8dsp.h Mon Aug 02 20:57:03 2010 +0000 @@ -31,6 +31,7 @@ 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);