diff options
author | Jason Garrett-Glaser <darkshikari@gmail.com> | 2010-08-02 20:18:09 +0000 |
---|---|---|
committer | Jason Garrett-Glaser <darkshikari@gmail.com> | 2010-08-02 20:18:09 +0000 |
commit | 827d43bb9d439254eff5fa44b9809d263fbdc3cf (patch) | |
tree | 09174c0b8f38461476b8e02bcc16cbd95ee43107 /libavcodec/vp8dsp.c | |
parent | 42907c6ab5e41ca29db3454851e15bb0bce3601d (diff) | |
download | ffmpeg-827d43bb9d439254eff5fa44b9809d263fbdc3cf.tar.gz |
VP8: move zeroing of luma DC block into the WHT
Lets us do the zeroing in asm instead of C.
Also makes it consistent with the way the regular iDCT code does it.
Originally committed as revision 24668 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vp8dsp.c')
-rw-r--r-- | libavcodec/vp8dsp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/vp8dsp.c b/libavcodec/vp8dsp.c index f3f3fb6da0..5f5124803d 100644 --- a/libavcodec/vp8dsp.c +++ b/libavcodec/vp8dsp.c @@ -46,6 +46,10 @@ static void vp8_luma_dc_wht_c(DCTELEM block[4][4][16], DCTELEM dc[16]) t1 = dc[i*4+1] + dc[i*4+2]; t2 = dc[i*4+1] - dc[i*4+2]; t3 = dc[i*4+0] - dc[i*4+3] + 3; // rounding + dc[i*4+0] = 0; + dc[i*4+1] = 0; + dc[i*4+2] = 0; + dc[i*4+3] = 0; *block[i][0] = (t0 + t1) >> 3; *block[i][1] = (t3 + t2) >> 3; |