FastLED 3.10.6
Loading...
Searching...
No Matches
fl::Video Class Reference

Detailed Description

Examples
FxGfx2Video.ino, and FxLedmapper32x32.ino.

Definition at line 41 of file video.h.

#include <video.h>

+ Inheritance diagram for fl::Video:
+ Collaboration diagram for fl::Video:

Public Member Functions

 Video () FL_NO_EXCEPT
 
 Video (const Video &) FL_NO_EXCEPT
 
 Video (size_t pixelsPerFrame, float fps=30.0f, size_t frameHistoryCount=DefaultFrameHistoryCount())
 
 ~Video () FL_NO_EXCEPT
 
bool begin (fl::filebuf_ptr h)
 
void draw (DrawContext context) override
 
bool draw (fl::u32 now, fl::span< CRGB > leds)
 
bool draw (fl::u32 now, Frame *frame)
 
i32 durationMicros () const
 
const fl::string & embeddedScreenMapJson () const FL_NO_EXCEPT
 
void end ()
 
string error () const
 
bool finished ()
 
string fxName () const override
 
bool hasEmbeddedScreenMap () const FL_NO_EXCEPT
 
 operator bool () const
 
Video & operator= (const Video &) FL_NO_EXCEPT
 
void pause (fl::u32 now) override
 
size_t pixelsPerFrame () const
 
bool pixelStorage (fled::PixelStorage *out) const FL_NO_EXCEPT
 
bool readSample (video::PixelSample *out) FL_NO_EXCEPT
 
void resume (fl::u32 now) override
 
bool rewind ()
 
void setError (const string &error) FL_NO_EXCEPT
 
void setFade (fl::u32 fadeInTime, fl::u32 fadeOutTime)
 
void setFledPlaybackMode (FledPlaybackMode mode) FL_NO_EXCEPT
 
void setTimeScale (float timeScale)
 
bool sourceProfile (SourceProfile *out) const FL_NO_EXCEPT
 The colour-pipeline source profile the file declares (or the default tuple of its pixel format).
 
float timeScale () const
 
bool videoColor (fled::VideoColor *out) const FL_NO_EXCEPT
 
- Public Member Functions inherited from fl::Fx1d
 Fx1d (u16 numLeds)
 
void setXmap (const XMap &xMap)
 
u16 xyMap (u16 x) const
 
- Public Member Functions inherited from fl::Fx
 Fx (u16 numLeds)
 
u16 getNumLeds () const
 
virtual bool hasFixedFrameRate (float *fps) const
 

Static Public Member Functions

static size_t DefaultFrameHistoryCount ()
 

Private Member Functions

void setAdmissionError (const string &error) FL_NO_EXCEPT
 

Private Attributes

bool mAdmissionError = false
 
string mError
 
bool mFinished = false
 
VideoImplPtr mImpl
 
string mName
 

Additional Inherited Members

- Public Types inherited from fl::Fx
using DrawContext = ::fl::DrawContext
 
- Protected Member Functions inherited from fl::Fx
virtual ~Fx () FL_NO_EXCEPT
 
- Protected Attributes inherited from fl::Fx1d
XMap mXMap
 
- Protected Attributes inherited from fl::Fx
u16 mNumLeds
 

The documentation for this class was generated from the following files: