| 268 | } |
| 269 | |
| 270 | void InitBitStream (sWelsEncCtx* pEncCtx) { |
| 271 | // for bitstream writing |
| 272 | pEncCtx->iPosBsBuffer = 0; // reset bs pBuffer position |
| 273 | pEncCtx->pOut->iNalIndex = 0; // reset NAL index |
| 274 | pEncCtx->pOut->iLayerBsIndex = 0; // reset index of Layer Bs |
| 275 | |
| 276 | InitBits (&pEncCtx->pOut->sBsWrite, pEncCtx->pOut->pBsBuffer, pEncCtx->pOut->uiSize); |
| 277 | } |
| 278 | /*! |
| 279 | * \brief initialize frame coding |
| 280 | */ |
no test coverage detected