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

Function skipScalingList

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

Parse scaling list (skip it — we only need dimensions).

Source from the content-addressed store, hash-verified

69
70// Parse scaling list (skip it — we only need dimensions).
71void skipScalingList(BitReader& br, int size) {
72 int lastScale = 8;
73 int nextScale = 8;
74 for (int j = 0; j < size; j++) {
75 if (nextScale != 0) {
76 fl::i32 delta = br.readSE();
77 nextScale = (lastScale + delta + 256) % 256;
78 }
79 lastScale = (nextScale == 0) ? lastScale : nextScale;
80 }
81}
82
83} // namespace
84

Callers 1

parseSPSMethod · 0.85

Calls 1

readSEMethod · 0.80

Tested by

no test coverage detected