FastLED 3.9.15
Loading...
Searching...
No Matches
fl::Frame Class Reference

Detailed Description

Definition at line 24 of file frame.h.

#include <frame.h>

+ Collaboration diagram for fl::Frame:

Public Member Functions

 Frame (const Frame &other) FL_NOEXCEPT
 
 Frame (fl::u8 *pixels, fl::u16 width, fl::u16 height, PixelFormat format, fl::u32 timestamp=0)
 
 Frame (int pixels_per_frame)
 
 ~Frame () FL_NOEXCEPT
 
void clear ()
 
void copy (const Frame &other)
 
void draw (fl::span< CRGB > leds, DrawMode draw_mode=DrawMode::DRAW_MODE_OVERWRITE) const
 
void drawXY (fl::span< CRGB > leds, const XYMap &xyMap, DrawMode draw_mode=DrawMode::DRAW_MODE_OVERWRITE) const
 
PixelFormat getFormat () const
 
fl::u16 getHeight () const
 
fl::u32 getTimestamp () const
 
fl::u16 getWidth () const
 
void interpolate (const Frame &frame1, const Frame &frame2, u8 amountOfFrame2)
 
bool isFromCodec () const
 
bool isValid () const
 
Frameoperator= (const Frame &other) FL_NOEXCEPT=delete
 
fl::span< CRGBrgb ()
 
fl::span< const CRGBrgb () const
 
size_t size () const
 

Static Public Member Functions

static void interpolate (const Frame &frame1, const Frame &frame2, u8 amountofFrame2, fl::span< CRGB > pixels)
 

Private Member Functions

void convertPixelsToRgb (fl::u8 *pixels, PixelFormat format)
 

Private Attributes

PixelFormat mFormat = PixelFormat::RGB888
 
fl::u16 mHeight = 0
 
bool mIsFromCodec = false
 
const size_t mPixelsCount
 
fl::vector_psram< CRGBmRgb
 
fl::u32 mTimestamp = 0
 
fl::u16 mWidth = 0
 

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