305{
306 fl::size pixel_bytes = sizeof(*bitmap);
309 fl::u32 *prev_frame;
310
313
314 return;
315 }
316
318 if (bitmap == nullptr) {
319 return;
320 }
321
324 if (prev_frame == nullptr) {
325 return;
326 }
328 } else {
329 prev_frame =
static_cast<fl::u32*
>(gif->
prev_frame);
330 }
331
333
336}
static fl::u32 * nsgif__bitmap_get(struct nsgif *gif) FL_NOEXCEPT
Helper to get the rendering bitmap for a gif.
fl::u32 prev_index
previous frame index
fl::u32 decoded_frame
current frame decoded to bitmap
fl::u32 width
width of GIF (may increase during decoding)
fl::u32 height
height of GIF (may increase during decoding)
void * prev_frame
previous frame for NSGIF_FRAME_RESTORE
void * memcpy(void *dest, const void *src, size_t n) FL_NOEXCEPT
void * Malloc(fl::size size)
#define NSGIF_FRAME_INVALID
Internal flag that a frame is invalid/unprocessed.