Lines Matching refs:mb_y
159 av_assert2((fy>>1) + 16*s->mb_y >= -16);
161 av_assert2((fy>>1) + 16*s->mb_y <= s->height);
163 av_assert2((by>>1) + 16*s->mb_y >= -16);
165 av_assert2((by>>1) + 16*s->mb_y <= s->height);
495 const int xy= s->mb_x + s->mb_y*s->mb_stride;
592 c->ymax = - 16*s->mb_y + s->height - 8*(block>>1);
679 dmin_sum += s->dsp.mb_cmp[0](s, s->new_picture.f->data[0] + s->mb_x*16 + s->mb_y*16*stride, c->scratchpad, stride, 16);
691 offset= (s->mb_x*8 + (mx>>1)) + (s->mb_y*8 + (my>>1))*s->uvlinesize;
701 dmin_sum += s->dsp.mb_cmp[1](s, s->new_picture.f->data[1] + s->mb_x*8 + s->mb_y*8*s->uvlinesize, c->scratchpad , s->uvlinesize, 8);
702 dmin_sum += s->dsp.mb_cmp[1](s, s->new_picture.f->data[2] + s->mb_x*8 + s->mb_y*8*s->uvlinesize, c->scratchpad+8, s->uvlinesize, 8);
744 const int xy= s->mb_x + s->mb_y*mot_stride;
878 int mb_x, int mb_y)
890 init_ref(c, s->new_picture.f->data, s->last_picture.f->data, NULL, 16*mb_x, 16*mb_y, 0);
901 get_limits(s, 16*mb_x, 16*mb_y);
910 pic->mb_mean[s->mb_stride * mb_y + mb_x] = (sum+128)>>8;
911 pic->mb_var [s->mb_stride * mb_y + mb_x] = (varc+128)>>8;
967 pic->mc_mb_var[s->mb_stride * mb_y + mb_x] = (vard+128)>>8;
1068 s->current_picture.mb_type[mb_y*s->mb_stride + mb_x] = CANDIDATE_MB_TYPE_INTRA; //FIXME cleanup
1070 s->current_picture.mb_type[mb_y*s->mb_stride + mb_x] = 0;
1079 s->mb_type[mb_y*s->mb_stride + mb_x]= mb_type;
1083 int mb_x, int mb_y)
1089 const int xy= mb_x + mb_y*s->mb_stride;
1090 init_ref(c, s->new_picture.f->data, s->last_picture.f->data, NULL, 16*mb_x, 16*mb_y, 0);
1097 get_limits(s, 16*mb_x, 16*mb_y);
1135 static int estimate_motion_b(MpegEncContext *s, int mb_x, int mb_y,
1143 const int mot_xy = mb_y*mot_stride + mb_x;
1152 get_limits(s, 16*mb_x, 16*mb_y);
1200 // s->mb_type[mb_y*s->mb_width + mb_x]= mb_type;
1272 static inline int bidir_refine(MpegEncContext * s, int mb_x, int mb_y)
1276 const int xy = mb_y *mot_stride + mb_x;
1419 static inline int direct_search(MpegEncContext * s, int mb_x, int mb_y)
1424 const int mot_xy = mb_y*mot_stride + mb_x;
1462 max+= 16*mb_y + 1; // +-1 is for the simpler rounding
1463 min+= 16*mb_y - 1;
1511 get_limits(s, 16*mb_x, 16*mb_y); //restore c->?min/max, maybe not needed
1522 int mb_x, int mb_y)
1528 const int xy = mb_y*s->mb_stride + mb_x;
1530 s->next_picture.f->data, 16 * mb_x, 16 * mb_y, 2);
1532 get_limits(s, 16*mb_x, 16*mb_y);
1537 int score= direct_search(s, mb_x, mb_y); //FIXME just check 0,0
1541 s->current_picture.mc_mb_var[mb_y*s->mb_stride + mb_x] = score; //FIXME use SSE
1542 s->mb_type[mb_y*s->mb_stride + mb_x]= CANDIDATE_MB_TYPE_DIRECT0;
1548 dmin= direct_search(s, mb_x, mb_y);
1553 fmin = estimate_motion_b(s, mb_x, mb_y, s->b_forw_mv_table, 0, s->f_code) +
1557 bmin = estimate_motion_b(s, mb_x, mb_y, s->b_back_mv_table, 2, s->b_code) +
1562 fbmin= bidir_refine(s, mb_x, mb_y) + penalty_factor;
1606 s->current_picture.mc_mb_var[mb_y*s->mb_stride + mb_x] = score; //FIXME use SSE
1625 s->mb_type[mb_y*s->mb_stride + mb_x]= type;