30 VideoImpl(
size_t pixelsPerFrame,
float fpsVideo,
31 size_t frameHistoryCount = 0);
34 void begin(fl::FileHandlePtr h);
35 void beginStream(fl::ByteStreamPtr s);
36 void setFade(uint32_t fadeInTime, uint32_t fadeOutTime);
37 bool draw(uint32_t now,
CRGB *leds);
41 bool draw(uint32_t now,
Frame *frame);
43 void setTimeScale(
float timeScale);
44 float timeScale()
const {
return mTimeScale; }
45 size_t pixelsPerFrame()
const {
return mPixelsPerFrame; }
46 void pause(uint32_t now);
47 void resume(uint32_t now);
48 bool needsFrame(uint32_t now)
const;
49 int32_t durationMicros()
const;
53 bool updateBufferIfNecessary(uint32_t prev, uint32_t now);
54 bool updateBufferFromFile(uint32_t now,
bool forward);
55 bool updateBufferFromStream(uint32_t now);
56 uint32_t mPixelsPerFrame = 0;
57 PixelStreamPtr mStream;
58 uint32_t mPrevNow = 0;
59 FrameInterpolatorPtr mFrameInterpolator;
61 uint32_t mFadeInTime = 1000;
62 uint32_t mFadeOutTime = 1000;
63 float mTimeScale = 1.0f;