comparison motion_est.c @ 2522:e25782262d7d libavcodec

kill warnings patch by (Mns Rullgrd <mru inprovide com>)
author michael
date Thu, 24 Feb 2005 19:08:50 +0000
parents 643724c609ff
children e237d9bd0f8c
comparison
equal deleted inserted replaced
2521:d3885f927bc7 2522:e25782262d7d
315 { 315 {
316 *mx_ptr = 16 * s->mb_x; 316 *mx_ptr = 16 * s->mb_x;
317 *my_ptr = 16 * s->mb_y; 317 *my_ptr = 16 * s->mb_y;
318 } 318 }
319 319
320 #if 0 /* the use of these functions is inside #if 0 */
320 static int full_motion_search(MpegEncContext * s, 321 static int full_motion_search(MpegEncContext * s,
321 int *mx_ptr, int *my_ptr, int range, 322 int *mx_ptr, int *my_ptr, int range,
322 int xmin, int ymin, int xmax, int ymax, uint8_t *ref_picture) 323 int xmin, int ymin, int xmax, int ymax, uint8_t *ref_picture)
323 { 324 {
324 int x1, y1, x2, y2, xx, yy, x, y; 325 int x1, y1, x2, y2, xx, yy, x, y;
535 /* half pixel search */ 536 /* half pixel search */
536 *mx_ptr = mx; 537 *mx_ptr = mx;
537 *my_ptr = my; 538 *my_ptr = my;
538 return dminy; 539 return dminy;
539 } 540 }
540 541 #endif /* 0 */
541 542
542 #define Z_THRESHOLD 256 543 #define Z_THRESHOLD 256
543 544
544 #define CHECK_SAD_HALF_MV(suffix, x, y) \ 545 #define CHECK_SAD_HALF_MV(suffix, x, y) \
545 {\ 546 {\
728 int block; 729 int block;
729 int P[10][2]; 730 int P[10][2];
730 int dmin_sum=0, mx4_sum=0, my4_sum=0; 731 int dmin_sum=0, mx4_sum=0, my4_sum=0;
731 int same=1; 732 int same=1;
732 const int stride= c->stride; 733 const int stride= c->stride;
733 const int uvstride= c->uvstride;
734 uint8_t *mv_penalty= c->current_mv_penalty; 734 uint8_t *mv_penalty= c->current_mv_penalty;
735 735
736 init_mv4_ref(c); 736 init_mv4_ref(c);
737 737
738 for(block=0; block<4; block++){ 738 for(block=0; block<4; block++){
879 int block; 879 int block;
880 int P[10][2]; 880 int P[10][2];
881 uint8_t * const mv_penalty= c->current_mv_penalty; 881 uint8_t * const mv_penalty= c->current_mv_penalty;
882 int same=1; 882 int same=1;
883 const int stride= 2*s->linesize; 883 const int stride= 2*s->linesize;
884 const int uvstride= 2*s->uvlinesize;
885 int dmin_sum= 0; 884 int dmin_sum= 0;
886 const int mot_stride= s->mb_stride; 885 const int mot_stride= s->mb_stride;
887 const int xy= s->mb_x + s->mb_y*mot_stride; 886 const int xy= s->mb_x + s->mb_y*mot_stride;
888 887
889 c->ymin>>=1; 888 c->ymin>>=1;