FastLED 3.9.15
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages

◆ hasFrame()

bool fl::PixelStream::hasFrame ( uint32_t frameNumber)

Definition at line 90 of file pixel_stream.cpp.

90 {
91 if (mUsingByteStream) {
92 // ByteStream doesn't support seeking
93 DBG("Not implemented and therefore always returns true");
94 return true;
95 } else {
96 size_t total_bytes = mFileHandle->size();
97 return frameNumber * mbytesPerFrame < total_bytes;
98 }
99}
int32_t mbytesPerFrame
fl::FileHandlePtr mFileHandle
#define DBG
Definition time.cpp:8

References DBG, mbytesPerFrame, mFileHandle, and mUsingByteStream.