Home
last modified time | relevance | path

Searched refs:nTotalMB (Results 1 – 13 of 13) sorted by relevance

/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
Dpacket_util.cpp40 int nTotalMB = video->nTotalMB; in PV_ReadVideoPacketHeader() local
63 if (*next_MB >= nTotalMB) /* fix 04/05/01 */ in PV_ReadVideoPacketHeader()
66 if (*next_MB >= nTotalMB) /* this check is needed */ in PV_ReadVideoPacketHeader()
67 *next_MB = nTotalMB - 1; in PV_ReadVideoPacketHeader()
204 int nTotalMB = video->nTotalMB; in PV_H263SliceHeader() local
217 if (*next_MB >= nTotalMB) /* fix 04/05/01 */ in PV_H263SliceHeader()
220 if (*next_MB >= nTotalMB) /* this check is needed */ in PV_H263SliceHeader()
221 *next_MB = nTotalMB - 1; in PV_H263SliceHeader()
Dpvdec_api.cpp313 int nTotalMB; in PVAllocVideoData() local
328 video->nTotalMB = in PVAllocVideoData()
404 nTotalMB = video->nTotalMB; in PVAllocVideoData()
410 video->memoryUsage += nTotalMB; in PVAllocVideoData()
413 video->memoryUsage += (nTotalMB); in PVAllocVideoData()
416 video->memoryUsage += (nTotalMB * sizeof(typeDCStore)); in PVAllocVideoData()
423 video->memoryUsage += nTotalMB; in PVAllocVideoData()
426 video->memoryUsage += nTotalMB; in PVAllocVideoData()
429 video->memoryUsage += (nTotalMB * sizeof(int)); in PVAllocVideoData()
439 video->memoryUsage += (sizeof(MOT) * 8 * nTotalMB); in PVAllocVideoData()
[all …]
Dcombined_decode.cpp51 int nTotalMB = video->nTotalMB; in DecodeFrameCombinedMode() local
72 oscl_memset(video->motX, 0, sizeof(MOT)*4*nTotalMB); in DecodeFrameCombinedMode()
73 oscl_memset(video->motY, 0, sizeof(MOT)*4*nTotalMB); in DecodeFrameCombinedMode()
204 if (mbnum >= nTotalMB) return PV_SUCCESS; in DecodeFrameCombinedMode()
222 if (mbnum >= nTotalMB) /* in case no valid stuffing 06/23/01 */ in DecodeFrameCombinedMode()
228 ConcealPacket(video, mb_start, nTotalMB, slice_counter); in DecodeFrameCombinedMode()
246 if (mbnum >= nTotalMB) /* in case no valid stuffing 06/23/01 */ in DecodeFrameCombinedMode()
255 ConcealPacket(video, mb_start, nTotalMB, slice_counter); in DecodeFrameCombinedMode()
318 mbnum = nTotalMB; in DecodeFrameCombinedMode()
327 if (mbnum >= nTotalMB) break; in DecodeFrameCombinedMode()
Ddatapart_decode.cpp49 int nTotalMB = video->nTotalMB; in DecodeFrameDataPartMode() local
61 oscl_memset(video->motX, 0, sizeof(MOT)*4*nTotalMB); in DecodeFrameDataPartMode()
62 oscl_memset(video->motY, 0, sizeof(MOT)*4*nTotalMB); in DecodeFrameDataPartMode()
108 mbnum = nTotalMB; in DecodeFrameDataPartMode()
116 if (mbnum >= nTotalMB) in DecodeFrameDataPartMode()
143 int nTotalMB = video->nTotalMB; in DecodeDataPart_I_VideoPacket() local
201 while (tmpvar != DC_MARKER && video->mbnum < nTotalMB); in DecodeDataPart_I_VideoPacket()
308 int nTotalMB = video->nTotalMB; in DecodeDataPart_P_VideoPacket() local
378 while (tmpvar != MOTION_MARKER_COMB && video->mbnum < nTotalMB); in DecodeDataPart_P_VideoPacket()
Dvop.cpp694 video->nTotalMB = video->nMBPerRow * video->nMBPerCol; in DecodeVOLHeader()
695 video->nBitsForMBID = CalcNumBits((uint)video->nTotalMB - 1); in DecodeVOLHeader()
1378 video->nTotalMB = video->width / MB_SIZE * video->height / MB_SIZE; in DecodeShortHeader()
1380 if (video->nTotalMB <= 48) in DecodeShortHeader()
1384 else if (video->nTotalMB <= 99) in DecodeShortHeader()
1388 else if (video->nTotalMB <= 396) in DecodeShortHeader()
1392 else if (video->nTotalMB <= 1584) in DecodeShortHeader()
1396 else if (video->nTotalMB <= 6336) in DecodeShortHeader()
1400 else if (video->nTotalMB <= 9216) in DecodeShortHeader()
1443 video->nTotalMB = video->nMBPerRow * video->nMBPerCol; in DecodeShortHeader()
[all …]
Dmp4lib_int.h238 int nTotalMB; member
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Dmp4enc_api.cpp199 Int size = 0, nTotalMB = 0; in PVInitVideoEncoder() local
515 nTotalMB = ((encParams->LayerWidth[i] + 15) / 16) * ((encParams->LayerHeight[i] + 15) / 16); in PVInitVideoEncoder()
517 if (nTotalMB > 0) in PVInitVideoEncoder()
518 profile_max_framerate = (float)encParams->LayerMaxMbsPerSec[i] / (float)nTotalMB; in PVInitVideoEncoder()
624 nTotalMB = ((max_width * max_height) >> 8); in PVInitVideoEncoder()
628 mbsPerSec = (Int)(nTotalMB * video->encParams->LayerFrameRate[idx]); in PVInitVideoEncoder()
657 video->QPMB = (UChar *) M4VENC_MALLOC(nTotalMB * sizeof(UChar)); /* Memory for MB quantizers */ in PVInitVideoEncoder()
661 …video->headerInfo.Mode = (UChar *) M4VENC_MALLOC(sizeof(UChar) * nTotalMB); /* Memory for MB Modes… in PVInitVideoEncoder()
663 …video->headerInfo.CBP = (UChar *) M4VENC_MALLOC(sizeof(UChar) * nTotalMB); /* Memory for CBP (Y … in PVInitVideoEncoder()
668 if ((size_t)nTotalMB > SIZE_MAX / sizeof(MOT *)) { in PVInitVideoEncoder()
[all …]
Dcombined_encode.cpp270 Int nTotalMB = currVol->nTotalMB; in EncodeSliceCombinedMode() local
486 if (mbnum < nTotalMB || video->end_of_buf) /* return here */ in EncodeSliceCombinedMode()
506 …if (mbnum < nTotalMB - 1 && currVol->stream->byteCount + bs1->byteCount + 1 >= currVol->stream->bu… in EncodeSliceCombinedMode()
574 … if (mbnum == nTotalMB) /* there's one more GOB to packetize for the next round */ in EncodeSliceCombinedMode()
581 if (mbnum < nTotalMB) /* return here */ in EncodeSliceCombinedMode()
592 else if (mbnum < nTotalMB) /* do not write GOB header if end of vop */ in EncodeSliceCombinedMode()
662 if (mbnum < nTotalMB) in EncodeSliceCombinedMode()
Ddatapart_encode.cpp218 Int nTotalMB = currVol->nTotalMB; in EncodeSliceDataPartMode() local
415 if (mbnum < nTotalMB || video->end_of_buf) /* return here */ in EncodeSliceDataPartMode()
473 if (mbnum < nTotalMB) in EncodeSliceDataPartMode()
Drate_control.cpp199 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()
556 curr_mad = video->sumMAD / (float)currVol->nTotalMB; in targetBitCalculation()
728 curr_mad = video->sumMAD / (float)currVol->nTotalMB; in calculateQuantizer_Multipass()
Dvop.cpp58 M4VENC_MEMSET(Mode, MODE_INTRA, sizeof(UChar)*currVol->nTotalMB); in EncodeVop()
61 M4VENC_MEMSET(Mode, MODE_INTER, sizeof(UChar)*currVol->nTotalMB); in EncodeVop()
252 if (video->mbnum >= currVol->nTotalMB && status != PV_END_OF_BUF) /* end of Vop */ in EncodeSlice()
Dmp4lib_int.h123 Int nTotalMB; member
Dmotion_est.cpp145 Int totalMB = currVol->nTotalMB; in MotionEstimation()