Lines Matching refs:mb_y
1738 const int mb_y = s->mb_y;
1750 const int mb_xy = mb_x + mb_y * s->mb_stride;
1781 (mb_y * 16 * wrap_y) + mb_x * 16;
1783 (mb_y * mb_block_height * wrap_c) + mb_x * 8;
1785 (mb_y * mb_block_height * wrap_c) + mb_x * 8;
1787 if (mb_x * 16 + 16 > s->width || mb_y * 16 + 16 > s->height) {
1790 mb_y * 16, s->width, s->height);
1793 mb_block_height, mb_x * 8, mb_y * 8,
1797 mb_block_height, mb_x * 8, mb_y * 8,
1928 if (s->current_picture.mc_mb_var[s->mb_stride * mb_y + mb_x] <
2242 if(s->mb_y*16 + 16 > s->height) h= s->height- s->mb_y*16;
2246 return s->dsp.nsse[0](s, s->new_picture.f.data[0] + s->mb_x*16 + s->mb_y*s->linesize*16, s->dest[0], s->linesize, 16)
2247 +s->dsp.nsse[1](s, s->new_picture.f.data[1] + s->mb_x*8 + s->mb_y*s->uvlinesize*8,s->dest[1], s->uvlinesize, 8)
2248 +s->dsp.nsse[1](s, s->new_picture.f.data[2] + s->mb_x*8 + s->mb_y*s->uvlinesize*8,s->dest[2], s->uvlinesize, 8);
2250 return s->dsp.sse[0](NULL, s->new_picture.f.data[0] + s->mb_x*16 + s->mb_y*s->linesize*16, s->dest[0], s->linesize, 16)
2251 +s->dsp.sse[1](NULL, s->new_picture.f.data[1] + s->mb_x*8 + s->mb_y*s->uvlinesize*8,s->dest[1], s->uvlinesize, 8)
2252 +s->dsp.sse[1](NULL, s->new_picture.f.data[2] + s->mb_x*8 + s->mb_y*s->uvlinesize*8,s->dest[2], s->uvlinesize, 8);
2255 return sse(s, s->new_picture.f.data[0] + s->mb_x*16 + s->mb_y*s->linesize*16, s->dest[0], w, h, s->linesize)
2256 +sse(s, s->new_picture.f.data[1] + s->mb_x*8 + s->mb_y*s->uvlinesize*8,s->dest[1], w>>1, h>>1, s->uvlinesize)
2257 +sse(s, s->new_picture.f.data[2] + s->mb_x*8 + s->mb_y*s->uvlinesize*8,s->dest[2], w>>1, h>>1, s->uvlinesize);
2267 for(s->mb_y= s->end_mb_y-1; s->mb_y >= s->start_mb_y; s->mb_y--) {
2269 ff_pre_estimate_p_frame_motion(s, s->mb_x, s->mb_y);
2286 for(s->mb_y= s->start_mb_y; s->mb_y < s->end_mb_y; s->mb_y++) {
2297 ff_estimate_b_frame_motion(s, s->mb_x, s->mb_y);
2299 ff_estimate_p_frame_motion(s, s->mb_x, s->mb_y);
2308 int mb_x, mb_y;
2312 for(mb_y=s->start_mb_y; mb_y < s->end_mb_y; mb_y++) {
2315 int yy = mb_y * 16;
2322 s->current_picture.mb_var [s->mb_stride * mb_y + mb_x] = varc;
2323 s->current_picture.mb_mean[s->mb_stride * mb_y + mb_x] = (sum+128)>>8;
2350 int mb_x, mb_y, pdif = 0;
2407 for(mb_y= s->start_mb_y; mb_y < s->end_mb_y; mb_y++) {
2408 // printf("row %d at %X\n", s->mb_y, (int)s);
2410 s->mb_y= mb_y;
2416 int xy= mb_y*s->mb_stride + mb_x; // removed const, H261 needs to adjust this
2435 s->mb_y = mb_y; // moved into loop, can get changed by H.261
2440 xy= s->mb_y*s->mb_stride + s->mb_x;
2450 is_gob_start= s->avctx->rtp_payload_size && current_packet_size >= s->avctx->rtp_payload_size && mb_y + mb_x>0;
2452 if(s->start_mb_y == mb_y && mb_y > 0 && mb_x==0) is_gob_start=1;
2458 if(s->mb_x || s->mb_y%s->gob_index) is_gob_start=0;
2461 if(s->mb_x==0 && s->mb_y!=0) is_gob_start=1;
2468 if(s->start_mb_y != mb_y || mb_x!=0){
2480 int r= put_bits_count(&s->pb)/8 + s->picture_number + 16 + s->mb_x + s->mb_y;
2490 int number_mb = (mb_y - s->resync_mb_y)*s->mb_width + mb_x - s->resync_mb_x;
2511 ff_h263_encode_gob_header(s, mb_y);
2524 s->resync_mb_y=mb_y;
2529 && s->resync_mb_y+1 == s->mb_y){
2667 s->mbintra_table[mb_x + mb_y*s->mb_stride]=1;
2938 if(s->mb_y*16 + 16 > s->height) h= s->height- s->mb_y*16;
2941 s, s->new_picture.f.data[0] + s->mb_x*16 + s->mb_y*s->linesize*16,
2944 s, s->new_picture.f.data[1] + s->mb_x*8 + s->mb_y*s->uvlinesize*chr_h,
2947 s, s->new_picture.f.data[2] + s->mb_x*8 + s->mb_y*s->uvlinesize*chr_h,
2954 //printf("MB %d %d bits\n", s->mb_x+s->mb_y*s->mb_stride, put_bits_count(&s->pb));
2966 int number_mb = (mb_y - s->resync_mb_y)*s->mb_width - s->resync_mb_x;
3969 printf("after_last:%d to_zero:%d from_zero:%d raise:%d lower:%d sign:%d xyp:%d/%d/%d\n", after_last, to_zero, from_zero, raise, lower, messed_sign, s->mb_x, s->mb_y, s->picture_number);