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

◆ nsgif__frame_next()

static fl::u32 fl::third_party::nsgif__frame_next ( const nsgif_t * gif,
bool partial,
fl::u32 frame )
static

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

1823{
1824 fl::u32 frames = partial ?
1825 gif->frame_count_partial :
1826 gif->info.frame_count;
1827
1828 if (frames == 0) {
1829 return NSGIF_FRAME_INVALID;
1830 }
1831
1832 frame++;
1833 return (frame >= frames) ? 0 : frame;
1834}
fl::u32 frame_count
number of frames decoded
Definition nsgif.hpp:388
struct nsgif_info info
Definition gif.cpp.hpp:72
fl::u32 frame_count_partial
number of frames partially decoded
Definition gif.cpp.hpp:100
#define NSGIF_FRAME_INVALID
Internal flag that a frame is invalid/unprocessed.
Definition gif.cpp.hpp:162

References FL_NOEXCEPT, and NSGIF_FRAME_INVALID.

Referenced by nsgif__next_displayable_frame(), and nsgif_frame_decode().

+ Here is the caller graph for this function: