FastLED 3.10.6
Loading...
Searching...
No Matches

◆ toPixelStorage()

bool fl::fled::toPixelStorage ( PixelFormat fledFormat,
PixelStorage * out )

Definition at line 20 of file pixel_format.cpp.hpp.

20 {
21 if (!out) {
22 return false;
23 }
24 switch (fledFormat) {
28 return true;
32 return true;
33 // Known to the container and carried by `bytesPerLed`, but with no
34 // generic storage descriptor to map onto. Listed rather than swept into a
35 // `default:` so that a *seventh* wire format is a compile error naming
36 // this function instead of a silent `false` discovered at playback --
37 // D1 asks for a checked explicit mapping, and the check is worth more
38 // when the compiler performs it.
43 return false;
44 }
45 return false;
46}
ComponentByteOrder mComponentByteOrder
fl::PixelFormat mFormat

References fl::FL_NO_EXCEPT, Gray8, LittleEndian, NotApplicable, fl::Rgb16, Rgb16Linear, Rgb565Le, Rgb8, fl::Rgb8, Rgba8, and Rgbw8.

Referenced by fl::video::PixelStream::pixelStorage(), and fl::Fled::videoFrame().

+ Here is the caller graph for this function: