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

Function bsGetUe

test/api/BaseThreadDecoderTest.cpp:25–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25static int32_t bsGetUe (uint8_t* pBufPtr, int32_t& curBit) {
26 int r = 0;
27 int i = 0;
28 while ((readBit (pBufPtr, curBit) == 0) && (i < 32)) {
29 i++;
30 }
31 r = readBits (pBufPtr, i, curBit);
32 r += (1 << i) - 1;
33 return r;
34}
35
36static int32_t readFirstMbInSlice (uint8_t* pSliceNalPtr) {
37 int32_t curBit = 0;

Callers 1

readFirstMbInSliceFunction · 0.70

Calls 2

readBitFunction · 0.70
readBitsFunction · 0.70

Tested by

no test coverage detected