Lines Matching refs:mblock
60 currMB = video->currMB = &(video->mblock[CurrMbAddr]);
305 video->intraAvailA = video->mblock[video->mbAddrA].mb_intra;
309 video->intraAvailB = video->mblock[video->mbAddrB].mb_intra ;
313 video->intraAvailC = video->mblock[video->mbAddrC].mb_intra;
317 video->intraAvailD = video->mblock[video->mbAddrD].mb_intra;
448 void InterpretMBModeI(AVCMacroblock *mblock, uint mb_type)
450 mblock->NumMbPart = 1;
452 mblock->mb_intra = TRUE;
456 mblock->mbMode = AVC_I4;
460 mblock->mbMode = AVC_I16;
461 mblock->i16Mode = (AVCIntra16x16PredMode)((mb_type - 1) & 0x3);
464 mblock->CBP = (((mb_type - 13) >> 2) << 4) + 0x0F;
468 mblock->CBP = ((mb_type - 1) >> 2) << 4;
473 mblock->mbMode = AVC_I_PCM;
479 void InterpretMBModeP(AVCMacroblock *mblock, uint mb_type)
486 mblock->mb_intra = FALSE;
489 mblock->mbMode = map2mbMode[mb_type];
490 mblock->MbPartWidth = map2PartWidth[mb_type];
491 mblock->MbPartHeight = map2PartHeight[mb_type];
492 mblock->NumMbPart = map2NumPart[mb_type];
493 mblock->NumSubMbPart[0] = mblock->NumSubMbPart[1] =
494 mblock->NumSubMbPart[2] = mblock->NumSubMbPart[3] = 1;
495 mblock->SubMbPartWidth[0] = mblock->SubMbPartWidth[1] =
496 mblock->SubMbPartWidth[2] = mblock->SubMbPartWidth[3] = mblock->MbPartWidth;
497 mblock->SubMbPartHeight[0] = mblock->SubMbPartHeight[1] =
498 mblock->SubMbPartHeight[2] = mblock->SubMbPartHeight[3] = mblock->MbPartHeight;
502 InterpretMBModeI(mblock, mb_type - 5);
504 memset(mblock->mvL0, 0, sizeof(int32)*16);
505 mblock->ref_idx_L0[0] = mblock->ref_idx_L0[1] = mblock->ref_idx_L0[2] = mblock
510 void InterpretMBModeB(AVCMacroblock *mblock, uint mb_type)
528 mblock->mb_intra = FALSE;
532 mblock->mbMode = map2mbMode[mb_type];
533 mblock->NumMbPart = map2NumPart[mb_type];
534 mblock->MBPartPredMode[0][0] = (AVCPredMode)map2PredMode1[mb_type];
535 if (mblock->NumMbPart > 1)
537 mblock->MBPartPredMode[1][0] = (AVCPredMode)map2PredMode2[mb_type];
539 mblock->MbPartWidth = map2PartWidth[mb_type];
540 mblock->MbPartHeight = map2PartHeight[mb_type];
544 InterpretMBModeI(mblock, mb_type - 23);
550 void InterpretMBModeSI(AVCMacroblock *mblock, uint mb_type)
552 mblock->mb_intra = TRUE;
556 mblock->mbMode = AVC_SI4;
561 InterpretMBModeI(mblock, mb_type - 1);
566 /* input is mblock->sub_mb_type[] */
567 void InterpretSubMBModeP(AVCMacroblock *mblock, uint *sub_mb_type)
579 // mblock->subMbMode[i] = map2subMbMode[sub_type];
580 mblock->NumSubMbPart[i] = map2numSubPart[sub_type];
581 mblock->SubMbPartWidth[i] = map2subPartWidth[sub_type];
582 mblock->SubMbPartHeight[i] = map2subPartHeight[sub_type];
588 void InterpretSubMBModeB(AVCMacroblock *mblock, uint *sub_mb_type)
603 mblock->subMbMode[i] = map2subMbMode[sub_type];
604 mblock->NumSubMbPart[i] = map2numSubPart[sub_type];
605 mblock->SubMbPartWidth[i] = map2subPartWidth[sub_type];
606 mblock->SubMbPartHeight[i] = map2subPartHeight[sub_type];
609 mblock->MBPartPredMode[i][j] = (AVCPredMode)map2predMode[sub_type];
649 if (video->mblock[video->mbAddrA].mbMode == AVC_I4)
651 intra4x4PredModeA = video->mblock[video->mbAddrA].i4Mode[(block_y << 2) + 3];
672 if (video->mblock[video->mbAddrB].mbMode == AVC_I4)
674 intra4x4PredModeB = video->mblock[video->mbAddrB].i4Mode[(3 << 2) + block_x];
729 currMB = video->currMB = &(video->mblock[CurrMbAddr]);