29 mImpl->setFade(fadeInTime, fadeOutTime);
42 FL_WARN(
"Video::begin: mImpl is null, manually constructed videos "
43 "must include full parameters.");
62 if (!
mImpl->begin(handle)) {
63 setAdmissionError(
"unsupported or malformed FLED container");
89 draw(context.now, context.leds);
96 return mImpl->durationMicros();
105 return draw(now, frame->rgb());
125 return mImpl->timeScale();
158 return mImpl->pixelsPerFrame();
162 if (!
mImpl)
return false;
163 return mImpl->hasEmbeddedScreenMap();
168 if (!
mImpl)
return kEmpty;
169 return mImpl->embeddedScreenMapJson();
183 return mImpl->rewind();
187 if (!mFx->hasFixedFrameRate(&mFps)) {
188 FL_WARN(
"VideoFxWrapper: Fx does not have a fixed frame rate, "
194 mVideo->begin(mByteStream);
200 string out =
"video_fx_wrapper: ";
206 if (
mVideo->needsFrame(context.now)) {
212 bool ok =
mVideo->draw(context.now, context.leds);
214 FL_WARN(
"VideoFxWrapper: draw failed.");
219 mVideo->setFade(fadeInTime, fadeOutTime);
Fx1d(u16 numLeds) FL_NO_EXCEPT
size_t pixelsPerFrame() const FL_NO_EXCEPT
void setTimeScale(float timeScale) FL_NO_EXCEPT
bool readSample(video::PixelSample *out) FL_NO_EXCEPT
void setFade(fl::u32 fadeInTime, fl::u32 fadeOutTime) FL_NO_EXCEPT
i32 durationMicros() const FL_NO_EXCEPT
void setAdmissionError(const string &error) FL_NO_EXCEPT
string error() const FL_NO_EXCEPT
bool rewind() FL_NO_EXCEPT
bool hasEmbeddedScreenMap() const FL_NO_EXCEPT
const fl::string & embeddedScreenMapJson() const FL_NO_EXCEPT
bool videoColor(fled::VideoColor *out) const FL_NO_EXCEPT
void pause(fl::u32 now) FL_NO_EXCEPT override
string fxName() const FL_NO_EXCEPT override
bool pixelStorage(fled::PixelStorage *out) const FL_NO_EXCEPT
void draw(DrawContext context) FL_NO_EXCEPT override
bool sourceProfile(SourceProfile *out) const FL_NO_EXCEPT
The colour-pipeline source profile the file declares (or the default tuple of its pixel format).
bool finished() FL_NO_EXCEPT
void resume(fl::u32 now) FL_NO_EXCEPT override
bool begin(fl::filebuf_ptr h) FL_NO_EXCEPT
float timeScale() const FL_NO_EXCEPT
void setFledPlaybackMode(FledPlaybackMode mode) FL_NO_EXCEPT
string fxName() const FL_NO_EXCEPT override
VideoFxWrapper(FxPtr fx) FL_NO_EXCEPT
~VideoFxWrapper() FL_NO_EXCEPT override
void setFade(fl::u32 fadeInTime, fl::u32 fadeOutTime) FL_NO_EXCEPT
void draw(DrawContext context) FL_NO_EXCEPT override
string & append(const bitset_fixed< N > &bs) FL_NO_EXCEPT
#define FL_WARN_IF(COND,...)
Centralized logging categories for FastLED hardware interfaces and subsystems.
shared_ptr< T > make_shared(Args &&... args) FL_NO_EXCEPT
bool toSourceProfile(const VideoColor &color, SourceProfile *out) FL_NO_EXCEPT
u8 u8 fract8 blur_amount FL_NO_EXCEPT
fl::shared_ptr< filebuf > filebuf_ptr
Base definition for an LED controller.
@ Black
<div style='background:#000000;width:4em;height:4em;'></div>
A source declaration, not a container or an output-device selection.