FastLED 3.9.3
Loading...
Searching...
No Matches
FrameInterpolator Class Reference

Detailed Description

Definition at line 16 of file frame_interpolator.h.

+ Inheritance diagram for FrameInterpolator:

Public Types

typedef CircularBuffer< FrameRef > FrameBuffer
 

Public Member Functions

 FrameInterpolator (size_t nframes, float fpsVideo)
 
HighPrecisionIntervalgetInterval ()
 
const HighPrecisionIntervalgetInterval () const
 
bool draw (uint32_t adjustable_time, Frame *dst)
 
bool draw (uint32_t adjustable_time, CRGB *leds, uint8_t *alpha, uint32_t *precise_timestamp=nullptr)
 
bool add (const Frame &frame)
 
bool pop_back (FrameRef *dst)
 
bool push_front (FrameRef frame, uint32_t timestamp)
 
bool pushNewest (FrameRef frame, uint32_t timestamp)
 
bool popOldest (FrameRef *dst)
 
bool addWithTimestamp (const Frame &frame, uint32_t timestamp)
 
void clear ()
 
bool selectFrames (uint32_t now, const Frame **frameMin, const Frame **frameMax) const
 
bool full () const
 
FrameBuffergetFrames ()
 
bool needsFrame (uint32_t now, uint32_t *precise_timestamp) const
 
void reset (uint32_t startTime)
 
void incrementFrameCounter ()
 
void pause (uint32_t now)
 
void resume (uint32_t now)
 
bool isPaused () const
 
- Public Member Functions inherited from Referent
virtual int ref_count () const
 

Additional Inherited Members

- Protected Member Functions inherited from 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 18 of file frame_interpolator.h.

Constructor & Destructor Documentation

◆ FrameInterpolator()

FrameInterpolator::FrameInterpolator ( size_t nframes,
float fpsVideo )

Definition at line 9 of file frame_interpolator.cpp.

Member Function Documentation

◆ add()

bool FrameInterpolator::add ( const Frame & frame)

Definition at line 94 of file frame_interpolator.cpp.

◆ addWithTimestamp()

bool FrameInterpolator::addWithTimestamp ( const Frame & frame,
uint32_t timestamp )

Definition at line 51 of file frame_interpolator.cpp.

◆ clear()

void FrameInterpolator::clear ( )
inline

Definition at line 60 of file frame_interpolator.h.

◆ draw() [1/2]

bool FrameInterpolator::draw ( uint32_t adjustable_time,
CRGB * leds,
uint8_t * alpha,
uint32_t * precise_timestamp = nullptr )

Definition at line 21 of file frame_interpolator.cpp.

◆ draw() [2/2]

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

Definition at line 13 of file frame_interpolator.cpp.

◆ full()

bool FrameInterpolator::full ( ) const
inline

Definition at line 68 of file frame_interpolator.h.

◆ getFrames()

FrameBuffer * FrameInterpolator::getFrames ( )
inline

Definition at line 71 of file frame_interpolator.h.

◆ getInterval() [1/2]

HighPrecisionInterval & FrameInterpolator::getInterval ( )
inline

Definition at line 21 of file frame_interpolator.h.

◆ getInterval() [2/2]

const HighPrecisionInterval & FrameInterpolator::getInterval ( ) const
inline

Definition at line 22 of file frame_interpolator.h.

◆ incrementFrameCounter()

void FrameInterpolator::incrementFrameCounter ( )
inline

Definition at line 78 of file frame_interpolator.h.

◆ isPaused()

bool FrameInterpolator::isPaused ( ) const
inline

Definition at line 82 of file frame_interpolator.h.

◆ needsFrame()

bool FrameInterpolator::needsFrame ( uint32_t now,
uint32_t * precise_timestamp ) const
inline

Definition at line 73 of file frame_interpolator.h.

◆ pause()

void FrameInterpolator::pause ( uint32_t now)
inline

Definition at line 80 of file frame_interpolator.h.

◆ pop_back()

bool FrameInterpolator::pop_back ( FrameRef * dst)
inline

Definition at line 39 of file frame_interpolator.h.

◆ popOldest()

bool FrameInterpolator::popOldest ( FrameRef * dst)
inline

Definition at line 55 of file frame_interpolator.h.

◆ push_front()

bool FrameInterpolator::push_front ( FrameRef frame,
uint32_t timestamp )
inline

Definition at line 40 of file frame_interpolator.h.

◆ pushNewest()

bool FrameInterpolator::pushNewest ( FrameRef frame,
uint32_t timestamp )
inline

Definition at line 51 of file frame_interpolator.h.

◆ reset()

void FrameInterpolator::reset ( uint32_t startTime)
inline

Definition at line 77 of file frame_interpolator.h.

◆ resume()

void FrameInterpolator::resume ( uint32_t now)
inline

Definition at line 81 of file frame_interpolator.h.

◆ selectFrames()

bool FrameInterpolator::selectFrames ( uint32_t now,
const Frame ** frameMin,
const Frame ** frameMax ) const

Definition at line 98 of file frame_interpolator.cpp.


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