Struct vobsub::Subtitle [] [src]

pub struct Subtitle {
    pub start_time: f64,
    pub end_time: f64,
    pub force: bool,
    pub coordinates: Coordinates,
    pub palette: [u8; 4],
    pub alpha: [u8; 4],
    pub raw_image: Vec<u8>,
    // some fields omitted
}

A single subtitle.

Fields

Start time of subtitle, in seconds.

End time of subtitle, in seconds.

Should this subtitle be shown even when subtitles are off?

Coordinates at which to display the subtitle.

Map each of the 4 colors in this subtitle to a 4-bit palette.

Map each of the 4 colors in this subtitle to 4 bits of alpha channel data.

Our decompressed image, stored with 2 bits per byte in row-major order, that can be used as indices into palette and alpha.

Methods

impl Subtitle
[src]

Decompress to subtitle to an RBGA image.

Trait Implementations

impl Clone for Subtitle
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Debug for Subtitle
[src]

Formats the value using the given formatter.