|
FastLED 3.9.15
|
| nsgif_error fl::third_party::nsgif_frame_prepare | ( | nsgif_t * | gif, |
| nsgif_rect_t * | area, | ||
| fl::u32 * | delay_cs, | ||
| fl::u32 * | frame_new ) |
Prepare to show a frame.
If this is the last frame of an animation with a finite loop count, the returned delay_cs will be NSGIF_INFINITE, indicating that the frame should be shown forever.
Note that if nsgif_data_complete has not been called on this gif, animated GIFs will not loop back to the start. Instead it will return NSGIF_ERR_END_OF_DATA.
| [in] | gif | The nsgif_t object. |
| [out] | area | The area in pixels that must be redrawn. |
| [out] | delay_cs | Time to wait after frame_new before next frame in cs. |
| [out] | frame_new | The frame to decode. |
Definition at line 1882 of file gif.cpp.hpp.
References fl::rect< T >::rect(), fl::delay(), FL_NOEXCEPT, nsgif__animation_complete(), nsgif__next_displayable_frame(), nsgif__redraw_rect_extend(), NSGIF_ERR_ANIMATION_END, NSGIF_FRAME_INVALID, NSGIF_INFINITE, and NSGIF_OK.
Here is the call graph for this function: