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

Function WelsWriteOneSPS

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

Source from the content-addressed store, hash-verified

2822}
2823
2824int32_t WelsWriteOneSPS (sWelsEncCtx* pCtx, const int32_t kiSpsIdx, int32_t& iNalSize) {
2825 int iNal = pCtx->pOut->iNalIndex;
2826 WelsLoadNal (pCtx->pOut, NAL_UNIT_SPS, NRI_PRI_HIGHEST);
2827
2828 WelsWriteSpsNal (&pCtx->pSpsArray[kiSpsIdx], &pCtx->pOut->sBsWrite,
2829 pCtx->pFuncList->pParametersetStrategy->GetSpsIdOffsetList (PARA_SET_TYPE_AVCSPS));
2830 WelsUnloadNal (pCtx->pOut);
2831
2832 int32_t iReturn = WelsEncodeNal (&pCtx->pOut->sNalList[iNal], NULL,
2833 pCtx->iFrameBsSize - pCtx->iPosBsBuffer,//available buffer to be written, so need to substract the used length
2834 pCtx->pFrameBs + pCtx->iPosBsBuffer,
2835 &iNalSize);
2836 WELS_VERIFY_RETURN_IFNEQ (iReturn, ENC_RETURN_SUCCESS)
2837
2838 pCtx->iPosBsBuffer += iNalSize;
2839 return ENC_RETURN_SUCCESS;
2840}
2841
2842int32_t WelsWriteOnePPS (sWelsEncCtx* pCtx, const int32_t kiPpsIdx, int32_t& iNalSize) {
2843 //TODO

Callers 3

WelsWriteParameterSetsFunction · 0.85
WriteSavcParasetFunction · 0.85
WriteSavcParaset_ListingFunction · 0.85

Calls 5

WelsLoadNalFunction · 0.85
WelsWriteSpsNalFunction · 0.85
WelsUnloadNalFunction · 0.85
WelsEncodeNalFunction · 0.85
GetSpsIdOffsetListMethod · 0.80

Tested by

no test coverage detected