FastLED 3.10.8
Loading...
Searching...
No Matches
fl::video::PixelStream Class Reference

Detailed Description

Definition at line 28 of file pixel_stream.h.

#include <pixel_stream.h>

+ Collaboration diagram for fl::video::PixelStream:

Public Types

enum  Type { kStreaming , kFile }
 

Public Member Functions

 PixelStream (int bytes_per_frame) FL_NO_EXCEPT
 
virtual ~PixelStream () FL_NO_EXCEPT
 
bool atEnd () const FL_NO_EXCEPT
 
bool available () const FL_NO_EXCEPT
 
bool begin (fl::filebuf_ptr h) FL_NO_EXCEPT
 
i32 bytesPerFrame () FL_NO_EXCEPT
 
i32 bytesRemaining () const FL_NO_EXCEPT
 
i32 bytesRemainingInFrame () const FL_NO_EXCEPT
 
void close () FL_NO_EXCEPT
 
const fl::string & embeddedScreenMapJson () const FL_NO_EXCEPT
 
i32 framesDisplayed () const FL_NO_EXCEPT
 
i32 framesRemaining () const FL_NO_EXCEPT
 
Type getType () const FL_NO_EXCEPT
 
bool hasEmbeddedScreenMap () const FL_NO_EXCEPT
 
bool hasFrame (fl::u32 frameNumber) FL_NO_EXCEPT
 
bool isRgb8Playback () const FL_NO_EXCEPT
 
bool pixelStorage (fled::PixelStorage *out) const FL_NO_EXCEPT
 
size_t readBytes (u8 *dst, size_t len) FL_NO_EXCEPT
 
bool readFrame (Frame *frame) FL_NO_EXCEPT
 
bool readFrameAt (fl::u32 frameNumber, Frame *frame) FL_NO_EXCEPT
 
bool readPixel (CRGB *dst) FL_NO_EXCEPT
 
bool readSample (PixelSample *out) FL_NO_EXCEPT
 
bool rewind () FL_NO_EXCEPT
 
void setBestEffortFled (bool enabled) FL_NO_EXCEPT
 
bool videoColor (fled::VideoColor *out) const FL_NO_EXCEPT
 

Private Member Functions

bool probeStreamingMagic () const FL_NO_EXCEPT
 

Private Attributes

const fl::i32 mBaseBytesPerFrame
 
bool mBestEffortFled = false
 
fl::i32 mbytesPerFrame
 
fl::string mEmbeddedScreenMapJson
 
fl::u8 mFledBytesPerLed = 0
 
fl::u8 mFledPixelFormat = 0
 
fl::filebuf_ptr mHandle
 
bool mHasFledContainer = false
 
bool mHasVideoColor = false
 
fl::size_t mPayloadOffset = 0
 
fl::u8 mStreamingPrefix [4] = {}
 
fl::size_t mStreamingPrefixPos = 0
 
fl::size_t mStreamingPrefixSize = 0
 
bool mStreamingProbePending = false
 
bool mStreamingRejected = false
 
Type mType
 
fled::VideoColor mVideoColor = {}
 

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