/frameworks/base/media/libstagefright/codecs/avc/enc/src/ |
H A D | vlc_encode.cpp | 106 AVCEnc_Status EncodeCBP(AVCMacroblock *currMB, AVCEncBitstream *stream) argument 111 if (currMB->mbMode == AVC_I4) 113 codeNum = MapCBP2code[currMB->CBP][0]; 117 codeNum = MapCBP2code[currMB->CBP][1];
|
H A D | residual.cpp | 145 AVCEnc_Status enc_residual_block(AVCEncObject *encvid, AVCResidualType type, int cindx, AVCMacroblock *currMB) argument 167 TotalCoeff = currMB->nz_coeff[bindx]; 181 TotalCoeff = currMB->nz_coeff[bindx]; 207 TotalCoeff = currMB->nz_coeff[bindx];
|
H A D | block.cpp | 192 if (video->currMB->mb_intra) // only do inverse transform with intra block 260 void MBInterIdct(AVCCommonObj *video, uint8 *curL, AVCMacroblock *currMB, int picPitch) argument 272 if (currMB->CBP&(1 << b8)) 278 if (currMB->nz_coeff[blkidx]) 365 AVCMacroblock *currMB = video->currMB; local 367 uint8 *pred = encvid->pred_i16[currMB->i16Mode]; 580 currMB->CBP = 0; 627 currMB->nz_coeff[blkIdx2blkXY[b8][b4]] = ncoeff; /* in raster scan !!! */ 630 currMB 725 AVCMacroblock *currMB = video->currMB; local [all...] |
H A D | rate_control.cpp | 697 AVCMacroblock *currMB = video->currMB; local 702 video->QPy_div_6 = (currMB->QPy * 43) >> 8; 703 video->QPy_mod_6 = currMB->QPy - 6 * video->QPy_div_6; 704 currMB->QPc = video->QPc = mapQPi2QPc[AVC_CLIP3(0, 51, currMB->QPy + video->currPicParams->chroma_qp_index_offset)]; 729 encvid->lambda_mode = QP2QUANT[AVC_MAX(0, currMB->QPy-SHIFT_QP)]; 739 AVCMacroblock *currMB = video->currMB; local 741 currMB 756 RCRestoreQP(AVCMacroblock *currMB, AVCCommonObj *video, AVCEncObject *encvid) argument 765 RCCalculateMAD(AVCEncObject *encvid, AVCMacroblock *currMB, uint8 *orgL, int orgPitch) argument [all...] |
H A D | slice.cpp | 27 AVCMacroblock *currMB ; local 44 currMB = video->currMB = &(video->mblock[CurrMbAddr]); 45 currMB->slice_id = video->slice_id; // for deblocking 51 /* calculate currMB->QPy */ 159 AVCMacroblock *currMB = video->currMB; local 206 if (currMB->mbMode == AVC_I_PCM) 219 //RCCalculateMAD(encvid,currMB,orgL,orgPitch); // no need to re-calculate MAD for Intra 224 if (!currMB 550 EncodeMBHeader(AVCMacroblock *currMB, AVCEncObject *encvid) argument 602 InterpretMBType(AVCMacroblock *currMB, int slice_type) argument 686 mb_pred(AVCCommonObj *video, AVCMacroblock *currMB, AVCEncBitstream *stream) argument 772 sub_mb_pred(AVCCommonObj *video, AVCMacroblock *currMB, AVCEncBitstream *stream) argument 920 EncodeIntra4x4Mode(AVCCommonObj *video, AVCMacroblock *currMB, AVCEncBitstream *stream) argument [all...] |
H A D | motion_comp.cpp | 42 AVCMacroblock *currMB = video->currMB; local 73 for (mbPartIdx = 0; mbPartIdx < currMB->NumMbPart; mbPartIdx++) 75 MbHeight = currMB->SubMbPartHeight[mbPartIdx]; 76 MbWidth = currMB->SubMbPartWidth[mbPartIdx]; 79 ref_idx = currMB->ref_idx_L0[(mbPartIdx_Y << 1) + mbPartIdx_X]; 86 for (subMbPartIdx = 0; subMbPartIdx < currMB->NumSubMbPart[mbPartIdx]; subMbPartIdx++) 90 mv = (int16*)(currMB->mvL0 + block_x + (block_y << 2)); 111 offset_indx = currMB->SubMbPartWidth[mbPartIdx] >> 3; 113 offset_MbPart_indx = currMB [all...] |
H A D | intra_est.cpp | 115 AVCMacroblock *currMB = video->currMB; local 125 currMB->CBP = 0; 177 if (currMB->mb_intra) 182 memset(currMB->mvL0, 0, sizeof(int32)*16); 183 currMB->ref_idx_L0[0] = currMB->ref_idx_L0[1] = 184 currMB->ref_idx_L0[2] = currMB->ref_idx_L0[3] = -1; 434 AVCMacroblock *currMB local 628 AVCMacroblock *currMB = video->currMB; local 724 AVCMacroblock *currMB = video->currMB; local 1226 AVCMacroblock *currMB = video->currMB; local 1387 AVCMacroblock *currMB = video->currMB; local 1851 MBIntraSearch(AVCEncObject *encvid, AVCMacroblock *currMB, int mbNum) argument 2004 MBIntraSearch(AVCEncObject *encvid, AVCMacroblock *currMB, int mbNum) argument [all...] |
H A D | motion_est.cpp | 248 AVCMacroblock *currMB, *mblock = video->mblock; local 351 video->currMB = currMB = mblock + mbnum; 356 if (currMB->mb_intra == 0) /* for INTER mode */ 372 currMB->mbMode = AVC_P16; 373 currMB->MBPartPredMode[0][0] = AVC_Pred_L0; 377 currMB->mvL0[k>>1] = mv_uint32; 831 currMB->NumMbPart, currMB->MbPartWidth, currMB 838 AVCMBMotionSearch(AVCEncObject *encvid, AVCMacroblock *currMB, int mbNum, int num_pass) argument 962 AVCMacroblock *currMB = video->currMB; local [all...] |
/frameworks/base/media/libstagefright/codecs/avc/common/src/ |
H A D | mb_access.cpp | 35 video->mbAvailA = (video->mblock[video->mbAddrA].slice_id == video->currMB->slice_id); 38 video->mbAvailD = (video->mblock[video->mbAddrD].slice_id == video->currMB->slice_id); 44 video->mbAvailB = (video->mblock[video->mbAddrB].slice_id == video->currMB->slice_id); 47 video->mbAvailC = (video->mblock[video->mbAddrC].slice_id == video->currMB->slice_id); 81 pred_nnz = video->currMB->nz_coeff[(j<<2)+i-1]; 104 pred_nnz += video->currMB->nz_coeff[((j-1)<<2)+i]; 140 pred_nnz = video->currMB->nz_coeff[(j<<2)+i-1]; 164 pred_nnz += video->currMB->nz_coeff[((j-1)<<2)+i]; 188 AVCMacroblock *currMB = video->currMB; local [all...] |
/frameworks/base/media/libstagefright/codecs/avc/dec/src/ |
H A D | residual.cpp | 172 AVCDec_Status residual(AVCDecObject *decvid, AVCMacroblock *currMB) argument 196 if (currMB->mbMode == AVC_I16) 225 memset(currMB->nz_coeff, 0, sizeof(uint8)*24); 232 if (currMB->CBP&(1 << mbPartIdx)) 263 currMB->nz_coeff[(j<<2)+i] = numcoeff; 275 if (currMB->CBP & (3 << 4)) /* chroma DC residual present */ 302 if (currMB->CBP & (2 << 4)) 335 currMB->nz_coeff[(j<<2)+i] = numcoeff; //
|
H A D | slice.cpp | 34 AVCMacroblock *currMB ; local 60 currMB = video->currMB = &(video->mblock[CurrMbAddr]); 62 currMB->slice_id = video->slice_id; // slice 121 AVCMacroblock *currMB = video->currMB; local 126 currMB->QPy = video->QPy; 127 currMB->QPc = video->QPc; 144 InterpretMBModeP(currMB, mb_type); 152 currMB 280 mb_pred(AVCCommonObj *video, AVCMacroblock *currMB, AVCDecBitstream *stream) argument 389 sub_mb_pred(AVCCommonObj *video, AVCMacroblock *currMB, AVCDecBitstream *stream) argument 617 DecodeIntra4x4Mode(AVCCommonObj *video, AVCMacroblock *currMB, AVCDecBitstream *stream) argument 718 AVCMacroblock *currMB ; local [all...] |
H A D | vlc.cpp | 241 AVCDec_Status DecodeCBP(AVCMacroblock *currMB, AVCDecBitstream *stream) argument 254 if (currMB->mbMode == AVC_I4) 263 // currMB->cbpL = coded_block_pattern&0xF; /* modulo 16 */ 264 // currMB->cbpC = coded_block_pattern>>4; /* divide 16 */ 265 currMB->CBP = coded_block_pattern;
|
H A D | pred_inter.cpp | 39 AVCMacroblock *currMB = video->currMB; local 77 for (mbPartIdx = 0; mbPartIdx < currMB->NumMbPart; mbPartIdx++) 79 MbHeight = currMB->SubMbPartHeight[mbPartIdx]; 80 MbWidth = currMB->SubMbPartWidth[mbPartIdx]; 83 ref_idx = currMB->ref_idx_L0[(mbPartIdx_Y << 1) + mbPartIdx_X]; 90 for (subMbPartIdx = 0; subMbPartIdx < currMB->NumSubMbPart[mbPartIdx]; subMbPartIdx++) 94 mv = (int16*)(currMB->mvL0 + block_x + (block_y << 2)); 132 offset_indx = currMB->SubMbPartWidth[mbPartIdx] >> 3; 134 offset_MbPart_indx = currMB [all...] |
H A D | pred_intra.cpp | 30 AVCMacroblock *currMB = video->currMB; local 55 if (currMB->mbMode == AVC_I4) 144 switch (currMB->i16Mode) 258 switch (currMB->intra_chroma_pred_mode) 510 AVCMacroblock *currMB = video->currMB; local 566 switch (currMB->i4Mode[(block_y << 2) + block_x])
|
/frameworks/base/media/libstagefright/codecs/avc/common/include/ |
H A D | avcint_common.h | 678 AVCMacroblock *currMB; /* pointer to current macroblock */ member in struct:tagCommonObj
|