Lines Matching refs:mb_y
133 ctx->mb_x, ctx->mb_y); \
735 av_dlog(s->avctx, "decode_mb: x=%d y=%d\n", s->mb_x, s->mb_y);
742 s->current_picture.mb_type[s->mb_x + s->mb_y * s->mb_stride] =
748 mb_type = s->current_picture.mb_type[s->mb_x + s->mb_y * s->mb_stride - 1];
751 mb_type = s->current_picture.mb_type[s->mb_width + (s->mb_y - 1) * s->mb_stride - 1];
756 s->current_picture.mb_type[s->mb_x + s->mb_y * s->mb_stride] =
773 s->mb_x, s->mb_y);
785 "invalid mb type in P Frame at %d %d\n", s->mb_x, s->mb_y);
794 "invalid mb type in B Frame at %d %d\n", s->mb_x, s->mb_y);
1036 "00 motion_type at %d %d\n", s->mb_x, s->mb_y);
1053 "invalid cbp %d at %d %d\n", cbp, s->mb_x, s->mb_y);
1110 s->current_picture.mb_type[s->mb_x + s->mb_y * s->mb_stride] = mb_type;
1700 * MpegEncContext.mb_y must be set to the MB row from the startcode.
1704 static int mpeg_decode_slice(MpegEncContext *s, int mb_y,
1714 av_assert0(mb_y < s->mb_height);
1736 if (mb_y == 0 && s->codec_tag == AV_RL32("SLIF")) {
1768 s->mb_y = mb_y;
1776 s->resync_mb_y = s->mb_y = mb_y;
1780 if (s->mb_y == 0 && s->mb_x == 0 && (s->first_field || s->picture_structure == PICT_FRAME)) {
1812 int xy = s->mb_x * 2 + s->mb_y * 2 * wrap;
1813 int b8_xy = 4 * (s->mb_x + s->mb_y * s->mb_stride);
1853 ff_mpeg_draw_horiz_band(s, mb_size * (s->mb_y >> field_pic), mb_size);
1857 s->mb_y += 1 << field_pic;
1859 if (s->mb_y >= s->mb_height) {
1887 if (s->mb_y >= ((s->height + 15) >> 4) &&
1930 "skipped MB in I frame at %d %d\n", s->mb_x, s->mb_y);
1963 av_dlog(s, "y %d %d %d %d\n", s->resync_mb_x, s->resync_mb_y, s->mb_x, s->mb_y);
1971 int mb_y = s->start_mb_y;
1980 ret = mpeg_decode_slice(s, mb_y, &buf, s->gb.buffer_end - buf);
1983 ret, s->resync_mb_x, s->resync_mb_y, s->mb_x, s->mb_y,
1990 s->mb_x, s->mb_y,
1994 s->mb_x - 1, s->mb_y,
1998 if (s->mb_y == s->end_mb_y)
2003 mb_y = start_code - SLICE_MIN_START_CODE;
2005 mb_y += (*buf&0xE0)<<2;
2006 mb_y <<= field_pic;
2008 mb_y++;
2009 if (mb_y < 0 || mb_y >= s->end_mb_y)
2033 if (/* s->mb_y << field_pic == s->mb_height && */ !s->first_field && !s1->first_slice) {
2554 int mb_y = start_code - SLICE_MIN_START_CODE;
2557 mb_y += (*buf_ptr&0xE0)<<2;
2559 mb_y <<= field_pic;
2561 mb_y++;
2568 if (mb_y >= s2->mb_height) {
2570 "slice below image (%d >= %d)\n", mb_y, s2->mb_height);
2607 if (mb_y < avctx->skip_top ||
2608 mb_y >= s2->mb_height - avctx->skip_bottom)
2643 if (threshold <= mb_y) {
2646 thread_context->start_mb_y = mb_y;
2649 s2->thread_context[s->slice_count - 1]->end_mb_y = mb_y;
2659 ret = mpeg_decode_slice(s2, mb_y, &buf_ptr, input_size);
2667 s2->resync_mb_y, s2->mb_x, s2->mb_y,
2671 s2->resync_mb_y, s2->mb_x - 1, s2->mb_y,