FastLED 3.9.15
Loading...
Searching...
No Matches

◆ readUE()

fl::u32 fl::anonymous_namespace{h264.cpp.hpp}::BitReader::readUE ( )
inline

Definition at line 38 of file h264.cpp.hpp.

38 {
39 int leadingZeros = 0;
40 while (hasBits(1) && readBits(1) == 0) {
41 leadingZeros++;
42 if (leadingZeros > 32) return 0; // prevent infinite loop
43 }
44 if (leadingZeros == 0) return 0;
45 fl::u32 suffix = readBits(leadingZeros);
46 return (1u << leadingZeros) - 1 + suffix;
47 }

References hasBits(), and readBits().

Referenced by readSE().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: