/frameworks/av/media/libstagefright/codecs/avc/enc/src/ |
avcenc_api.cpp | 60 AVCEncObject *encvid; local 79 encvid = (AVCEncObject*) avcHandle->AVCObject; 81 encvid->enc_state = AVCEnc_Initializing; 83 encvid->avcHandle = avcHandle; 85 encvid->common = (AVCCommonObj*) avcHandle->CBAVC_Malloc(userData, sizeof(AVCCommonObj), DEFAULT_ATTR); 86 if (encvid->common == NULL) 91 video = encvid->common; 94 encvid->bitstream = (AVCEncBitstream*) avcHandle->CBAVC_Malloc(userData, sizeof(AVCEncBitstream), DEFAULT_ATTR); 95 if (encvid->bitstream == NULL) 99 encvid->bitstream->encvid = encvid; /* to point back for reallocation * 256 AVCEncObject *encvid = (AVCEncObject*)avcHandle->AVCObject; local 278 AVCEncObject *encvid = (AVCEncObject*)avcHandle->AVCObject; local 370 AVCEncObject *encvid = (AVCEncObject*)avcHandle->AVCObject; local 523 AVCEncObject *encvid = (AVCEncObject*)avcHandle->AVCObject; local 552 AVCEncObject *encvid = (AVCEncObject*)avcHandle->AVCObject; local 593 AVCEncObject *encvid = (AVCEncObject*) avcHandle->AVCObject; local 726 AVCEncObject *encvid = (AVCEncObject*) avcHandle->AVCObject; local [all...] |
avcenc_lib.h | 41 \param "encvid" "Pointer to AVCEncObject." 48 int dct_luma(AVCEncObject *encvid, int blkidx, uint8 *cur, uint8 *org, int *coef_cost); 63 \param "encvid" "Pointer to AVCEncObject." 68 void dct_luma_16x16(AVCEncObject *encvid, uint8 *curL, uint8 *orgL); 73 \param "encvid" "Pointer to AVCEncObject." 79 void dct_chroma(AVCEncObject *encvid, uint8 *curC, uint8 *orgC, int cr); 85 \param "encvid" "Pointer to AVCEncObject." 127 \param "encvid" "Pointer to the AVCEncObject." 132 AVCEnc_Status InitFrame(AVCEncObject *encvid); 137 \param "encvid" "Pointer to the AVCEncObject. [all...] |
bitstream_io.cpp | 264 AVCEncObject *encvid = (AVCEncObject*)stream->encvid; local 276 if (encvid->overrunBuffer) 278 encvid->avcHandle->CBAVC_Free(encvid->avcHandle->userData, 279 encvid->overrunBuffer); 282 encvid->oBSize = stream->oBSize; 283 encvid->overrunBuffer = (uint8*) encvid->avcHandle->CBAVC_Malloc(encvid->avcHandle->userData [all...] |
motion_est.cpp | 70 AVCEncObject *encvid = (AVCEncObject*) avcHandle->AVCObject; local 71 AVCRateControl *rateCtrl = encvid->rateCtrl; 78 uint8* subpel_pred = (uint8*) encvid->subpel_pred; // all 16 sub-pel positions 90 encvid->mvbits_array = (uint8*) avcHandle->CBAVC_Malloc(encvid->avcHandle->userData, 93 if (encvid->mvbits_array == NULL) 98 mvbits = encvid->mvbits = encvid->mvbits_array + max_mvd; 110 encvid->hpel_cand[0] = subpel_pred + REF_CENTER; 111 encvid->hpel_cand[1] = subpel_pred + V2Q_H0Q * SUBPEL_PRED_BLK_SIZE + 1 175 AVCEncObject *encvid = (AVCEncObject*) avcHandle->AVCObject; local [all...] |
rate_control.cpp | 34 void targetBitCalculation(AVCEncObject *encvid, AVCCommonObj *video, AVCRateControl *rateCtrl, MultiPass *pMP); 36 void calculateQuantizer_Multipass(AVCEncObject *encvid, AVCCommonObj *video, 50 AVCEnc_Status RCDetermineFrameNum(AVCEncObject *encvid, AVCRateControl *rateCtrl, uint32 modTime, uint *frameNum) 52 AVCCommonObj *video = encvid->common; 54 uint32 modTimeRef = encvid->modTimeRef; 66 encvid->modTimeRef = modTime; 67 encvid->wrapModTime = 0; 68 encvid->prevFrameNum = 0; 69 encvid->prevProcFrameNum = 0; 84 encvid->wrapModTime += ((uint32)0xFFFFFFFF - modTimeRef) + 1 169 AVCEncObject *encvid = (AVCEncObject*) avcHandle->AVCObject; local 295 AVCEncObject *encvid = (AVCEncObject*) avcHandle->AVCObject; local [all...] |
residual.cpp | 20 AVCEnc_Status EncodeIntraPCM(AVCEncObject *encvid) 23 AVCCommonObj *video = encvid->common; 24 AVCFrameIO *currInput = encvid->currInput; 25 AVCEncBitstream *stream = encvid->bitstream; 145 AVCEnc_Status enc_residual_block(AVCEncObject *encvid, AVCResidualType type, int cindx, AVCMacroblock *currMB) 148 AVCCommonObj *video = encvid->common; 152 AVCEncBitstream *stream = encvid->bitstream; 165 level = encvid->level[cindx]; 166 run = encvid->run[cindx]; 171 level = encvid->leveldc [all...] |
slice.cpp | 21 AVCEnc_Status AVCEncodeSlice(AVCEncObject *encvid) 24 AVCCommonObj *video = encvid->common; 28 AVCEncBitstream *stream = encvid->bitstream; 52 RCInitMBQP(encvid); 89 status = EncodeMB(encvid); 108 encvid->currSliceGroup++; 109 if (encvid->currSliceGroup > (int)pps->num_slice_groups_minus1) /* no more slice group */ 118 while (video->MbToSliceGroupMap[CurrMbAddr] != encvid->currSliceGroup && 153 AVCEnc_Status EncodeMB(AVCEncObject *encvid) 156 AVCCommonObj *video = encvid->common [all...] |
intra_est.cpp | 32 bool IntraDecisionABE(AVCEncObject *encvid, int min_cost, uint8 *curL, int picPitch) 34 AVCCommonObj *video = encvid->common; 35 AVCFrameIO *currInput = encvid->currInput; 111 void MBIntraSearch(AVCEncObject *encvid, int mbnum, uint8 *curL, int picPitch) 113 AVCCommonObj *video = encvid->common; 114 AVCFrameIO *currInput = encvid->currInput; 128 min_cost = encvid->min_cost[mbnum]; 131 /* need to add the check for encvid->intraSearch[video->mbNum] to skip intra 138 intra = IntraDecisionABE(encvid, min_cost, curL, picPitch); 147 intrapred_luma_16x16(encvid); [all...] |
init.cpp | 28 AVCEncObject *encvid = (AVCEncObject*) avcHandle->AVCObject; local 29 AVCCommonObj *video = encvid->common; 33 AVCRateControl *rateCtrl = encvid->rateCtrl; 56 encvid->fullsearch_enable = encParam->fullsearch; 58 encvid->outOfBandParamSet = ((encParam->out_of_band_param_set == AVC_ON) ? TRUE : FALSE); 488 if (encvid->outOfBandParamSet == TRUE) 553 status = VerifyProfile(encvid, seqParam, picParam); 559 status = VerifyLevel(encvid, seqParam, picParam); 569 AVCEnc_Status VerifyProfile(AVCEncObject *encvid, AVCSeqParamSet *seqParam, AVCPicParamSet *picParam) 571 AVCRateControl *rateCtrl = encvid->rateCtrl [all...] |
block.cpp | 77 int dct_luma(AVCEncObject *encvid, int blkidx, uint8 *cur, uint8 *org, int *coef_cost) 79 AVCCommonObj *video = encvid->common; 80 int org_pitch = encvid->currInput->pitch; 142 level = encvid->level[ras2dec[blkidx]]; 143 run = encvid->run[ras2dec[blkidx]]; 147 qp_const = encvid->qp_const; 360 void dct_luma_16x16(AVCEncObject *encvid, uint8 *curL, uint8 *orgL) 362 AVCCommonObj *video = encvid->common; 364 int org_pitch = encvid->currInput->pitch; 367 uint8 *pred = encvid->pred_i16[currMB->i16Mode] [all...] |
findhalfpel.cpp | 54 int AVCFindHalfPelMB(AVCEncObject *encvid, uint8 *cur, AVCMV *mot, uint8 *ncand, 57 AVCPictureData *currPic = encvid->common->currPic; 61 int lambda_motion = encvid->lambda_motion; 62 uint8 *mvbits = encvid->mvbits; 65 uint8 *subpel_pred = (uint8*) encvid->subpel_pred; // all 16 sub-pel positions 66 uint8 **hpel_cand = (uint8**) encvid->hpel_cand; /* half-pel position */ 80 cur = encvid->currYMB; // pre-load current original MB 109 encvid->best_hpel_pos = hmin; 112 GenerateQuartPelPred(encvid->bilin_base[hmin], &(encvid->qpel_cand[0][0]), hmin) [all...] |
header.cpp | 25 AVCEnc_Status EncodeSPS(AVCEncObject *encvid, AVCEncBitstream *stream) 27 AVCCommonObj *video = encvid->common; 227 AVCEnc_Status EncodePPS(AVCEncObject *encvid, AVCEncBitstream *stream) 229 AVCCommonObj *video = encvid->common; 316 AVCEnc_Status EncodeSliceHeader(AVCEncObject *encvid, AVCEncBitstream *stream) 318 AVCCommonObj *video = encvid->common; 500 encvid->rateCtrl->NumberofHeaderBits += (stream->write_pos << 3) - stream->bit_left - num_bits; 648 AVCEnc_Status InitPOC(AVCEncObject *encvid) 650 AVCCommonObj *video = encvid->common; 653 AVCFrameIO *currInput = encvid->currInput [all...] |
avcenc_int.h | 141 void *encvid; /* pointer to the main object */ member in struct:tagEncBitstream
|
motion_comp.cpp | 38 void AVCMBMotionComp(AVCEncObject *encvid, AVCCommonObj *video) 40 (void)(encvid); [all...] |