MCPcopy Create free account
hub / github.com/cisco/openh264 / WelsInitSubsetSps

Function WelsInitSubsetSps

codec/encoder/core/src/au_set.cpp:566–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

564
565
566int32_t WelsInitSubsetSps (SSubsetSps* pSubsetSps, SSpatialLayerConfig* pLayerParam,
567 SSpatialLayerInternal* pLayerParamInternal,
568 const uint32_t kuiIntraPeriod, const int32_t kiNumRefFrame,
569 const uint32_t kuiSpsId, const bool kbEnableFrameCropping, bool bEnableRc,
570 const int32_t kiDlayerCount) {
571 SWelsSPS* pSps = &pSubsetSps->pSps;
572
573 memset (pSubsetSps, 0, sizeof (SSubsetSps));
574
575 WelsInitSps (pSps, pLayerParam, pLayerParamInternal, kuiIntraPeriod, kiNumRefFrame, kuiSpsId, kbEnableFrameCropping,
576 bEnableRc, kiDlayerCount, false);
577
578 pSps->uiProfileIdc = pLayerParam->uiProfileIdc ;
579
580 pSubsetSps->sSpsSvcExt.iExtendedSpatialScalability = 0; /* ESS is 0 in default */
581 pSubsetSps->sSpsSvcExt.bAdaptiveTcoeffLevelPredFlag = false;
582 pSubsetSps->sSpsSvcExt.bSeqTcoeffLevelPredFlag = false;
583 pSubsetSps->sSpsSvcExt.bSliceHeaderRestrictionFlag = true;
584
585 return 0;
586}
587
588int32_t WelsInitPps (SWelsPPS* pPps,
589 SWelsSPS* pSps,

Callers 2

WelsGenerateNewSpsFunction · 0.85
FindExistingSpsFunction · 0.85

Calls 1

WelsInitSpsFunction · 0.85

Tested by

no test coverage detected