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

Detailed Description

Definition at line 22 of file pixel_stream.h.

#include <pixel_stream.h>

Public Types

enum  Type { kStreaming , kFile }
 

Public Member Functions

 PixelStream (int bytes_per_frame)
 
virtual ~PixelStream ()
 
bool atEnd () const
 
bool available () const
 
bool begin (fl::FileHandlePtr h)
 
bool beginStream (fl::ByteStreamPtr s)
 
int32_t bytesPerFrame ()
 
int32_t bytesRemaining () const
 
int32_t bytesRemainingInFrame () const
 
void close ()
 
int32_t framesDisplayed () const
 
int32_t framesRemaining () const
 
Type getType () const
 
bool hasFrame (fl::u32 frameNumber)
 
size_t readBytes (uint8_t *dst, size_t len)
 
bool readFrame (Frame *frame)
 
bool readFrameAt (fl::u32 frameNumber, Frame *frame)
 
bool readPixel (CRGB *dst)
 
bool rewind ()
 

Private Attributes

fl::i32 mbytesPerFrame
 
fl::ByteStreamPtr mByteStream
 
fl::FileHandlePtr mFileHandle
 
bool mUsingByteStream
 

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