Struct immeta::formats::gif::ColorTable
[−]
[src]
pub struct ColorTable { pub size: u16, pub sorted: bool, }
Contains information about a color table (global or local).
Fields
size: u16
Color table size, between 2 and 256.
sorted: bool
Whether the color table is sorted. Quoting from GIF spec:
If the flag is set, the [..] Color Table is sorted, in order of decreasing importance. Typically, the order would be decreasing frequency, with most frequent color first. This assists a decoder, with fewer available colors, in choosing the best subset of colors; the decoder may use an initial segment of the table to render the graphic.
Trait Implementations
impl Clone for ColorTable
[src]
fn clone(&self) -> ColorTable
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for ColorTable
[src]
fn eq(&self, __arg_0: &ColorTable) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ColorTable) -> bool
[src]
This method tests for !=
.