MCPcopy Create free account
hub / github.com/FastLED/FastLED / readSE

Method readSE

src/fl/codec/h264.cpp.hpp:50–57  ·  view source on GitHub ↗

Read signed Exp-Golomb coded value (se(v))

Source from the content-addressed store, hash-verified

48
49 // Read signed Exp-Golomb coded value (se(v))
50 fl::i32 readSE() {
51 fl::u32 val = readUE();
52 if (val & 1) {
53 return fl::i32((val + 1) / 2);
54 } else {
55 return -fl::i32(val / 2);
56 }
57 }
58
59 void skipBits(fl::size n) {
60 for (fl::size i = 0; i < n; i++) {

Callers 2

skipScalingListFunction · 0.80
parseSPSMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected