pub struct DecoderSessionConfig {Show 24 fields
pub codec: String,
pub media_kind: DecoderMediaKind,
pub extradata: Vec<u8>,
pub bitstream_format: Option<DecoderBitstreamFormat>,
pub width: Option<u32>,
pub height: Option<u32>,
pub coded_width: Option<u32>,
pub coded_height: Option<u32>,
pub reorder_depth: Option<u32>,
pub sample_rate: Option<u32>,
pub channels: Option<u16>,
pub channel_layout: Option<String>,
pub target_pcm_format: Option<DecoderFrameFormat>,
pub target_pcm_sample_layout: Option<DecoderPcmSampleLayout>,
pub codec_delay_samples: Option<u32>,
pub priming_samples: Option<u32>,
pub trailing_padding_samples: Option<u32>,
pub seek_preroll_samples: Option<u32>,
pub prefer_hardware: bool,
pub required_decoder_implementation_name: Option<String>,
pub require_cpu_output: bool,
pub native_device_context: Option<DecoderNativeDeviceContext>,
pub color: Option<NativeFrameColorMetadata>,
pub hdr: Option<NativeFrameHdrMetadata>,
}Expand description
Configuration used to open a decoder session.
Fields§
§codec: String§media_kind: DecoderMediaKind§extradata: Vec<u8>§bitstream_format: Option<DecoderBitstreamFormat>§width: Option<u32>§height: Option<u32>§coded_width: Option<u32>§coded_height: Option<u32>§reorder_depth: Option<u32>§sample_rate: Option<u32>§channels: Option<u16>§channel_layout: Option<String>§target_pcm_format: Option<DecoderFrameFormat>§target_pcm_sample_layout: Option<DecoderPcmSampleLayout>§codec_delay_samples: Option<u32>§priming_samples: Option<u32>§trailing_padding_samples: Option<u32>§seek_preroll_samples: Option<u32>§prefer_hardware: bool§required_decoder_implementation_name: Option<String>Platform decoder implementation selected by a trusted host capability probe.
require_cpu_output: bool§native_device_context: Option<DecoderNativeDeviceContext>§color: Option<NativeFrameColorMetadata>§hdr: Option<NativeFrameHdrMetadata>Implementations§
Source§impl DecoderSessionConfig
impl DecoderSessionConfig
Sourcepub fn audio_from_source_normalizer_track(
track: &SourceNormalizerPacketTrackInfo,
target_pcm_format: DecoderFrameFormat,
target_pcm_sample_layout: DecoderPcmSampleLayout,
) -> Result<Self, DecoderError>
pub fn audio_from_source_normalizer_track( track: &SourceNormalizerPacketTrackInfo, target_pcm_format: DecoderFrameFormat, target_pcm_sample_layout: DecoderPcmSampleLayout, ) -> Result<Self, DecoderError>
Builds an audio decoder session config from a SourceNormalizer audio track.
Sourcepub fn apple_native_audio_from_source_normalizer_track(
track: &SourceNormalizerPacketTrackInfo,
) -> Result<Self, DecoderError>
pub fn apple_native_audio_from_source_normalizer_track( track: &SourceNormalizerPacketTrackInfo, ) -> Result<Self, DecoderError>
Builds the default Apple PCM output preference for native audio.
Trait Implementations§
Source§impl Clone for DecoderSessionConfig
impl Clone for DecoderSessionConfig
Source§fn clone(&self) -> DecoderSessionConfig
fn clone(&self) -> DecoderSessionConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DecoderSessionConfig
impl Debug for DecoderSessionConfig
Source§impl Default for DecoderSessionConfig
impl Default for DecoderSessionConfig
Source§fn default() -> DecoderSessionConfig
fn default() -> DecoderSessionConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DecoderSessionConfig
impl<'de> Deserialize<'de> for DecoderSessionConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DecoderSessionConfig
Source§impl PartialEq for DecoderSessionConfig
impl PartialEq for DecoderSessionConfig
Source§impl Serialize for DecoderSessionConfig
impl Serialize for DecoderSessionConfig
impl StructuralPartialEq for DecoderSessionConfig
Auto Trait Implementations§
impl Freeze for DecoderSessionConfig
impl RefUnwindSafe for DecoderSessionConfig
impl Send for DecoderSessionConfig
impl Sync for DecoderSessionConfig
impl Unpin for DecoderSessionConfig
impl UnsafeUnpin for DecoderSessionConfig
impl UnwindSafe for DecoderSessionConfig
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