Home
last modified time | relevance | path

Searched refs:pMa (Results 1 – 25 of 26) sorted by relevance

12

/third_party/openh264/codec/encoder/core/src/
Dpicture_handle.cpp51 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 …]
Dencoder_ext.cpp942 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 …]
Dsvc_enc_slice_segment.cpp353 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()
Dsvc_encode_slice.cpp758 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 …]
Dslice_multi_threading.cpp253 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()
Dsvc_motion_estimate.cpp640 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 …]
Dwels_preprocess.cpp168 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/
Dpic_queue.cpp47 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 …]
Dmemmgr_nal_unit.cpp47 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()
Dfmo.cpp121 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()
Ddecoder.cpp61 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 …]
Ddecoder_core.cpp609 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 …]
Dau_parser.cpp1186 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/
Dsvc_encode_slice.h84 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);
Dpicture_handle.h55 SPicture* AllocPicture (CMemoryAlign* pMa, const int32_t kiWidth, const int32_t kiHeight, bool bNee…
63 void FreePicture (CMemoryAlign* pMa, SPicture** ppPic);
Dparam_svc.h548 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()
Dsvc_enc_slice_segment.h122 CMemoryAlign* pMa,
137 void UninitSlicePEncCtx (SDqLayer* pCurDq, CMemoryAlign* pMa);
Dsvc_motion_estimate.h306 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);
Dencoder.h64 int32_t AllocateBsOutputBuffer (CMemoryAlign* pMa, const int32_t iNeededLen, int32_t iOrigLen, cons…
/third_party/openh264/test/encoder/
DEncUT_ParameterSetStrategy.cpp15 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
DEncUT_MotionEstimate.cpp46 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
DEncUT_SliceBufferReallocate.cpp10 extern void FreeDqLayer (SDqLayer*& pDq, CMemoryAlign* pMa);
/third_party/openh264/codec/decoder/core/inc/
Dmemmgr_nal_unit.h51 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);
Dfmo.h77 …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);
Ddecoder.h175 void DestroyPicBuff (PWelsDecoderContext pCtx, PPicBuff* ppPicBuf, CMemoryAlign* pMa);

12