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 bool draw(uint32_t now,
CRGB *leds);
40 bool draw(uint32_t now,
Frame *frame);
42 void setTimeScale(
float timeScale);
43 float timeScale()
const {
return mTimeScale ? mTimeScale->scale() : 1.0f; }
44 size_t pixelsPerFrame()
const {
return mPixelsPerFrame; }
45 void pause(uint32_t now);
46 void resume(uint32_t now);
47 bool needsFrame(uint32_t now)
const;
50 bool updateBufferIfNecessary(uint32_t prev, uint32_t now);
51 bool updateBufferFromFile(uint32_t now,
bool forward);
52 bool updateBufferFromStream(uint32_t now);
53 uint32_t mPixelsPerFrame = 0;
54 PixelStreamPtr mStream;
55 uint32_t mPrevNow = 0;
56 FrameInterpolatorPtr mFrameInterpolator;
57 TimeScalePtr mTimeScale;