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

Function InitBitStream

codec/encoder/core/src/encoder.cpp:270–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270void 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 */

Callers 1

WelsEncoderEncodeExtFunction · 0.85

Calls 1

InitBitsFunction · 0.85

Tested by

no test coverage detected