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

◆ wave8Transpose_4() [1/2]

void fl::wave8Transpose_4 ( const u8(&) lanes[4],
const Wave8BitExpansionLut & lut,
u8(&) output[4 *sizeof(Wave8Byte)] )

Definition at line 41 of file wave8.cpp.hpp.

43 {
44 // Allocate waveform buffers on stack (32 Wave8Bit total: 8 packed bytes per lane × 4 lanes)
45 Wave8Byte laneWaveformSymbols[4];
46
47 // Convert each lane byte to wave pulse symbols (8 packed bytes each)
48 for (int lane = 0; lane < 4; lane++) {
49 detail::wave8_convert_byte_to_wave8byte(lanes[lane], lut, &laneWaveformSymbols[lane]);
50 }
51
52 // Transpose waveforms to DMA format (interleave 32 packed bytes to 32 bytes)
53 detail::wave8_transpose_4(laneWaveformSymbols, output);
54}
FASTLED_FORCE_INLINE FL_IRAM FL_OPTIMIZE_FUNCTION void wave8_convert_byte_to_wave8byte(u8 byte_value, const Wave8BitExpansionLut &lut, Wave8Byte *output)
Helper: Convert byte to Wave8Byte using nibble LUT (internal use only)
Definition wave8.hpp:47
FASTLED_FORCE_INLINE FL_IRAM FL_OPTIMIZE_FUNCTION void wave8_transpose_4(const Wave8Byte lane_waves[4], u8 output[4 *sizeof(Wave8Byte)])
Transpose 4 lanes of Wave8Byte data into interleaved format.
Definition wave8.hpp:126

References FL_RESTRICT_PARAM, fl::detail::wave8_convert_byte_to_wave8byte(), and fl::detail::wave8_transpose_4().

+ Here is the call graph for this function: