FFmpeg
|
fixed-point AC-3 encoder. More...
#include "internal.h"
#include "audiodsp.h"
#include "ac3enc.h"
#include "eac3enc.h"
#include "ac3enc_opts_template.c"
#include "ac3enc_template.c"
Go to the source code of this file.
Macros | |
#define | FFT_FLOAT 0 |
#define | AC3ENC_TYPE AC3ENC_TYPE_AC3_FIXED |
Functions | |
static int | normalize_samples (AC3EncodeContext *s) |
static void | scale_coefficients (AC3EncodeContext *s) |
static void | sum_square_butterfly (AC3EncodeContext *s, int64_t sum[4], const int32_t *coef0, const int32_t *coef1, int len) |
static void | clip_coefficients (AudioDSPContext *adsp, int32_t *coef, unsigned int len) |
static CoefType | calc_cpl_coord (CoefSumType energy_ch, CoefSumType energy_cpl) |
av_cold void | ff_ac3_fixed_mdct_end (AC3EncodeContext *s) |
Finalize MDCT and free allocated memory. More... | |
av_cold int | ff_ac3_fixed_mdct_init (AC3EncodeContext *s) |
Initialize MDCT tables. More... | |
static av_cold int | ac3_fixed_encode_init (AVCodecContext *avctx) |
Variables | |
static const AVClass | ac3enc_class |
AVCodec | ff_ac3_fixed_encoder |
fixed-point AC-3 encoder.
Definition in file ac3enc_fixed.c.
#define FFT_FLOAT 0 |
Definition at line 29 of file ac3enc_fixed.c.
#define AC3ENC_TYPE AC3ENC_TYPE_AC3_FIXED |
Definition at line 36 of file ac3enc_fixed.c.
|
static |
Definition at line 50 of file ac3enc_fixed.c.
Referenced by apply_mdct().
|
static |
Definition at line 64 of file ac3enc_fixed.c.
Referenced by encode_frame().
|
static |
Definition at line 77 of file ac3enc_fixed.c.
Referenced by compute_rematrixing_strategy().
|
static |
Definition at line 87 of file ac3enc_fixed.c.
Referenced by apply_channel_coupling(), and encode_frame().
|
static |
Definition at line 97 of file ac3enc_fixed.c.
Referenced by apply_channel_coupling().
av_cold void ff_ac3_fixed_mdct_end | ( | AC3EncodeContext * | s | ) |
Finalize MDCT and free allocated memory.
s | AC-3 encoder private context |
Definition at line 118 of file ac3enc_fixed.c.
Referenced by ff_ac3_encode_init().
av_cold int ff_ac3_fixed_mdct_init | ( | AC3EncodeContext * | s | ) |
Initialize MDCT tables.
s | AC-3 encoder private context |
Definition at line 130 of file ac3enc_fixed.c.
Referenced by ff_ac3_encode_init().
|
static |
Definition at line 138 of file ac3enc_fixed.c.
|
static |
Definition at line 39 of file ac3enc_fixed.c.
AVCodec ff_ac3_fixed_encoder |
Definition at line 146 of file ac3enc_fixed.c.