/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
D | vop.cpp | 85 Vol *currVol; in DecodeVOLHeader() local 98 currVol = video->vol[layer]; in DecodeVOLHeader() 99 stream = currVol->bitstream; in DecodeVOLHeader() 100 currVol->moduloTimeBase = 0; in DecodeVOLHeader() 140 currVol->profile_level_id = (uint)tmpvar; // 6/10/04 in DecodeVOLHeader() 284 currVol->volID = (int) BitstreamReadBits16(stream, 4); in DecodeVOLHeader() 391 currVol->timeIncrementResolution = BitstreamReadBits16(stream, 16); in DecodeVOLHeader() 392 if (currVol->timeIncrementResolution == 0) return PV_FAIL; in DecodeVOLHeader() 396 currVol->nbitsTimeIncRes = CalcNumBits((uint)currVol->timeIncrementResolution - 1); in DecodeVOLHeader() 401 currVol->fixedVopRate = (int) BitstreamRead1Bits(stream); in DecodeVOLHeader() [all …]
|
D | pvdec_api.cpp | 1048 Vol *currVol; in PVDecodeVopHeader() local 1123 currVol = video->vol[target_layer]; in PVDecodeVopHeader() 1124 video->bitstream = stream = currVol->bitstream; in PVDecodeVopHeader() 1154 currVol = video->vol[0]; in PVDecodeVopHeader() 1155 video->bitstream = stream = currVol->bitstream; in PVDecodeVopHeader() 1185 … vopHeader[0]->timeStamp = CalcVopDisplayTime(currVol, vopHeader[0], video->shortVideoHeader); in PVDecodeVopHeader() 1209 … vopHeader[0]->timeStamp = CalcVopDisplayTime(currVol, vopHeader[0], video->shortVideoHeader); in PVDecodeVopHeader() 1260 Vol *currVol = video->vol[target_layer]; in PVDecodeVopBody() local 1270 PV_BitstreamByteAlign(currVol->bitstream); in PVDecodeVopBody() 1272 bytes_consumed = (getPointer(currVol->bitstream) + 7) >> 3; in PVDecodeVopBody() [all …]
|
D | packet_util.cpp | 31 Vol *currVol = video->vol[video->currLayer]; in PV_ReadVideoPacketHeader() local 69 quantizer = (int16) BitstreamReadBits16(stream, currVol->quantPrecision); in PV_ReadVideoPacketHeader() 92 BitstreamReadBits16(stream, currVol->nbitsTimeIncRes); in PV_ReadVideoPacketHeader()
|
D | vlc_dequant.cpp | 54 Vol *currVol = video->vol[video->currLayer]; in VlcDequantMpegIntraBlock() local 103 qmat = currVol->iqmat; in VlcDequantMpegIntraBlock() 388 Vol *currVol = video->vol[video->currLayer]; in VlcDequantMpegInterBlock() local 416 qmat = currVol->niqmat; in VlcDequantMpegInterBlock()
|
D | mp4dec_lib.h | 247 uint32 CalcVopDisplayTime(Vol *currVol, Vop *currVop, int shortVideoHeader);
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
D | combined_encode.cpp | 40 Vol *currVol = video->vol[video->currLayer]; in EncodeFrameCombinedMode() local 70 if (currVol->quantType == 0) in EncodeFrameCombinedMode() 88 if (currVol->shortVideoHeader) in EncodeFrameCombinedMode() 91 else if (currVol->useReverseVLC) in EncodeFrameCombinedMode() 101 if (currVol->shortVideoHeader && currVop->gobFrameID != currVop->predictionType) in EncodeFrameCombinedMode() 107 for (ind_y = 0; ind_y < currVol->nMBPerCol; ind_y++) /* Col MB Loop */ in EncodeFrameCombinedMode() 112 if (currVol->shortVideoHeader) /* ShortVideoHeader Mode */ in EncodeFrameCombinedMode() 118 video->header_bits -= BitstreamGetPos(currVol->stream); /* Header Bits */ in EncodeFrameCombinedMode() 120 video->header_bits += BitstreamGetPos(currVol->stream); /* Header Bits */ in EncodeFrameCombinedMode() 125 for (ind_x = 0; ind_x < currVol->nMBPerRow; ind_x++) /* Row MB Loop */ in EncodeFrameCombinedMode() [all …]
|
D | vop.cpp | 25 PV_STATUS EncodeVOPHeader(BitstreamEncVideo *stream, Vol *currVol, Vop *currVop); 44 Vol *currVol = video->vol[currLayer]; in EncodeVop() local 58 M4VENC_MEMSET(Mode, MODE_INTRA, sizeof(UChar)*currVol->nTotalMB); in EncodeVop() 61 M4VENC_MEMSET(Mode, MODE_INTER, sizeof(UChar)*currVol->nTotalMB); in EncodeVop() 127 Vol *currVol = video->vol[video->currLayer]; in EncodeVop_NoME() local 132 if (currVol->shortVideoHeader) /* Short Video Header = 1 */ 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() 155 if (!currVol->scalability) in EncodeVop_NoME() 157 if (currVol->dataPartitioning) in EncodeVop_NoME() [all …]
|
D | datapart_encode.cpp | 39 Vol *currVol = video->vol[video->currLayer]; in EncodeFrameDataPartMode() local 67 if (currVol->quantType == 0) in EncodeFrameDataPartMode() 84 if (currVol->shortVideoHeader) in EncodeFrameDataPartMode() 87 else if (currVol->useReverseVLC) in EncodeFrameDataPartMode() 95 for (ind_y = 0; ind_y < currVol->nMBPerCol; ind_y++) /* Col MB Loop */ in EncodeFrameDataPartMode() 100 for (ind_x = 0; ind_x < currVol->nMBPerRow; ind_x++) /* Row MB Loop */ in EncodeFrameDataPartMode() 159 status = BitstreamAppendPacket(currVol->stream, bs1); /* Put Packet to Buffer */ in EncodeFrameDataPartMode() 189 status = BitstreamAppendPacket(currVol->stream, bs1); /* Put Packet to Buffer */ in EncodeFrameDataPartMode() 214 Vol *currVol = video->vol[video->currLayer]; in EncodeSliceDataPartMode() local 218 Int nTotalMB = currVol->nTotalMB; in EncodeSliceDataPartMode() [all …]
|
D | mp4enc_api.cpp | 1358 Vol *currVol = video->vol[currLayer]; in PVGetOverrunBuffer() local 1360 if (currVol->stream->bitstreamBuffer != video->overrunBuffer) // not used in PVGetOverrunBuffer() 1389 Vol *currVol; in PVEncodeVideoFrame() local 1461 currVol = video->vol[currLayer]; in PVEncodeVideoFrame() 1462 currVol->stream->bitstreamBuffer = bstream; in PVEncodeVideoFrame() 1463 currVol->stream->bufferSize = *size; in PVEncodeVideoFrame() 1464 BitstreamEncReset(currVol->stream); in PVEncodeVideoFrame() 1465 BitstreamSetOverrunBuffer(currVol->stream, video->overrunBuffer, video->oBSize, video); in PVEncodeVideoFrame() 1505 video->currVop->volID = currVol->volID; in PVEncodeVideoFrame() 1516 video->currVop->timeInc = currVol->timeIncrement; in PVEncodeVideoFrame() [all …]
|
D | rate_control.cpp | 186 Vol *currVol = video->vol[currLayer]; 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() 215 i = currVol->nTotalMB; /* testing changing QP at MB level */ in RC_VopQPSetting() 222 M4VENC_MEMSET(video->QPMB, currVop->quantizer, sizeof(UChar)*currVol->nTotalMB); in RC_VopQPSetting() 247 pMP->mad = video->sumMAD / (float)currVol->nTotalMB; in RC_VopQPSetting() 294 Vol *currVol = video->vol[currLayer]; in RC_VopUpdateStat() local 309 pMP->actual_bits = currVol->stream->byteCount << 3; in RC_VopUpdateStat() 334 rc->Rc = currVol->stream->byteCount << 3; /* Total Bits for current frame */ in RC_VopUpdateStat() 534 Vol *currVol = video->vol[video->currLayer]; in targetBitCalculation() local [all …]
|
D | motion_est.cpp | 78 Int fullsearch(VideoEncData *video, Vol *currVol, UChar *ref, UChar *cur, 80 Int fullsearchBlk(VideoEncData *video, Vol *currVol, UChar *cent, UChar *cur, 139 Vol *currVol = video->vol[video->currLayer]; in MotionEstimation() local 143 Int mbwidth = currVol->nMBPerRow; in MotionEstimation() 144 Int mbheight = currVol->nMBPerCol; in MotionEstimation() 145 Int totalMB = currVol->nTotalMB; in MotionEstimation() 773 Vol *currVol = video->vol[video->currLayer]; in MBMotionSearch() local 847 dmin = fullsearch(video, currVol, ref, cur, &imin, &jmin, ilow, ihigh, jlow, jhigh); in MBMotionSearch() 864 dmin = fullsearch(video, currVol, ref, cur, &imin, &jmin, ilow, ihigh, jlow, jhigh); in MBMotionSearch() 1074 … dmin = fullsearchBlk(video, currVol, ncand, cur8, &imin, &jmin, ilow, ihigh, jlow, jhigh, range); in MBMotionSearch() [all …]
|
D | fastcodemb.cpp | 287 Vol *currVol = video->vol[video->currLayer]; in CodeMB_MPEG() local 332 qmat = currVol->iqmat; in CodeMB_MPEG() 348 qmat = currVol->niqmat; in CodeMB_MPEG()
|
D | vlc_encode.cpp | 2024 Vol *currVol = video->vol[video->currLayer]; in DCACPred() local 2025 Int nMBPerRow = currVol->nMBPerRow; in DCACPred() 2534 Vol *currVol = video->vol[video->currLayer]; in find_pmvs() local 2537 Int nMBPerRow = currVol->nMBPerRow; in find_pmvs()
|