logo
pub struct Ac3Settings {
    pub bitrate: Option<f64>,
    pub bitstream_mode: Option<String>,
    pub coding_mode: Option<String>,
    pub dialnorm: Option<i64>,
    pub drc_profile: Option<String>,
    pub lfe_filter: Option<String>,
    pub metadata_control: Option<String>,
}
Expand description

Ac3 Settings

Fields

bitrate: Option<f64>

Average bitrate in bits/second. Valid bitrates depend on the coding mode.

bitstream_mode: Option<String>

Specifies the bitstream mode (bsmod) for the emitted AC-3 stream. See ATSC A/52-2012 for background on these values.

coding_mode: Option<String>

Dolby Digital coding mode. Determines number of channels.

dialnorm: Option<i64>

Sets the dialnorm for the output. If excluded and input audio is Dolby Digital, dialnorm will be passed through.

drc_profile: Option<String>

If set to filmStandard, adds dynamic range compression signaling to the output bitstream as defined in the Dolby Digital specification.

lfe_filter: Option<String>

When set to enabled, applies a 120Hz lowpass filter to the LFE channel prior to encoding. Only valid in codingMode32Lfe mode.

metadata_control: Option<String>

When set to "followInput", encoder metadata will be sourced from the DD, DD+, or DolbyE decoder that supplied this audio data. If audio was not supplied from one of these streams, then the static metadata settings will be used.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

Should always be Self

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more