comparison motion_est.c @ 2327:5e5cf598a48b libavcodec

H.261 encoder by (Maarten Daniels <maarten dot daniels at luc dot ac dot be>)
author michael
date Thu, 28 Oct 2004 10:12:57 +0000
parents 857e16e85aea
children 643724c609ff
comparison
equal deleted inserted replaced
2326:fe1986d6230f 2327:5e5cf598a48b
277 } 277 }
278 c->hpel_put[2][0]= c->hpel_put[2][1]= 278 c->hpel_put[2][0]= c->hpel_put[2][1]=
279 c->hpel_put[2][2]= c->hpel_put[2][3]= zero_hpel; 279 c->hpel_put[2][2]= c->hpel_put[2][3]= zero_hpel;
280 } 280 }
281 281
282 if(s->codec_id == CODEC_ID_H261){
283 c->sub_motion_search= no_sub_motion_search;
284 }
285
282 c->temp= c->scratchpad; 286 c->temp= c->scratchpad;
283 } 287 }
284 288
285 #if 0 289 #if 0
286 static int pix_dev(uint8_t * pix, int line_size, int mean) 290 static int pix_dev(uint8_t * pix, int line_size, int mean)
689 if (s->unrestricted_mv) { 693 if (s->unrestricted_mv) {
690 c->xmin = - x - 16; 694 c->xmin = - x - 16;
691 c->ymin = - y - 16; 695 c->ymin = - y - 16;
692 c->xmax = - x + s->mb_width *16; 696 c->xmax = - x + s->mb_width *16;
693 c->ymax = - y + s->mb_height*16; 697 c->ymax = - y + s->mb_height*16;
698 } else if (s->out_format == FMT_H261){
699 // Search range of H261 is different from other codec standards
700 c->xmin = (x > 15) ? - 15 : 0;
701 c->ymin = (y > 15) ? - 15 : 0;
702 c->xmax = (x < s->mb_width * 16 - 16) ? 15 : 0;
703 c->ymax = (y < s->mb_height * 16 - 16) ? 15 : 0;
694 } else { 704 } else {
695 c->xmin = - x; 705 c->xmin = - x;
696 c->ymin = - y; 706 c->ymin = - y;
697 c->xmax = - x + s->mb_width *16 - 16; 707 c->xmax = - x + s->mb_width *16 - 16;
698 c->ymax = - y + s->mb_height*16 - 16; 708 c->ymax = - y + s->mb_height*16 - 16;