FastLED 3.9.7
Loading...
Searching...
No Matches
fl::FrameInterpolator Class Reference

Detailed Description

Definition at line 16 of file frame_interpolator.h.

+ Inheritance diagram for fl::FrameInterpolator:

Classes

struct  Less
 

Public Types

typedef fl::SortedHeapMap< uint32_t, FramePtr, LessFrameBuffer
 

Public Member Functions

 FrameInterpolator (size_t nframes, float fpsVideo)
 
bool draw (uint32_t adjustable_time, Frame *dst)
 
bool draw (uint32_t adjustable_time, CRGB *leds)
 
bool insert (uint32_t frameNumber, FramePtr frame)
 
void clear ()
 
bool empty () const
 
bool has (uint32_t frameNum) const
 
FramePtr erase (uint32_t frameNum)
 
FramePtr get (uint32_t frameNum) const
 
bool full () const
 
size_t capacity () const
 
FrameBuffergetFrames ()
 
bool needsFrame (uint32_t now, uint32_t *currentFrameNumber, uint32_t *nextFrameNumber) const
 
bool get_newest_frame_number (uint32_t *frameNumber) const
 
bool get_oldest_frame_number (uint32_t *frameNumber) const
 
uint32_t get_exact_timestamp_ms (uint32_t frameNumber) const
 
FrameTrackergetFrameTracker ()
 
- Public Member Functions inherited from fl::Referent
virtual int ref_count () const
 

Additional Inherited Members

- Protected Member Functions inherited from fl::Referent
 Referent (const Referent &)
 
Referentoperator= (const Referent &)
 
 Referent (Referent &&)
 
Referentoperator= (Referent &&)
 
virtual void ref ()
 
virtual void unref ()
 
virtual void destroy ()
 

Member Typedef Documentation

◆ FrameBuffer

Definition at line 21 of file frame_interpolator.h.

Constructor & Destructor Documentation

◆ FrameInterpolator()

fl::FrameInterpolator::FrameInterpolator ( size_t nframes,
float fpsVideo )

Definition at line 17 of file frame_interpolator.cpp.

Member Function Documentation

◆ capacity()

size_t fl::FrameInterpolator::capacity ( ) const
inline

Definition at line 67 of file frame_interpolator.h.

◆ clear()

void fl::FrameInterpolator::clear ( )
inline

Definition at line 41 of file frame_interpolator.h.

◆ draw() [1/2]

bool fl::FrameInterpolator::draw ( uint32_t adjustable_time,
CRGB * leds )

Definition at line 32 of file frame_interpolator.cpp.

◆ draw() [2/2]

bool fl::FrameInterpolator::draw ( uint32_t adjustable_time,
Frame * dst )

Definition at line 23 of file frame_interpolator.cpp.

◆ empty()

bool fl::FrameInterpolator::empty ( ) const
inline

Definition at line 43 of file frame_interpolator.h.

◆ erase()

FramePtr fl::FrameInterpolator::erase ( uint32_t frameNum)
inline

Definition at line 47 of file frame_interpolator.h.

◆ full()

bool fl::FrameInterpolator::full ( ) const
inline

Definition at line 66 of file frame_interpolator.h.

◆ get()

FramePtr fl::FrameInterpolator::get ( uint32_t frameNum) const
inline

Definition at line 58 of file frame_interpolator.h.

◆ get_exact_timestamp_ms()

uint32_t fl::FrameInterpolator::get_exact_timestamp_ms ( uint32_t frameNumber) const
inline

Definition at line 96 of file frame_interpolator.h.

◆ get_newest_frame_number()

bool fl::FrameInterpolator::get_newest_frame_number ( uint32_t * frameNumber) const
inline

Definition at line 78 of file frame_interpolator.h.

◆ get_oldest_frame_number()

bool fl::FrameInterpolator::get_oldest_frame_number ( uint32_t * frameNumber) const
inline

Definition at line 87 of file frame_interpolator.h.

◆ getFrames()

FrameBuffer * fl::FrameInterpolator::getFrames ( )
inline

Definition at line 69 of file frame_interpolator.h.

◆ getFrameTracker()

FrameTracker & fl::FrameInterpolator::getFrameTracker ( )
inline

Definition at line 100 of file frame_interpolator.h.

◆ has()

bool fl::FrameInterpolator::has ( uint32_t frameNum) const
inline

Definition at line 45 of file frame_interpolator.h.

◆ insert()

bool fl::FrameInterpolator::insert ( uint32_t frameNumber,
FramePtr frame )
inline

Definition at line 34 of file frame_interpolator.h.

◆ needsFrame()

bool fl::FrameInterpolator::needsFrame ( uint32_t now,
uint32_t * currentFrameNumber,
uint32_t * nextFrameNumber ) const
inline

Definition at line 71 of file frame_interpolator.h.


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