|
FastLED 3.9.15
|
| bool fl::third_party::nsgif_local_palette | ( | const nsgif_t * | gif, |
| fl::u32 | frame, | ||
| fl::u32 | table[NSGIF_MAX_COLOURS], | ||
| fl::size * | entries ) |
Get the local colour palette for a frame.
Frames may have no local palette. In this case they use the global palette. This function returns false if the frame has no local palette.
Colours in same pixel format as nsgif_bitmap_t.
| [in] | gif | The nsgif_t object. |
| [in] | frame | The frame to get the palette for. |
| [out] | table | Client buffer to hold the colour table. |
| [out] | entries | The number of used entries in the colour table. |
Definition at line 2020 of file gif.cpp.hpp.
References fl::third_party::nsgif_frame::colour_table_offset, FL_NOEXCEPT, fl::third_party::nsgif_frame::flags, fl::third_party::nsgif_frame::info, fl::third_party::nsgif_frame_info::local_palette, nsgif__colour_table_decode(), NSGIF_COLOUR_TABLE_SIZE_MASK, and NSGIF_MAX_COLOURS.
Here is the call graph for this function: