FastLED 3.9.15
Loading...
Searching...
No Matches
fl::video::VideoImpl Class Reference

Detailed Description

Definition at line 29 of file video_impl.h.

#include <video_impl.h>

Public Types

enum  { kSizeRGB8 = 3 }
 

Public Member Functions

 VideoImpl (size_t pixelsPerFrame, float fpsVideo, size_t frameHistoryCount=0)
 
 ~VideoImpl () FL_NOEXCEPT
 
void begin (fl::filebuf_ptr h)
 
bool draw (fl::u32 now, fl::span< CRGB > leds)
 
bool draw (fl::u32 now, Frame *frame)
 
i32 durationMicros () const
 
const fl::stringembeddedScreenMapJson () const FL_NOEXCEPT
 
void end ()
 
bool full () const
 
bool hasEmbeddedScreenMap () const FL_NOEXCEPT
 
bool needsFrame (fl::u32 now) const
 
void pause (fl::u32 now)
 
size_t pixelsPerFrame () const
 
void resume (fl::u32 now)
 
bool rewind ()
 
void setFade (fl::u32 fadeInTime, fl::u32 fadeOutTime)
 
void setTimeScale (float timeScale)
 
float timeScale () const
 

Private Member Functions

bool updateBufferFromFile (fl::u32 now, bool forward)
 
bool updateBufferFromStream (fl::u32 now)
 
bool updateBufferIfNecessary (fl::u32 prev, fl::u32 now)
 

Private Attributes

fl::u32 mFadeInTime = 1000
 
fl::u32 mFadeOutTime = 1000
 
FrameInterpolatorPtr mFrameInterpolator
 
fl::u32 mPixelsPerFrame = 0
 
fl::u32 mPrevNow = 0
 
PixelStreamPtr mStream
 
fl::TimeWarpPtr mTime
 
float mTimeScale = 1.0f
 

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