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

◆ createDecoder() [1/2]

IDecoderPtr fl::Gif::createDecoder ( const GifConfig & config,
fl::string * error_message = nullptr )
static

Definition at line 9 of file gif.cpp.hpp.

9 {
10 // Create the software GIF decoder
11 auto decoder = fl::make_shared<fl::third_party::SoftwareGifDecoder>(config.format);
12
13 if (!decoder) {
14 if (error_message) {
15 *error_message = "Failed to allocate GIF decoder";
16 }
17 return nullptr;
18 }
19
20 return decoder;
21}
shared_ptr< T > make_shared(Args &&... args) FL_NOEXCEPT
Definition shared_ptr.h:414

References fl::GifConfig::format, and fl::make_shared().

Referenced by createDecoder(), and CodecProcessor::processGif().

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