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

◆ bitmapCreate()

nsgif_bitmap_t * fl::third_party::SoftwareGifDecoder::bitmapCreate ( int width,
int height )
staticprivate

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

316 {
317 // Create a GifBitmap wrapper
318 // Note: In environments without exceptions, new will return nullptr on failure
319 GifBitmap* bitmap = new GifBitmap(static_cast<fl::u16>(width), static_cast<fl::u16>(height), 4); // 4 bytes per pixel for RGBA
320 return static_cast<nsgif_bitmap_t*>(bitmap);
321}
void nsgif_bitmap_t
Client bitmap type.
Definition nsgif.hpp:175
u8 u8 height
Definition blur.h:186
u8 width
Definition blur.h:186

References FL_NOEXCEPT, fl::height, and fl::width.