floating-point AC-3 encoder. More...
#include "ac3enc.h"#include "eac3enc.h"#include "kbdwin.h"#include "ac3enc_opts_template.c"#include "ac3enc_template.c"Go to the source code of this file.
Defines | |
| #define | CONFIG_AC3ENC_FLOAT 1 |
| #define | AC3ENC_TYPE AC3ENC_TYPE_AC3 |
Functions | |
| av_cold void | ff_ac3_float_mdct_end (AC3EncodeContext *s) |
| Finalize MDCT and free allocated memory. | |
| av_cold int | ff_ac3_float_mdct_init (AC3EncodeContext *s) |
| Initialize MDCT tables. | |
| static void | apply_window (DSPContext *dsp, float *output, const float *input, const float *window, unsigned int len) |
| static int | normalize_samples (AC3EncodeContext *s) |
| static void | scale_coefficients (AC3EncodeContext *s) |
| static void | clip_coefficients (DSPContext *dsp, float *coef, unsigned int len) |
| static CoefType | calc_cpl_coord (CoefSumType energy_ch, CoefSumType energy_cpl) |
Variables | |
| static const AVClass | ac3enc_class |
| AVCodec | ff_ac3_encoder |
floating-point AC-3 encoder.
Definition in file ac3enc_float.c.
| #define AC3ENC_TYPE AC3ENC_TYPE_AC3 |
Definition at line 36 of file ac3enc_float.c.
| #define CONFIG_AC3ENC_FLOAT 1 |
Definition at line 29 of file ac3enc_float.c.
| static void apply_window | ( | DSPContext * | dsp, | |
| float * | output, | |||
| const float * | input, | |||
| const float * | window, | |||
| unsigned int | len | |||
| ) | [static] |
Definition at line 88 of file ac3enc_float.c.
| static CoefType calc_cpl_coord | ( | CoefSumType | energy_ch, | |
| CoefSumType | energy_cpl | |||
| ) | [static] |
Definition at line 130 of file ac3enc_float.c.
| static void clip_coefficients | ( | DSPContext * | dsp, | |
| float * | coef, | |||
| unsigned int | len | |||
| ) | [static] |
Definition at line 121 of file ac3enc_float.c.
| av_cold void ff_ac3_float_mdct_end | ( | AC3EncodeContext * | s | ) |
Finalize MDCT and free allocated memory.
| s | AC-3 encoder private context |
Definition at line 50 of file ac3enc_float.c.
| av_cold int ff_ac3_float_mdct_init | ( | AC3EncodeContext * | s | ) |
Initialize MDCT tables.
| s | AC-3 encoder private context |
Definition at line 63 of file ac3enc_float.c.
| static int normalize_samples | ( | AC3EncodeContext * | s | ) | [static] |
Definition at line 99 of file ac3enc_float.c.
| static void scale_coefficients | ( | AC3EncodeContext * | s | ) | [static] |
Definition at line 108 of file ac3enc_float.c.
const AVClass ac3enc_class [static] |
{ "AC-3 Encoder", av_default_item_name,
ac3_options, LIBAVUTIL_VERSION_INT }
Definition at line 38 of file ac3enc_float.c.
{
.name = "ac3",
.type = AVMEDIA_TYPE_AUDIO,
.id = CODEC_ID_AC3,
.priv_data_size = sizeof(AC3EncodeContext),
.init = ff_ac3_encode_init,
.encode = ff_ac3_float_encode_frame,
.close = ff_ac3_encode_close,
.sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_FLT,AV_SAMPLE_FMT_NONE},
.long_name = NULL_IF_CONFIG_SMALL("ATSC A/52A (AC-3)"),
.priv_class = &ac3enc_class,
.channel_layouts = ff_ac3_channel_layouts,
}
Definition at line 140 of file ac3enc_float.c.