diff options
author | Panagiotis Issaris <takis.issaris@uhasselt.be> | 2006-12-07 12:47:29 +0300 |
---|---|---|
committer | Panagiotis Issaris <takis.issaris@uhasselt.be> | 2006-12-07 12:47:29 +0300 |
commit | 14e95e2c92dd675164c6578152e2636adec3b437 (patch) | |
tree | 7f533d3c73a0555c34901b89fadb47db400aa643 /libavcodec/h264.c | |
parent | 035314b6834f0ad2017ec05f42c16d25b46d4d54 (diff) |
Removing unused code
Originally committed as revision 7244 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r-- | libavcodec/h264.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 7405456b93..b193f30e67 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -1946,42 +1946,6 @@ static inline int get_chroma_qp(int chroma_qp_index_offset, int qscale){ return chroma_qp[clip(qscale + chroma_qp_index_offset, 0, 51)]; } - -#if 0 -static void h264_diff_dct_c(DCTELEM *block, uint8_t *src1, uint8_t *src2, int stride){ - int i; - //FIXME try int temp instead of block - - for(i=0; i<4; i++){ - const int d0= src1[0 + i*stride] - src2[0 + i*stride]; - const int d1= src1[1 + i*stride] - src2[1 + i*stride]; - const int d2= src1[2 + i*stride] - src2[2 + i*stride]; - const int d3= src1[3 + i*stride] - src2[3 + i*stride]; - const int z0= d0 + d3; - const int z3= d0 - d3; - const int z1= d1 + d2; - const int z2= d1 - d2; - - block[0 + 4*i]= z0 + z1; - block[1 + 4*i]= 2*z3 + z2; - block[2 + 4*i]= z0 - z1; - block[3 + 4*i]= z3 - 2*z2; - } - - for(i=0; i<4; i++){ - const int z0= block[0*4 + i] + block[3*4 + i]; - const int z3= block[0*4 + i] - block[3*4 + i]; - const int z1= block[1*4 + i] + block[2*4 + i]; - const int z2= block[1*4 + i] - block[2*4 + i]; - - block[0*4 + i]= z0 + z1; - block[1*4 + i]= 2*z3 + z2; - block[2*4 + i]= z0 - z1; - block[3*4 + i]= z3 - 2*z2; - } -} -#endif - //FIXME need to check that this doesnt overflow signed 32 bit for low qp, i am not sure, it's very close //FIXME check that gcc inlines this (and optimizes intra & seperate_dc stuff away) static inline int quantize_c(DCTELEM *block, uint8_t *scantable, int qscale, int intra, int seperate_dc){ |