19FASTLED_SMART_PTR(FileHandle);
20FASTLED_SMART_PTR(ByteStream);
21FASTLED_SMART_PTR(Frame);
22FASTLED_SMART_PTR(VideoImpl);
23FASTLED_SMART_PTR(VideoFxWrapper);
24FASTLED_SMART_PTR(ByteStreamMemory);
32 static size_t DefaultFrameHistoryCount() {
45 Video(
size_t pixelsPerFrame,
float fps = 30.0f,
size_t frameHistoryCount = DefaultFrameHistoryCount());
52 Str fxName()
const override;
55 bool begin(fl::FileHandlePtr h);
56 bool beginStream(fl::ByteStreamPtr s);
62 void setTimeScale(
float timeScale);
63 float timeScale()
const;
65 void setError(
const Str& error) { mError = error; }
66 size_t pixelsPerFrame()
const;
67 void pause(uint32_t now)
override;
68 void resume(uint32_t now)
override;
71 operator bool()
const {
return mImpl.get(); }
73 bool mFinished =
false;
91 Str fxName()
const override;
96 ByteStreamMemoryPtr mByteStream;
void draw(DrawContext context) override
void draw(DrawContext context) override
Implements the FastLED namespace macros.
#define FASTLED_NAMESPACE_END
End of the FastLED namespace.
#define FASTLED_NAMESPACE_BEGIN
Start of the FastLED namespace.
Implements a simple red square effect for 2D LED grids.
Representation of an RGB pixel (Red, Green, Blue)