comparison motion_est.c @ 847:f3c369b8ddca libavcodec

reversing header game MIN/MAX -> FFMIN/FFMAX
author michaelni
date Sun, 10 Nov 2002 11:46:59 +0000
parents 79de6308c34d
children eacc2dd8fd9d
comparison
equal deleted inserted replaced
846:ade627a74709 847:f3c369b8ddca
1598 int x; 1598 int x;
1599 int xy= (y+1)* (s->mb_width+2) + 1; 1599 int xy= (y+1)* (s->mb_width+2) + 1;
1600 i= y*s->mb_width; 1600 i= y*s->mb_width;
1601 for(x=0; x<s->mb_width; x++){ 1601 for(x=0; x<s->mb_width; x++){
1602 if(s->mb_type[i] & type){ 1602 if(s->mb_type[i] & type){
1603 int fcode= MAX(fcode_tab[mv_table[xy][0] + MAX_MV], 1603 int fcode= FFMAX(fcode_tab[mv_table[xy][0] + MAX_MV],
1604 fcode_tab[mv_table[xy][1] + MAX_MV]); 1604 fcode_tab[mv_table[xy][1] + MAX_MV]);
1605 int j; 1605 int j;
1606 1606
1607 for(j=0; j<fcode && j<8; j++){ 1607 for(j=0; j<fcode && j<8; j++){
1608 if(s->pict_type==B_TYPE || s->mc_mb_var[i] < s->mb_var[i]) 1608 if(s->pict_type==B_TYPE || s->mc_mb_var[i] < s->mb_var[i])
1609 score[j]-= 170; 1609 score[j]-= 170;