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

Function buildWave8ByteExpansionLUT

src/fl/channels/wave8.cpp.hpp:313–324  ·  view source on GitHub ↗

Byte-indexed expansion LUT (#2526). Entry b = high-nibble expansion in symbols[0..3] + low-nibble expansion in symbols[4..7], matching wave8_convert_byte_to_wave8byte() exactly (so the byte path is bit-identical).

Source from the content-addressed store, hash-verified

311// symbols[0..3] + low-nibble expansion in symbols[4..7], matching
312// wave8_convert_byte_to_wave8byte() exactly (so the byte path is bit-identical).
313Wave8ByteExpansionLut buildWave8ByteExpansionLUT(const Wave8BitExpansionLut &nibble) {
314 Wave8ByteExpansionLut out;
315 for (int b = 0; b < 256; ++b) {
316 const Wave8Bit *hi = nibble.lut[(b >> 4) & 0xF];
317 const Wave8Bit *lo = nibble.lut[b & 0xF];
318 for (int i = 0; i < 4; ++i) {
319 out.lut[b].symbols[i] = hi[i];
320 out.lut[b].symbols[i + 4] = lo[i];
321 }
322 }
323 return out;
324}
325
326// ============================================================================
327// Untranspose Functions (Testing Only - Not Optimized)

Callers 4

initializeMethod · 0.85
FL_TEST_FILEFunction · 0.85
measureParlioEncodeFunction · 0.85
measureWave8ExpandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected