/third_party/openh264/codec/encoder/core/src/ |
D | picture_handle.cpp | 51 SPicture* AllocPicture (CMemoryAlign* pMa, const int32_t kiWidth , const int32_t kiHeight, in AllocPicture() argument 62 pPic = static_cast<SPicture*> (pMa->WelsMallocz (sizeof (SPicture), "pPic")); in AllocPicture() 76 pPic->pBuffer = (uint8_t*)pMa->WelsMalloc (iLumaSize /* luma */ in AllocPicture() 79 WELS_VERIFY_RETURN_PROC_IF (NULL, NULL == pPic->pBuffer, FreePicture (pMa, &pPic)); in AllocPicture() 98 …pPic->uiRefMbType = (uint32_t*)pMa->WelsMallocz (kuiCountMbNum * sizeof (uint32_t), "pPic->uiRefMb… in AllocPicture() 99 WELS_VERIFY_RETURN_PROC_IF (NULL, NULL == pPic->uiRefMbType, FreePicture (pMa, &pPic)); in AllocPicture() 101 … pPic->pRefMbQp = (uint8_t*)pMa->WelsMallocz (kuiCountMbNum * sizeof (uint8_t), "pPic->pRefMbQp"); in AllocPicture() 102 WELS_VERIFY_RETURN_PROC_IF (NULL, NULL == pPic->pRefMbQp, FreePicture (pMa, &pPic)); in AllocPicture() 104 …pPic->sMvList = static_cast<SMVUnitXY*> (pMa->WelsMallocz (kuiCountMbNum * sizeof (SMVUn… in AllocPicture() 106 WELS_VERIFY_RETURN_PROC_IF (NULL, NULL == pPic->sMvList, FreePicture (pMa, &pPic)); in AllocPicture() [all …]
|
D | encoder_ext.cpp | 942 void FreeSliceInLayer (SDqLayer* pDq, CMemoryAlign* pMa) { in FreeSliceInLayer() argument 947 pMa, "pSliceBuffer"); in FreeSliceInLayer() 951 void FreeDqLayer (SDqLayer*& pDq, CMemoryAlign* pMa) { in FreeDqLayer() argument 956 FreeSliceInLayer (pDq, pMa); in FreeDqLayer() 959 pMa->WelsFree (pDq->ppSliceInLayer, "ppSliceInLayer"); in FreeDqLayer() 964 pMa->WelsFree (pDq->pFirstMbIdxOfSlice, "pFirstMbIdxOfSlice"); in FreeDqLayer() 969 pMa->WelsFree (pDq->pCountMbNumInSlice, "pCountMbNumInSlice"); in FreeDqLayer() 974 ReleaseFeatureSearchPreparation (pMa, pDq->pFeatureSearchPreparation->pFeatureOfBlock); in FreeDqLayer() 975 pMa->WelsFree (pDq->pFeatureSearchPreparation, "pFeatureSearchPreparation"); in FreeDqLayer() 979 UninitSlicePEncCtx (pDq, pMa); in FreeDqLayer() [all …]
|
D | svc_enc_slice_segment.cpp | 353 CMemoryAlign* pMa, in InitSliceSegment() argument 370 pMa->WelsFree (pSliceSeg->pOverallMbMap, "pSliceSeg->pOverallMbMap"); in InitSliceSegment() 384 …pSliceSeg->pOverallMbMap = (uint16_t*)pMa->WelsMallocz (kiCountMbNum * sizeof (uint16_t), "pSliceS… in InitSliceSegment() 400 …pSliceSeg->pOverallMbMap = (uint16_t*)pMa->WelsMallocz (kiCountMbNum * sizeof (uint16_t), "pSliceS… in InitSliceSegment() 443 void UninitSliceSegment (SDqLayer* pCurDq, CMemoryAlign* pMa) { in UninitSliceSegment() argument 447 pMa->WelsFree (pSliceSeg->pOverallMbMap, "pSliceSeg->pOverallMbMap"); in UninitSliceSegment() 477 CMemoryAlign* pMa, in InitSlicePEncCtx() argument 487 pMa, in InitSlicePEncCtx() 502 void UninitSlicePEncCtx (SDqLayer* pCurDq, CMemoryAlign* pMa) { in UninitSlicePEncCtx() argument 504 UninitSliceSegment (pCurDq, pMa); in UninitSlicePEncCtx()
|
D | svc_encode_slice.cpp | 758 int32_t AllocMbCacheAligned (SMbCache* pMbCache, CMemoryAlign* pMa) { in AllocMbCacheAligned() argument 759 …pMbCache->pMemPredMb = (uint8_t*)pMa->WelsMallocz (2 * 256 * sizeof (uint8_t), "pMbCache->pMemPred… in AllocMbCacheAligned() 762 …pMbCache->pCoeffLevel = (int16_t*)pMa->WelsMallocz (MB_COEFF_LIST_SIZE * sizeof (int16_t), "pMbCac… in AllocMbCacheAligned() 764 pMbCache->pSkipMb = (uint8_t*)pMa->WelsMallocz (384 * sizeof (uint8_t), "pMbCache->pSkipMb"); in AllocMbCacheAligned() 766 …pMbCache->pMemPredBlk4 = (uint8_t*)pMa->WelsMallocz (2 * 16 * sizeof (uint8_t), "pMbCache->pMemPre… in AllocMbCacheAligned() 768 …pMbCache->pBufferInterPredMe = (uint8_t*)pMa->WelsMallocz (4 * 640 * sizeof (uint8_t), "pMbCache->… in AllocMbCacheAligned() 770 pMbCache->pPrevIntra4x4PredModeFlag = (bool*)pMa->WelsMallocz (16 * sizeof (bool), in AllocMbCacheAligned() 773 pMbCache->pRemIntra4x4PredModeFlag = (int8_t*)pMa->WelsMallocz (16 * sizeof (int8_t), in AllocMbCacheAligned() 776 pMbCache->pDct = (SDCTCoeff*)pMa->WelsMallocz (sizeof (SDCTCoeff), "pMbCache->pDct"); in AllocMbCacheAligned() 783 void FreeMbCache (SMbCache* pMbCache, CMemoryAlign* pMa) { in FreeMbCache() argument [all …]
|
D | slice_multi_threading.cpp | 253 CMemoryAlign* pMa = NULL; in RequestMtResource() local 266 pMa = (*ppCtx)->pMemAlign; in RequestMtResource() 273 pSmt = (SSliceThreading*)pMa->WelsMalloc (sizeof (SSliceThreading), "SSliceThreading"); in RequestMtResource() 277 …pSmt->pThreadPEncCtx = (SSliceThreadPrivateData*)pMa->WelsMalloc (sizeof (SSliceThreadPrivateData)… in RequestMtResource() 342 pSmt->pThreadBsBuffer[iIdx] = (uint8_t*)pMa->WelsMallocz (iCountBsLen, "pSmt->pThreadBsBuffer"); in RequestMtResource() 365 CMemoryAlign* pMa = NULL; in ReleaseMtResource() local 372 pMa = (*ppCtx)->pMemAlign; in ReleaseMtResource() 402 pMa->WelsFree (pSmt->pThreadPEncCtx, "pThreadPEncCtx"); in ReleaseMtResource() 408 pMa->WelsFree (pSmt->pThreadBsBuffer[i], "pSmt->pThreadBsBuffer"); in ReleaseMtResource() 425 pMa->WelsFree ((*ppCtx)->pSliceThreading, "SSliceThreading"); in ReleaseMtResource()
|
D | svc_motion_estimate.cpp | 640 int32_t RequestFeatureSearchPreparation (CMemoryAlign* pMa, const int32_t kiFrameWidth, const int3… in RequestFeatureSearchPreparation() argument 656 (uint16_t*)pMa->WelsMallocz (iListOfFeatureOfBlock, "pFeatureOfBlock"); in RequestFeatureSearchPreparation() 666 int32_t ReleaseFeatureSearchPreparation (CMemoryAlign* pMa, uint16_t*& pFeatureOfBlock) { in ReleaseFeatureSearchPreparation() argument 667 if (pMa && pFeatureOfBlock) { in ReleaseFeatureSearchPreparation() 668 pMa->WelsFree (pFeatureOfBlock, "pFeatureOfBlock"); in ReleaseFeatureSearchPreparation() 675 int32_t RequestScreenBlockFeatureStorage (CMemoryAlign* pMa, const int32_t kiFrameWidth, const int… in RequestScreenBlockFeatureStorage() argument 693 …pScreenBlockFeatureStorage->pTimesOfFeatureValue = (uint32_t*)pMa->WelsMallocz (kiListSize * sizeo… in RequestScreenBlockFeatureStorage() 697 …pScreenBlockFeatureStorage->pLocationOfFeature = (uint16_t**)pMa->WelsMallocz (kiListSize * sizeof… in RequestScreenBlockFeatureStorage() 701 …pScreenBlockFeatureStorage->pLocationPointer = (uint16_t*)pMa->WelsMallocz (2 * kiFrameSize * size… in RequestScreenBlockFeatureStorage() 705 …pScreenBlockFeatureStorage->pFeatureValuePointerList = (uint16_t**)pMa->WelsMallocz (WELS_MAX (LIS… in RequestScreenBlockFeatureStorage() [all …]
|
D | wels_preprocess.cpp | 168 CMemoryAlign* pMa = pCtx->pMemAlign; in AllocSpatialPictures() local 183 SPicture* pPic = AllocPicture (pMa, kiPicWidth, kiPicHeight, false, 0); in AllocSpatialPictures() 201 CMemoryAlign* pMa = pCtx->pMemAlign; in FreeSpatialPictures() local 209 FreePicture (pMa, &m_pSpatialPic[j][i]); in FreeSpatialPictures()
|
/third_party/openh264/codec/decoder/core/src/ |
D | pic_queue.cpp | 47 void FreePicture (PPicture pPic, CMemoryAlign* pMa); 71 CMemoryAlign* pMa = pCtx->pMemAlign; in AllocPicture() local 73 pPic = (PPicture) pMa->WelsMallocz (sizeof (SPicture), "PPicture"); in AllocPicture() 92 pPic->pBuffer[0] = static_cast<uint8_t*> (pMa->WelsMallocz (iLumaSize /* luma */ in AllocPicture() 94 WELS_VERIFY_RETURN_PROC_IF (NULL, NULL == pPic->pBuffer[0], FreePicture (pPic, pMa)); in AllocPicture() 115 …pPic->pMbCorrectlyDecodedFlag = (bool*)pMa->WelsMallocz (uiMbCount * sizeof (bool), "pPic->pMbCorr… in AllocPicture() 116 …pPic->pNzc = GetThreadCount (pCtx) > 1 ? (int8_t (*)[24])pMa->WelsMallocz (uiMbCount * 24, "pPic->… in AllocPicture() 117 pPic->pMbType = (uint32_t*)pMa->WelsMallocz (uiMbCount * sizeof (uint32_t), "pPic->pMbType"); in AllocPicture() 118 pPic->pMv[LIST_0] = (int16_t (*)[16][2])pMa->WelsMallocz (uiMbCount * sizeof ( in AllocPicture() 120 pPic->pMv[LIST_1] = (int16_t (*)[16][2])pMa->WelsMallocz (uiMbCount * sizeof ( in AllocPicture() [all …]
|
D | memmgr_nal_unit.cpp | 47 int32_t MemInitNalList (PAccessUnit* ppAu, const uint32_t kuiSize, CMemoryAlign* pMa) { in MemInitNalList() argument 59 MemFreeNalList (ppAu, pMa); in MemInitNalList() 62 pBase = (uint8_t*)pMa->WelsMallocz (kuiCountSize, "Access Unit"); in MemInitNalList() 86 int32_t MemFreeNalList (PAccessUnit* ppAu, CMemoryAlign* pMa) { in MemFreeNalList() argument 90 pMa->WelsFree (pAu, "Access Unit"); in MemFreeNalList() 98 …UnitList (PAccessUnit* ppAu, const int32_t kiOrgSize, const int32_t kiExpSize, CMemoryAlign* pMa) { in ExpandNalUnitList() argument 105 …if ((iRet = MemInitNalList (&pTmp, kiExpSize, pMa)) != ERR_NONE) // request new list with expanding in ExpandNalUnitList() 119 MemFreeNalList (ppAu, pMa); // free old list in ExpandNalUnitList() 130 PNalUnit MemGetNextNal (PAccessUnit* ppAu, CMemoryAlign* pMa) { in MemGetNextNal() argument 136 if (ExpandNalUnitList (ppAu, pAu->uiCountUnitsNum, kuiExpandingSize, pMa)) in MemGetNextNal()
|
D | fmo.cpp | 121 const int32_t kiMbHeight, CMemoryAlign* pMa) { in FmoGenerateSliceGroup() argument 134 pMa->WelsFree (pFmo->pMbAllocMap, "_fmo->pMbAllocMap"); in FmoGenerateSliceGroup() 135 pFmo->pMbAllocMap = (uint8_t*)pMa->WelsMallocz (iNumMb * sizeof (uint8_t), "_fmo->pMbAllocMap"); in FmoGenerateSliceGroup() 188 …tFmo (PFmo pFmo, PPps pPps, const int32_t kiMbWidth, const int32_t kiMbHeight, CMemoryAlign* pMa) { in InitFmo() argument 189 return FmoGenerateSliceGroup (pFmo, pPps, kiMbWidth, kiMbHeight, pMa); in InitFmo() 202 void UninitFmoList (PFmo pFmo, const int32_t kiCnt, const int32_t kiAvail, CMemoryAlign* pMa) { in UninitFmoList() argument 213 pMa->WelsFree (pIter->pMbAllocMap, "pIter->pMbAllocMap"); in UninitFmoList() 260 int32_t FmoParamUpdate (PFmo pFmo, PSps pSps, PPps pPps, int32_t* pActiveFmoNum, CMemoryAlign* pMa)… in FmoParamUpdate() argument 265 iRet = InitFmo (pFmo, pPps, kuiMbWidth, kuiMbHeight, pMa); in FmoParamUpdate()
|
D | decoder.cpp | 61 extern void FreePicture (PPicture pPic, CMemoryAlign* pMa); 72 CMemoryAlign* pMa = pCtx->pMemAlign; in CreatePicBuff() local 74 pPicBuf = (PPicBuff)pMa->WelsMallocz (sizeof (SPicBuff), "PPicBuff"); in CreatePicBuff() 80 pPicBuf->ppPic = (PPicture*)pMa->WelsMallocz (kiSize * sizeof (PPicture), "PPicture*"); in CreatePicBuff() 84 DestroyPicBuff (pCtx, &pPicBuf, pMa); in CreatePicBuff() 93 DestroyPicBuff (pCtx, &pPicBuf, pMa); in CreatePicBuff() 116 CMemoryAlign* pMa = pCtx->pMemAlign; in IncreasePicBuff() local 117 pPicNewBuf = (PPicBuff)pMa->WelsMallocz (sizeof (SPicBuff), "PPicBuff"); in IncreasePicBuff() 123 pPicNewBuf->ppPic = (PPicture*)pMa->WelsMallocz (kiNewSize * sizeof (PPicture), "PPicture*"); in IncreasePicBuff() 127 DestroyPicBuff (pCtx, &pPicNewBuf, pMa); in IncreasePicBuff() [all …]
|
D | decoder_core.cpp | 609 CMemoryAlign* pMa = pCtx->pMemAlign; in InitBsBuffer() local 612 if ((pCtx->sRawData.pHead = static_cast<uint8_t*> (pMa->WelsMallocz (pCtx->iMaxBsBufferSizeInByte, in InitBsBuffer() 619 …pCtx->pParserBsInfo = static_cast<SParserBsInfo*> (pMa->WelsMallocz (sizeof (SParserBsInfo), "pCtx… in InitBsBuffer() 624 …pCtx->pParserBsInfo->pDstBuff = static_cast<uint8_t*> (pMa->WelsMallocz (MAX_ACCESS_UNIT_CAPACITY … in InitBsBuffer() 631 …if ((pCtx->sSavedData.pHead = static_cast<uint8_t*> (pMa->WelsMallocz (pCtx->iMaxBsBufferSizeInByt… in InitBsBuffer() 639 …pCtx->pParserBsInfo->pNalLenInByte = static_cast<int*> (pMa->WelsMallocz (pCtx->iMaxNalNum * sizeo… in InitBsBuffer() 654 CMemoryAlign* pMa = pCtx->pMemAlign; in ExpandBsBuffer() local 657 …uint8_t* pNewBsBuff = static_cast<uint8_t*> (pMa->WelsMallocz (iNewBuffLen, "pCtx->sRawData.pHead"… in ExpandBsBuffer() 677 pMa->WelsFree (pCtx->sRawData.pHead, "pCtx->sRawData.pHead"); in ExpandBsBuffer() 682 …uint8_t* pNewSavedBsBuff = static_cast<uint8_t*> (pMa->WelsMallocz (iNewBuffLen, "pCtx->sSavedData… in ExpandBsBuffer() [all …]
|
D | au_parser.cpp | 1186 CMemoryAlign* pMa = pCtx->pMemAlign; in ParseSps() local 1188 uint8_t* pBsBuf = static_cast<uint8_t*> (pMa->WelsMallocz (SPS_PPS_BS_SIZE + 4, in ParseSps() 1239 pMa->WelsFree (pBsBuf, "pBsBuf for parse only usage"); in ParseSps()
|
/third_party/openh264/codec/encoder/core/inc/ |
D | svc_encode_slice.h | 84 int32_t AllocMbCacheAligned (SMbCache* pMbCache, CMemoryAlign* pMa); 85 void FreeMbCache (SMbCache* pMbCache, CMemoryAlign* pMa); 93 int32_t AllocateSliceMBBuffer (SSlice* pSlice, CMemoryAlign* pMa); 99 CMemoryAlign* pMa); 103 CMemoryAlign* pMa, 115 CMemoryAlign* pMa); 128 CMemoryAlign* pMa);
|
D | picture_handle.h | 55 SPicture* AllocPicture (CMemoryAlign* pMa, const int32_t kiWidth, const int32_t kiHeight, bool bNee… 63 void FreePicture (CMemoryAlign* pMa, SPicture** ppPic);
|
D | param_svc.h | 548 static inline int32_t FreeCodingParam (SWelsSvcCodingParam** pParam, CMemoryAlign* pMa) { in FreeCodingParam() argument 549 if (pParam == NULL || *pParam == NULL || pMa == NULL) in FreeCodingParam() 551 pMa->WelsFree (*pParam, "SWelsSvcCodingParam"); in FreeCodingParam() 556 static inline int32_t AllocCodingParam (SWelsSvcCodingParam** pParam, CMemoryAlign* pMa) { in AllocCodingParam() argument 557 if (pParam == NULL || pMa == NULL) in AllocCodingParam() 560 FreeCodingParam (pParam, pMa); in AllocCodingParam() 562 …SWelsSvcCodingParam* pCodingParam = (SWelsSvcCodingParam*)pMa->WelsMallocz (sizeof (SWelsSvcCoding… in AllocCodingParam()
|
D | svc_enc_slice_segment.h | 122 CMemoryAlign* pMa, 137 void UninitSlicePEncCtx (SDqLayer* pCurDq, CMemoryAlign* pMa);
|
D | svc_motion_estimate.h | 306 int32_t RequestScreenBlockFeatureStorage (CMemoryAlign* pMa, const int32_t kiFrameWidth, const int… 309 int32_t ReleaseScreenBlockFeatureStorage (CMemoryAlign* pMa, SScreenBlockFeatureStorage* pScreenBlo… 310 int32_t RequestFeatureSearchPreparation (CMemoryAlign* pMa, const int32_t kiFrameWidth, const int3… 313 int32_t ReleaseFeatureSearchPreparation (CMemoryAlign* pMa, uint16_t*& pFeatureOfBlock);
|
D | encoder.h | 64 int32_t AllocateBsOutputBuffer (CMemoryAlign* pMa, const int32_t iNeededLen, int32_t iOrigLen, cons…
|
/third_party/openh264/test/encoder/ |
D | EncUT_ParameterSetStrategy.cpp | 15 pMa = NULL; in SetUp() 19 pMa = new CMemoryAlign (0); in SetUp() 20 m_pSpsArray = (SWelsSPS*)pMa->WelsMalloc (MAX_SPS_COUNT * sizeof (SWelsSPS), "m_pSpsArray"); in SetUp() 22 …m_pSubsetArray = (SSubsetSps*)pMa->WelsMalloc (MAX_SPS_COUNT * sizeof (SSubsetSps), "m_pSubsetArra… in SetUp() 30 pMa->WelsFree (m_pSpsArray, "m_pSpsArray"); in TearDown() 31 pMa->WelsFree (m_pSubsetArray, "m_pSubsetArray"); in TearDown() 32 delete pMa; in TearDown() 36 CMemoryAlign* pMa; member in ParameterSetStrategyTest
|
D | EncUT_MotionEstimate.cpp | 46 pMa = new CMemoryAlign (0); in SetUp() 48 (pMa->WelsMalloc (m_iWidth * m_iHeight, "RefPic")); in SetUp() 51 (pMa->WelsMalloc (m_iMaxSearchBlock * m_iMaxSearchBlock, "SrcBlock")); in SetUp() 59 pMa->WelsFree (m_pRefData, "RefPic"); in TearDown() 60 pMa->WelsFree (m_pSrcBlock, "SrcBlock"); in TearDown() 61 delete pMa; in TearDown() 72 CMemoryAlign* pMa; member in MotionEstimateTest
|
D | EncUT_SliceBufferReallocate.cpp | 10 extern void FreeDqLayer (SDqLayer*& pDq, CMemoryAlign* pMa);
|
/third_party/openh264/codec/decoder/core/inc/ |
D | memmgr_nal_unit.h | 51 int32_t MemInitNalList (PAccessUnit* ppAu, const uint32_t kuiSize, CMemoryAlign* pMa); 53 int32_t MemFreeNalList (PAccessUnit* ppAu, CMemoryAlign* pMa); 60 PNalUnit MemGetNextNal (PAccessUnit* ppAu, CMemoryAlign* pMa);
|
D | fmo.h | 77 …itFmo (PFmo pFmo, PPps pPps, const int32_t kiMbWidth, const int32_t kiMbHeight, CMemoryAlign* pMa); 88 void UninitFmoList (PFmo pFmo, const int32_t kiCnt, const int32_t kiAvail, CMemoryAlign* pMa); 100 int32_t FmoParamUpdate (PFmo pFmo, PSps pSps, PPps pPps, int32_t* pActiveFmoNum, CMemoryAlign* pMa);
|
D | decoder.h | 175 void DestroyPicBuff (PWelsDecoderContext pCtx, PPicBuff* ppPicBuf, CMemoryAlign* pMa);
|