/third_party/openh264/codec/encoder/core/src/ |
D | au_set.cpp | 197 int32_t WelsWriteVUI (SWelsSPS* pSps, SBitStringAux* pBitStringAux) { in WelsWriteVUI() argument 199 assert (pSps != NULL && pBitStringAux != NULL); in WelsWriteVUI() 201 BsWriteOneBit (pLocalBitStringAux, pSps->bAspectRatioPresent); //aspect_ratio_info_present_flag in WelsWriteVUI() 202 if (pSps->bAspectRatioPresent) { in WelsWriteVUI() 203 BsWriteBits (pLocalBitStringAux, 8, pSps->eAspectRatio); // aspect_ratio_idc in WelsWriteVUI() 204 if (pSps->eAspectRatio == ASP_EXT_SAR) { in WelsWriteVUI() 205 BsWriteBits (pLocalBitStringAux, 16, pSps->sAspectRatioExtWidth); // sar_width in WelsWriteVUI() 206 BsWriteBits (pLocalBitStringAux, 16, pSps->sAspectRatioExtHeight); // sar_height in WelsWriteVUI() 212 …BsWriteOneBit (pLocalBitStringAux, pSps->bVideoSignalTypePresent); //video_signal_type_present_flag in WelsWriteVUI() 213 if (pSps->bVideoSignalTypePresent) { in WelsWriteVUI() [all …]
|
D | paraset_strategy.cpp | 80 SWelsSPS*& pSps, SSubsetSps*& pSubsetSps, bool bSVCBaselayer) { in WelsGenerateNewSps() argument 84 pSps = & (pCtx->pSpsArray[kiSpsId]); in WelsGenerateNewSps() 87 pSps = &pSubsetSps->pSps; in WelsGenerateNewSps() 94 …iRet = WelsInitSps (pSps, pDlayerParam, &pParam->sDependencyLayers[iDlayerIndex], pParam->uiIntraP… in WelsGenerateNewSps() 144 if (!CheckMatchedSps (&pSubsetSps1->pSps, &pSubsetSps2->pSps)) { in CheckMatchedSubsetSps() 268 SWelsSPS*& pSps, SSubsetSps*& pSubsetSps, bool bSVCBaselayer) { in GenerateNewSps() argument 271 pSps, pSubsetSps, bSVCBaselayer); in GenerateNewSps() 277 SWelsSPS* pSps, in InitPps() argument 283 …WelsInitPps (& pCtx->pPPSArray[kuiPpsId], pSps, pSubsetSps, kuiPpsId, true, kbUsingSubsetSps, kbEn… in InitPps() 479 SWelsSPS*& pSps, SSubsetSps*& pSubsetSps, bool bSvcBaselayer) { in GenerateNewSps() argument [all …]
|
D | encoder.cpp | 241 if (pParamInternal->iFrameNum < (1 << pEncCtx->pSps->uiLog2MaxFrameNum) - 1) in UpdateFrameNum() 263 pParamInternal->iFrameNum = (1 << pEncCtx->pSps->uiLog2MaxFrameNum) - 1; in LoadBackFrameNum() 284 if (pParamInternal->iPOC < (1 << pEncCtx->pSps->iLog2MaxPocLsb) - in InitFrameCoding() 311 if (pParamInternal->iPOC < (1 << pEncCtx->pSps->iLog2MaxPocLsb) - in InitFrameCoding() 420 pSpsTmp = & (pDqLayer->sLayerInfo.pSubsetSpsP->pSps); in DumpDependencyRec() 485 SWelsSPS* pSpsTmp = (kiDid > BASE_DEPENDENCY_ID) ? & (pDqLayer->sLayerInfo.pSubsetSpsP->pSps) : in DumpRecFrame()
|
D | ref_list_mgr_svc.cpp | 156 int32_t iMaxFrameNumPlus1 = (1 << pCtx->pSps->uiLog2MaxFrameNum); in DeleteInvalidLTR() 257 int32_t iMaxFrameNumPlus1 = (1 << pCtx->pSps->uiLog2MaxFrameNum); in LTRMarkProcess() 438 int32_t iMaxFrameNumPlus1 = (1 << pCtx->pSps->uiLog2MaxFrameNum); in CheckCurMarkFrameNumUsed() 531 int32_t iMaxFrameNumPlus1 = (1 << pCtx->pSps->uiLog2MaxFrameNum); in FilterLTRRecoveryRequest() 719 iAbsDiffPicNumMinus1 += (1 << (pCtx->pSps->uiLog2MaxFrameNum)); in WelsUpdateRefSyntax() 960 int32_t iMaxFrameNum = (1 << pCtx->pSps->uiLog2MaxFrameNum); in WelsMarkPicScreen()
|
D | svc_encode_slice.cpp | 277 SWelsSPS* pSps = pCurLayer->sLayerInfo.pSpsP; in WelsSliceHeaderWrite() local 287 BsWriteBits (pBs, pSps->uiLog2MaxFrameNum, pSliceHeader->iFrameNum); in WelsSliceHeaderWrite() 293 BsWriteBits (pBs, pSps->iLog2MaxPocLsb, pSliceHeader->iPicOrderCntLsb); in WelsSliceHeaderWrite() 343 SWelsSPS* pSps = pCurLayer->sLayerInfo.pSpsP; in WelsSliceHeaderExtWrite() local 356 BsWriteBits (pBs, pSps->uiLog2MaxFrameNum, pSliceHeader->iFrameNum); in WelsSliceHeaderExtWrite() 362 BsWriteBits (pBs, pSps->iLog2MaxPocLsb, pSliceHeader->iPicOrderCntLsb); in WelsSliceHeaderExtWrite() 1154 pSHExt->sSliceHeader.pSps = pBaseSHExt->sSliceHeader.pSps; in InitSliceHeadWithBase()
|
/third_party/openh264/codec/decoder/core/src/ |
D | au_parser.cpp | 416 …& CheckNextAuNewSeq (pCtx, pCurNal, pCurNal->sNalData.sVclNal.sSliceHeaderExt.sSliceHeader.pSps)) { in ParseNalHeader() 421 … pCurAu->pNalUnitsList[uiAvailNalNum - 1]->sNalData.sVclNal.sSliceHeaderExt.sSliceHeader.pSps)) { in ParseNalHeader() 424 …n = CheckNextAuNewSeq (pCtx, pCurNal, pCurNal->sNalData.sVclNal.sSliceHeaderExt.sSliceHeader.pSps); in ParseNalHeader() 439 const PSps kpSps = pCurSliceHeader->pSps; in CheckAccessUnitBoundaryExt() 461 if (pLastSliceHeader->pSps->iSpsId != pCurSliceHeader->pSps->iSpsId) in CheckAccessUnitBoundaryExt() 488 || memcmp (pLastSliceHeader->pSps, pCurSliceHeader->pSps, sizeof (SSps)) != 0) { in CheckAccessUnitBoundaryExt() 838 bool CheckSpsActive (PWelsDecoderContext pCtx, PSps pSps, bool bUseSubsetFlag) { in CheckSpsActive() argument 840 if (pCtx->sSpsPpsCtx.pActiveLayerSps[i] == pSps) in CheckSpsActive() 845 …if (pSps->iMbWidth > 0 && pSps->iMbHeight > 0 && pCtx->sSpsPpsCtx.bSubspsAvailFlags[pSps->iSpsId])… in CheckSpsActive() 854 PSps pNextUsedSps = pNalUnit->sNalData.sVclNal.sSliceHeaderExt.sSliceHeader.pSps; in CheckSpsActive() [all …]
|
D | decoder_core.cpp | 58 …x->sFrameCrop), & (pCurDq->sLayerInfo.sSliceInLayer.sSliceHeaderExt.sSliceHeader.pSps->sFrameCrop), in DecodeFrameConstruction() 106 … pParser->iSpsWidthInPixel = (pCtx->pSps->iMbWidth << 4) - ((pCtx->pSps->sFrameCrop.iLeftOffset + in DecodeFrameConstruction() 107 pCtx->pSps->sFrameCrop.iRightOffset) << 1); in DecodeFrameConstruction() 108 … pParser->iSpsHeightInPixel = (pCtx->pSps->iMbHeight << 4) - ((pCtx->pSps->sFrameCrop.iTopOffset + in DecodeFrameConstruction() 109 pCtx->pSps->sFrameCrop.iBottomOffset) << 1); in DecodeFrameConstruction() 122 int32_t iSpsId = pCtx->pSps->iSpsId; in DecodeFrameConstruction() 329 if (pSh->pSps->uiChromaArrayType != 0) { in ParsePredWeightedTable() 361 if (pSh->pSps->uiChromaArrayType == 0) in ParsePredWeightedTable() 451 PSps pSps = pSh->pSps; in ParseRefPicListReordering() local 482 …WELS_CHECK_SE_UPPER_ERROR_NOLOG (uiCode, (uint32_t) (1 << pSps->uiLog2MaxFrameNum), "abs_diff_pic_… in ParseRefPicListReordering() [all …]
|
D | error_concealment.cpp | 94 uint32_t uiHeightInPixelY = (pCtx->pSps->iMbHeight) << 4; in DoErrorConFrameCopy() 97 pCtx->pDec->iMbEcedNum = pCtx->pSps->iMbWidth * pCtx->pSps->iMbHeight; in DoErrorConFrameCopy() 116 int32_t iMbWidth = (int32_t) pCtx->pSps->iMbWidth; in DoErrorConSliceCopy() 117 int32_t iMbHeight = (int32_t) pCtx->pSps->iMbHeight; in DoErrorConSliceCopy() 228 if (pCtx->pSps->bFrameCroppingFlag) { in DoMbECMvCopy() 261 int32_t iMbWidth = (int32_t) pCtx->pSps->iMbWidth; in GetAvilInfoFromCorrectMb() 262 int32_t iMbHeight = (int32_t) pCtx->pSps->iMbHeight; in GetAvilInfoFromCorrectMb() 379 int32_t iMbWidth = (int32_t) pCtx->pSps->iMbWidth; in DoErrorConSliceMVCopy() 380 int32_t iMbHeight = (int32_t) pCtx->pSps->iMbHeight; in DoErrorConSliceMVCopy() 455 int32_t iMbNum = pCtx->pSps->iMbWidth * pCtx->pSps->iMbHeight; in NeedErrorCon()
|
D | manage_dec_ref.cpp | 158 pRef->iSpsId = pCtx->pSps->iSpsId; in WelsCheckAndRecoverForFutureDecoding() 213 int32_t iMaxPicNum = 1 << pSliceHeader->pSps->uiLog2MaxFrameNum; in WrapShortRefPicNum() 403 int32_t iMaxPicNum = 1 << pSliceHeader->pSps->uiLog2MaxFrameNum; in WelsReorderRefList() 495 int32_t iMaxRefIdx = pCtx->pSps->iNumRefFrames; in WelsReorderRefList2() 497 const int32_t iMaxPicNum = 1 << pSliceHeader->pSps->uiLog2MaxFrameNum; in WelsReorderRefList2() 597 pDec->iSpsId = pCtx->pSps->iSpsId; in WelsMarkAsRef() 645 …ngRefCount[LIST_0] + pRefPic->uiShortRefCount[LIST_0] >= WELS_MAX (1, pCtx->pSps->iNumRefFrames)) { in WelsMarkAsRef() 660 PSps pSps = pCtx->pCurDqLayer->sLayerInfo.pSps; in MMCO() local 666 1 << pSps->uiLog2MaxFrameNum) - 1); in MMCO() 740 …ngRefCount[LIST_0] + pRefPic->uiShortRefCount[LIST_0] >= WELS_MAX (1, pCtx->pSps->iNumRefFrames)) { in MMCOProcess() [all …]
|
D | decode_slice.cpp | 86 int32_t iTotalMbTargetLayer = pSliceHeader->pSps->uiTotalMbCount; in WelsTargetSliceConstruction() 108 pCurDqLayer->pDec->iSpsId = pCtx->pSps->iSpsId; in WelsTargetSliceConstruction() 226 pCtx->pTempDec = AllocPicture (pCtx, pCtx->pSps->iMbWidth << 4, pCtx->pSps->iMbHeight << 4); in WelsMbInterConstruction() 320 pCtx->pTempDec = AllocPicture (pCtx, pCtx->pSps->iMbWidth << 4, pCtx->pSps->iMbHeight << 4); in WelsMbInterPrediction() 501 if (pCtx->pSps->uiChromaFormatIdc == 0)//no need parse chroma in ParseIntra4x4Mode() 585 if (pCtx->pSps->uiChromaFormatIdc == 0) in ParseIntra8x8Mode() 622 if (pCtx->pSps->uiChromaFormatIdc == 0) in ParseIntra16x16Mode() 669 } else if (!pCtx->pSps->uiChromaFormatIdc && ((uiMbType >= 5 && uiMbType <= 12) || (uiMbType >= 17 in WelsDecodeMbCabacISliceBaseMode0() 700 uiCbpChroma = pCtx->pSps->uiChromaFormatIdc ? uiCbp >> 4 : 0; in WelsDecodeMbCabacISliceBaseMode0() 708 uiCbpChroma = pCtx->pSps->uiChromaFormatIdc ? pCurDqLayer->pCbp[iMbXy] >> 4 : 0 ; in WelsDecodeMbCabacISliceBaseMode0() [all …]
|
D | fmo.cpp | 260 int32_t FmoParamUpdate (PFmo pFmo, PSps pSps, PPps pPps, int32_t* pActiveFmoNum, CMemoryAlign* pMa)… in FmoParamUpdate() argument 261 const uint32_t kuiMbWidth = pSps->iMbWidth; in FmoParamUpdate() 262 const uint32_t kuiMbHeight = pSps->iMbHeight; in FmoParamUpdate()
|
D | decoder.cpp | 414 …LayerSps[uiDid] = pFromCurAu->pNalUnitsList[i]->sNalData.sVclNal.sSliceHeaderExt.sSliceHeader.pSps; in CopySpsPps() 439 if ((pCtx == NULL) || (pCtx->pSps == NULL)) { in GetTargetRefListSize() 442 iNumRefFrames = pCtx->pSps->iNumRefFrames + 2; in GetTargetRefListSize() 954 pCtx->pTempDec = AllocPicture (pCtx, pCtx->pSps->iMbWidth << 4, pCtx->pSps->iMbHeight << 4); in SyncPictureResolutionExt()
|
/third_party/openh264/codec/encoder/core/inc/ |
D | au_set.h | 64 int32_t WelsWriteSpsNal (SWelsSPS* pSps, SBitStringAux* pBitStringAux, int32_t* pSpsIdDelta); 107 int32_t WelsInitSps (SWelsSPS* pSps, SSpatialLayerConfig* pLayerParam, SSpatialLayerInternal* pLaye… 139 SWelsSPS* pSps,
|
D | paraset_strategy.h | 72 … SWelsSPS*& pSps, SSubsetSps*& pSubsetSps, bool bSVCBaselayer) = 0; 75 SWelsSPS* pSps, 125 SWelsSPS*& pSps, SSubsetSps*& pSubsetSps, bool bSVCBaselayer); 128 SWelsSPS* pSps, 245 SWelsSPS*& pSps, SSubsetSps*& pSubsetSps, bool bSVCBaselayer); 272 SWelsSPS* pSps,
|
D | parameter_sets.h | 127 SWelsSPS pSps; member
|
D | slice.h | 128 SWelsSPS* pSps; member
|
D | encoder_context.h | 182 SWelsSPS* pSps; member
|
/third_party/openh264/codec/decoder/plus/src/ |
D | welsDecoderExt.cpp | 656 if (!pDecContext->pSps) { in GetOption() 659 pVuiSarInfo->uiSarWidth = pDecContext->pSps->sVui.uiSarWidth; in GetOption() 660 pVuiSarInfo->uiSarHeight = pDecContext->pSps->sVui.uiSarHeight; in GetOption() 661 pVuiSarInfo->bOverscanAppropriateFlag = pDecContext->pSps->sVui.bOverscanAppropriateFlag; in GetOption() 665 if (!pDecContext->pSps) { in GetOption() 668 iVal = (int)pDecContext->pSps->uiProfileIdc; in GetOption() 672 if (!pDecContext->pSps) { in GetOption() 675 iVal = (int)pDecContext->pSps->uiLevelIdc; in GetOption() 991 m_bIsBaseline = pCtx->pSps->uiProfileIdc == 66 || pCtx->pSps->uiProfileIdc == 83; in BufferingReadyPicture() 1197 if (pDecContext->pSps != NULL) { in ReorderPicturesInDisplay() [all …]
|
/third_party/openh264/codec/decoder/core/inc/ |
D | au_parser.h | 151 int32_t ParseVui (PWelsDecoderContext pCtx, PSps pSps, PBitStringAux pBsAux); 168 int32_t ParseScalingList (PSps pSps, PBitStringAux pBs, bool bPPS, const bool kbTrans8x8ModeFlag,
|
D | fmo.h | 100 int32_t FmoParamUpdate (PFmo pFmo, PSps pSps, PPps pPps, int32_t* pActiveFmoNum, CMemoryAlign* pMa);
|
D | decoder_core.h | 189 void WelsDqLayerDecodeStart (PWelsDecoderContext pCtx, PNalUnit pCurNal, PSps pSps, PPps pPps);
|
D | dec_frame.h | 56 …PSps pSps; // current sps based avc used, memory alloc in exter… member
|
D | slice.h | 121 PSps pSps; member
|
/third_party/openh264/test/decoder/ |
D | DecUT_ErrorConcealment.cpp | 31 WELS_SAFE_FREE (pECCtx->pCtx->pSps, "pECCtx->pCtx->pSps"); in FreeInputData() 95 pECCtx->pCtx->pSps = (PSps) WelsMallocz (sizeof (SSps), "pECCtx->pCtx->pSps"); in InitAndAllocInputData() 96 if (pECCtx->pCtx->pSps == NULL) in InitAndAllocInputData() 98 pECCtx->pCtx->pSps->iMbWidth = pECCtx->iMbWidth; in InitAndAllocInputData() 99 pECCtx->pCtx->pSps->iMbHeight = pECCtx->iMbHeight; in InitAndAllocInputData()
|
D | DecUT_DeblockCommon.cpp | 585 sDqLayer.sLayerInfo.sSliceInLayer.sSliceHeaderExt.sSliceHeader.pSps = &sSPS; in TEST() 586 sDqLayer.sLayerInfo.sSliceInLayer.sSliceHeaderExt.sSliceHeader.pSps->uiTotalMbCount = 0; in TEST() 596 sDqLayer.sLayerInfo.sSliceInLayer.sSliceHeaderExt.sSliceHeader.pSps->uiTotalMbCount = in TEST() 607 sDqLayer.sLayerInfo.sSliceInLayer.sSliceHeaderExt.sSliceHeader.pSps->uiTotalMbCount = in TEST() 616 …sDqLayer.sLayerInfo.sSliceInLayer.sSliceHeaderExt.sSliceHeader.pSps->uiTotalMbCount = 1 + rand() %… in TEST() 618 …sDqLayer.sLayerInfo.sSliceInLayer.sSliceHeaderExt.sSliceHeader.pSps->uiTotalMbCount + rand() % 256; in TEST() 622 sDqLayer.sLayerInfo.sSliceInLayer.sSliceHeaderExt.sSliceHeader.pSps->uiTotalMbCount); in TEST() 629 sDqLayer.sLayerInfo.sSliceInLayer.sSliceHeaderExt.sSliceHeader.pSps->uiTotalMbCount = in TEST()
|