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

◆ hasMoreFrames()

bool fl::third_party::SoftwareGifDecoder::hasMoreFrames ( ) const
overridevirtual

Implements fl::IDecoder.

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

133 {
134 if (hasError_ || !ready_) {
135 return false;
136 }
137
138 if (endOfStream_) {
139 return false;
140 }
141
142 // Check if we have more frames available
143 const nsgif_info_t* info = nsgif_get_info(gif_);
144 if (!info) {
145 return false;
146 }
147
148 return currentFrameIndex_ < info->frame_count || !dataComplete_;
149}
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 currentFrameIndex_, dataComplete_, endOfStream_, FL_NOEXCEPT, fl::third_party::nsgif_info::frame_count, gif_, hasError_, fl::third_party::nsgif_get_info(), and ready_.

+ Here is the call graph for this function: