FastLED 3.10.8
Loading...
Searching...
No Matches

◆ sourceProfile()

bool fl::Video::sourceProfile ( SourceProfile * out) const

The colour-pipeline source profile the file declares (or the default tuple of its pixel format).

False when no FLED file is open or its colour does not resolve. Bind it to play the file colour-accurately on a colour-managed channel (#4460): fl::SourceProfile source; if (video.sourceProfile(&source)) FastLED.setDefaultSourceProfile(source);

Definition at line 130 of file video.cpp.hpp.

130 {
131 fled::VideoColor color;
132 return out != nullptr && videoColor(&color) &&
133 fled::toSourceProfile(color, out);
134}
bool videoColor(fled::VideoColor *out) const FL_NO_EXCEPT
bool toSourceProfile(const VideoColor &color, SourceProfile *out) FL_NO_EXCEPT

References fl::FL_NO_EXCEPT, fl::fled::toSourceProfile(), and videoColor().

+ Here is the call graph for this function: