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 88 of file pixel_stream.cpp.

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

References DBG, mbytesPerFrame, mFileHandle, and mUsingByteStream.