comparison error_resilience.c @ 4594:a96d905dcbaa libavcodec

Add av_ prefix to clip functions
author reimar
date Sun, 25 Feb 2007 10:27:12 +0000
parents f334529b46ec
children f99e40a7155b
comparison
equal deleted inserted replaced
4593:2aea8bf268d8 4594:a96d905dcbaa
610 * @param endx x component of the last macroblock, can be -1 for the last of the previous line 610 * @param endx x component of the last macroblock, can be -1 for the last of the previous line
611 * @param status the status at the end (MV_END, AC_ERROR, ...), it is assumed that no earlier end or 611 * @param status the status at the end (MV_END, AC_ERROR, ...), it is assumed that no earlier end or
612 * error of the same type occured 612 * error of the same type occured
613 */ 613 */
614 void ff_er_add_slice(MpegEncContext *s, int startx, int starty, int endx, int endy, int status){ 614 void ff_er_add_slice(MpegEncContext *s, int startx, int starty, int endx, int endy, int status){
615 const int start_i= clip(startx + starty * s->mb_width , 0, s->mb_num-1); 615 const int start_i= av_clip(startx + starty * s->mb_width , 0, s->mb_num-1);
616 const int end_i = clip(endx + endy * s->mb_width , 0, s->mb_num); 616 const int end_i = av_clip(endx + endy * s->mb_width , 0, s->mb_num);
617 const int start_xy= s->mb_index2xy[start_i]; 617 const int start_xy= s->mb_index2xy[start_i];
618 const int end_xy = s->mb_index2xy[end_i]; 618 const int end_xy = s->mb_index2xy[end_i];
619 int mask= -1; 619 int mask= -1;
620 620
621 if(start_i > end_i || start_xy > end_xy){ 621 if(start_i > end_i || start_xy > end_xy){