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

Function readBit

codec/console/dec/src/h264dec.cpp:71–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69//using namespace WelsDec;
70
71int32_t readBit (uint8_t* pBufPtr, int32_t& curBit) {
72 int nIndex = curBit / 8;
73 int nOffset = curBit % 8 + 1;
74
75 curBit++;
76 return (pBufPtr[nIndex] >> (8 - nOffset)) & 0x01;
77}
78
79int32_t readBits (uint8_t* pBufPtr, int32_t& n, int32_t& curBit) {
80 int r = 0;

Callers 2

readBitsFunction · 0.70
bsGetUeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected