#[repr(C)]
pub struct CODER_CONFIG {
Show 24 fields pub aot: AUDIO_OBJECT_TYPE, pub extAOT: AUDIO_OBJECT_TYPE, pub channelMode: CHANNEL_MODE, pub channelConfigZero: UCHAR, pub samplingRate: INT, pub extSamplingRate: INT, pub downscaleSamplingRate: INT, pub bitRate: INT, pub samplesPerFrame: c_int, pub noChannels: c_int, pub bitsFrame: c_int, pub nSubFrames: c_int, pub BSACnumOfSubFrame: c_int, pub BSAClayerLength: c_int, pub flags: UINT, pub matrixMixdownA: UCHAR, pub headerPeriod: UCHAR, pub stereoConfigIndex: UCHAR, pub sbrMode: UCHAR, pub sbrSignaling: SBR_PS_SIGNALING, pub rawConfig: [UCHAR; 64], pub rawConfigBits: c_int, pub sbrPresent: UCHAR, pub psPresent: UCHAR,
}
Expand description

Generic audio coder configuration structure.

Fields§

§aot: AUDIO_OBJECT_TYPE

< Audio Object Type (AOT).

§extAOT: AUDIO_OBJECT_TYPE

< Extension Audio Object Type (SBR).

§channelMode: CHANNEL_MODE

< Channel mode.

§channelConfigZero: UCHAR

< Use channel config zero + pce although a standard channel config could be signaled.

§samplingRate: INT

< Sampling rate.

§extSamplingRate: INT

< Extended samplerate (SBR).

§downscaleSamplingRate: INT

< Downscale sampling rate (ELD downscaled mode)

§bitRate: INT

< Average bitrate.

§samplesPerFrame: c_int

< Number of PCM samples per codec frame and audio channel.

§noChannels: c_int

< Number of audio channels.

§bitsFrame: c_int§nSubFrames: c_int

< Amount of encoder subframes. 1 means no subframing.

§BSACnumOfSubFrame: c_int

< The number of the sub-frames which are grouped and transmitted in a super-frame (BSAC).

§BSAClayerLength: c_int

< The average length of the large-step layers in bytes (BSAC).

§flags: UINT

< flags

§matrixMixdownA: UCHAR

< Matrix mixdown index to put into PCE. Default value 0 means no mixdown coefficient, valid values are 1-4 which correspond to matrix_mixdown_idx 0-3.

§headerPeriod: UCHAR

< Frame period for sending in band configuration buffers in the transport layer.

§stereoConfigIndex: UCHAR

< USAC MPS stereo mode

§sbrMode: UCHAR

< USAC SBR mode

§sbrSignaling: SBR_PS_SIGNALING

< 0: implicit signaling, 1: backwards compatible explicit signaling, 2: hierarcical explicit signaling

§rawConfig: [UCHAR; 64]

< raw codec specific config as bit stream

§rawConfigBits: c_int

< Size of rawConfig in bits

§sbrPresent: UCHAR§psPresent: UCHAR

Trait Implementations§

source§

impl Clone for CODER_CONFIG

source§

fn clone(&self) -> CODER_CONFIG

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Copy for CODER_CONFIG

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.