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: f64
Start time of subtitle, in seconds.
end_time: f64
End time of subtitle, in seconds.
force: bool
Should this subtitle be shown even when subtitles are off?
coordinates: Coordinates
Coordinates at which to display the subtitle.
palette: [u8; 4]
Map each of the 4 colors in this subtitle to a 4-bit palette.
alpha: [u8; 4]
Map each of the 4 colors in this subtitle to 4 bits of alpha channel data.
raw_image: Vec<u8>
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]
Trait Implementations
impl Clone for Subtitle
[src]
fn clone(&self) -> Subtitle
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more