pub struct PcmAudioStream<I> {
pub pcm_audio: PcmAudio,
pub encoder_settings: EncoderSettings,
pub frames_per_packet: I,
pub timebase: Option<u64>,
}
Fields§
§pcm_audio: PcmAudio
§encoder_settings: EncoderSettings
§frames_per_packet: I
§timebase: Option<u64>
Implementations§
Source§impl<I> PcmAudioStream<I>
impl<I> PcmAudioStream<I>
pub fn bytes_per_second(&self) -> usize
pub fn timestamp_generator(&self) -> Option<TimestampGenerator>
Trait Implementations§
Source§impl<I> ElementaryStream for PcmAudioStream<I>
impl<I> ElementaryStream for PcmAudioStream<I>
fn format_details(&self, format_details_version_ordinal: u64) -> FormatDetails
Source§fn is_access_units(&self) -> bool
fn is_access_units(&self) -> bool
Whether all chunks in the elementary stream will be marked with access unit boundaries.
These are units for stream processors (e.g. for H264 decoder, NALs). When input is not in
access units, the server must parse and/or buffer the bitstream.
fn stream<'a>(&'a self) -> Box<dyn Iterator<Item = ElementaryStreamChunk> + 'a>
§fn capped_chunks<'a>(
&'a self,
max_size: usize,
) -> Box<dyn Iterator<Item = ElementaryStreamChunk> + 'a>
fn capped_chunks<'a>( &'a self, max_size: usize, ) -> Box<dyn Iterator<Item = ElementaryStreamChunk> + 'a>
Returns the elementary stream with chunks capped at a given size. Chunks bigger than the cap
will be divided into multiple chunks. Order is retained. Timestamps are not extrapolated.
Access unit boundaries are corrected.
fn video_frame_count(&self) -> usize
Auto Trait Implementations§
impl<I> Freeze for PcmAudioStream<I>where
I: Freeze,
impl<I> RefUnwindSafe for PcmAudioStream<I>where
I: RefUnwindSafe,
impl<I> Send for PcmAudioStream<I>where
I: Send,
impl<I> Sync for PcmAudioStream<I>where
I: Sync,
impl<I> Unpin for PcmAudioStream<I>where
I: Unpin,
impl<I> UnwindSafe for PcmAudioStream<I>where
I: UnwindSafe,
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