diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2011-01-20 17:24:19 -0500 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-01-21 20:36:01 +0100 |
commit | 772225c041507eba3fd5f9cfcb37d58bfbd579d4 (patch) | |
tree | 9158401dc3dd3d4aea715b9ab27b1016ac5819c9 /libavcodec/h264idct.c | |
parent | 2293b0b698ce44d34897cc092bf1eb6b3571b7f8 (diff) | |
download | ffmpeg-772225c041507eba3fd5f9cfcb37d58bfbd579d4.tar.gz |
Revert 2a1f431d38ea9c05abb215d70c7dc09cdb6888ab, it broke H264 lossless.
(cherry picked from commit 66c6b5e2a5e6376c4a5c65b1d96fd7a1580bdfcf)
Diffstat (limited to 'libavcodec/h264idct.c')
-rw-r--r-- | libavcodec/h264idct.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/libavcodec/h264idct.c b/libavcodec/h264idct.c index 53e70a22df..f5b05ac24f 100644 --- a/libavcodec/h264idct.c +++ b/libavcodec/h264idct.c @@ -250,26 +250,4 @@ void ff_h264_luma_dc_dequant_idct_c(DCTELEM *output, DCTELEM *input, int qmul){ output[stride* 4+offset]= ((((z1 - z2)*qmul + 128 ) >> 8)); output[stride* 5+offset]= ((((z0 - z3)*qmul + 128 ) >> 8)); } -#undef stride -} - -void ff_chroma_dc_dequant_idct_c(DCTELEM *output, DCTELEM *input, int qmul){ - const int stride= 16*2; - const int xStride= 16; - int a,b,c,d,e; - - a= input[0]; - b= input[1]; - c= input[2]; - d= input[3]; - - e= a-b; - a= a+b; - b= c-d; - c= c+d; - - output[stride*0 + xStride*0]= ((a+c)*qmul) >> 7; - output[stride*0 + xStride*1]= ((e+b)*qmul) >> 7; - output[stride*1 + xStride*0]= ((a-c)*qmul) >> 7; - output[stride*1 + xStride*1]= ((e-b)*qmul) >> 7; } |