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

◆ getFrameCount()

fl::u32 fl::third_party::SoftwareGifDecoder::getFrameCount ( ) const
overridevirtual

Reimplemented from fl::IDecoder.

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

151 {
152 if (!ready_ || hasError_) {
153 return 0;
154 }
155
156 const nsgif_info_t* info = nsgif_get_info(gif_);
157 return info ? info->frame_count : 0;
158}
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, fl::third_party::nsgif_info::frame_count, gif_, hasError_, fl::third_party::nsgif_get_info(), and ready_.

Referenced by isAnimated().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: