39 bool claw::graphic::gif::screen_descriptor::has_global_color_table()
const
41 return (packed & 0x80) != 0;
48 unsigned int claw::graphic::gif::screen_descriptor::color_palette_size()
const
50 if ( !has_global_color_table() )
53 return 1 << ((packed & 0x07) + 1);
63 claw::graphic::gif::graphic_control_extension::disposal_method
64 claw::graphic::gif::graphic_control_extension::get_disposal_method()
const
66 switch( (packed & 0x1C) >> 2 )
68 case 0:
return dispose_none;
69 case 1:
return dispose_do_not_dispose;
70 case 2:
return dispose_background;
71 case 3:
return dispose_previous;
73 return dispose_previous;
82 claw::graphic::gif::graphic_control_extension::has_transparent_color()
const
84 return (packed & 0x01) != 0;
94 bool claw::graphic::gif::image_descriptor::has_color_table()
const
96 return (packed & 0x80) != 0;
103 bool claw::graphic::gif::image_descriptor::is_interlaced()
const
105 return (packed & 0x40) != 0;
112 unsigned int claw::graphic::gif::image_descriptor::color_palette_size()
const
114 if ( !has_color_table() )
117 return 1 << ((packed & 0x07) + 1);
140 frame_list::const_iterator it;
142 for (it=that.m_frame.begin(); it!=that.m_frame.end(); ++it)
143 m_frame.push_back(
new frame(**it) );
153 reader(*
this, m_frame, f);
175 std::swap(tmp, *
this);
187 std::swap(m_frame, that.m_frame);