pub enum SubtitlePayload<B> {
Text {
text: B,
language: Option<[u8; 3]>,
},
Bitmap {
regions: Vec<BitmapRegion<B>>,
},
}Expand description
Decoded subtitle payload — text or bitmap regions.
Variants§
Text
Text subtitle (UTF-8 in text; ISO 639-2 language tag optional).
Fields
§
text: BUTF-8 text payload.
Bitmap
Available on crate features
alloc or std only.Bitmap subtitle — one or more rectangles of paletted pixels.
Available only with the alloc feature.
Fields
§
regions: Vec<BitmapRegion<B>>One or more rectangles. FFmpeg subtitles often carry several.
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for SubtitlePayload<B>where
B: Freeze,
impl<B> RefUnwindSafe for SubtitlePayload<B>where
B: RefUnwindSafe,
impl<B> Send for SubtitlePayload<B>where
B: Send,
impl<B> Sync for SubtitlePayload<B>where
B: Sync,
impl<B> Unpin for SubtitlePayload<B>where
B: Unpin,
impl<B> UnsafeUnpin for SubtitlePayload<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for SubtitlePayload<B>where
B: 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