comparison libpostproc/postprocess_template.c @ 1724:ea5200a9f730 libavcodec

mpeg2 QP clamping fix
author michael
date Sun, 04 Jan 2004 17:29:51 +0000
parents d2fc92d02bf7
children 4225c131a2eb
comparison
equal deleted inserted replaced
1723:033d889d7c2c 1724:ea5200a9f730
2790 uint8_t * const tempSrc= c.tempSrc; 2790 uint8_t * const tempSrc= c.tempSrc;
2791 uint8_t * const tempDst= c.tempDst; 2791 uint8_t * const tempDst= c.tempDst;
2792 const int mbWidth= isColor ? (width+7)>>3 : (width+15)>>4; 2792 const int mbWidth= isColor ? (width+7)>>3 : (width+15)>>4;
2793 2793
2794 #ifdef HAVE_MMX 2794 #ifdef HAVE_MMX
2795 for(i=0; i<32; i++){ 2795 for(i=0; i<57; i++){
2796 int offset= ((i*c.ppMode.baseDcDiff)>>8) + 1; 2796 int offset= ((i*c.ppMode.baseDcDiff)>>8) + 1;
2797 int threshold= offset*2 + 1; 2797 int threshold= offset*2 + 1;
2798 c.mmxDcOffset[i]= 0x7F - offset; 2798 c.mmxDcOffset[i]= 0x7F - offset;
2799 c.mmxDcThreshold[i]= 0x7F - threshold; 2799 c.mmxDcThreshold[i]= 0x7F - threshold;
2800 c.mmxDcOffset[i]*= 0x0101010101010101LL; 2800 c.mmxDcOffset[i]*= 0x0101010101010101LL;