| 2840 | } |
| 2841 | |
| 2842 | int32_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 | /*! |
no test coverage detected