pub struct CueImage {
pub width: u32,
pub height: u32,
pub pixels: Vec<u8>,
pub display_height: f32,
}Expand description
A picture subtitle’s pixels.
Fields§
§width: u32§height: u32§pixels: Vec<u8>RGBA, 8 bits a channel, unpremultiplied, rows from the top.
display_height: f32Its height on screen as a fraction of the picture’s; its width is the cue’s size.
Trait Implementations§
impl StructuralPartialEq for CueImage
Auto Trait Implementations§
impl Forget for CueImage
impl Freeze for CueImage
impl Move for CueImage
impl RefUnwindSafe for CueImage
impl Send for CueImagewhere
RawVecInner: Send,
impl Sync for CueImagewhere
RawVecInner: Sync,
impl Unpin for CueImage
impl UnsafeUnpin for CueImage
impl UnwindSafe for CueImagewhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more