pub enum SubtitleAction {
Copy {
format: SubtitleFormat,
},
Convert {
from: SubtitleFormat,
to: SubtitleFormat,
},
BurnIn {
format: SubtitleFormat,
},
Ocr {
from: SubtitleFormat,
to: SubtitleFormat,
},
Unknown,
}Variants§
Copy
Into the output as it is.
Fields
§
format: SubtitleFormatConvert
Converted to another text format, e.g. WebVTT for HLS.
BurnIn
Picture subtitles drawn into the video: the client cannot draw them in this delivery, and they are not read as text. Forces a video encode. The server never burns in a text subtitle: one the client cannot show is left out of the plan, with a reason.
Fields
§
format: SubtitleFormatOcr
A bitmap subtitle read as text by the server (P2-07). It is not in
the output: the client fetches it whole with ReadSubtitle, which
answers SubtitleNotReady until the reading is done.
Unknown
Trait Implementations§
Source§impl Clone for SubtitleAction
impl Clone for SubtitleAction
impl Copy for SubtitleAction
Source§impl Debug for SubtitleAction
impl Debug for SubtitleAction
Source§impl<'de> Deserialize<'de> for SubtitleAction
impl<'de> Deserialize<'de> for SubtitleAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SubtitleAction
Source§impl PartialEq for SubtitleAction
impl PartialEq for SubtitleAction
Source§impl Serialize for SubtitleAction
impl Serialize for SubtitleAction
impl StructuralPartialEq for SubtitleAction
Auto Trait Implementations§
impl Freeze for SubtitleAction
impl RefUnwindSafe for SubtitleAction
impl Send for SubtitleAction
impl Sync for SubtitleAction
impl Unpin for SubtitleAction
impl UnsafeUnpin for SubtitleAction
impl UnwindSafe for SubtitleAction
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