pub struct SubtitleCodecParameters {
pub codec: SubtitleCodecId,
pub extra_data: Option<Box<[u8]>>,
}Expand description
Codec parameters for subtitle codecs.
Fields§
§codec: SubtitleCodecIdThe codec ID.
extra_data: Option<Box<[u8]>>Extra data (defined by the codec).
Implementations§
Source§impl SubtitleCodecParameters
impl SubtitleCodecParameters
pub fn new() -> SubtitleCodecParameters
Sourcepub fn for_codec(&mut self, codec: SubtitleCodecId) -> &mut Self
pub fn for_codec(&mut self, codec: SubtitleCodecId) -> &mut Self
Provide the VideoCodecId.
Sourcepub fn with_extra_data(&mut self, data: Box<[u8]>) -> &mut Self
pub fn with_extra_data(&mut self, data: Box<[u8]>) -> &mut Self
Provide codec extra data.
Trait Implementations§
Source§impl Clone for SubtitleCodecParameters
impl Clone for SubtitleCodecParameters
Source§fn clone(&self) -> SubtitleCodecParameters
fn clone(&self) -> SubtitleCodecParameters
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SubtitleCodecParameters
impl Debug for SubtitleCodecParameters
Source§impl Default for SubtitleCodecParameters
impl Default for SubtitleCodecParameters
Source§fn default() -> SubtitleCodecParameters
fn default() -> SubtitleCodecParameters
Returns the “default value” for a type. Read more
Source§impl From<SubtitleCodecParameters> for CodecParameters
impl From<SubtitleCodecParameters> for CodecParameters
Source§fn from(value: SubtitleCodecParameters) -> Self
fn from(value: SubtitleCodecParameters) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SubtitleCodecParameters
impl RefUnwindSafe for SubtitleCodecParameters
impl Send for SubtitleCodecParameters
impl Sync for SubtitleCodecParameters
impl Unpin for SubtitleCodecParameters
impl UnsafeUnpin for SubtitleCodecParameters
impl UnwindSafe for SubtitleCodecParameters
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