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

◆ getCurrentFrame()

Frame fl::third_party::SoftwareMpeg1Decoder::getCurrentFrame ( )
overridevirtual

Implements fl::IDecoder.

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

211 {
212 if (config_.mode == Mpeg1Config::Streaming && !config_.immediateMode && !frameBuffer_.empty() && currentFrameIndex_ > 0) {
214 return result;
215 }
216 if (currentFrame_) {
217 Frame result = *currentFrame_;
218 return result;
219 }
220 // Return an invalid frame if no frame has been decoded yet
221 return Frame(0);
222}
fl::vector< fl::shared_ptr< Frame > > frameBuffer_
expected< T, E > result
Alias for expected (Rust-style naming)
Definition result.h:31

References config_, currentFrame_, currentFrameIndex_, FL_NOEXCEPT, frameBuffer_, lastDecodedIndex_, and fl::third_party::Mpeg1Config::Streaming.