/third_party/openh264/codec/decoder/core/src/ |
D | decoder.cpp | 59 extern PPicture AllocPicture (PWelsDecoderContext pCtx, const int32_t kiPicWidth, const int32_t kiP… 63 static int32_t CreatePicBuff (PWelsDecoderContext pCtx, PPicBuff* ppPicBuf, const int32_t kiSize, in CreatePicBuff() argument 72 CMemoryAlign* pMa = pCtx->pMemAlign; in CreatePicBuff() 84 DestroyPicBuff (pCtx, &pPicBuf, pMa); in CreatePicBuff() 89 PPicture pPic = AllocPicture (pCtx, kiPicWidth, kiPicHeight); in CreatePicBuff() 93 DestroyPicBuff (pCtx, &pPicBuf, pMa); in CreatePicBuff() 107 static int32_t IncreasePicBuff (PWelsDecoderContext pCtx, PPicBuff* ppPicBuf, const int32_t kiOldSi… in IncreasePicBuff() argument 116 CMemoryAlign* pMa = pCtx->pMemAlign; in IncreasePicBuff() 127 DestroyPicBuff (pCtx, &pPicNewBuf, pMa); in IncreasePicBuff() 133 PPicture pPic = AllocPicture (pCtx, kiPicWidth, kiPicHeight); in IncreasePicBuff() [all …]
|
D | decoder_core.cpp | 47 static inline int32_t DecodeFrameConstruction (PWelsDecoderContext pCtx, uint8_t** ppDst, SBufferIn… in DecodeFrameConstruction() argument 48 PDqLayer pCurDq = pCtx->pCurDqLayer; in DecodeFrameConstruction() 49 PPicture pPic = pCtx->pDec; in DecodeFrameConstruction() 58 …memcpy (& (pCtx->sFrameCrop), & (pCurDq->sLayerInfo.sSliceInLayer.sSliceHeaderExt.sSliceHeader.pSp… in DecodeFrameConstruction() 61 pCtx->bParamSetsLostFlag = false; in DecodeFrameConstruction() 63 pCtx->bReferenceLostAtT0Flag = false; // need initialize it due new seq, 6/4/2010 in DecodeFrameConstruction() 65 if (pCtx->iTotalNumMbRec == kiTotalNumMbInCurLayer) { in DecodeFrameConstruction() 66 pCtx->bPrintFrameErrorTraceFlag = true; in DecodeFrameConstruction() 67 WelsLog (& (pCtx->sLogCtx), WELS_LOG_INFO, in DecodeFrameConstruction() 69 …kiWidth, kiHeight, pCtx->sFrameCrop.iLeftOffset, pCtx->sFrameCrop.iRightOffset, pCtx->sFrameCrop.i… in DecodeFrameConstruction() [all …]
|
D | error_concealment.cpp | 43 void InitErrorCon (PWelsDecoderContext pCtx) { in InitErrorCon() argument 44 if ((pCtx->pParam->eEcActiveIdc == ERROR_CON_SLICE_COPY) in InitErrorCon() 45 || (pCtx->pParam->eEcActiveIdc == ERROR_CON_SLICE_COPY_CROSS_IDR) in InitErrorCon() 46 || (pCtx->pParam->eEcActiveIdc == ERROR_CON_SLICE_MV_COPY_CROSS_IDR) in InitErrorCon() 47 || (pCtx->pParam->eEcActiveIdc == ERROR_CON_SLICE_MV_COPY_CROSS_IDR_FREEZE_RES_CHANGE) in InitErrorCon() 48 || (pCtx->pParam->eEcActiveIdc == ERROR_CON_SLICE_COPY_CROSS_IDR_FREEZE_RES_CHANGE)) { in InitErrorCon() 49 if ((pCtx->pParam->eEcActiveIdc != ERROR_CON_SLICE_MV_COPY_CROSS_IDR_FREEZE_RES_CHANGE) in InitErrorCon() 50 && (pCtx->pParam->eEcActiveIdc != ERROR_CON_SLICE_COPY_CROSS_IDR_FREEZE_RES_CHANGE)) { in InitErrorCon() 51 pCtx->bFreezeOutput = false; in InitErrorCon() 53 pCtx->sCopyFunc.pCopyLumaFunc = WelsCopy16x16_c; in InitErrorCon() [all …]
|
D | manage_dec_ref.cpp | 54 static int32_t MMCO (PWelsDecoderContext pCtx, PRefPic pRefPic, PRefPicMarking pRefPicMarking); 55 static int32_t MMCOProcess (PWelsDecoderContext pCtx, PRefPic pRefPic, uint32_t uiMmcoType, 57 static int32_t SlidingWindow (PWelsDecoderContext pCtx, PRefPic pRefPic); 63 static int32_t WelsCheckAndRecoverForFutureDecoding (PWelsDecoderContext pCtx); 67 static int32_t RemainOneBufferInDpbForEC (PWelsDecoderContext pCtx, PRefPic pRefPic); 104 void WelsResetRefPic (PWelsDecoderContext pCtx) { in WelsResetRefPic() argument 106 PRefPic pRefPic = &pCtx->sRefPic; in WelsResetRefPic() 107 pCtx->sRefPic.uiLongRefCount[LIST_0] = pCtx->sRefPic.uiShortRefCount[LIST_0] = 0; in WelsResetRefPic() 129 void WelsResetRefPicWithoutUnRef (PWelsDecoderContext pCtx) { in WelsResetRefPicWithoutUnRef() argument 131 PRefPic pRefPic = &pCtx->sRefPic; in WelsResetRefPicWithoutUnRef() [all …]
|
D | au_parser.cpp | 108 uint8_t* ParseNalHeader (PWelsDecoderContext pCtx, SNalUnitHeader* pNalUnitHeader, uint8_t* pSrcRbs… in ParseNalHeader() argument 117 SDataBuffer* pSavedData = &pCtx->sSavedData; in ParseNalHeader() 118 SLogContext* pLogCtx = & (pCtx->sLogCtx); in ParseNalHeader() 139 pCtx->iErrorCode |= dsBitstreamError; in ParseNalHeader() 151 … || IS_AU_DELIMITER_NAL (pNalUnitHeader->eNalUnitType) || pCtx->sSpsPpsCtx.bSpsExistAheadFlag)) { in ParseNalHeader() 152 if (pCtx->bPrintFrameErrorTraceFlag && pCtx->sSpsPpsCtx.iSpsErrorIgnored == 0) { in ParseNalHeader() 157 pCtx->sSpsPpsCtx.iSpsErrorIgnored++; in ParseNalHeader() 159 pCtx->pDecoderStatistics->iSpsNoExistNalNum++; in ParseNalHeader() 160 pCtx->iErrorCode = dsNoParamSets; in ParseNalHeader() 163 pCtx->sSpsPpsCtx.iSpsErrorIgnored = 0; in ParseNalHeader() [all …]
|
D | parse_mb_syn_cabac.cpp | 72 static uint32_t DecodeCabacIntraMbType (PWelsDecoderContext pCtx, PWelsNeighAvail pNeighAvail, int … in DecodeCabacIntraMbType() argument 76 PWelsCabacDecEngine pCabacDecEngine = pCtx->pCabacDecEngine; in DecodeCabacIntraMbType() 77 PWelsCabacCtx pBinCtx = pCtx->pCabacCtx + ctx_base; in DecodeCabacIntraMbType() 224 int32_t ParseEndOfSliceCabac (PWelsDecoderContext pCtx, uint32_t& uiBinVal) { in ParseEndOfSliceCabac() argument 226 WELS_READ_VERIFY (DecodeTerminateCabac (pCtx->pCabacDecEngine, uiBinVal)); in ParseEndOfSliceCabac() 230 int32_t ParseSkipFlagCabac (PWelsDecoderContext pCtx, PWelsNeighAvail pNeighAvail, uint32_t& uiSkip… in ParseSkipFlagCabac() argument 235 if (B_SLICE == pCtx->eSliceType) in ParseSkipFlagCabac() 237 PWelsCabacCtx pBinCtx = (pCtx->pCabacCtx + iCtxInc); in ParseSkipFlagCabac() 238 WELS_READ_VERIFY (DecodeBinCabac (pCtx->pCabacDecEngine, pBinCtx, uiSkip)); in ParseSkipFlagCabac() 243 int32_t ParseMBTypeISliceCabac (PWelsDecoderContext pCtx, PWelsNeighAvail pNeighAvail, uint32_t& ui… in ParseMBTypeISliceCabac() argument [all …]
|
D | decode_slice.cpp | 57 extern PPicture AllocPicture (PWelsDecoderContext pCtx, const int32_t kiPicWidth, const int32_t kiP… 59 static bool CheckRefPics (const PWelsDecoderContext& pCtx) { in CheckRefPics() argument 61 if (pCtx->eSliceType == B_SLICE) { in CheckRefPics() 65 int32_t shortRefCount = pCtx->sRefPic.uiShortRefCount[list]; in CheckRefPics() 67 if (!pCtx->sRefPic.pShortRefList[list][refIdx]) { in CheckRefPics() 71 int32_t longRefCount = pCtx->sRefPic.uiLongRefCount[list]; in CheckRefPics() 73 if (!pCtx->sRefPic.pLongRefList[list][refIdx]) { in CheckRefPics() 81 int32_t WelsTargetSliceConstruction (PWelsDecoderContext pCtx) { in WelsTargetSliceConstruction() argument 82 PDqLayer pCurDqLayer = pCtx->pCurDqLayer; in WelsTargetSliceConstruction() 92 PFmo pFmo = pCtx->pFmo; in WelsTargetSliceConstruction() [all …]
|
D | rec_mb.cpp | 47 void WelsFillRecNeededMbInfo (PWelsDecoderContext pCtx, bool bOutput, PDqLayer pCurDqLayer) { in WelsFillRecNeededMbInfo() argument 48 PPicture pCurPic = pCtx->pDec; in WelsFillRecNeededMbInfo() 64 int32_t RecI8x8Mb (int32_t iMbXy, PWelsDecoderContext pCtx, int16_t* pScoeffLevel, PDqLayer pDqLaye… in RecI8x8Mb() argument 65 RecI8x8Luma (iMbXy, pCtx, pScoeffLevel, pDqLayer); in RecI8x8Mb() 66 RecI4x4Chroma (iMbXy, pCtx, pScoeffLevel, pDqLayer); in RecI8x8Mb() 70 int32_t RecI8x8Luma (int32_t iMbXy, PWelsDecoderContext pCtx, int16_t* pScoeffLevel, PDqLayer pDqLa… in RecI8x8Luma() argument 76 int32_t* pBlockOffset = pCtx->iDecBlockOffsetArray; in RecI8x8Luma() 77 PGetIntraPred8x8Func* pGetI8x8LumaPredFunc = pCtx->pGetI8x8LumaPredFunc; in RecI8x8Luma() 82 PIdctResAddPredFunc pIdctResAddPredFunc = pCtx->pIdctResAddPredFunc8x8; in RecI8x8Luma() 117 int32_t RecI4x4Mb (int32_t iMBXY, PWelsDecoderContext pCtx, int16_t* pScoeffLevel, PDqLayer pDqLaye… in RecI4x4Mb() argument [all …]
|
/third_party/openh264/codec/encoder/core/src/ |
D | ref_list_mgr_svc.cpp | 66 void WelsResetRefList (sWelsEncCtx* pCtx) { in WelsResetRefList() argument 67 SRefList* pRefList = pCtx->ppRefPicListExt[pCtx->uiDependencyId]; in WelsResetRefList() 72 for (i = 0; i < pCtx->pSvcParam->iLTRRefNum + 1; i++) in WelsResetRefList() 74 for (i = 0; i < pCtx->pSvcParam->iNumRefFrame + 1; i++) in WelsResetRefList() 82 static inline void DeleteLTRFromLongList (sWelsEncCtx* pCtx, int32_t iIdx) { in DeleteLTRFromLongList() argument 83 SRefList* pRefList = pCtx->ppRefPicListExt[pCtx->uiDependencyId]; in DeleteLTRFromLongList() 93 static inline void DeleteSTRFromShortList (sWelsEncCtx* pCtx, int32_t iIdx) { in DeleteSTRFromShortList() argument 94 SRefList* pRefList = pCtx->ppRefPicListExt[pCtx->uiDependencyId]; in DeleteSTRFromShortList() 104 static void DeleteNonSceneLTR (sWelsEncCtx* pCtx) { in DeleteNonSceneLTR() argument 105 SRefList* pRefList = pCtx->ppRefPicListExt[pCtx->uiDependencyId]; in DeleteNonSceneLTR() [all …]
|
D | encoder_ext.cpp | 62 int32_t WelsCodeOnePicPartition (sWelsEncCtx* pCtx, 1799 sWelsEncCtx* pCtx = *ppCtx; in FreeMemorySvc() local 1800 CMemoryAlign* pMa = pCtx->pMemAlign; in FreeMemorySvc() 1801 SWelsSvcCodingParam* pParam = pCtx->pSvcParam; in FreeMemorySvc() 1805 if (NULL != pCtx->pStrideTab) { in FreeMemorySvc() 1806 if (NULL != pCtx->pStrideTab->pStrideDecBlockOffset[0][1]) { in FreeMemorySvc() 1807 pMa->WelsFree (pCtx->pStrideTab->pStrideDecBlockOffset[0][1], "pBase"); in FreeMemorySvc() 1808 pCtx->pStrideTab->pStrideDecBlockOffset[0][1] = NULL; in FreeMemorySvc() 1810 pMa->WelsFree (pCtx->pStrideTab, "SStrideTables"); in FreeMemorySvc() 1811 pCtx->pStrideTab = NULL; in FreeMemorySvc() [all …]
|
D | slice_multi_threading.cpp | 168 void DynamicAdjustSlicing (sWelsEncCtx* pCtx, in DynamicAdjustSlicing() argument 183 SWelsSvcRc* pWelsSvcRc = &pCtx->pWelsSvcRc[iCurDid]; in DynamicAdjustSlicing() 184 if (pCtx->pSvcParam->iRCMode != RC_OFF_MODE) { in DynamicAdjustSlicing() 188 WelsLog (& (pCtx->sLogCtx), WELS_LOG_ERROR, in DynamicAdjustSlicing() 209 …MT_TRACE_LOG (& (pCtx->sLogCtx), WELS_LOG_DEBUG, "[MT] DynamicAdjustSlicing(), iDid= %d, iCountNum… in DynamicAdjustSlicing() 217 if (pCtx->pSvcParam->iRCMode != RC_OFF_MODE) { in DynamicAdjustSlicing() 235 MT_TRACE_LOG (& (pCtx->sLogCtx), WELS_LOG_DEBUG, in DynamicAdjustSlicing() 244 MT_TRACE_LOG (& (pCtx->sLogCtx), WELS_LOG_DEBUG, in DynamicAdjustSlicing() 429 int32_t AppendSliceToFrameBs (sWelsEncCtx* pCtx, SLayerBSInfo* pLbi, const int32_t iSliceCount) { in AppendSliceToFrameBs() argument 430 SSlice** ppSliceInlayer = pCtx->pCurDqLayer->ppSliceInLayer; in AppendSliceToFrameBs() [all …]
|
D | paraset_strategy.cpp | 78 static int32_t WelsGenerateNewSps (sWelsEncCtx* pCtx, const bool kbUseSubsetSps, const int32_t iDla… in WelsGenerateNewSps() argument 84 pSps = & (pCtx->pSpsArray[kiSpsId]); in WelsGenerateNewSps() 86 pSubsetSps = & (pCtx->pSubsetArray[kiSpsId]); in WelsGenerateNewSps() 90 SWelsSvcCodingParam* pParam = pCtx->pSvcParam; in WelsGenerateNewSps() 265 uint32_t CWelsParametersetIdConstant::GenerateNewSps (sWelsEncCtx* pCtx, const bool kbUseSubsetSps, in GenerateNewSps() argument 269 WelsGenerateNewSps (pCtx, kbUseSubsetSps, iDlayerIndex, in GenerateNewSps() 276 uint32_t CWelsParametersetIdConstant::InitPps (sWelsEncCtx* pCtx, uint32_t kiSpsId, in InitPps() argument 283 …WelsInitPps (& pCtx->pPPSArray[kuiPpsId], pSps, pSubsetSps, kuiPpsId, true, kbUsingSubsetSps, kbEn… in InitPps() 293 int32_t* pPpsIdList, sWelsEncCtx* pCtx, SExistingParasetList* pExistingParasetList) { in OutputCurrentStructure() argument 462 int32_t CWelsParametersetSpsListing::SpsReset (sWelsEncCtx* pCtx, bool kbUseSubsetSps) { in SpsReset() argument [all …]
|
D | svc_encode_slice.cpp | 53 typedef int32_t (*PWelsCodingSliceFunc) (sWelsEncCtx* pCtx, SSlice* pSlice); 54 typedef void (*PWelsSliceHeaderWriteFunc) (sWelsEncCtx* pCtx, SBitStringAux* pBs, SDqLayer* pCurLay… 275 void WelsSliceHeaderWrite (sWelsEncCtx* pCtx, SBitStringAux* pBs, SDqLayer* pCurLayer, SSlice* pSli… in WelsSliceHeaderWrite() argument 330 WelsLog (&pCtx->sLogCtx, WELS_LOG_ERROR, "Invalid uiDisableDeblockingFilterIdc %d", in WelsSliceHeaderWrite() 341 void WelsSliceHeaderExtWrite (sWelsEncCtx* pCtx, SBitStringAux* pBs, SDqLayer* pCurLayer, SSlice* p… in WelsSliceHeaderExtWrite() argument 494 void OutputPMbWithoutConstructCsRsNoCopy (sWelsEncCtx* pCtx, SDqLayer* pDq, SSlice* pSlice, SMB* pM… in OutputPMbWithoutConstructCsRsNoCopy() argument 504 PIDctFunc pfIdctFour4x4 = pCtx->pFuncList->pfIDctFourT4; in OutputPMbWithoutConstructCsRsNoCopy() 975 int32_t InitAllSlicesInThread (sWelsEncCtx* pCtx) { in InitAllSlicesInThread() argument 976 SDqLayer* pCurDqLayer = pCtx->pCurDqLayer; in InitAllSlicesInThread() 988 for (; iSlcBuffIdx < pCtx->iActiveThreadsNum; iSlcBuffIdx++) { in InitAllSlicesInThread() [all …]
|
/third_party/openh264/test/encoder/ |
D | EncUT_SliceBufferReallocate.cpp | 16 extern int32_t ExtendLayerBuffer (sWelsEncCtx* pCtx, 21 int32_t RandAvailableThread (sWelsEncCtx* pCtx, const int32_t kiMinBufferNum) { in RandAvailableThread() argument 28 if (NULL == pCtx || NULL == pCtx->pCurDqLayer || pCtx->iActiveThreadsNum <= 0) { in RandAvailableThread() 32 for (int32_t iThrdIdx = 0; iThrdIdx < pCtx->iActiveThreadsNum; iThrdIdx++) { in RandAvailableThread() 33 iCodedSlcNum = pCtx->pCurDqLayer->sSliceBufferInfo[iThrdIdx].iCodedSliceNum; in RandAvailableThread() 34 iMaxSlcNumInThrd = pCtx->pCurDqLayer->sSliceBufferInfo[iThrdIdx].iMaxSliceNum; in RandAvailableThread() 50 int32_t AllocateLayerBuffer (sWelsEncCtx* pCtx, const int32_t iLayerIdx) { in AllocateLayerBuffer() argument 51 SSpatialLayerConfig* pLayerCfg = &pCtx->pSvcParam->sSpatialLayers[iLayerIdx]; in AllocateLayerBuffer() 52 SDqLayer* pDqLayer = (SDqLayer*)pCtx->pMemAlign->WelsMallocz (sizeof (SDqLayer), "pDqLayer"); in AllocateLayerBuffer() 59 int32_t iRet = InitSliceInLayer (pCtx, pDqLayer, iLayerIdx, pCtx->pMemAlign); in AllocateLayerBuffer() [all …]
|
/third_party/openh264/codec/processing/src/common/ |
D | WelsFrameWorkEx.cpp | 39 EResult Init (void* pCtx, int32_t iType, void* pCfg) { in Init() argument 40 return pCtx ? WelsStaticCast (IWelsVP*, pCtx)->Init (iType, pCfg) : RET_INVALIDPARAM; in Init() 42 EResult Uninit (void* pCtx, int32_t iType) { in Uninit() argument 43 return pCtx ? WelsStaticCast (IWelsVP*, pCtx)->Uninit (iType) : RET_INVALIDPARAM; in Uninit() 45 EResult Flush (void* pCtx, int32_t iType) { in Flush() argument 46 return pCtx ? WelsStaticCast (IWelsVP*, pCtx)->Flush (iType) : RET_INVALIDPARAM; in Flush() 48 EResult Process (void* pCtx, int32_t iType, SPixMap* pSrc, SPixMap* dst) { in Process() argument 49 return pCtx ? WelsStaticCast (IWelsVP*, pCtx)->Process (iType, pSrc, dst) : RET_INVALIDPARAM; in Process() 51 EResult Get (void* pCtx, int32_t iType, void* pParam) { in Get() argument 52 return pCtx ? WelsStaticCast (IWelsVP*, pCtx)->Get (iType, pParam) : RET_INVALIDPARAM; in Get() [all …]
|
/third_party/openh264/codec/decoder/core/inc/ |
D | decoder_core.h | 57 int32_t InitBsBuffer (PWelsDecoderContext pCtx); 66 int32_t ExpandBsBuffer (PWelsDecoderContext pCtx, const int32_t kiSrcLen); 76 int32_t ExpandBsLenBuffer (PWelsDecoderContext pCtx, const int32_t kiCurrLen); 82 int32_t CheckBsBuffer (PWelsDecoderContext pCtx, const int32_t kiSrcLen); 92 int32_t WelsInitStaticMemory (PWelsDecoderContext pCtx); 99 void WelsFreeStaticMemory (PWelsDecoderContext pCtx); 104 int32_t InitialDqLayersContext (PWelsDecoderContext pCtx, const int32_t kiMaxWidth, const int32_t k… 109 void UninitialDqLayersContext (PWelsDecoderContext pCtx); 124 int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, const bool kbExtensio… 130 bool PrefetchNalHeaderExtSyntax (PWelsDecoderContext pCtx, PNalUnit const kpDst, PNalUnit const kpS… [all …]
|
D | decode_slice.h | 40 int32_t WelsActualDecodeMbCavlcISlice (PWelsDecoderContext pCtx); 41 int32_t WelsDecodeMbCavlcISlice (PWelsDecoderContext pCtx, PNalUnit pNalCur, uint32_t& uiEosFlag); 43 int32_t WelsActualDecodeMbCavlcPSlice (PWelsDecoderContext pCtx); 44 int32_t WelsDecodeMbCavlcPSlice (PWelsDecoderContext pCtx, PNalUnit pNalCur, uint32_t& uiEosFlag); 46 int32_t WelsActualDecodeMbCavlcBSlice (PWelsDecoderContext pCtx); 47 int32_t WelsDecodeMbCavlcBSlice (PWelsDecoderContext pCtx, PNalUnit pNalCur, uint32_t& uiEosFlag); 49 typedef int32_t (*PWelsDecMbFunc) (PWelsDecoderContext pCtx, PNalUnit pNalCur, uint32_t& uiEosFlag); 51 int32_t WelsDecodeMbCabacISlice (PWelsDecoderContext pCtx, PNalUnit pNalCur, uint32_t& uiEosFlag); 52 int32_t WelsDecodeMbCabacPSlice (PWelsDecoderContext pCtx, PNalUnit pNalCur, uint32_t& uiEosFlag); 53 int32_t WelsDecodeMbCabacBSlice (PWelsDecoderContext pCtx, PNalUnit pNalCur, uint32_t& uiEosFlag); [all …]
|
D | parse_mb_syn_cabac.h | 45 int32_t ParseEndOfSliceCabac (PWelsDecoderContext pCtx, uint32_t& uiBinVal); 46 int32_t ParseSkipFlagCabac (PWelsDecoderContext pCtx, PWelsNeighAvail pNeighAvail, uint32_t& uiSkip… 47 int32_t ParseMBTypeISliceCabac (PWelsDecoderContext pCtx, PWelsNeighAvail pNeighAvail, uint32_t& ui… 48 int32_t ParseMBTypePSliceCabac (PWelsDecoderContext pCtx, PWelsNeighAvail pNeighAvail, uint32_t& ui… 49 int32_t ParseMBTypeBSliceCabac (PWelsDecoderContext pCtx, PWelsNeighAvail pNeighAvail, uint32_t& ui… 50 int32_t ParseTransformSize8x8FlagCabac (PWelsDecoderContext pCtx, PWelsNeighAvail pNeighAvail, 52 int32_t ParseSubMBTypeCabac (PWelsDecoderContext pCtx, PWelsNeighAvail pNeighAvail, uint32_t& uiSub… 53 int32_t ParseBSubMBTypeCabac (PWelsDecoderContext pCtx, PWelsNeighAvail pNeighAvail, uint32_t& uiSu… 54 int32_t ParseIntraPredModeLumaCabac (PWelsDecoderContext pCtx, int32_t& iBinVal); 55 int32_t ParseIntraPredModeChromaCabac (PWelsDecoderContext pCtx, uint8_t uiNeighAvail, int32_t& iBi… [all …]
|
D | decoder.h | 55 int32_t DecoderConfigParam (PWelsDecoderContext pCtx, const SDecodingParam* kpParam); 60 void WelsDecoderDefaults (PWelsDecoderContext pCtx, SLogContext* pLogCtx); 91 int32_t WelsInitDecoder (PWelsDecoderContext pCtx, SLogContext* pLogCtx); 104 void WelsEndDecoder (PWelsDecoderContext pCtx); 123 int32_t WelsDecodeBs (PWelsDecoderContext pCtx, const uint8_t* kpBsBuf, const int32_t kiBsLen, 129 int32_t WelsRequestMem (PWelsDecoderContext pCtx, const int32_t kiMbWidth, const int32_t kiMbHeight, 136 void WelsFreeDynamicMemory (PWelsDecoderContext pCtx); 147 int32_t SyncPictureResolutionExt (PWelsDecoderContext pCtx, const int32_t kiMbWidth, const int32_t … 154 void InitPredFunc (PWelsDecoderContext pCtx, uint32_t uiCpuFlag); 161 void InitDecFuncs (PWelsDecoderContext pCtx, uint32_t uiCpuFlag); [all …]
|
D | error_concealment.h | 47 void InitErrorCon (PWelsDecoderContext pCtx); 49 void DoErrorConFrameCopy (PWelsDecoderContext pCtx); 51 void DoErrorConSliceCopy (PWelsDecoderContext pCtx); 53 void DoMbECMvCopy (PWelsDecoderContext pCtx, PPicture pDec, PPicture pRef, int32_t iMbXy, int32_t i… 55 void GetAvilInfoFromCorrectMb (PWelsDecoderContext pCtx); 56 void DoErrorConSliceMVCopy (PWelsDecoderContext pCtx); 58 int32_t MarkECFrameAsRef (PWelsDecoderContext pCtx); 60 bool NeedErrorCon (PWelsDecoderContext pCtx); 63 void ImplementErrorCon (PWelsDecoderContext pCtx);
|
/third_party/openh264/codec/decoder/plus/src/ |
D | welsDecoderExt.cpp | 102 if (pThrCtx->pCtx->pLastThreadCtx != NULL) { in ConstructAccessUnit() 103 PWelsDecoderThreadCTX pLastThreadCtx = (PWelsDecoderThreadCTX) (pThrCtx->pCtx->pLastThreadCtx); in ConstructAccessUnit() 108 if (GetThreadCount (pThrCtx->pCtx) > 1) { in ConstructAccessUnit() 111 …iRet |= pWelsDecoder->DecodeFrame2WithCtx (pThrCtx->pCtx, NULL, 0, pThrCtx->ppDst, &pThrCtx->sDstI… in ConstructAccessUnit() 286 if (m_pDecThrCtx[i].pCtx != NULL) { in UninitDecoder() 288 WelsResetRefPicWithoutUnRef (m_pDecThrCtx[i].pCtx); in UninitDecoder() 290 UninitDecoderCtx (m_pDecThrCtx[i].pCtx); in UninitDecoder() 345 void CWelsDecoder::UninitDecoderCtx (PWelsDecoderContext& pCtx) { in UninitDecoderCtx() argument 346 if (pCtx != NULL) { in UninitDecoderCtx() 351 WelsEndDecoder (pCtx); in UninitDecoderCtx() [all …]
|
/third_party/openh264/test/decoder/ |
D | DecUT_ErrorConcealment.cpp | 19 PWelsDecoderContext pCtx; member 29 if (pECCtx->pCtx != NULL) { in FreeInputData() 30 WELS_SAFE_FREE (pECCtx->pCtx->pParam, "pECCtx->pCtx->pParam"); in FreeInputData() 31 WELS_SAFE_FREE (pECCtx->pCtx->pSps, "pECCtx->pCtx->pSps"); in FreeInputData() 32 WELS_SAFE_FREE (pECCtx->pCtx, "pECCtx->pCtx"); in FreeInputData() 87 pECCtx->pCtx = (PWelsDecoderContext) WelsMallocz (sizeof (SWelsDecoderContext), "pECCtx->pCtx"); in InitAndAllocInputData() 88 if (pECCtx->pCtx == NULL) in InitAndAllocInputData() 91 pECCtx->pCtx->pDec = &pECCtx->sWelsPic; in InitAndAllocInputData() 92 pECCtx->pCtx->pCurDqLayer = &pECCtx->sDqLayer; in InitAndAllocInputData() 93 pECCtx->pCtx->pCurDqLayer->pMbCorrectlyDecodedFlag = pECCtx->pMbCorrectlyDecodedFlag; in InitAndAllocInputData() [all …]
|
D | DecUT_ParseSyntax.cpp | 25 PWelsDecoderContext pCtx) { in DecodeFrame() argument 26 PWelsDecoderContext m_pDecContext = pCtx; in DecodeFrame() 67 void UninitDecoder (PWelsDecoderContext& pCtx) { in UninitDecoder() argument 68 if (NULL == pCtx) in UninitDecoder() 71 WelsEndDecoder (pCtx); in UninitDecoder() 72 if (NULL != pCtx->pMemAlign) { in UninitDecoder() 73 delete pCtx->pMemAlign; in UninitDecoder() 74 pCtx->pMemAlign = NULL; in UninitDecoder() 76 if (NULL != pCtx) { in UninitDecoder() 77 free (pCtx); in UninitDecoder() [all …]
|
/third_party/openh264/codec/encoder/core/inc/ |
D | rc.h | 244 typedef void (*PWelsRCPictureInitFunc) (sWelsEncCtx* pCtx,long long uiTimeStamp); 245 typedef void (*PWelsRCPictureDelayJudgeFunc) (sWelsEncCtx* pCtx,long long uiTimeStamp,int32_t iDid… 246 typedef void (*PWelsRCPictureInfoUpdateFunc) (sWelsEncCtx* pCtx, int32_t iLayerSize); 247 typedef void (*PWelsRCMBInfoUpdateFunc) (sWelsEncCtx* pCtx, SMB* pCurMb, int32_t iCostLuma, SSlice… 248 typedef void (*PWelsRCMBInitFunc) (sWelsEncCtx* pCtx, SMB* pCurMb, SSlice* pSlice); 249 typedef void (*PWelsCheckFrameSkipBasedMaxbrFunc) (sWelsEncCtx* pCtx, const long long uiTimeStamp,… 250 typedef void (*PWelsUpdateBufferWhenFrameSkippedFunc)(sWelsEncCtx* pCtx, int32_t iSpatialNum); 251 typedef void (*PWelsUpdateMaxBrCheckWindowStatusFunc)(sWelsEncCtx* pCtx, int32_t iSpatialNum, cons… 252 typedef bool (*PWelsRCPostFrameSkippingFunc)(sWelsEncCtx* pCtx, const int32_t iDid, const long lon… 268 void CheckFrameSkipBasedMaxbr (sWelsEncCtx* pCtx,const long long uiTimeStamp, int32_t iDidIdx); [all …]
|
D | paraset_strategy.h | 65 virtual void UpdatePpsList (sWelsEncCtx* pCtx) = 0; 69 …virtual uint32_t GenerateNewSps (sWelsEncCtx* pCtx, const bool kbUseSubsetSps, const int32_t iDlay… 74 virtual uint32_t InitPps (sWelsEncCtx* pCtx, uint32_t kiSpsId, 84 virtual void UpdateParaSetNum (sWelsEncCtx* pCtx) = 0; 89 … sWelsEncCtx* pCtx, SExistingParasetList* pExistingParasetList) = 0; 117 virtual void UpdatePpsList (sWelsEncCtx* pCtx) {}; in UpdatePpsList() argument 123 …virtual uint32_t GenerateNewSps (sWelsEncCtx* pCtx, const bool kbUseSubsetSps, const int32_t iDlay… 127 virtual uint32_t InitPps (sWelsEncCtx* pCtx, uint32_t kiSpsId, 137 virtual void UpdateParaSetNum (sWelsEncCtx* pCtx) {}; in UpdateParaSetNum() argument 144 sWelsEncCtx* pCtx, in OutputCurrentStructure() argument [all …]
|