diff options
author | Jason Garrett-Glaser <darkshikari@gmail.com> | 2010-08-02 20:57:03 +0000 |
---|---|---|
committer | Jason Garrett-Glaser <darkshikari@gmail.com> | 2010-08-02 20:57:03 +0000 |
commit | f311208cf1ebbd74f8a3bd111d9172f41188aa83 (patch) | |
tree | 6183bd58dae57998d1b8cb1e8fd78b941e1aed95 /libavcodec/vp8dsp.h | |
parent | c934562c1293167a35a0350358e8b76ec73a3364 (diff) | |
download | ffmpeg-f311208cf1ebbd74f8a3bd111d9172f41188aa83.tar.gz |
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
Diffstat (limited to 'libavcodec/vp8dsp.h')
-rw-r--r-- | libavcodec/vp8dsp.h | 1 |
1 files changed, 1 insertions, 0 deletions
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); |