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

◆ transpose_strips()

bool fl::transpose_strips ( u8 num_strips,
const u8 *const * input,
u8 * output,
u16 num_leds,
u8 bytes_per_led )
inline

Helper to transpose N strips with automatic dispatch.

Parameters
num_stripsNumber of strips (must be 2, 4, or 8)
inputArray of pointers to LED strip data
outputPointer to output buffer
num_ledsNumber of LEDs per strip
bytes_per_ledNumber of bytes per LED (3 for RGB, 4 for RGBW, etc.)
Returns
true if successful, false if invalid strip count
Examples
/home/runner/work/FastLED/FastLED/src/fl/math/transposition.h.

Definition at line 812 of file transposition.h.

818 {
819 switch (num_strips) {
820 case 8:
821 transpose_8strips(input, output, num_leds, bytes_per_led);
822 return true;
823 case 4:
824 transpose_4strips(input, output, num_leds, bytes_per_led);
825 return true;
826 case 2:
827 transpose_2strips(input, output, num_leds, bytes_per_led);
828 return true;
829 default:
830 return false; // Invalid strip count
831 }
832}
FASTLED_FORCE_INLINE void transpose_2strips(const u8 *const input[2], u8 *output, u16 num_leds, u8 bytes_per_led) FL_NOEXCEPT
Transpose 2 LED strips into parallel bit format.
FASTLED_FORCE_INLINE void transpose_4strips(const u8 *const input[4], u8 *output, u16 num_leds, u8 bytes_per_led) FL_NOEXCEPT
Transpose 4 LED strips into parallel bit format.
FASTLED_FORCE_INLINE void transpose_8strips(const u8 *const input[8], u8 *output, u16 num_leds, u8 bytes_per_led) FL_NOEXCEPT
Transpose 8 LED strips into parallel bit format.

References FL_NOEXCEPT, transpose_2strips(), transpose_4strips(), and transpose_8strips().

+ Here is the call graph for this function: