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

◆ isValid()

bool fl::Frame::isValid ( ) const

Definition at line 136 of file frame.cpp.hpp.

136 {
137 if (mIsFromCodec) {
138 return mWidth > 0 && mHeight > 0 && !mRgb.empty();
139 }
140 return !mRgb.empty();
141}
fl::u16 mHeight
Definition frame.h:69
fl::vector_psram< CRGB > mRgb
Definition frame.h:65
bool mIsFromCodec
Definition frame.h:72
fl::u16 mWidth
Definition frame.h:68

References mHeight, mIsFromCodec, mRgb, and mWidth.

Referenced by fl::Jpeg::decode(), CodecProcessor::getPixelFromFrame(), CodecProcessor::processGif(), CodecProcessor::processMpeg1(), and AutoResearchRemoteControl::registerFunctions().

+ Here is the caller graph for this function: