FastLED 3.10.8
Loading...
Searching...
No Matches

◆ decode()

DecodeResult fl::JpegDecoder::Impl::decode ( fl::optional< fl::function< bool()> > should_yield)
inline

Definition at line 124 of file jpeg.cpp.hpp.

124 {
126 return DecodeResult::Error;
127 }
128
131 }
132
133 while (processChunk()) {
134 if (should_yield && (*should_yield)()) {
135 // Caller requested yield - return current state
137 }
138 }
139
141 }
bool processChunk() FL_NO_EXCEPT
Definition jpeg.cpp.hpp:159
JpegDecoder::State mState
Definition jpeg.cpp.hpp:42

References fl::JpegDecoder::Complete, fl::Error, fl::JpegDecoder::Error, fl::FL_NO_EXCEPT, mState, fl::NeedsMoreData, processChunk(), and fl::Success.

+ Here is the call graph for this function: