pub struct TimestampValidator { /* private fields */ }
Implementations§
Source§impl TimestampValidator
impl TimestampValidator
Sourcepub fn new(
frame_length: usize,
pcm_frame_size: usize,
timestamp_generator: Option<TimestampGenerator>,
audio_stream: &impl ElementaryStream,
) -> Self
pub fn new( frame_length: usize, pcm_frame_size: usize, timestamp_generator: Option<TimestampGenerator>, audio_stream: &impl ElementaryStream, ) -> Self
Given frame_length
, the input size of encoded output packets in terms of PCM input frames,
and the input stream, creates a validator that knows what timestamps to expect on each
encoded output packet.
pub fn expected_timestamp(&self, output_packet_index: usize) -> Option<u64>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TimestampValidator
impl RefUnwindSafe for TimestampValidator
impl Send for TimestampValidator
impl Sync for TimestampValidator
impl Unpin for TimestampValidator
impl UnwindSafe for TimestampValidator
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