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

◆ decodeNextFrameIfNeeded()

bool fl::Mpeg1FileHandle::decodeNextFrameIfNeeded ( )
inlineprivate

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

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

References fl::FL_NO_EXCEPT, fl::adl_barrier::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: