pub struct AudioFormat {
pub sample_type: SampleType,
pub bits_per_sample: i32,
pub bytes_per_sample: i32,
pub num_channels: i32,
pub channel_layout: ChannelLayout,
}
Fields§
§sample_type: SampleType
§bits_per_sample: i32
§bytes_per_sample: i32
§num_channels: i32
§channel_layout: ChannelLayout
Implementations§
Source§impl AudioFormat
impl AudioFormat
pub const STEREO16: Self
pub const MONO16: Self
Sourcepub fn query(
sample_type: SampleType,
bits_per_sample: i32,
channel_layout: u64,
core: &CoreRef<'_>,
) -> Result<Self, FormatError>
pub fn query( sample_type: SampleType, bits_per_sample: i32, channel_layout: u64, core: &CoreRef<'_>, ) -> Result<Self, FormatError>
Creates an AudioFormat using VapourSynth’s validation. This ensures all derived fields are correctly calculated.
pub fn get_name(&self) -> Option<String>
Trait Implementations§
Source§impl Clone for AudioFormat
impl Clone for AudioFormat
Source§fn clone(&self) -> AudioFormat
fn clone(&self) -> AudioFormat
Returns a duplicate of the value. Read more
1.0.0 · 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 AudioFormat
impl Debug for AudioFormat
Source§impl Hash for AudioFormat
impl Hash for AudioFormat
Source§impl PartialEq for AudioFormat
impl PartialEq for AudioFormat
impl Copy for AudioFormat
impl Eq for AudioFormat
impl StructuralPartialEq for AudioFormat
Auto Trait Implementations§
impl Freeze for AudioFormat
impl RefUnwindSafe for AudioFormat
impl Send for AudioFormat
impl Sync for AudioFormat
impl Unpin for AudioFormat
impl UnwindSafe for AudioFormat
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