Lines Matching refs:mb_y
142 av_log(s->avctx, AV_LOG_ERROR, "ac-tex damaged at %d %d\n", s->mb_x, s->mb_y);
217 av_log(s->avctx, AV_LOG_ERROR, "ac-tex damaged at %d %d\n", s->mb_x, s->mb_y);
365 av_log(s->avctx, AV_LOG_ERROR, "ac-tex damaged at %d %d\n", s->mb_x, s->mb_y);
510 av_log(s->avctx, AV_LOG_ERROR, "ac-tex damaged at %d %d\n", s->mb_x, s->mb_y);
742 av_dlog(s->avctx, "decode_mb: x=%d y=%d\n", s->mb_x, s->mb_y);
749 s->current_picture.f.mb_type[s->mb_x + s->mb_y * s->mb_stride] = MB_TYPE_SKIP | MB_TYPE_L0 | MB_TYPE_16x16;
754 mb_type = s->current_picture.f.mb_type[s->mb_x + s->mb_y * s->mb_stride - 1];
756 mb_type = s->current_picture.f.mb_type[s->mb_width + (s->mb_y - 1) * s->mb_stride - 1]; // FIXME not sure if this is allowed in MPEG at all
759 s->current_picture.f.mb_type[s->mb_x + s->mb_y*s->mb_stride] =
761 // assert(s->current_picture.f.mb_type[s->mb_x + s->mb_y * s->mb_stride - 1] & (MB_TYPE_16x16 | MB_TYPE_16x8));
775 av_log(s->avctx, AV_LOG_ERROR, "invalid mb type in I Frame at %d %d\n", s->mb_x, s->mb_y);
786 av_log(s->avctx, AV_LOG_ERROR, "invalid mb type in P Frame at %d %d\n", s->mb_x, s->mb_y);
794 av_log(s->avctx, AV_LOG_ERROR, "invalid mb type in B Frame at %d %d\n", s->mb_x, s->mb_y);
1025 av_log(s->avctx, AV_LOG_ERROR, "00 motion_type at %d %d\n", s->mb_x, s->mb_y);
1041 av_log(s->avctx, AV_LOG_ERROR, "invalid cbp at %d %d\n", s->mb_x, s->mb_y);
1104 s->current_picture.f.mb_type[s->mb_x + s->mb_y * s->mb_stride] = mb_type;
1623 * MpegEncContext.mb_y must be set to the MB row from the startcode.
1627 static int mpeg_decode_slice(MpegEncContext *s, int mb_y,
1637 assert(mb_y < s->mb_height);
1658 if (mb_y == 0 && s->codec_tag == AV_RL32("SLIF")) {
1690 s->mb_y = mb_y;
1698 s->resync_mb_y = s->mb_y = mb_y;
1702 if (s->mb_y == 0 && s->mb_x == 0 && (s->first_field || s->picture_structure == PICT_FRAME)) {
1723 int xy = s->mb_x * 2 + s->mb_y * 2 * wrap;
1724 int b8_xy = 4 * (s->mb_x + s->mb_y * s->mb_stride);
1761 ff_draw_horiz_band(s, mb_size*(s->mb_y >> field_pic), mb_size);
1765 s->mb_y += 1 << field_pic;
1767 if (s->mb_y >= s->mb_height) {
1813 av_log(s->avctx, AV_LOG_ERROR, "skipped MB in I frame at %d %d\n", s->mb_x, s->mb_y);
1844 //printf("y %d %d %d %d\n", s->resync_mb_x, s->resync_mb_y, s->mb_x, s->mb_y);
1852 int mb_y = s->start_mb_y;
1861 ret = mpeg_decode_slice(s, mb_y, &buf, s->gb.buffer_end - buf);
1864 //ret, s->resync_mb_x, s->resync_mb_y, s->mb_x, s->mb_y, s->start_mb_y, s->end_mb_y, s->error_count);
1869 ff_er_add_slice(s, s->resync_mb_x, s->resync_mb_y, s->mb_x, s->mb_y, ER_AC_ERROR | ER_DC_ERROR | ER_MV_ERROR);
1871 ff_er_add_slice(s, s->resync_mb_x, s->resync_mb_y, s->mb_x-1, s->mb_y, ER_AC_END | ER_DC_END | ER_MV_END);
1874 if (s->mb_y == s->end_mb_y)
1879 mb_y= (start_code - SLICE_MIN_START_CODE) << field_pic;
1881 mb_y++;
1882 if (mb_y < 0 || mb_y >= s->end_mb_y)
1908 if (/*s->mb_y << field_pic == s->mb_height &&*/ !s->first_field) {
2372 int mb_y = (start_code - SLICE_MIN_START_CODE) << field_pic;
2376 mb_y++;
2378 if (mb_y >= s2->mb_height) {
2379 av_log(s2->avctx, AV_LOG_ERROR, "slice below image (%d >= %d)\n", mb_y, s2->mb_height);
2405 if (mb_y < avctx->skip_top || mb_y >= s2->mb_height - avctx->skip_bottom)
2435 if (threshold <= mb_y) {
2438 thread_context->start_mb_y = mb_y;
2441 s2->thread_context[s->slice_count-1]->end_mb_y = mb_y;
2449 ret = mpeg_decode_slice(s2, mb_y, &buf_ptr, input_size);
2456 ff_er_add_slice(s2, s2->resync_mb_x, s2->resync_mb_y, s2->mb_x, s2->mb_y, ER_AC_ERROR | ER_DC_ERROR | ER_MV_ERROR);
2458 ff_er_add_slice(s2, s2->resync_mb_x, s2->resync_mb_y, s2->mb_x-1, s2->mb_y, ER_AC_END | ER_DC_END | ER_MV_END);