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

Detailed Description

Definition at line 18 of file frame.h.

+ Inheritance diagram for Frame:

Public Member Functions

 Frame (int pixels_per_frame, bool has_alpha=false)
 
CRGBrgb ()
 
const CRGBrgb () const
 
size_t size () const
 
uint8_t * alpha ()
 
const uint8_t * alpha () const
 
void setTimestamp (uint32_t now)
 
uint32_t getTimestamp () const
 
void copy (const Frame &other)
 
void interpolate (const Frame &frame1, const Frame &frame2, uint8_t amountofFrame2)
 
void draw (CRGB *leds, uint8_t *alpha) const
 
- Public Member Functions inherited from Referent
virtual int ref_count () const
 

Static Public Member Functions

static void interpolate (const Frame &frame1, const Frame &frame2, uint8_t amountofFrame2, CRGB *pixels, uint8_t *alpha)
 

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 ()
 

Constructor & Destructor Documentation

◆ Frame()

Frame::Frame ( int pixels_per_frame,
bool has_alpha = false )
explicit

Definition at line 14 of file frame.cpp.

◆ ~Frame()

Frame::~Frame ( )
override

Definition at line 24 of file frame.cpp.

Member Function Documentation

◆ alpha() [1/2]

uint8_t * Frame::alpha ( )
inline

Definition at line 28 of file frame.h.

◆ alpha() [2/2]

const uint8_t * Frame::alpha ( ) const
inline

Definition at line 29 of file frame.h.

◆ copy()

void Frame::copy ( const Frame & other)
inline

Definition at line 45 of file frame.h.

◆ draw()

void Frame::draw ( CRGB * leds,
uint8_t * alpha ) const

Definition at line 33 of file frame.cpp.

◆ getTimestamp()

uint32_t Frame::getTimestamp ( ) const
inline

Definition at line 31 of file frame.h.

◆ interpolate() [1/2]

void Frame::interpolate ( const Frame & frame1,
const Frame & frame2,
uint8_t amountofFrame2 )

Definition at line 62 of file frame.cpp.

◆ interpolate() [2/2]

void Frame::interpolate ( const Frame & frame1,
const Frame & frame2,
uint8_t amountofFrame2,
CRGB * pixels,
uint8_t * alpha )
static

Definition at line 42 of file frame.cpp.

◆ rgb() [1/2]

CRGB * Frame::rgb ( )
inline

Definition at line 25 of file frame.h.

◆ rgb() [2/2]

const CRGB * Frame::rgb ( ) const
inline

Definition at line 26 of file frame.h.

◆ setTimestamp()

void Frame::setTimestamp ( uint32_t now)
inline

Definition at line 30 of file frame.h.

◆ size()

size_t Frame::size ( ) const
inline

Definition at line 27 of file frame.h.


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