/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
D | vop.cpp | 24 PV_STATUS EncodeShortHeader(BitstreamEncVideo *stream, Vop *currVop); 25 PV_STATUS EncodeVOPHeader(BitstreamEncVideo *stream, Vol *currVol, Vop *currVop); 45 Vop *currVop = video->currVop; in EncodeVop() local 55 switch (currVop->predictionType) in EncodeVop() 126 Vop *currVop = video->currVop; in EncodeVop_NoME() local 135 status = EncodeShortHeader(stream, currVop); /* Encode Short Header */ in EncodeVop_NoME() 146 if (currVol->GOVStart && currVop->predictionType == I_VOP) in EncodeVop_NoME() 149 status = EncodeVOPHeader(stream, currVol, currVop); /* Encode VOP Header */ in EncodeVop_NoME() 153 if (currVop->vopCoded) in EncodeVop_NoME() 194 Vop *currVop = video->currVop; in EncodeSlice() local [all …]
|
D | datapart_encode.cpp | 40 Vop *currVop = video->currVop; in EncodeFrameDataPartMode() local 42 Int width = currVop->width; /* has to be Vop, for multiple of 16 */ in EncodeFrameDataPartMode() 43 Int lx = currVop->pitch; /* with padding */ in EncodeFrameDataPartMode() 61 video->QP_prev = currVop->quantizer; in EncodeFrameDataPartMode() 76 if (currVop->predictionType == P_VOP) in EncodeFrameDataPartMode() 78 else if (currVop->predictionType == I_VOP) in EncodeFrameDataPartMode() 118 video->QP_prev = currVop->quantizer; /* store QP */ in EncodeFrameDataPartMode() 151 if (video->currVop->predictionType == I_VOP) in EncodeFrameDataPartMode() 176 if (video->currVop->predictionType == I_VOP) in EncodeFrameDataPartMode() 215 Vop *currVop = video->currVop; in EncodeSliceDataPartMode() local [all …]
|
D | combined_encode.cpp | 41 Vop *currVop = video->currVop; in EncodeFrameCombinedMode() local 43 Int width = currVop->width; /* has to be Vop, for multiple of 16 */ in EncodeFrameCombinedMode() 44 Int lx = currVop->pitch; /* with padding */ in EncodeFrameCombinedMode() 64 video->QP_prev = currVop->quantizer; in EncodeFrameCombinedMode() 79 if (currVop->predictionType == P_VOP) in EncodeFrameCombinedMode() 81 else if (currVop->predictionType == I_VOP) in EncodeFrameCombinedMode() 101 if (currVol->shortVideoHeader && currVop->gobFrameID != currVop->predictionType) in EncodeFrameCombinedMode() 102 currVop->gobFrameID = currVop->predictionType; in EncodeFrameCombinedMode() 147 video->QP_prev = currVop->quantizer; in EncodeFrameCombinedMode() 266 Vop *currVop = video->currVop; in EncodeSliceCombinedMode() local [all …]
|
D | mp4enc_api.cpp | 752 video->currVop = (Vop *) M4VENC_MALLOC(sizeof(Vop)); /* Memory for Current VOP */ in PVInitVideoEncoder() 753 if (video->currVop == NULL) goto CLEAN_UP; in PVInitVideoEncoder() 776 …video->currVop->yChan = (PIXEL *)M4VENC_MALLOC(sizeof(PIXEL) * (size + (size >> 1))); /* Memory fo… in PVInitVideoEncoder() 777 if (video->currVop->yChan == NULL) goto CLEAN_UP; in PVInitVideoEncoder() 778 video->currVop->uChan = video->currVop->yChan + size;/* Memory for currVop U */ in PVInitVideoEncoder() 779 video->currVop->vChan = video->currVop->uChan + (size >> 2);/* Memory for currVop V */ in PVInitVideoEncoder() 784 video->currVop->yChan += offset; /* offset to the origin.*/ in PVInitVideoEncoder() 785 video->currVop->uChan += (offset >> 2) + 4; in PVInitVideoEncoder() 786 video->currVop->vChan += (offset >> 2) + 4; in PVInitVideoEncoder() 789 video->forwardRefVop = video->currVop; /* Initialize forwardRefVop */ in PVInitVideoEncoder() [all …]
|
D | fastcodemb.cpp | 73 Vop *currVop = video->currVop; in CodeMB_H263() local 77 Int lx = currVop->pitch; in CodeMB_H263() 78 Int width = currVop->width; in CodeMB_H263() 129 rec = currVop->yChan + offset; in CodeMB_H263() 161 rec = currVop->uChan + offsetc; in CodeMB_H263() 182 rec = currVop->vChan + offsetc; in CodeMB_H263() 304 Vop *currVop = video->currVop; in CodeMB_MPEG() local 308 Int lx = currVop->pitch; in CodeMB_MPEG() 309 Int width = currVop->width; in CodeMB_MPEG() 356 rec = currVop->yChan + offset; in CodeMB_MPEG() [all …]
|
D | findhalfpel.cpp | 79 Int lx = video->currVop->pitch; in FindHalfPelMB() 80 Int width = video->currVop->width; /* padding */ in FindHalfPelMB() 194 Int lx = video->currVop->pitch; in FindHalfPelBlk() 195 Int width = video->currVop->width; /* , padding */ in FindHalfPelBlk()
|
D | motion_est.cpp | 140 Vop *currVop = video->currVop; in MotionEstimation() local 184 if (video->currVop->predictionType == I_VOP) in MotionEstimation() 467 currVop->predictionType = I_VOP; in MotionEstimation() 469 currVop->quantizer = video->encParams->InitQuantIvop[video->currLayer]; in MotionEstimation() 517 currVop->fcodeForward = (f_code_p > f_code_n ? f_code_p : f_code_n); in MotionEstimation() 537 Int lx = video->currVop->width; // padding in InitHTFM() 540 Int rx = video->currVop->pitch; in InitHTFM() 682 Int width = video->currVop->width; in HTFMPrepareCurMB() 744 Int width = video->currVop->width; in PrepareCurMB() 777 Int width = video->currVop->width; /* 6/12/01, must be multiple of 16 */ in MBMotionSearch() [all …]
|
D | rate_control.cpp | 187 Vop *currVop = video->currVop; in RC_VopQPSetting() local 199 M4VENC_MEMSET(video->QPMB, currVop->quantizer, sizeof(UChar)*currVol->nTotalMB); in RC_VopQPSetting() 207 M4VENC_MEMSET(video->QPMB, currVop->quantizer, sizeof(UChar)*currVol->nTotalMB); in RC_VopQPSetting() 213 currVop->quantizer = video->rc[currLayer]->Qc; in RC_VopQPSetting() 219 video->QPMB[i] = (i & 1) ? currVop->quantizer - 1 : currVop->quantizer + 1; in RC_VopQPSetting() 222 M4VENC_MEMSET(video->QPMB, currVop->quantizer, sizeof(UChar)*currVol->nTotalMB); in RC_VopQPSetting() 245 pMP->QP = currVop->quantizer; in RC_VopQPSetting()
|
D | vlc_encode.cpp | 1056 …WriteMVcomponent(video->currVop->fcodeForward, video->mot[mbnum][0].x - pmvx, bs1); /* Write x to … in MBVlcEncodeDataPar_P_VOP() 1057 …WriteMVcomponent(video->currVop->fcodeForward, video->mot[mbnum][0].y - pmvy, bs1); /* Write y… in MBVlcEncodeDataPar_P_VOP() 1064 WriteMVcomponent(video->currVop->fcodeForward, video->mot[mbnum][i].x - pmvx, bs1); in MBVlcEncodeDataPar_P_VOP() 1065 WriteMVcomponent(video->currVop->fcodeForward, video->mot[mbnum][i].y - pmvy, bs1); in MBVlcEncodeDataPar_P_VOP() 1338 if (!((video->vol[video->currLayer]->scalability) && (video->currVop->refSelectCode == 3))) in MBVlcEncodeCombined_P_VOP() 1343 …WriteMVcomponent(video->currVop->fcodeForward, video->mot[mbnum][0].x - pmvx, bs1); /* Write x to … in MBVlcEncodeCombined_P_VOP() 1344 …WriteMVcomponent(video->currVop->fcodeForward, video->mot[mbnum][0].y - pmvy, bs1); /* Write y… in MBVlcEncodeCombined_P_VOP() 1351 WriteMVcomponent(video->currVop->fcodeForward, video->mot[mbnum][i].x - pmvx, bs1); in MBVlcEncodeCombined_P_VOP() 1352 WriteMVcomponent(video->currVop->fcodeForward, video->mot[mbnum][i].y - pmvy, bs1); in MBVlcEncodeCombined_P_VOP() 2515 *intraDC_decision = IntraDCSwitch_Decision(Mode, video->currVop->intraDCVlcThr, intraDCVlcQP); in DCACPred()
|
D | motion_comp.cpp | 101 Vop *currVop = video->currVop; in getMotionCompensatedMB() local 116 round1 = (Int)(1 - video->currVop->roundingType); in getMotionCompensatedMB() 118 pitch = currVop->pitch; in getMotionCompensatedMB() 119 height = currVop->height; in getMotionCompensatedMB() 158 pitch_uv, (currVop->width) >> 1, height_uv, round1); in getMotionCompensatedMB() 182 pitch_uv, (currVop->width) >> 1, height_uv, round1); in getMotionCompensatedMB()
|
D | mp4lib_int.h | 327 Vop *currVop; /* Current reconstructed VOP */ member
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
D | packet_util.cpp | 32 Vop *currVop = video->currVop; in PV_ReadVideoPacketHeader() local 42 fcode_forward = currVop->fcodeForward; in PV_ReadVideoPacketHeader() 45 if (currVop->predictionType != I_VOP) resync_marker_length = 16 + fcode_forward; in PV_ReadVideoPacketHeader() 68 currVop->quantizer = quantizer; in PV_ReadVideoPacketHeader() 100 if (currVop->predictionType != I_VOP) in PV_ReadVideoPacketHeader() 104 if (currVop->predictionType == B_VOP) in PV_ReadVideoPacketHeader() 147 Vop *currVop = video->currVop; in PV_GobHeader() local 184 currVop->gobNumber = (int) tmpvar; in PV_GobHeader() 185 if (currVop->gobNumber >= video->nGOBinVop) return PV_FAIL; in PV_GobHeader() 186 currVop->gobFrameID = (int) BitstreamReadBits16(stream, 2); in PV_GobHeader() [all …]
|
D | vop.cpp | 806 PV_STATUS DecodeVOPHeader(VideoDecData *video, Vop *currVop, Bool use_ext_timestamp) in DecodeVOPHeader() argument 834 currVop->timeStamp = -1; in DecodeVOPHeader() 850 currVop->predictionType = (int) BitstreamReadBits16(stream, 2); in DecodeVOPHeader() 877 currVop->timeInc = BitstreamReadBits16(stream, currVol->nbitsTimeIncRes); in DecodeVOPHeader() 888 currVop->vopCoded = (int) BitstreamRead1Bits(stream); in DecodeVOPHeader() 891 if (currVop->vopCoded == 0) in DecodeVOPHeader() 899 if (currVop->predictionType == P_VOP) in DecodeVOPHeader() 901 currVop->roundingType = (int) BitstreamRead1Bits(stream); in DecodeVOPHeader() 905 currVop->roundingType = 0; in DecodeVOPHeader() 925 if (currVop->predictionType != I_VOP) in DecodeVOPHeader() [all …]
|
D | pvdec_api.cpp | 126 video->currVop = IMEM_currVop; in PVInitVideoDecoder() 127 if (video->currVop == NULL) status = PV_FALSE; in PVInitVideoDecoder() 128 else oscl_memset(video->currVop, 0, sizeof(Vop)); in PVInitVideoDecoder() 136 video->currVop = (Vop *) oscl_malloc(sizeof(Vop)); in PVInitVideoDecoder() 137 if (video->currVop == NULL) status = PV_FALSE; in PVInitVideoDecoder() 138 else oscl_memset(video->currVop, 0, sizeof(Vop)); in PVInitVideoDecoder() 336 video->currVop->yChan = IMEM_currVop_yChan; /* Allocate memory for all VOP OKA 3/2/1*/ in PVAllocVideoData() 337 if (video->currVop->yChan == NULL) status = PV_FALSE; in PVAllocVideoData() 338 video->currVop->uChan = video->currVop->yChan + size; in PVAllocVideoData() 339 video->currVop->vChan = video->currVop->uChan + (size >> 2); in PVAllocVideoData() [all …]
|
D | combined_decode.cpp | 46 Vop *currVop = video->currVop; in DecodeFrameCombinedMode() local 64 switch (currVop->predictionType) in DecodeFrameCombinedMode() 75 resync_marker_length = 16 + currVop->fcodeForward; in DecodeFrameCombinedMode() 116 QP = video->currVop->quantizer; in DecodeFrameCombinedMode() 289 mbnum = currVop->gobNumber * video->nMBinGOB; in DecodeFrameCombinedMode() 325 QP = video->currVop->quantizer; in DecodeFrameCombinedMode() 363 VopType = video->currVop->predictionType; in GetMBheader() 536 int intra_dc_vlc_thr = video->currVop->intraDCVlcThr; 666 c_comp = video->currVop->yChan + offset; 707 …BlockIDCT(video->currVop->uChan + (offset >> 2) + (x_pos << 2), mblock->pred_block + 256, mblock->… [all …]
|
D | datapart_decode.cpp | 42 Vop *currVop = video->currVop; in DecodeFrameDataPartMode() local 47 int vopType = currVop->predictionType; in DecodeFrameDataPartMode() 64 resync_marker_length = 16 + currVop->fcodeForward; in DecodeFrameDataPartMode() 154 QP = video->currVop->quantizer; in DecodeDataPart_I_VideoPacket() 406 QP = video->currVop->quantizer; in DecodeDataPart_P_VideoPacket() 521 int intra_dc_vlc_thr = video->currVop->intraDCVlcThr; in GetMBheaderDataPart_DQUANT_DC() 627 int intra_dc_vlc_thr = video->currVop->intraDCVlcThr; in GetMBData_DataPart() 716 c_comp = video->currVop->yChan + offset; in GetMBData_DataPart() 755 …BlockIDCT(video->currVop->uChan + (offset >> 2) + (x_pos << 2), mblock->pred_block + 256, mblock->… in GetMBData_DataPart() 775 …BlockIDCT(video->currVop->vChan + (offset >> 2) + (x_pos << 2), mblock->pred_block + 264, mblock->… in GetMBData_DataPart()
|
D | mb_motion_comp.cpp | 166 round1 = (int)(1 - video->currVop->roundingType); in MBMotionComp() 253 c_comp = video->currVop->yChan + offset; in MBMotionComp() 463 cu_comp = video->currVop->uChan + (offset >> 2) + (xpos >> 2); in MBMotionComp() 464 cv_comp = video->currVop->vChan + (offset >> 2) + (xpos >> 2); in MBMotionComp() 583 comp = video->currVop; in SkippedMBMotionComp()
|
D | mp4dec_lib.h | 275 PV_STATUS DecodeVOPHeader(VideoDecData *video, Vop *currVop, Bool use_ext_tiemstamp); 276 PV_STATUS DecodeShortHeader(VideoDecData *video, Vop *currVop); 278 uint32 CalcVopDisplayTime(Vol *currVol, Vop *currVop, int shortVideoHeader);
|
D | block_idct.cpp | 224 Vop *currVop = video->currVop; in MBlockIDCT() local 237 c_comp = currVop->yChan + offset; in MBlockIDCT() 238 cu_comp = currVop->uChan + (offset >> 2) + (x_pos << 2); in MBlockIDCT() 239 cv_comp = currVop->vChan + (offset >> 2) + (x_pos << 2); in MBlockIDCT()
|
D | conceal.cpp | 37 int intra_dc_vlc_thr = video->currVop->intraDCVlcThr; in ConcealTexture_I() 124 CopyVopMB(video->currVop, video->concealFrame, i, video->width, video->height); in ConcealPacket()
|
D | mp4lib_int.h | 206 Vop *currVop; /* Current VOP (frame) */ member
|
D | vlc_decode.cpp | 136 int f_code_f = video->currVop->fcodeForward; in PV_GetMBvectors()
|