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

◆ seek()

bool fl::third_party::SoftwareGifDecoder::seek ( fl::u32 frameIndex)
overridevirtual

Reimplemented from fl::IDecoder.

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

160 {
161 if (!ready_ || hasError_) {
162 return false;
163 }
164
165 const nsgif_info_t* info = nsgif_get_info(gif_);
166 if (!info || frameIndex >= info->frame_count) {
167 return false;
168 }
169
170 currentFrameIndex_ = frameIndex;
171 endOfStream_ = false;
172 return true;
173}
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_, 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: