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

◆ getWidth()

fl::u16 fl::third_party::SoftwareGifDecoder::getWidth ( ) const

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

175 {
176 if (!ready_ || hasError_) {
177 return 0;
178 }
179
180 const nsgif_info_t* info = nsgif_get_info(gif_);
181 return info ? static_cast<fl::u16>(info->width) : 0;
182}
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_get_info(), ready_, and fl::third_party::nsgif_info::width.

+ Here is the call graph for this function: