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

◆ initializeDecoder()

bool fl::third_party::SoftwareGifDecoder::initializeDecoder ( )
private

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

206 {
207 // Determine bitmap format based on output format
208 // Use R8G8B8A8 explicitly to ensure byte order: 0xRR, 0xGG, 0xBB, 0xAA
210
212 if (result != NSGIF_OK) {
213 setError(fl::string("Failed to create GIF decoder: ") + nsgif_strerror(result));
214 return false;
215 }
216
217 ready_ = true;
218 return true;
219}
void setError(const fl::string &message) FL_NOEXCEPT
static nsgif_bitmap_cb_vt bitmapCallbacks_
@ NSGIF_BITMAP_FMT_R8G8B8A8
Bite-wise RGBA: Byte order: 0xRR, 0xGG, 0xBB, 0xAA.
Definition nsgif.hpp:119
nsgif_error
LibNSGIF return codes.
Definition nsgif.hpp:58
@ NSGIF_OK
Success.
Definition nsgif.hpp:62
nsgif_error nsgif_create(const nsgif_bitmap_cb_vt *bitmap_vt, nsgif_bitmap_fmt_t bitmap_fmt, nsgif_t **gif_out) FL_NOEXCEPT
Create the NSGIF object.
Definition gif.cpp.hpp:1493
const char * nsgif_strerror(nsgif_error err) FL_NOEXCEPT
Convert an error code to a string.
Definition gif.cpp.hpp:2045
enum fl::third_party::nsgif_bitmap_fmt nsgif_bitmap_fmt_t
NSGIF nsgif_bitmap_t pixel format.
expected< T, E > result
Alias for expected (Rust-style naming)
Definition result.h:31

References bitmapCallbacks_, FL_NOEXCEPT, gif_, fl::third_party::NSGIF_BITMAP_FMT_R8G8B8A8, fl::third_party::nsgif_create(), fl::third_party::NSGIF_OK, fl::third_party::nsgif_strerror(), ready_, and setError().

Referenced by begin().

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