comparison dv.c @ 4001:34fdffe98bd0 libavcodec

Rename ABS macro to FFABS.
author diego
date Wed, 11 Oct 2006 23:17:58 +0000
parents c8c591fe26f8
children d6f83e2f8804
comparison
equal deleted inserted replaced
4000:eeab02251056 4001:34fdffe98bd0
703 if (level+15 > 30U) { 703 if (level+15 > 30U) {
704 bi->sign[i] = (level>>31)&1; 704 bi->sign[i] = (level>>31)&1;
705 /* weigh it and and shift down into range, adding for rounding */ 705 /* weigh it and and shift down into range, adding for rounding */
706 /* the extra division by a factor of 2^4 reverses the 8x expansion of the DCT 706 /* the extra division by a factor of 2^4 reverses the 8x expansion of the DCT
707 AND the 2x doubling of the weights */ 707 AND the 2x doubling of the weights */
708 level = (ABS(level) * weight[i] + (1<<(dv_weight_bits+3))) >> (dv_weight_bits+4); 708 level = (FFABS(level) * weight[i] + (1<<(dv_weight_bits+3))) >> (dv_weight_bits+4);
709 bi->mb[i] = level; 709 bi->mb[i] = level;
710 if(level>max) max= level; 710 if(level>max) max= level;
711 bi->bit_size[area] += dv_rl2vlc_size(i - prev - 1, level); 711 bi->bit_size[area] += dv_rl2vlc_size(i - prev - 1, level);
712 bi->next[prev]= i; 712 bi->next[prev]= i;
713 prev= i; 713 prev= i;