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 (AC3MDCTContext *mdct) |
Finalize MDCT and free allocated memory. | |
av_cold int | ff_ac3_float_mdct_init (AVCodecContext *avctx, AC3MDCTContext *mdct, int nbits) |
Initialize MDCT tables. | |
void | ff_ac3_float_apply_window (DSPContext *dsp, float *output, const float *input, const float *window, unsigned int len) |
Apply KBD window to input samples prior to MDCT. | |
void | ff_ac3_float_scale_coefficients (AC3EncodeContext *s) |
Scale MDCT coefficients from float to 24-bit fixed-point. | |
Variables | |
static AVClass | ac3enc_class |
AVCodec | ff_ac3_float_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.
void ff_ac3_float_apply_window | ( | DSPContext * | dsp, | |
float * | output, | |||
const float * | input, | |||
const float * | window, | |||
unsigned int | len | |||
) |
Apply KBD window to input samples prior to MDCT.
Definition at line 85 of file ac3enc_float.c.
av_cold void ff_ac3_float_mdct_end | ( | AC3MDCTContext * | mdct | ) |
Finalize MDCT and free allocated memory.
Definition at line 48 of file ac3enc_float.c.
av_cold 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.
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.
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.
{ "ac3_float", AVMEDIA_TYPE_AUDIO, CODEC_ID_AC3, sizeof(AC3EncodeContext), ff_ac3_encode_init, ff_ac3_encode_frame, ff_ac3_encode_close, NULL, .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 106 of file ac3enc_float.c.
Referenced by get_codec().