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>

+ Inheritance diagram for fl::PixelStream:
+ Collaboration diagram for fl::PixelStream:

Public Types

enum  Type { kStreaming , kFile }
 

Public Member Functions

 PixelStream (int bytes_per_frame)
 
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 (uint32_t frameNumber)
 
size_t readBytes (uint8_t *dst, size_t len)
 
bool readFrame (Frame *frame)
 
bool readFrameAt (uint32_t frameNumber, Frame *frame)
 
bool readPixel (CRGB *dst)
 
bool rewind ()
 
- Public Member Functions inherited from fl::Referent
virtual int ref_count () const
 

Protected Member Functions

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

Private Attributes

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

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