• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libav-0.8.8/libavcodec/

Lines Matching refs:mb_type

436 static int svq3_decode_mb(SVQ3Context *svq3, unsigned int mb_type)
451 if (mb_type == 0) { /* SKIP */
452 if (s->pict_type == AV_PICTURE_TYPE_P || s->next_picture.f.mb_type[mb_xy] == -1) {
459 mb_type = MB_TYPE_SKIP;
461 mb_type = FFMIN(s->next_picture.f.mb_type[mb_xy], 6);
462 if (svq3_mc_dir(h, mb_type, PREDICT_MODE, 0, 0) < 0)
464 if (svq3_mc_dir(h, mb_type, PREDICT_MODE, 1, 1) < 0)
467 mb_type = MB_TYPE_16x16;
469 } else if (mb_type < 8) { /* INTER */
522 if (svq3_mc_dir(h, (mb_type - 1), mode, 0, 0) < 0)
525 if (mb_type != 2) {
533 if (mb_type != 1) {
534 if (svq3_mc_dir(h, 0, mode, 1, (mb_type == 3)) < 0)
543 mb_type = MB_TYPE_16x16;
544 } else if (mb_type == 8 || mb_type == 33) { /* INTRA4x4 */
547 if (mb_type == 8) {
587 } else { /* mb_type == 33, DC_128_PRED block type */
595 if (mb_type == 8) {
609 mb_type = MB_TYPE_INTRA4x4;
611 dir = i_mb_type_info[mb_type - 8].pred_mode;
619 cbp = i_mb_type_info[mb_type - 8].cbp;
620 mb_type = MB_TYPE_INTRA16x16;
623 if (!IS_INTER(mb_type) && s->pict_type != AV_PICTURE_TYPE_I) {
633 if (!IS_INTRA4x4(mb_type)) {
636 if (!IS_SKIP(mb_type) || s->pict_type == AV_PICTURE_TYPE_B) {
642 if (!IS_INTRA16x16(mb_type) && (!IS_SKIP(mb_type) || s->pict_type == AV_PICTURE_TYPE_B)) {
648 cbp = IS_INTRA(mb_type) ? golomb_to_intra4x4_cbp[vlc] : golomb_to_inter_cbp[vlc];
650 if (IS_INTRA16x16(mb_type) || (s->pict_type != AV_PICTURE_TYPE_I && s->adaptive_quant && cbp)) {
658 if (IS_INTRA16x16(mb_type)) {
668 const int index = IS_INTRA16x16(mb_type) ? 1 : 0;
669 const int type = ((s->qscale < 24 && IS_INTRA4x4(mb_type)) ? 2 : 1);
710 s->current_picture.f.mb_type[mb_xy] = mb_type;
712 if (IS_INTRA(mb_type)) {
953 int m, mb_type;
1050 mb_type = svq3_get_ue_golomb(&s->gb);
1053 mb_type += 8;
1054 } else if (s->pict_type == AV_PICTURE_TYPE_B && mb_type >= 4) {
1055 mb_type += 4;
1057 if ((unsigned)mb_type > 33 || svq3_decode_mb(svq3, mb_type)) {
1062 if (mb_type != 0) {
1067 s->current_picture.f.mb_type[s->mb_x + s->mb_y * s->mb_stride] =
1068 (s->pict_type == AV_PICTURE_TYPE_P && mb_type < 8) ? (mb_type - 1) : -1;