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

◆ createDecoder() [1/2]

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

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

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

References fl::FL_NO_EXCEPT, and fl::adl_barrier::make_shared().

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

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