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

Function WelsWriteOnePPS

codec/encoder/core/src/encoder_ext.cpp:2842–2860  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2840}
2841
2842int32_t WelsWriteOnePPS (sWelsEncCtx* pCtx, const int32_t kiPpsIdx, int32_t& iNalSize) {
2843 //TODO
2844 int32_t iNal = pCtx->pOut->iNalIndex;
2845 /* generate picture parameter set */
2846 WelsLoadNal (pCtx->pOut, NAL_UNIT_PPS, NRI_PRI_HIGHEST);
2847
2848 WelsWritePpsSyntax (&pCtx->pPPSArray[kiPpsIdx], &pCtx->pOut->sBsWrite,
2849 pCtx->pFuncList->pParametersetStrategy);
2850 WelsUnloadNal (pCtx->pOut);
2851
2852 int32_t iReturn = WelsEncodeNal (&pCtx->pOut->sNalList[iNal], NULL,
2853 pCtx->iFrameBsSize - pCtx->iPosBsBuffer,
2854 pCtx->pFrameBs + pCtx->iPosBsBuffer,
2855 &iNalSize);
2856 WELS_VERIFY_RETURN_IFNEQ (iReturn, ENC_RETURN_SUCCESS)
2857
2858 pCtx->iPosBsBuffer += iNalSize;
2859 return ENC_RETURN_SUCCESS;
2860}
2861
2862
2863/*!

Callers 3

WelsWriteParameterSetsFunction · 0.85
WriteSavcParasetFunction · 0.85
WriteSavcParaset_ListingFunction · 0.85

Calls 4

WelsLoadNalFunction · 0.85
WelsWritePpsSyntaxFunction · 0.85
WelsUnloadNalFunction · 0.85
WelsEncodeNalFunction · 0.85

Tested by

no test coverage detected