Data Structures |
| struct | AC3MDCTContext |
| struct | AC3Block |
| | Data for a single audio block. More...
|
| struct | AC3EncodeContext |
| | AC-3 encoder private context. More...
|
Defines |
| #define | CONFIG_AC3ENC_FLOAT 0 |
| #define | OFFSET(param) offsetof(AC3EncodeContext, options.param) |
| #define | AC3ENC_PARAM (AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_ENCODING_PARAM) |
| #define | AC3ENC_TYPE_AC3_FIXED 0 |
| #define | AC3ENC_TYPE_AC3 1 |
| #define | AC3ENC_TYPE_EAC3 2 |
| #define | AC3_NAME(x) ff_ac3_fixed_ ## x |
| #define | MAC_COEF(d, a, b) MAC64(d,a,b) |
Typedefs |
| typedef int16_t | SampleType |
| typedef int32_t | CoefType |
| typedef int64_t | CoefSumType |
| typedef struct AC3MDCTContext | AC3MDCTContext |
| typedef struct AC3Block | AC3Block |
| | Data for a single audio block.
|
| typedef struct AC3EncodeContext | AC3EncodeContext |
| | AC-3 encoder private context.
|
Functions |
| int | ff_ac3_encode_init (AVCodecContext *avctx) |
| | Initialize the encoder.
|
| int | ff_ac3_encode_frame (AVCodecContext *avctx, unsigned char *frame, int buf_size, void *data) |
| | Encode a single AC-3 frame.
|
| int | ff_ac3_encode_close (AVCodecContext *avctx) |
| | Finalize encoding and free any memory allocated by the encoder.
|
| void | ff_ac3_fixed_mdct_end (AC3MDCTContext *mdct) |
| void | ff_ac3_float_mdct_end (AC3MDCTContext *mdct) |
| | Finalize MDCT and free allocated memory.
|
| int | ff_ac3_fixed_mdct_init (AVCodecContext *avctx, AC3MDCTContext *mdct, int nbits) |
| int | ff_ac3_float_mdct_init (AVCodecContext *avctx, AC3MDCTContext *mdct, int nbits) |
| | Initialize MDCT tables.
|
| void | ff_ac3_fixed_apply_window (DSPContext *dsp, SampleType *output, const SampleType *input, const SampleType *window, unsigned int len) |
| void | ff_ac3_float_apply_window (DSPContext *dsp, SampleType *output, const SampleType *input, const SampleType *window, unsigned int len) |
| int | ff_ac3_fixed_normalize_samples (AC3EncodeContext *s) |
| void | ff_ac3_fixed_scale_coefficients (AC3EncodeContext *s) |
| void | ff_ac3_float_scale_coefficients (AC3EncodeContext *s) |
| | Scale MDCT coefficients from float to 24-bit fixed-point.
|
| int | ff_ac3_fixed_allocate_sample_buffers (AC3EncodeContext *s) |
| int | ff_ac3_float_allocate_sample_buffers (AC3EncodeContext *s) |
| void | ff_ac3_fixed_deinterleave_input_samples (AC3EncodeContext *s, const SampleType *samples) |
| void | ff_ac3_float_deinterleave_input_samples (AC3EncodeContext *s, const SampleType *samples) |
| void | ff_ac3_fixed_apply_mdct (AC3EncodeContext *s) |
| void | ff_ac3_float_apply_mdct (AC3EncodeContext *s) |
| void | ff_ac3_fixed_apply_channel_coupling (AC3EncodeContext *s) |
| void | ff_ac3_float_apply_channel_coupling (AC3EncodeContext *s) |
| void | ff_ac3_fixed_compute_rematrixing_strategy (AC3EncodeContext *s) |
| void | ff_ac3_float_compute_rematrixing_strategy (AC3EncodeContext *s) |
AC-3 encoder & E-AC-3 encoder common header.