pub struct SampleEntry {
pub format: FourCc,
pub codec: CodecConfig,
pub video: Option<VideoParams>,
pub audio: Option<AudioParams>,
pub bitrate: Option<BitRate>,
pub raw: Vec<u8>,
}Fields§
§format: FourCc§codec: CodecConfig§video: Option<VideoParams>§audio: Option<AudioParams>§bitrate: Option<BitRate>§raw: Vec<u8>Implementations§
Source§impl SampleEntry
impl SampleEntry
pub fn ac3_channels(&self) -> Option<u32>
pub fn h264(config: AvcConfig, width: u16, height: u16) -> Self
pub fn hevc(config: HevcConfig, width: u16, height: u16) -> Self
pub fn vp9(config: VpcConfig, width: u16, height: u16) -> Self
pub fn aac(asc: Vec<u8>, channels: u32, sample_rate: u32, bitrate: u32) -> Self
pub fn is_video(&self) -> bool
pub fn is_audio(&self) -> bool
Trait Implementations§
Source§impl Clone for SampleEntry
impl Clone for SampleEntry
Source§fn clone(&self) -> SampleEntry
fn clone(&self) -> SampleEntry
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 SampleEntry
impl Debug for SampleEntry
Source§impl PartialEq for SampleEntry
impl PartialEq for SampleEntry
Source§fn eq(&self, other: &SampleEntry) -> bool
fn eq(&self, other: &SampleEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SampleEntry
Auto Trait Implementations§
impl Freeze for SampleEntry
impl RefUnwindSafe for SampleEntry
impl Send for SampleEntry
impl Sync for SampleEntry
impl Unpin for SampleEntry
impl UnsafeUnpin for SampleEntry
impl UnwindSafe for SampleEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more