FastLED 3.10.8
Loading...
Searching...
No Matches
fl::JpegDecoder Class Reference

Detailed Description

Definition at line 48 of file jpeg.h.

#include <jpeg.h>

+ Inheritance diagram for fl::JpegDecoder:
+ Collaboration diagram for fl::JpegDecoder:

Classes

class  Impl
 

Public Types

enum class  State {
  NotStarted , HeaderParsed , Decoding , Complete ,
  Error
}
 
using YieldFunction = fl::function<bool()>
 

Public Member Functions

 JpegDecoder (const JpegConfig &config) FL_NO_EXCEPT
 
 ~JpegDecoder () FL_NO_EXCEPT override
 
bool begin (fl::filebuf_ptr stream) FL_NO_EXCEPT override
 
DecodeResult decode () FL_NO_EXCEPT override
 
DecodeResult decode (fl::optional< fl::function< bool()> > should_yield) FL_NO_EXCEPT
 
void end () FL_NO_EXCEPT override
 
bool feedData (fl::span< const fl::u8 > data) FL_NO_EXCEPT
 
fl::size getBytesProcessed () const FL_NO_EXCEPT
 
Frame getCurrentFrame () FL_NO_EXCEPT override
 
fl::u16 getDecodedRows () const FL_NO_EXCEPT
 
Frame getPartialFrame () FL_NO_EXCEPT
 
float getProgress () const FL_NO_EXCEPT
 
ProgressiveConfig getProgressiveConfig () const FL_NO_EXCEPT
 
State getState () const FL_NO_EXCEPT
 
bool hasError (fl::string *msg=nullptr) const FL_NO_EXCEPT override
 
bool hasMoreFrames () const FL_NO_EXCEPT override
 
bool hasPartialImage () const FL_NO_EXCEPT
 
bool isReady () const FL_NO_EXCEPT override
 
bool needsMoreData () const FL_NO_EXCEPT
 
void setProgressiveConfig (const ProgressiveConfig &config) FL_NO_EXCEPT
 
- Public Member Functions inherited from fl::IDecoder
virtual ~IDecoder () FL_NO_EXCEPT=default
 
virtual int getAudioSampleRate () const FL_NO_EXCEPT
 
virtual fl::u32 getCurrentFrameIndex () const FL_NO_EXCEPT
 
virtual fl::u32 getFrameCount () const FL_NO_EXCEPT
 
virtual bool hasAudio () const FL_NO_EXCEPT
 
virtual bool seek (fl::u32 frameIndex) FL_NO_EXCEPT
 
virtual void setAudioCallback (AudioFrameCallback callback) FL_NO_EXCEPT
 

Static Public Member Functions

static bool NeverYeildUntilDone () FL_NO_EXCEPT
 

Private Attributes

fl::unique_ptr< Impl > mImpl
 

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