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

◆ begin()

bool fl::third_party::SoftwareMpeg1Decoder::begin ( fl::filebuf_ptr stream)
overridevirtual

Implements fl::IDecoder.

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

154 {
155 if (!stream) {
156 setError("Invalid filebuf provided");
157 return false;
158 }
159
160 stream_ = stream;
161 hasError_ = false;
162 errorMessage_.clear();
163 endOfStream_ = false;
165
166 if (!initializeDecoder()) {
167 return false;
168 }
169
170 ready_ = true;
171 return true;
172}
void setError(const fl::string &message) FL_NOEXCEPT

References currentFrameIndex_, endOfStream_, errorMessage_, FL_NOEXCEPT, hasError_, initializeDecoder(), ready_, setError(), and stream_.

+ Here is the call graph for this function: