FastLED 3.9.15
Loading...
Searching...
No Matches

◆ decode()

DecodeResult fl::third_party::SoftwareMpeg1Decoder::decode ( )
overridevirtual

Implements fl::IDecoder.

Definition at line 187 of file software_decoder.cpp.hpp.

187 {
188 if (!ready_) {
189 return DecodeResult::Error;
190 }
191
192 if (hasError_) {
193 return DecodeResult::Error;
194 }
195
196 if (endOfStream_) {
198 }
199
200 if (!decodeNextFrame()) {
201 if (!hasError_) {
202 endOfStream_ = true;
204 }
205 return DecodeResult::Error;
206 }
207
209}

References decodeNextFrame(), fl::EndOfStream, endOfStream_, fl::Error, FL_NOEXCEPT, hasError_, ready_, and fl::Success.

+ Here is the call graph for this function: