Trait IntoNativeSample
pub trait IntoNativeSample: Copy + Default + Sync + 'static
Convert any type into one of the supported sample types. Should be compiled to a no-op where the file contains the predicted sample type
Required Methods
fn to_f16(&self) -> f16Convert this sample to an f16, trying to represent the same numerical value.
fn to_f32(&self) -> f32Convert this sample to an f32, trying to represent the same numerical value.
fn to_u32(&self) -> u32Convert this sample to an u16, trying to represent the same numerical value.
Implementors
impl IntoNativeSample for Sampleimpl IntoNativeSample for f16impl IntoNativeSample for f32impl IntoNativeSample for u32