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

◆ beginDecodingStream()

bool fl::third_party::TJpgInstanceDecoder::beginDecodingStream ( fl::filebuf_ptr stream,
PixelFormat format )

Definition at line 22 of file driver.cpp.hpp.

22 {
23 if (!stream) {
24 setError("Invalid stream provided");
25 return false;
26 }
27
28 input_stream_ = stream;
31 progress_ = 0.0f;
32 error_message_.clear();
33
34 // Read stream data
35 if (!readStreamData()) {
36 return false;
37 }
38
39 // Initialize decoder
40 if (!initializeDecoder()) {
41 return false;
42 }
43
45 return true;
46}
void setError(const fl::string &msg) FL_NOEXCEPT
fl::string format(const char *fmt)
Format with no arguments.
Definition format.h:439

References error_message_, FL_NOEXCEPT, fl::format(), HeaderParsed, initializeDecoder(), input_stream_, NotStarted, pixel_format_, progress_, readStreamData(), setError(), and state_.

+ Here is the call graph for this function: