FastLED 3.9.15
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 }
JpegDecoder::State mState
Definition jpeg.cpp.hpp:42

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

+ Here is the call graph for this function: