pub struct TrackInfoBuilder(/* private fields */);Implementations§
Source§impl TrackInfoBuilder
impl TrackInfoBuilder
Sourcepub fn with_codec_private(self, bytes: Arc<[u8]>) -> Self
pub fn with_codec_private(self, bytes: Arc<[u8]>) -> Self
Codec configuration bytes.
Sourcepub fn with_config_epoch(self, epoch: u32) -> Self
pub fn with_config_epoch(self, epoch: u32) -> Self
The configuration epoch.
Sourcepub fn with_codec_delay(self, d: FrameDuration) -> Self
pub fn with_codec_delay(self, d: FrameDuration) -> Self
Decoder delay.
Sourcepub fn with_seek_preroll(self, d: FrameDuration) -> Self
pub fn with_seek_preroll(self, d: FrameDuration) -> Self
Seek pre-roll.
Sourcepub fn with_edit_delay_ticks(self, ticks: i64) -> Self
pub fn with_edit_delay_ticks(self, ticks: i64) -> Self
Edit-list offset in track ticks.
Sourcepub fn with_declared_packets(self, n: u64) -> Self
pub fn with_declared_packets(self, n: u64) -> Self
Declared packet count.
Sourcepub fn with_declared_duration_ticks(self, n: u64) -> Self
pub fn with_declared_duration_ticks(self, n: u64) -> Self
Declared length in track ticks.
Sourcepub fn build(self) -> Result<TrackInfo, TrackError>
pub fn build(self) -> Result<TrackInfo, TrackError>
Validate and finish.
§Errors
A TrackError for a zero video dimension, a zero sample rate, or
no audio channels.
Trait Implementations§
Source§impl Clone for TrackInfoBuilder
impl Clone for TrackInfoBuilder
Source§fn clone(&self) -> TrackInfoBuilder
fn clone(&self) -> TrackInfoBuilder
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 moreAuto Trait Implementations§
impl Freeze for TrackInfoBuilder
impl RefUnwindSafe for TrackInfoBuilder
impl Send for TrackInfoBuilder
impl Sync for TrackInfoBuilder
impl Unpin for TrackInfoBuilder
impl UnsafeUnpin for TrackInfoBuilder
impl UnwindSafe for TrackInfoBuilder
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