#include <stdint.h>
#include "ac3.h"
#include "ac3dsp.h"
#include "avcodec.h"
#include "dsputil.h"
#include "put_bits.h"
#include "fft.h"
Go to the source code of this file.
Definition in file ac3enc.h.
#define AC3ENC_PARAM (AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_ENCODING_PARAM) |
#define MAC_COEF | ( | d, | |||
a, | |||||
b | ) | MAC64(d,a,b) |
Definition at line 58 of file ac3enc.h.
Referenced by apply_channel_coupling(), and compute_rematrixing_strategy().
#define OFFSET | ( | param | ) | offsetof(AC3EncodeContext, options.param) |
typedef int64_t CoefSumType |
typedef int16_t SampleType |
int ff_ac3_encode_close | ( | AVCodecContext * | avctx | ) |
Finalize encoding and free any memory allocated by the encoder.
Definition at line 1932 of file ac3enc.c.
Referenced by ff_ac3_encode_init().
int ff_ac3_encode_frame | ( | AVCodecContext * | avctx, | |
unsigned char * | frame, | |||
int | buf_size, | |||
void * | data | |||
) |
int ff_ac3_encode_init | ( | AVCodecContext * | avctx | ) |
Initialize the encoder.
Definition at line 2315 of file ac3enc.c.
Referenced by ac3_fixed_encode_init().
int ff_ac3_fixed_allocate_sample_buffers | ( | AC3EncodeContext * | s | ) |
Referenced by ff_ac3_encode_init().
void ff_ac3_fixed_apply_channel_coupling | ( | AC3EncodeContext * | s | ) |
Referenced by ff_ac3_encode_init().
void ff_ac3_fixed_apply_mdct | ( | AC3EncodeContext * | s | ) |
Referenced by ff_ac3_encode_init().
void ff_ac3_fixed_apply_window | ( | DSPContext * | dsp, | |
SampleType * | output, | |||
const SampleType * | input, | |||
const SampleType * | window, | |||
unsigned int | len | |||
) |
Referenced by ff_ac3_encode_init().
void ff_ac3_fixed_compute_rematrixing_strategy | ( | AC3EncodeContext * | s | ) |
Referenced by ff_ac3_encode_init().
void ff_ac3_fixed_deinterleave_input_samples | ( | AC3EncodeContext * | s, | |
const SampleType * | samples | |||
) |
Referenced by ff_ac3_encode_init().
void ff_ac3_fixed_mdct_end | ( | AC3MDCTContext * | mdct | ) |
Referenced by ff_ac3_encode_init().
int ff_ac3_fixed_mdct_init | ( | AVCodecContext * | avctx, | |
AC3MDCTContext * | mdct, | |||
int | nbits | |||
) |
Referenced by ff_ac3_encode_init().
int ff_ac3_fixed_normalize_samples | ( | AC3EncodeContext * | s | ) |
Referenced by ff_ac3_encode_init().
void ff_ac3_fixed_scale_coefficients | ( | AC3EncodeContext * | s | ) |
Referenced by ff_ac3_encode_init().
int ff_ac3_float_allocate_sample_buffers | ( | AC3EncodeContext * | s | ) |
Referenced by ff_ac3_encode_init().
void ff_ac3_float_apply_channel_coupling | ( | AC3EncodeContext * | s | ) |
Referenced by ff_ac3_encode_init().
void ff_ac3_float_apply_mdct | ( | AC3EncodeContext * | s | ) |
Referenced by ff_ac3_encode_init().
void ff_ac3_float_apply_window | ( | DSPContext * | dsp, | |
SampleType * | output, | |||
const SampleType * | input, | |||
const SampleType * | window, | |||
unsigned int | len | |||
) |
Referenced by ff_ac3_encode_init().
void ff_ac3_float_compute_rematrixing_strategy | ( | AC3EncodeContext * | s | ) |
Referenced by ff_ac3_encode_init().
void ff_ac3_float_deinterleave_input_samples | ( | AC3EncodeContext * | s, | |
const SampleType * | samples | |||
) |
Referenced by ff_ac3_encode_init().
void ff_ac3_float_mdct_end | ( | AC3MDCTContext * | mdct | ) |
Finalize MDCT and free allocated memory.
Definition at line 48 of file ac3enc_float.c.
Referenced by ff_ac3_encode_init().
int ff_ac3_float_mdct_init | ( | AVCodecContext * | avctx, | |
AC3MDCTContext * | mdct, | |||
int | nbits | |||
) |
Initialize MDCT tables.
nbits | log2(MDCT size) |
Definition at line 59 of file ac3enc_float.c.
Referenced by ff_ac3_encode_init().
void ff_ac3_float_scale_coefficients | ( | AC3EncodeContext * | s | ) |
Scale MDCT coefficients from float to 24-bit fixed-point.
Definition at line 96 of file ac3enc_float.c.
Referenced by ff_ac3_encode_init().