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

◆ framesDisplayed()

i32 fl::video::PixelStream::framesDisplayed ( ) const

Definition at line 177 of file pixel_stream.cpp.hpp.

177 {
178 if (mType == kStreaming) {
179 return -1;
180 }
181 fl::size_t pos = mHandle->pos();
182 if (pos < mPayloadOffset) return 0;
183 return static_cast<i32>((pos - mPayloadOffset) / mbytesPerFrame);
184}
uint8_t pos
Definition Blur.ino:11
fl::filebuf_ptr mHandle
__SIZE_TYPE__ size_t
Definition s16x16x4.h:16

References kStreaming, mbytesPerFrame, mHandle, mPayloadOffset, mType, and pos.