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

Function ResetDecStatNums

codec/decoder/core/src/decoder.cpp:1183–1197  ·  view source on GitHub ↗

reset decoder number related statistics info

Source from the content-addressed store, hash-verified

1181
1182//reset decoder number related statistics info
1183void ResetDecStatNums (SDecoderStatistics* pDecStat) {
1184 uint32_t uiWidth = pDecStat->uiWidth;
1185 uint32_t uiHeight = pDecStat->uiHeight;
1186 int32_t iAvgLumaQp = pDecStat->iAvgLumaQp;
1187 uint32_t iLogInterval = pDecStat->iStatisticsLogInterval;
1188 uint32_t uiProfile = pDecStat->uiProfile;
1189 uint32_t uiLevel = pDecStat->uiLevel;
1190 memset (pDecStat, 0, sizeof (SDecoderStatistics));
1191 pDecStat->uiWidth = uiWidth;
1192 pDecStat->uiHeight = uiHeight;
1193 pDecStat->iAvgLumaQp = iAvgLumaQp;
1194 pDecStat->iStatisticsLogInterval = iLogInterval;
1195 pDecStat->uiProfile = uiProfile;
1196 pDecStat->uiLevel = uiLevel;
1197}
1198
1199//update information when freezing occurs, including IDR/non-IDR number
1200void UpdateDecStatFreezingInfo (const bool kbIdrFlag, SDecoderStatistics* pDecStat) {

Callers 3

DecodeFrame2WithCtxMethod · 0.85
DecodeParserMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected