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

◆ defaultVideoColor()

bool fl::fled::defaultVideoColor ( fl::u8 pixelFormat,
VideoColor * out )

Definition at line 122 of file color.cpp.hpp.

122 {
123 if (!out) return false;
124 if (!pixelFormatHasDefaultTuple(pixelFormat)) return false;
126 out->transfer = isLinearRgb(pixelFormat) ? ColorTransfer::Linear
129 out->range = ColorRange::Full;
130 out->declared = false;
131 for (fl::size i = 0; i < 8; ++i) {
132 out->customPrimaries[i] = 0.0f;
133 }
134 return true;
135}
bool pixelFormatHasDefaultTuple(fl::u8 pixelFormat) FL_NO_EXCEPT
ColorMatrix matrix
Definition color.h:87
ColorPrimaries primaries
Definition color.h:85
ColorRange range
Definition color.h:88
ColorTransfer transfer
Definition color.h:86
float customPrimaries[8]
Definition color.h:92

References Bt709, fl::FL_NO_EXCEPT, Full, Linear, pixelFormatHasDefaultTuple(), Rgb, and Srgb.

Referenced by resolveVideoColor().

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