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

Function WriteBackActiveParameters

codec/decoder/core/src/decoder_core.cpp:2216–2232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2214}
2215
2216static void WriteBackActiveParameters (PWelsDecoderContext pCtx) {
2217 if (pCtx->sSpsPpsCtx.iOverwriteFlags & OVERWRITE_PPS) {
2218 memcpy (&pCtx->sSpsPpsCtx.sPpsBuffer[pCtx->sSpsPpsCtx.sPpsBuffer[MAX_PPS_COUNT].iPpsId],
2219 &pCtx->sSpsPpsCtx.sPpsBuffer[MAX_PPS_COUNT], sizeof (SPps));
2220 }
2221 if (pCtx->sSpsPpsCtx.iOverwriteFlags & OVERWRITE_SPS) {
2222 memcpy (&pCtx->sSpsPpsCtx.sSpsBuffer[pCtx->sSpsPpsCtx.sSpsBuffer[MAX_SPS_COUNT].iSpsId],
2223 &pCtx->sSpsPpsCtx.sSpsBuffer[MAX_SPS_COUNT], sizeof (SSps));
2224 pCtx->bNewSeqBegin = true;
2225 }
2226 if (pCtx->sSpsPpsCtx.iOverwriteFlags & OVERWRITE_SUBSETSPS) {
2227 memcpy (&pCtx->sSpsPpsCtx.sSubsetSpsBuffer[pCtx->sSpsPpsCtx.sSubsetSpsBuffer[MAX_SPS_COUNT].sSps.iSpsId],
2228 &pCtx->sSpsPpsCtx.sSubsetSpsBuffer[MAX_SPS_COUNT], sizeof (SSubsetSps));
2229 pCtx->bNewSeqBegin = true;
2230 }
2231 pCtx->sSpsPpsCtx.iOverwriteFlags = OVERWRITE_NONE;
2232}
2233
2234/*
2235 * DecodeFinishUpdate

Callers 1

DecodeFinishUpdateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected