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

◆ nsgif__bitmap_get_opaque()

static bool fl::third_party::nsgif__bitmap_get_opaque ( const struct nsgif * gif)
inlinestatic

Helper to get the client to determine if the bitmap is opaque.

Todo
: We don't really need to get the client to do this for us.
Parameters
[in]gifThe gif object we're decoding.
Returns
true if the bitmap is opaque, false otherwise.

Definition at line 291 of file gif.cpp.hpp.

293{
294 if (gif->bitmap.test_opaque) {
295 return gif->bitmap.test_opaque(
296 gif->frame_image);
297 }
298
299 return false;
300}
nsgif_bitmap_t * frame_image
currently decoded image; stored as bitmap from bitmap_create callback
Definition gif.cpp.hpp:86
bool(* test_opaque)(nsgif_bitmap_t *bitmap)
Tests whether a bitmap has an opaque alpha channel.
Definition nsgif.hpp:223
nsgif_bitmap_cb_vt bitmap
callbacks for bitmap functions
Definition gif.cpp.hpp:77

References FL_NOEXCEPT.

Referenced by nsgif__update_bitmap().

+ Here is the caller graph for this function: