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

Function DecodeUEGLevelCabac

codec/decoder/core/src/cabac_decoder.cpp:291–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291uint32_t DecodeUEGLevelCabac (PWelsCabacDecEngine pDecEngine, PWelsCabacCtx pBinCtx, uint32_t& uiCode) {
292 uiCode = 0;
293 WELS_READ_VERIFY (DecodeBinCabac (pDecEngine, pBinCtx, uiCode));
294 if (uiCode == 0)
295 return ERR_NONE;
296 else {
297 uint32_t uiTmp, uiCount = 1;
298 uiCode = 0;
299 do {
300 WELS_READ_VERIFY (DecodeBinCabac (pDecEngine, pBinCtx, uiTmp));
301 ++uiCode;
302 ++uiCount;
303 } while (uiTmp != 0 && uiCount != 13);
304
305 if (uiTmp != 0) {
306 WELS_READ_VERIFY (DecodeExpBypassCabac (pDecEngine, 0, uiTmp));
307 uiCode += uiTmp + 1;
308 }
309 return ERR_NONE;
310 }
311 return ERR_NONE;
312}
313
314int32_t DecodeUEGMvCabac (PWelsCabacDecEngine pDecEngine, PWelsCabacCtx pBinCtx, uint32_t iMaxBin, uint32_t& uiCode) {
315 WELS_READ_VERIFY (DecodeBinCabac (pDecEngine, pBinCtx + g_kMvdBinPos2Ctx[0], uiCode));

Callers 1

Calls 2

DecodeBinCabacFunction · 0.85
DecodeExpBypassCabacFunction · 0.85

Tested by

no test coverage detected