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

◆ framesDisplayed()

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

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

350 {
351 if (!mHandle) {
352 return 0;
353 }
354 if (mType == kStreaming) {
355 return -1;
356 }
357 if (mbytesPerFrame == 0) {
358 return 0;
359 }
360 fl::size_t pos = mHandle->pos();
361 if (pos < mPayloadOffset) return 0;
362 return static_cast<i32>((pos - mPayloadOffset) / mbytesPerFrame);
363}
uint8_t pos
Definition Blur.ino:11
fl::filebuf_ptr mHandle
__SIZE_TYPE__ size_t
Definition s16x16x4.h:16

References fl::FL_NO_EXCEPT, kStreaming, mbytesPerFrame, mHandle, mPayloadOffset, mType, and pos.