*/
/**
- * @file libavcodec/ac3.h
+ * @file
* Common code between the AC-3 encoder and decoder.
*/
uint32_t bit_rate;
uint8_t channels;
uint16_t frame_size;
+ int64_t channel_layout;
/** @} */
} AC3HeaderInfo;
void ac3_common_init(void);
/**
- * Calculates the log power-spectral density of the input signal.
+ * Calculate the log power-spectral density of the input signal.
* This gives a rough estimate of signal power in the frequency domain by using
* the spectral envelope (exponents). The psd is also separately grouped
* into critical bands for use in the calculating the masking curve.
int16_t *band_psd);
/**
- * Calculates the masking curve.
- * First, the excitation is calculated using parameters in \p s and the signal
+ * Calculate the masking curve.
+ * First, the excitation is calculated using parameters in s and the signal
* power in each critical band. The excitation is compared with a predefined
* hearing threshold table to produce the masking curve. If delta bit
* allocation information is provided, it is used for adjusting the masking
int16_t *mask);
/**
- * Calculates bit allocation pointers.
+ * Calculate bit allocation pointers.
* The SNR is the difference between the masking curve and the signal. AC-3
- * uses this value for each frequency bin to allocate bits. The \p snroffset
+ * uses this value for each frequency bin to allocate bits. The snroffset
* parameter is a global adjustment to the SNR for all bins.
*
* @param[in] mask masking curve