Struct vobsub::Subtitle [] [src]

pub struct Subtitle { /* fields omitted */ }

A single subtitle.

Methods

impl Subtitle
[src]

Start time of subtitle, in seconds.

End time of subtitle, in seconds. This may be missing from certain subtitles.

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.

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 PartialEq for Subtitle
[src]

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

This method tests for !=.

impl<'a> Debug for Subtitle
[src]

Formats the value using the given formatter.