CLAW Library (a C++ Library Absolutely Wonderful) 1.5.5
|
Public Member Functions | |
bool | has_color_table () const |
Tell if the file contains a global palette. | |
bool | is_interlaced () const |
Tell if the data is interlaced. | |
unsigned int | color_palette_size () const |
Get the size of the palette, if any. | |
Public Attributes | |
u_int_16 | left |
Left position in the logical screen. | |
u_int_16 | top |
Top position in the logical screen. | |
u_int_16 | width |
Width of the image. | |
u_int_16 | height |
Height of the image. | |
u_int_8 | packed |
Some flags. | |
Static Public Attributes | |
static const u_int_8 | block_id = 0x2C |
Identifier of the block. |
unsigned int claw::graphic::gif::image_descriptor::color_palette_size | ( | ) | const |
Get the size of the palette, if any.
Definition at line 112 of file gif.cpp.
{ if ( !has_color_table() ) return 0; else return 1 << ((packed & 0x07) + 1); } // gif::image_descriptor::color_palette_size()
bool claw::graphic::gif::image_descriptor::has_color_table | ( | ) | const |
bool claw::graphic::gif::image_descriptor::is_interlaced | ( | ) | const |
const u_int_8 claw::graphic::gif::image_descriptor::block_id = 0x2C [static] |
Identifier of the block.
Definition at line 140 of file gif.hpp.
Referenced by claw::graphic::gif::reader::read_data(), and claw::graphic::gif::reader::read_frame_with_gce().