Lines Matching refs:mb_type
739 int i, j, k, cbp, val, mb_type, motion_type;
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;
751 int mb_type;
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
757 if (IS_INTRA(mb_type))
759 s->current_picture.f.mb_type[s->mb_x + s->mb_y*s->mb_stride] =
760 mb_type | MB_TYPE_SKIP;
761 // assert(s->current_picture.f.mb_type[s->mb_x + s->mb_y * s->mb_stride - 1] & (MB_TYPE_16x16 | MB_TYPE_16x8));
778 mb_type = MB_TYPE_QUANT | MB_TYPE_INTRA;
780 mb_type = MB_TYPE_INTRA;
784 mb_type = get_vlc2(&s->gb, mb_ptype_vlc.table, MB_PTYPE_VLC_BITS, 1);
785 if (mb_type < 0) {
789 mb_type = ptype2mb_type[mb_type];
792 mb_type = get_vlc2(&s->gb, mb_btype_vlc.table, MB_BTYPE_VLC_BITS, 1);
793 if (mb_type < 0) {
797 mb_type = btype2mb_type[mb_type];
800 av_dlog(s->avctx, "mb_type=%x\n", mb_type);
802 if (IS_INTRA(mb_type)) {
815 if (IS_QUANT(mb_type))
858 if (mb_type & MB_TYPE_ZERO_MV) {
859 assert(mb_type & MB_TYPE_CBP);
868 mb_type |= MB_TYPE_INTERLACED;
872 if (IS_QUANT(mb_type))
882 assert(mb_type & MB_TYPE_L0L1);
889 if (s->picture_structure == PICT_FRAME && HAS_CBP(mb_type))
893 if (IS_QUANT(mb_type))
897 s->mv_dir = (mb_type >> 13) & 3;
902 mb_type |= MB_TYPE_16x16;
905 if (USES_LIST(mb_type, i)) {
919 mb_type |= MB_TYPE_16x8 | MB_TYPE_INTERLACED;
922 if (USES_LIST(mb_type, i)) {
940 mb_type |= MB_TYPE_16x8 | MB_TYPE_INTERLACED;
942 if (USES_LIST(mb_type, i)) {
959 mb_type |= MB_TYPE_16x16 | MB_TYPE_INTERLACED;
961 if (USES_LIST(mb_type, i)) {
977 if (USES_LIST(mb_type, i)) {
1000 mb_type |= MB_TYPE_16x16 | MB_TYPE_INTERLACED;
1012 mb_type |= MB_TYPE_16x16;
1031 if (HAS_CBP(mb_type)) {
1104 s->current_picture.f.mb_type[s->mb_x + s->mb_y * s->mb_stride] = mb_type;