MCPcopy Create free account
hub / github.com/FastLED/FastLED / framesDisplayed

Method framesDisplayed

src/fl/video/pixel_stream.cpp.hpp:177–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177i32 PixelStream::framesDisplayed() const {
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}
185
186i32 PixelStream::bytesRemaining() const {
187 if (mType == kStreaming) {

Callers

nothing calls this directly

Calls 1

posMethod · 0.45

Tested by

no test coverage detected