mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-22 00:20:07 +08:00
reversing header game
MIN/MAX -> FFMIN/FFMAX Originally committed as revision 1184 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -209,7 +209,7 @@ static void h_block_filter(MpegEncContext *s, UINT8 *dst, int w, int h, int stri
|
||||
c= dst[offset + 9 + y*stride] - dst[offset + 8 + y*stride];
|
||||
|
||||
d= ABS(b) - ((ABS(a) + ABS(c) + 1)>>1);
|
||||
d= MAX(d, 0);
|
||||
d= FFMAX(d, 0);
|
||||
if(b<0) d= -d;
|
||||
|
||||
if(d==0) continue;
|
||||
@@ -269,7 +269,7 @@ static void v_block_filter(MpegEncContext *s, UINT8 *dst, int w, int h, int stri
|
||||
c= dst[offset + x + 9*stride] - dst[offset + x + 8*stride];
|
||||
|
||||
d= ABS(b) - ((ABS(a) + ABS(c)+1)>>1);
|
||||
d= MAX(d, 0);
|
||||
d= FFMAX(d, 0);
|
||||
if(b<0) d= -d;
|
||||
|
||||
if(d==0) continue;
|
||||
@@ -430,10 +430,10 @@ int score_sum=0;
|
||||
min_x=min_y=max_x=max_y=0;
|
||||
}
|
||||
for(j=0; j<pred_count; j++){
|
||||
max_x= MAX(max_x, mv_predictor[j][0]);
|
||||
max_y= MAX(max_y, mv_predictor[j][1]);
|
||||
min_x= MIN(min_x, mv_predictor[j][0]);
|
||||
min_y= MIN(min_y, mv_predictor[j][1]);
|
||||
max_x= FFMAX(max_x, mv_predictor[j][0]);
|
||||
max_y= FFMAX(max_y, mv_predictor[j][1]);
|
||||
min_x= FFMIN(min_x, mv_predictor[j][0]);
|
||||
min_y= FFMIN(min_y, mv_predictor[j][1]);
|
||||
}
|
||||
mv_predictor[pred_count+1][0] = sum_x - max_x - min_x;
|
||||
mv_predictor[pred_count+1][1] = sum_y - max_y - min_y;
|
||||
@@ -538,7 +538,7 @@ static int is_intra_more_likely(MpegEncContext *s){
|
||||
|
||||
if(undamaged_count < 5) return 0; //allmost all MBs damaged -> use temporal prediction
|
||||
|
||||
skip_amount= MAX(undamaged_count/50, 1); //check only upto 50 MBs
|
||||
skip_amount= FFMAX(undamaged_count/50, 1); //check only upto 50 MBs
|
||||
is_intra_likely=0;
|
||||
|
||||
j=0;
|
||||
|
Reference in New Issue
Block a user