Lines Matching refs:mb_height
405 src_y = av_clip( src_y, -16, s->mb_height * 16);
407 uvsrc_y = av_clip(uvsrc_y, -8, s->mb_height * 8);
644 src_y = av_clip(src_y, -16, s->mb_height * 16);
835 uvsrc_y = av_clip(uvsrc_y, -8, s->mb_height * 8);
1049 if ((edges&8) && s->mb_y == (s->mb_height - 1)) \
1519 Y = (s->mb_height << 6) - 4;
1852 src_y = av_clip( src_y, -16, s->mb_height * 16);
1854 uvsrc_y = av_clip(uvsrc_y, -8, s->mb_height * 8);
2058 s->mv[0][0][1] = av_clip(s->mv[0][0][1], -60 - (s->mb_y << 6), (s->mb_height << 6) - 4 - (s->mb_y << 6));
2060 s->mv[1][0][1] = av_clip(s->mv[1][0][1], -60 - (s->mb_y << 6), (s->mb_height << 6) - 4 - (s->mb_y << 6));
2098 Y = (s->mb_height << 5) - 4;
2107 Y = (s->mb_height << 6) - 4;
2177 Y = (s->mb_height << 5) - 4;
2186 Y = (s->mb_height << 6) - 4;
4360 for (s->mb_y = 0; s->mb_y < s->mb_height; s->mb_y++) {
4450 ff_draw_horiz_band(s, (s->mb_height - 1) * 16, 16);
4451 ff_er_add_slice(s, 0, 0, s->mb_width - 1, s->mb_height - 1, ER_MB_END);
5060 v->mv_type_mb_plane = av_malloc (s->mb_stride * s->mb_height);
5061 v->direct_mb_plane = av_malloc (s->mb_stride * s->mb_height);
5062 v->forward_mb_plane = av_malloc (s->mb_stride * s->mb_height);
5063 v->fieldtx_plane = av_mallocz(s->mb_stride * s->mb_height);
5064 v->acpred_plane = av_malloc (s->mb_stride * s->mb_height);
5065 v->over_flags_plane = av_malloc (s->mb_stride * s->mb_height);
5079 v->mb_type_base = av_malloc(s->b8_stride * (s->mb_height * 2 + 1) + s->mb_stride * (s->mb_height + 1) * 2);
5081 v->mb_type[1] = v->mb_type_base + s->b8_stride * (s->mb_height * 2 + 1) + s->mb_stride + 1;
5082 v->mb_type[2] = v->mb_type[1] + s->mb_stride * (s->mb_height + 1);
5085 v->blk_mv_type_base = av_mallocz( s->b8_stride * (s->mb_height * 2 + 1) + s->mb_stride * (s->mb_height + 1) * 2);
5087 v->mv_f_base = av_mallocz(2 * (s->b8_stride * (s->mb_height * 2 + 1) + s->mb_stride * (s->mb_height + 1) * 2));
5089 v->mv_f[1] = v->mv_f[0] + (s->b8_stride * (s->mb_height * 2 + 1) + s->mb_stride * (s->mb_height + 1) * 2);
5090 v->mv_f_last_base = av_mallocz(2 * (s->b8_stride * (s->mb_height * 2 + 1) + s->mb_stride * (s->mb_height + 1) * 2));
5092 v->mv_f_last[1] = v->mv_f_last[0] + (s->b8_stride * (s->mb_height * 2 + 1) + s->mb_stride * (s->mb_height + 1) * 2);
5093 v->mv_f_next_base = av_mallocz(2 * (s->b8_stride * (s->mb_height * 2 + 1) + s->mb_stride * (s->mb_height + 1) * 2));
5095 v->mv_f_next[1] = v->mv_f_next[0] + (s->b8_stride * (s->mb_height * 2 + 1) + s->mb_stride * (s->mb_height + 1) * 2);
5099 // if (alloc_bitplane(&v->over_flags_plane, s->mb_width, s->mb_height) < 0)
5101 // if (alloc_bitplane(&v->ac_pred_plane, s->mb_width, s->mb_height) < 0)
5229 s->mb_height = (avctx->coded_height + 15) >> 4;
5314 int mb_height, n_slices1;
5376 slices[n_slices].mby_start = s->mb_height >> 1;
5423 slices[n_slices].mby_start = s->mb_height >> 1;
5568 mb_height = s->mb_height >> v->field_mode;
5570 if (i > 0 && slices[i - 1].mby_start >= mb_height) {
5574 slices[i - 1].mby_start, mb_height);
5578 v->blocks_off = s->mb_width * s->mb_height << 1;
5579 v->mb_off = s->mb_stride * s->mb_height >> 1;
5594 s->start_mb_y = (i == 0) ? 0 : FFMAX(0, slices[i-1].mby_start % mb_height);
5596 s->end_mb_y = (i == n_slices ) ? mb_height : FFMIN(mb_height, slices[i].mby_start % mb_height);
5598 s->end_mb_y = (i <= n_slices1 + 1) ? mb_height : FFMIN(mb_height, slices[i].mby_start % mb_height);
5607 2 * (s->b8_stride * (s->mb_height * 2 + 1) + s->mb_stride * (s->mb_height + 1) * 2));