/frameworks/av/media/libstagefright/codecs/avc/enc/src/ |
D | slice.cpp | 27 AVCMacroblock *currMB ; in AVCEncodeSlice() local 44 currMB = video->currMB = &(video->mblock[CurrMbAddr]); in AVCEncodeSlice() 45 currMB->slice_id = video->slice_id; // for deblocking in AVCEncodeSlice() 159 AVCMacroblock *currMB = video->currMB; in EncodeMB() local 206 if (currMB->mbMode == AVC_I_PCM) in EncodeMB() 224 if (!currMB->mb_intra) in EncodeMB() 229 currMB->CBP = 0; in EncodeMB() 243 currMB->nz_coeff[blkidx] = numcoeff; in EncodeMB() 247 currMB->CBP |= (1 << b8); in EncodeMB() 265 if ((currMB->CBP&(1 << b8)) && (cost8 <= _LUMA_COEFF_COST_)) in EncodeMB() [all …]
|
D | intra_est.cpp | 115 AVCMacroblock *currMB = video->currMB; in MBIntraSearch() local 125 currMB->CBP = 0; in MBIntraSearch() 177 if (currMB->mb_intra) in MBIntraSearch() 182 memset(currMB->mvL0, 0, sizeof(int32)*16); in MBIntraSearch() 183 currMB->ref_idx_L0[0] = currMB->ref_idx_L0[1] = in MBIntraSearch() 184 currMB->ref_idx_L0[2] = currMB->ref_idx_L0[3] = -1; in MBIntraSearch() 434 AVCMacroblock *currMB = video->currMB; in find_cost_16x16() local 445 currMB->mbMode = AVC_I16; in find_cost_16x16() 446 currMB->mb_intra = 1; in find_cost_16x16() 447 currMB->i16Mode = AVC_I16_Vertical; in find_cost_16x16() [all …]
|
D | motion_est.cpp | 248 AVCMacroblock *currMB, *mblock = video->mblock; in AVCMotionEstimation() local 351 video->currMB = currMB = mblock + mbnum; in AVCMotionEstimation() 356 if (currMB->mb_intra == 0) /* for INTER mode */ in AVCMotionEstimation() 372 currMB->mbMode = AVC_P16; in AVCMotionEstimation() 373 currMB->MBPartPredMode[0][0] = AVC_Pred_L0; in AVCMotionEstimation() 377 currMB->mvL0[k>>1] = mv_uint32; in AVCMotionEstimation() 838 AVCEnc_Status AVCMBMotionSearch(AVCEncObject *encvid, AVCMacroblock *currMB, int mbNum, in AVCMBMotionSearch() argument 849 currMB->mbMode = FIXED_INTERPRED_MODE; in AVCMBMotionSearch() 850 currMB->mb_intra = 0; in AVCMBMotionSearch() 852 if (currMB->mbMode == AVC_P16) in AVCMBMotionSearch() [all …]
|
D | avcenc_lib.h | 58 void MBInterIdct(AVCCommonObj *video, uint8 *curL, AVCMacroblock *currMB, int picPitch); 758 void RCCalculateMAD(AVCEncObject *encvid, AVCMacroblock *currMB, uint8 *orgL, int orgPitch); 767 void RCRestoreQP(AVCMacroblock *currMB, AVCCommonObj *video, AVCEncObject *encvid); 797 …s enc_residual_block(AVCEncObject *encvid, AVCResidualType type, int bindx, AVCMacroblock *currMB); 866 AVCEnc_Status EncodeMBHeader(AVCMacroblock *currMB, AVCEncObject *video); 875 uint InterpretMBType(AVCMacroblock *currMB, int slice_type); 884 AVCEnc_Status mb_pred(AVCCommonObj *video, AVCMacroblock *currMB, AVCEncBitstream *stream); 893 AVCEnc_Status sub_mb_pred(AVCCommonObj *video, AVCMacroblock *currMB, AVCEncBitstream *stream); 923 …AVCEnc_Status EncodeIntra4x4Mode(AVCCommonObj *video, AVCMacroblock *currMB, AVCEncBitstream *stre… 966 AVCEnc_Status EncodeCBP(AVCMacroblock *currMB, AVCEncBitstream *stream);
|
D | block.cpp | 192 if (video->currMB->mb_intra) // only do inverse transform with intra block in dct_luma() 260 void MBInterIdct(AVCCommonObj *video, uint8 *curL, AVCMacroblock *currMB, int picPitch) in MBInterIdct() argument 272 if (currMB->CBP&(1 << b8)) in MBInterIdct() 278 if (currMB->nz_coeff[blkidx]) in MBInterIdct() 365 AVCMacroblock *currMB = video->currMB; in dct_luma_16x16() local 367 uint8 *pred = encvid->pred_i16[currMB->i16Mode]; in dct_luma_16x16() 580 currMB->CBP = 0; in dct_luma_16x16() 627 currMB->nz_coeff[blkIdx2blkXY[b8][b4]] = ncoeff; /* in raster scan !!! */ in dct_luma_16x16() 630 currMB->CBP |= (1 << b8); in dct_luma_16x16() 725 AVCMacroblock *currMB = video->currMB; in dct_chroma() local [all …]
|
D | rate_control.cpp | 695 AVCMacroblock *currMB = video->currMB; in RCInitChromaQP() local 700 video->QPy_div_6 = (currMB->QPy * 43) >> 8; in RCInitChromaQP() 701 video->QPy_mod_6 = currMB->QPy - 6 * video->QPy_div_6; in RCInitChromaQP() 702 …currMB->QPc = video->QPc = mapQPi2QPc[AVC_CLIP3(0, 51, currMB->QPy + video->currPicParams->chroma_… in RCInitChromaQP() 727 encvid->lambda_mode = QP2QUANT[AVC_MAX(0, currMB->QPy-SHIFT_QP)]; in RCInitChromaQP() 737 AVCMacroblock *currMB = video->currMB; in RCInitMBQP() local 739 currMB->QPy = video->QPy; /* set to previous value or picture level */ in RCInitMBQP() 754 void RCRestoreQP(AVCMacroblock *currMB, AVCCommonObj *video, AVCEncObject *encvid) in RCRestoreQP() argument 756 currMB->QPy = video->QPy; /* use previous QP */ in RCRestoreQP() 763 void RCCalculateMAD(AVCEncObject *encvid, AVCMacroblock *currMB, uint8 *orgL, int orgPitch) in RCCalculateMAD() argument [all …]
|
D | vlc_encode.cpp | 106 AVCEnc_Status EncodeCBP(AVCMacroblock *currMB, AVCEncBitstream *stream) in EncodeCBP() argument 111 if (currMB->mbMode == AVC_I4) in EncodeCBP() 113 codeNum = MapCBP2code[currMB->CBP][0]; in EncodeCBP() 117 codeNum = MapCBP2code[currMB->CBP][1]; in EncodeCBP()
|
D | residual.cpp | 145 …us enc_residual_block(AVCEncObject *encvid, AVCResidualType type, int cindx, AVCMacroblock *currMB) in enc_residual_block() argument 167 TotalCoeff = currMB->nz_coeff[bindx]; in enc_residual_block() 181 TotalCoeff = currMB->nz_coeff[bindx]; in enc_residual_block() 207 TotalCoeff = currMB->nz_coeff[bindx]; in enc_residual_block()
|
D | motion_comp.cpp | 42 AVCMacroblock *currMB = video->currMB; in AVCMBMotionComp() local 73 for (mbPartIdx = 0; mbPartIdx < currMB->NumMbPart; mbPartIdx++) in AVCMBMotionComp() 75 MbHeight = currMB->SubMbPartHeight[mbPartIdx]; in AVCMBMotionComp() 76 MbWidth = currMB->SubMbPartWidth[mbPartIdx]; in AVCMBMotionComp() 79 ref_idx = currMB->ref_idx_L0[(mbPartIdx_Y << 1) + mbPartIdx_X]; in AVCMBMotionComp() 86 for (subMbPartIdx = 0; subMbPartIdx < currMB->NumSubMbPart[mbPartIdx]; subMbPartIdx++) in AVCMBMotionComp() 90 mv = (int16*)(currMB->mvL0 + block_x + (block_y << 2)); in AVCMBMotionComp() 111 offset_indx = currMB->SubMbPartWidth[mbPartIdx] >> 3; in AVCMBMotionComp() 113 offset_MbPart_indx = currMB->MbPartWidth >> 4; in AVCMBMotionComp()
|
/frameworks/av/media/libstagefright/codecs/avc/common/src/ |
D | mb_access.cpp | 35 video->mbAvailA = (video->mblock[video->mbAddrA].slice_id == video->currMB->slice_id); in InitNeighborAvailability() 38 video->mbAvailD = (video->mblock[video->mbAddrD].slice_id == video->currMB->slice_id); in InitNeighborAvailability() 44 video->mbAvailB = (video->mblock[video->mbAddrB].slice_id == video->currMB->slice_id); in InitNeighborAvailability() 47 video->mbAvailC = (video->mblock[video->mbAddrC].slice_id == video->currMB->slice_id); in InitNeighborAvailability() 81 pred_nnz = video->currMB->nz_coeff[(j<<2)+i-1]; in predict_nnz() 104 pred_nnz += video->currMB->nz_coeff[((j-1)<<2)+i]; in predict_nnz() 140 pred_nnz = video->currMB->nz_coeff[(j<<2)+i-1]; in predict_nnz_chroma() 164 pred_nnz += video->currMB->nz_coeff[((j-1)<<2)+i]; in predict_nnz_chroma() 188 AVCMacroblock *currMB = video->currMB; in GetMotionVectorPredictor() local 207 if (currMB->mbMode == AVC_SKIP /* && !encFlag */) /* only for decoder */ in GetMotionVectorPredictor() [all …]
|
/frameworks/av/media/libstagefright/codecs/avc/common/include/ |
D | avcint_common.h | 678 AVCMacroblock *currMB; /* pointer to current macroblock */ member
|