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

◆ calculate_transpose_buffer_size()

FASTLED_FORCE_INLINE u32 fl::calculate_transpose_buffer_size ( u16 num_leds,
u8 bytes_per_led )

Calculate output buffer size needed for transposed data.

All strip counts (2, 4, 8) use the same output format: bytes_per_led * 8 bytes per LED.

Parameters
num_ledsMaximum number of LEDs across all strips
bytes_per_ledNumber of bytes per LED (3 for RGB, 4 for RGBW, etc.)
Returns
Required output buffer size in bytes
Examples
/home/runner/work/FastLED/FastLED/src/fl/math/transposition.h.

Definition at line 800 of file transposition.h.

800 {
801 return num_leds * bytes_per_led * 8;
802}

References FASTLED_FORCE_INLINE, and FL_NOEXCEPT.