FastLED 3.9.3
|
Definition at line 21 of file data_stream.h.
Public Types | |
enum | Type { kStreaming , kFile } |
Public Member Functions | |
DataStream (int bytes_per_frame) | |
bool | begin (FileHandleRef h) |
bool | beginStream (ByteStreamRef s) |
void | close () |
int32_t | bytesPerFrame () |
bool | readPixel (CRGB *dst) |
size_t | readBytes (uint8_t *dst, size_t len) |
bool | readFrame (Frame *frame) |
int32_t | framesRemaining () const |
int32_t | framesDisplayed () const |
bool | available () const |
int32_t | bytesRemaining () const |
int32_t | bytesRemainingInFrame () const |
bool | rewind () |
Type | getType () const |
Public Member Functions inherited from Referent | |
virtual int | ref_count () const |
Additional Inherited Members | |
Protected Member Functions inherited from Referent | |
Referent (const Referent &) | |
Referent & | operator= (const Referent &) |
Referent (Referent &&) | |
Referent & | operator= (Referent &&) |
virtual void | ref () |
virtual void | unref () |
virtual void | destroy () |
enum DataStream::Type |
Definition at line 24 of file data_stream.h.
|
explicit |
Definition at line 14 of file data_stream.cpp.
|
protectedvirtual |
Definition at line 17 of file data_stream.cpp.
bool DataStream::available | ( | ) | const |
Definition at line 56 of file data_stream.cpp.
bool DataStream::begin | ( | FileHandleRef | h | ) |
Definition at line 21 of file data_stream.cpp.
bool DataStream::beginStream | ( | ByteStreamRef | s | ) |
Definition at line 29 of file data_stream.cpp.
int32_t DataStream::bytesPerFrame | ( | ) |
Definition at line 44 of file data_stream.cpp.
int32_t DataStream::bytesRemaining | ( | ) | const |
Definition at line 96 of file data_stream.cpp.
int32_t DataStream::bytesRemainingInFrame | ( | ) | const |
Definition at line 104 of file data_stream.cpp.
void DataStream::close | ( | ) |
Definition at line 36 of file data_stream.cpp.
int32_t DataStream::framesDisplayed | ( | ) | const |
Definition at line 86 of file data_stream.cpp.
int32_t DataStream::framesRemaining | ( | ) | const |
Definition at line 77 of file data_stream.cpp.
DataStream::Type DataStream::getType | ( | ) | const |
Definition at line 118 of file data_stream.cpp.
size_t DataStream::readBytes | ( | uint8_t * | dst, |
size_t | len ) |
Definition at line 122 of file data_stream.cpp.
bool DataStream::readFrame | ( | Frame * | frame | ) |
Definition at line 64 of file data_stream.cpp.
bool DataStream::readPixel | ( | CRGB * | dst | ) |
Definition at line 48 of file data_stream.cpp.
bool DataStream::rewind | ( | ) |
Definition at line 108 of file data_stream.cpp.