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

◆ decodeNextFrameIfNeeded()

bool fl::Mpeg1FileHandle::decodeNextFrameIfNeeded ( )
inlineprivate

Definition at line 29 of file file_system_codecs.cpp.hpp.

29 {
31 if (!mDecoder->hasMoreFrames()) { mHasValidFrame = false; return false; }
32 DecodeResult result = mDecoder->decode();
34 Frame decodedFrame = mDecoder->getCurrentFrame();
36 mCurrentPos = 0; mHasValidFrame = true; return true;
37 } else { mHasValidFrame = false; return false; }
38 }
39 return mHasValidFrame;
40 }
fl::shared_ptr< Frame > mCurrentFrame
shared_ptr< T > make_shared(Args &&... args) FL_NOEXCEPT
Definition shared_ptr.h:414
expected< T, E > result
Alias for expected (Rust-style naming)
Definition result.h:31
DecodeResult
Definition idecoder.h:18

References fl::make_shared(), mCurrentFrame, mCurrentPos, mDecoder, mFrameSize, mHasValidFrame, and fl::Success.

Referenced by Mpeg1FileHandle(), and read().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: