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

◆ nsgif__recover_frame()

static nsgif_error fl::third_party::nsgif__recover_frame ( const struct nsgif * gif,
fl::u32 * bitmap )
static

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

341{
342 const fl::u32 *prev_frame = static_cast<const fl::u32*>(gif->prev_frame);
343 fl::size pixel_bytes = sizeof(*bitmap);
344 fl::size height = gif->info.height;
345 fl::size width = gif->info.width;
346
347 fl::memcpy(bitmap, prev_frame, height * width * pixel_bytes);
348
349 return NSGIF_OK;
350}
@ NSGIF_OK
Success.
Definition nsgif.hpp:62
fl::u32 width
width of GIF (may increase during decoding)
Definition nsgif.hpp:384
fl::u32 height
height of GIF (may increase during decoding)
Definition nsgif.hpp:386
struct nsgif_info info
Definition gif.cpp.hpp:72
void * prev_frame
previous frame for NSGIF_FRAME_RESTORE
Definition gif.cpp.hpp:134
void * memcpy(void *dest, const void *src, size_t n) FL_NOEXCEPT
u8 u8 height
Definition blur.h:186
u8 width
Definition blur.h:186

References FL_NOEXCEPT, fl::height, fl::memcpy(), NSGIF_OK, and fl::width.

Referenced by nsgif__update_bitmap().

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