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

◆ isValid()

bool fl::Frame::isValid ( ) const

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

134 {
135 if (mIsFromCodec) {
136 return mWidth > 0 && mHeight > 0 && !mRgb.empty();
137 }
138 return !mRgb.empty();
139}
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 fl::FL_NO_EXCEPT, mHeight, mIsFromCodec, mRgb, and mWidth.

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

+ Here is the caller graph for this function: