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

◆ getLoopCount()

fl::u32 fl::third_party::SoftwareGifDecoder::getLoopCount ( ) const

Definition at line 197 of file software_decoder.cpp.hpp.

197 {
198 if (!ready_ || hasError_) {
199 return 0;
200 }
201
202 const nsgif_info_t* info = nsgif_get_info(gif_);
203 return info ? static_cast<fl::u32>(info->loop_max) : 0;
204}
const nsgif_info_t * nsgif_get_info(const nsgif_t *gif) FL_NOEXCEPT
Get information about a GIF from an nsgif_t object.
Definition gif.cpp.hpp:1990
struct fl::third_party::nsgif_info nsgif_info_t
Information about a GIF.

References FL_NOEXCEPT, gif_, hasError_, fl::third_party::nsgif_info::loop_max, fl::third_party::nsgif_get_info(), and ready_.

+ Here is the call graph for this function: