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

Color table size, between 2 and 256.

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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for ColorTable
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for ColorTable
[src]

impl Debug for ColorTable
[src]

[src]

Formats the value using the given formatter. Read more