Home
last modified time | relevance | path

Searched refs:pPic (Results 1 – 8 of 8) sorted by relevance

/third_party/openh264/codec/encoder/core/src/
Dpicture_handle.cpp53 SPicture* pPic = NULL; in AllocPicture() local
62 pPic = static_cast<SPicture*> (pMa->WelsMallocz (sizeof (SPicture), "pPic")); in AllocPicture()
64 WELS_VERIFY_RETURN_IF (NULL, NULL == 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()
80 pPic->iLineSize[0] = iPicWidth; in AllocPicture()
81 pPic->iLineSize[1] = pPic->iLineSize[2] = iPicChromaWidth; in AllocPicture()
82 pPic->pData[0] = pPic->pBuffer + (1 + pPic->iLineSize[0]) * PADDING_LENGTH; in AllocPicture()
83pPic->pData[1] = pPic->pBuffer + iLumaSize + (((1 + pPic->iLineSize[1]) * PADDING_LENGTH) >… in AllocPicture()
84pPic->pData[2] = pPic->pBuffer + iLumaSize + iChromaSize + (((1 + pPic->iLineSize[2]) * PAD… in AllocPicture()
[all …]
Dwels_preprocess.cpp74 …ne void WelsUpdateSpatialIdxMap (sWelsEncCtx* pEncCtx, const int32_t iPos, SPicture* const pPic, in WelsUpdateSpatialIdxMap() argument
76 pEncCtx->sSpatialIndexMap[iPos].pSrc = pPic; in WelsUpdateSpatialIdxMap()
183 SPicture* pPic = AllocPicture (pMa, kiPicWidth, kiPicHeight, false, 0); in AllocSpatialPictures() local
184 WELS_VERIFY_RETURN_IF (1, (NULL == pPic)) in AllocSpatialPictures()
185 m_pSpatialPic[iDlayerIndex][i] = pPic; in AllocSpatialPictures()
531 SPicture* pPic = pScaledPicture->pScaledInputPicture; in WelsInitScaledPic() local
532 …ClearEndOfLinePadding (pPic->pData[0], pPic->iLineSize[0], pPic->iWidthInPixel, pPic->iHeightInPix… in WelsInitScaledPic()
533 …ClearEndOfLinePadding (pPic->pData[1], pPic->iLineSize[1], pPic->iWidthInPixel >> 1, pPic->iHeight… in WelsInitScaledPic()
534 …ClearEndOfLinePadding (pPic->pData[2], pPic->iLineSize[2], pPic->iWidthInPixel >> 1, pPic->iHeight… in WelsInitScaledPic()
/third_party/openh264/codec/decoder/core/src/
Dpic_queue.cpp47 void FreePicture (PPicture pPic, CMemoryAlign* pMa);
63 PPicture pPic = NULL; in AllocPicture() local
73 pPic = (PPicture) pMa->WelsMallocz (sizeof (SPicture), "PPicture"); in AllocPicture()
74 WELS_VERIFY_RETURN_IF (NULL, NULL == pPic); in AllocPicture()
76 memset (pPic, 0, sizeof (SPicture)); in AllocPicture()
87 pPic->pBuffer[0] = pPic->pBuffer[1] = pPic->pBuffer[2] = NULL; in AllocPicture()
88 pPic->pData[0] = pPic->pData[1] = pPic->pData[2] = NULL; in AllocPicture()
89 pPic->iLinesize[0] = iPicWidth; in AllocPicture()
90 pPic->iLinesize[1] = pPic->iLinesize[2] = iPicChromaWidth; in AllocPicture()
92 pPic->pBuffer[0] = static_cast<uint8_t*> (pMa->WelsMallocz (iLumaSize /* luma */ in AllocPicture()
[all …]
Dmanage_dec_ref.cpp59 static int32_t AddShortTermToList (PRefPic pRefPic, PPicture pPic);
60 static int32_t AddLongTermToList (PRefPic pRefPic, PPicture pPic, int32_t iLongTermFrameIdx, uint32…
395 PPicture pPic = NULL; in WelsReorderRefList() local
462 pPic = ppRefList[i]; in WelsReorderRefList()
470 ppRefList[iReorderingIndex] = pPic; in WelsReorderRefList()
687 PPicture pPic = NULL; in MMCOProcess() local
693 pPic = WelsDelShortFromListSetUnref (pRefPic, iShortFrameNum); in MMCOProcess()
694 if (pPic == NULL) { in MMCOProcess()
699 pPic = WelsDelLongFromListSetUnref (pRefPic, uiLongTermPicNum); in MMCOProcess()
700 if (pPic == NULL) { in MMCOProcess()
[all …]
Ddecoder.cpp61 extern void FreePicture (PPicture pPic, CMemoryAlign* pMa);
89 PPicture pPic = AllocPicture (pCtx, kiPicWidth, kiPicHeight); in CreatePicBuff() local
90 if (NULL == pPic) { in CreatePicBuff()
96 pPicBuf->ppPic[iPicIdx] = pPic; in CreatePicBuff()
133 PPicture pPic = AllocPicture (pCtx, kiPicWidth, kiPicHeight); in IncreasePicBuff() local
134 if (NULL == pPic) { in IncreasePicBuff()
140 pPicNewBuf->ppPic[iPicIdx] = pPic; in IncreasePicBuff()
270 PPicture pPic = pPicBuf->ppPic[iPicIdx]; in DestroyPicBuff() local
271 if (pPic != NULL) { in DestroyPicBuff()
272 FreePicture (pPic, pMa); in DestroyPicBuff()
[all …]
Ddecoder_core.cpp49 PPicture pPic = pCtx->pDec; in DecodeFrameConstruction() local
57 if (pPic->bNewSeqBegin) { in DecodeFrameConstruction()
209 pDstInfo->uiOutYuvTimeStamp = pPic->uiTimeStamp; in DecodeFrameConstruction()
210 ppDst[0] = pPic->pData[0]; in DecodeFrameConstruction()
211 ppDst[1] = pPic->pData[1]; in DecodeFrameConstruction()
212 ppDst[2] = pPic->pData[2]; in DecodeFrameConstruction()
218 pDstInfo->UsrData.sSystemBuffer.iStride[0] = pPic->iLinesize[0]; in DecodeFrameConstruction()
219 pDstInfo->UsrData.sSystemBuffer.iStride[1] = pPic->iLinesize[1]; in DecodeFrameConstruction()
220 …ppDst[0] = ppDst[0] + pCtx->sFrameCrop.iTopOffset * 2 * pPic->iLinesize[0] + pCtx->sFrameCrop.iLef… in DecodeFrameConstruction()
221 …ppDst[1] = ppDst[1] + pCtx->sFrameCrop.iTopOffset * pPic->iLinesize[1] + pCtx->sFrameCrop.iLeftOf… in DecodeFrameConstruction()
[all …]
Ddecode_slice.cpp55 extern void FreePicture (PPicture pPic, CMemoryAlign* pMa);
/third_party/openh264/codec/decoder/plus/src/
DwelsDecoderExt.cpp1083 … PPicture pPic = pPicBuff->ppPic[m_sPictInfoList[m_sReoderingStatus.iPictInfoIndex].iPicBuffIdx]; in ReleaseBufferedReadyPictureReorder() local
1084 --pPic->iRefCount; in ReleaseBufferedReadyPictureReorder()
1136 … PPicture pPic = pPicBuff->ppPic[m_sPictInfoList[m_sReoderingStatus.iPictInfoIndex].iPicBuffIdx]; in ReleaseBufferedReadyPictureReorder() local
1137 --pPic->iRefCount; in ReleaseBufferedReadyPictureReorder()
1182 … PPicture pPic = pPicBuff->ppPic[m_sPictInfoList[m_sReoderingStatus.iPictInfoIndex].iPicBuffIdx]; in ReleaseBufferedReadyPictureNoReorder() local
1183 --pPic->iRefCount; in ReleaseBufferedReadyPictureNoReorder()