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

Function DecodeUEGMvCabac

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

Source from the content-addressed store, hash-verified

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));
316 if (uiCode == 0)
317 return ERR_NONE;
318 else {
319 uint32_t uiTmp, uiCount = 1;
320 uiCode = 0;
321 do {
322 WELS_READ_VERIFY (DecodeBinCabac (pDecEngine, pBinCtx + g_kMvdBinPos2Ctx[uiCount++], uiTmp));
323 uiCode++;
324 } while (uiTmp != 0 && uiCount != 8);
325
326 if (uiTmp != 0) {
327 WELS_READ_VERIFY (DecodeExpBypassCabac (pDecEngine, 3, uiTmp));
328 uiCode += (uiTmp + 1);
329 }
330 return ERR_NONE;
331 }
332}
333}

Callers 1

ParseMvdInfoCabacFunction · 0.85

Calls 2

DecodeBinCabacFunction · 0.85
DecodeExpBypassCabacFunction · 0.85

Tested by

no test coverage detected