Lines Matching refs:mb_y
2014 const int mb_y = s->mb_y;
2027 const int mb_xy = mb_x + mb_y * s->mb_stride;
2058 (mb_y * 16 * wrap_y) + mb_x * 16;
2060 (mb_y * mb_block_height * wrap_c) + mb_x * mb_block_width;
2062 (mb_y * mb_block_height * wrap_c) + mb_x * mb_block_width;
2064 if((mb_x * 16 + 16 > s->width || mb_y * 16 + 16 > s->height) && s->codec_id != AV_CODEC_ID_AMV){
2070 16, 16, mb_x * 16, mb_y * 16,
2076 mb_x * mb_block_width, mb_y * mb_block_height,
2082 mb_x * mb_block_width, mb_y * mb_block_height,
2223 if (s->current_picture.mc_mb_var[s->mb_stride * mb_y + mb_x] <
2545 if(s->mb_y*16 + 16 > s->height) h= s->height- s->mb_y*16;
2549 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)
2550 +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)
2551 +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);
2553 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)
2554 +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)
2555 +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);
2558 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)
2559 +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)
2560 +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);
2570 for(s->mb_y= s->end_mb_y-1; s->mb_y >= s->start_mb_y; s->mb_y--) {
2572 ff_pre_estimate_p_frame_motion(s, s->mb_x, s->mb_y);
2589 for(s->mb_y= s->start_mb_y; s->mb_y < s->end_mb_y; s->mb_y++) {
2600 ff_estimate_b_frame_motion(s, s->mb_x, s->mb_y);
2602 ff_estimate_p_frame_motion(s, s->mb_x, s->mb_y);
2611 int mb_x, mb_y;
2615 for(mb_y=s->start_mb_y; mb_y < s->end_mb_y; mb_y++) {
2618 int yy = mb_y * 16;
2626 s->current_picture.mb_var [s->mb_stride * mb_y + mb_x] = varc;
2627 s->current_picture.mb_mean[s->mb_stride * mb_y + mb_x] = (sum+128)>>8;
2656 int mba = s->mb_x + s->mb_width * (s->mb_y % s->gob_index);
2657 int gobn = s->mb_y / s->gob_index;
2697 int mb_x, mb_y, pdif = 0;
2758 for(mb_y= s->start_mb_y; mb_y < s->end_mb_y; mb_y++) {
2760 s->mb_y= mb_y;
2766 int xy= mb_y*s->mb_stride + mb_x; // removed const, H261 needs to adjust this
2785 s->mb_y = mb_y; // moved into loop, can get changed by H.261
2790 xy= s->mb_y*s->mb_stride + s->mb_x;
2800 is_gob_start= s->avctx->rtp_payload_size && current_packet_size >= s->avctx->rtp_payload_size && mb_y + mb_x>0;
2802 if(s->start_mb_y == mb_y && mb_y > 0 && mb_x==0) is_gob_start=1;
2808 if(s->mb_x || s->mb_y%s->gob_index) is_gob_start=0;
2811 if(s->mb_x==0 && s->mb_y!=0) is_gob_start=1;
2816 if(s->mb_x==0 && s->mb_y!=0) is_gob_start=1;
2821 if(s->start_mb_y != mb_y || mb_x!=0){
2833 int r= put_bits_count(&s->pb)/8 + s->picture_number + 16 + s->mb_x + s->mb_y;
2843 int number_mb = (mb_y - s->resync_mb_y)*s->mb_width + mb_x - s->resync_mb_x;
2865 ff_h263_encode_gob_header(s, mb_y);
2878 s->resync_mb_y=mb_y;
2883 && s->resync_mb_y+1 == s->mb_y){
3023 s->mbintra_table[mb_x + mb_y*s->mb_stride]=1;
3294 if(s->mb_y*16 + 16 > s->height) h= s->height- s->mb_y*16;
3297 s, s->new_picture.f->data[0] + s->mb_x*16 + s->mb_y*s->linesize*16,
3300 s, s->new_picture.f->data[1] + s->mb_x*8 + s->mb_y*s->uvlinesize*chr_h,
3303 s, s->new_picture.f->data[2] + s->mb_x*8 + s->mb_y*s->uvlinesize*chr_h,
3311 s->mb_x + s->mb_y * s->mb_stride, put_bits_count(&s->pb));
3323 int number_mb = (mb_y - s->resync_mb_y)*s->mb_width - s->resync_mb_x;
3638 s->mb_x = s->mb_y = 0;
4368 av_log(s->avctx, AV_LOG_DEBUG, "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);