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

◆ nsgif_get_frame_info()

const nsgif_frame_info_t * fl::third_party::nsgif_get_frame_info ( const nsgif_t * gif,
fl::u32 frame )

Get information about a GIF from an nsgif_t object.

Parameters
[in]gifThe nsgif_t object to get frame info for.
[in]frameThe frame number to get info for.
Returns
The gif frame info, or NULL on error.

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

1999{
2000 if (frame >= gif->info.frame_count) {
2001 return nullptr;
2002 }
2003
2004 return &gif->frames[frame].info;
2005}
nsgif_frame * frames
decoded frames
Definition gif.cpp.hpp:79
fl::u32 frame_count
number of frames decoded
Definition nsgif.hpp:388
struct nsgif_info info
Definition gif.cpp.hpp:72
struct nsgif_frame_info info
Definition gif.cpp.hpp:38

References FL_NOEXCEPT.