FFmpeg
Macros | Functions | Variables
ac3enc_float.c File Reference

floating-point AC-3 encoder. More...

#include "internal.h"
#include "audiodsp.h"
#include "ac3enc.h"
#include "eac3enc.h"
#include "kbdwin.h"
#include "ac3enc_opts_template.c"
#include "ac3enc_template.c"

Macros

#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. More...
 
av_cold int ff_ac3_float_mdct_init (AC3EncodeContext *s)
 Initialize MDCT tables. More...
 
av_cold int ff_ac3_float_encode_init (AVCodecContext *avctx)
 

Variables

AVCodec ff_ac3_encoder
 

Detailed Description

floating-point AC-3 encoder.

Function Documentation

§ ff_ac3_float_mdct_end()

av_cold void ff_ac3_float_mdct_end ( AC3EncodeContext s)

Finalize MDCT and free allocated memory.

Parameters
sAC-3 encoder private context

§ ff_ac3_float_mdct_init()

av_cold int ff_ac3_float_mdct_init ( AC3EncodeContext s)

Initialize MDCT tables.

Parameters
sAC-3 encoder private context
Returns
0 on success, negative error code on failure

Variable Documentation

§ ff_ac3_encoder

AVCodec ff_ac3_encoder
Initial value:
= {
.name = "ac3",
.long_name = NULL_IF_CONFIG_SMALL("ATSC A/52A (AC-3)"),
.type = AVMEDIA_TYPE_AUDIO,
.id = AV_CODEC_ID_AC3,
.priv_data_size = sizeof(AC3EncodeContext),
.init = ff_ac3_float_encode_init,
.encode2 = ff_ac3_float_encode_frame,
.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLTP,
AV_SAMPLE_FMT_NONE },
.priv_class = &ac3enc_class,
.channel_layouts = ff_ac3_channel_layouts,
.defaults = ac3_defaults,
}
float, planar
Definition: samplefmt.h:69
struct AC3EncodeContext AC3EncodeContext
AC-3 encoder private context.
av_cold int ff_ac3_encode_close(AVCodecContext *avctx)
Finalize encoding and free any memory allocated by the encoder.
Definition: ac3enc.c:2017
const uint64_t ff_ac3_channel_layouts[19]
List of supported channel layouts.
Definition: ac3enc.c:81
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
AVSampleFormat
Audio sample formats.
Definition: samplefmt.h:58