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

◆ videoColor()

fled::ColorStatus fl::Fled::videoColor ( fled::VideoColor * out) const

Definition at line 135 of file fled.cpp.hpp.

135 {
136 if (!out) return fled::ColorStatus::NullOutput;
137 if (!mImpl) {
138 // Null bundle: no envelope, no header. Resolve as an undeclared
139 // rgb8 payload so callers get the historical default tuple.
141 static_cast<fl::u8>(fled::PixelFormat::Rgb8),
142 out);
143 }
144 return fled::resolveVideoColor(mImpl->envelope(), pixelFormat(), out);
145}
fl::u8 pixelFormat() const FL_NO_EXCEPT
Definition fled.cpp.hpp:85
fl::shared_ptr< fled::FledImpl > mImpl
Definition fled.h:156
const fl::json & nullJson() FL_NO_EXCEPT
Definition fled.cpp.hpp:22
ColorStatus resolveVideoColor(const fl::json &envelope, fl::u8 pixelFormat, VideoColor *out) FL_NO_EXCEPT
unsigned char u8
Definition stdint.h:131

References fl::FL_NO_EXCEPT, mImpl, fl::fled::NullOutput, pixelFormat(), fl::fled::resolveVideoColor(), and fl::fled::Rgb8.

Referenced by videoFrame().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: