pub struct SourceFormat { /* private fields */ }Expand description
An owned layout snapshot containing no borrowed native memory.
A value the SDK does not know, or that does not apply, such as the audio of a source without audio, is zero.
Implementations§
Source§impl SourceFormat
impl SourceFormat
Sourcepub fn video_tracks(&self) -> &[VideoTrack]
pub fn video_tracks(&self) -> &[VideoTrack]
The populated video tracks: the program track first, then the preview (proxy) track when there is one.
Sourcepub fn audio_sample_rate(&self) -> u32
pub fn audio_sample_rate(&self) -> u32
The audio sample rate in Hz.
Sourcepub fn audio_num_channels(&self) -> u32
pub fn audio_num_channels(&self) -> u32
The number of audio channels.
Sourcepub fn audio_num_samples(&self) -> u32
pub fn audio_num_samples(&self) -> u32
The number of audio samples per channel in each packet.
Sourcepub fn audio_bit_depth(&self) -> u32
pub fn audio_bit_depth(&self) -> u32
The audio bit depth.
Sourcepub fn audio_fourcc(&self) -> FourCc
pub fn audio_fourcc(&self) -> FourCc
The audio codec or packing identifier.
Trait Implementations§
Source§impl Clone for SourceFormat
impl Clone for SourceFormat
Source§impl Debug for SourceFormat
impl Debug for SourceFormat
impl Eq for SourceFormat
Source§impl Hash for SourceFormat
impl Hash for SourceFormat
Source§impl PartialEq for SourceFormat
impl PartialEq for SourceFormat
impl StructuralPartialEq for SourceFormat
Auto Trait Implementations§
impl Freeze for SourceFormat
impl RefUnwindSafe for SourceFormat
impl Send for SourceFormat
impl Sync for SourceFormat
impl Unpin for SourceFormat
impl UnsafeUnpin for SourceFormat
impl UnwindSafe for SourceFormat
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