Extension describing a rendering block. More...
Public Types | |
enum | disposal_method { dispose_none, dispose_do_not_dispose, dispose_background, dispose_previous } |
Tell how to initialise the canvas before rendering a frame. More... | |
Public Member Functions | |
disposal_method | get_disposal_method () const |
Get the disposal method of the frame. | |
bool | has_transparent_color () const |
Tell if the palette contains a transparent color. | |
Public Attributes | |
u_int_8 | block_size |
Number of bytes in the block. | |
u_int_8 | packed |
Some flags. | |
u_int_16 | delay |
Hundredths of a second to wait before continuing. | |
u_int_8 | transparent_color |
Index of the transparent color in the palette. | |
u_int_8 | terminator |
Block terminator. | |
Static Public Attributes | |
static const u_int_8 | block_label = 0xF9 |
Identifier of the extension. |
Extension describing a rendering block.
Definition at line 184 of file gif.hpp.
Tell how to initialise the canvas before rendering a frame.
Definition at line 192 of file gif.hpp.
{ dispose_none, dispose_do_not_dispose, dispose_background, dispose_previous }; // enum disposal_method
claw::graphic::gif::graphic_control_extension::disposal_method claw::graphic::gif::graphic_control_extension::get_disposal_method | ( | ) | const |
Get the disposal method of the frame.
Definition at line 64 of file gif.cpp.
Referenced by claw::graphic::gif::reader::read_frame_with_gce().
{ switch( (packed & 0x1C) >> 2 ) { case 0: return dispose_none; case 1: return dispose_do_not_dispose; case 2: return dispose_background; case 3: return dispose_previous; default: return dispose_previous; } } // gif::graphic_control_extension::get_disposal_method()
bool claw::graphic::gif::graphic_control_extension::has_transparent_color | ( | ) | const |
Tell if the palette contains a transparent color.
Definition at line 82 of file gif.cpp.
Referenced by claw::graphic::gif::reader::read_frame_with_gce().
{ return (packed & 0x01) != 0; } // gif::graphic_control_extension::has_transparent_color()
const u_int_8 claw::graphic::gif::graphic_control_extension::block_label = 0xF9 [static] |
Identifier of the extension.
Definition at line 188 of file gif.hpp.
Referenced by claw::graphic::gif::reader::read_data(), and claw::graphic::gif::reader::read_frame_with_gce().
Hundredths of a second to wait before continuing.
Definition at line 224 of file gif.hpp.
Referenced by claw::graphic::gif::reader::read_frame_with_gce().
Index of the transparent color in the palette.
Definition at line 227 of file gif.hpp.
Referenced by claw::graphic::gif::reader::read_frame_with_gce().