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

Function readBit

test/api/BaseThreadDecoderTest.cpp:8–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include "BaseThreadDecoderTest.h"
7
8static int32_t readBit (uint8_t* pBufPtr, int32_t& curBit) {
9 int nIndex = curBit / 8;
10 int nOffset = curBit % 8 + 1;
11
12 curBit++;
13 return (pBufPtr[nIndex] >> (8 - nOffset)) & 0x01;
14}
15
16static int32_t readBits (uint8_t* pBufPtr, int32_t& n, int32_t& curBit) {
17 int r = 0;

Callers 2

readBitsFunction · 0.70
bsGetUeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected