FFmpeg
Macros | Functions | Variables
eac3enc.c File Reference

E-AC-3 encoder. More...

#include "libavutil/attributes.h"
#include "ac3enc.h"
#include "eac3enc.h"
#include "eac3_data.h"
#include "ac3enc_opts_template.c"

Macros

#define CONFIG_AC3ENC_FLOAT   1
 
#define AC3ENC_TYPE   AC3ENC_TYPE_EAC3
 

Functions

av_cold void ff_eac3_exponent_init (void)
 Initialize E-AC-3 exponent tables.
 
void ff_eac3_get_frame_exp_strategy (AC3EncodeContext *s)
 Determine frame exponent strategy use and indices.
 
void ff_eac3_set_cpl_states (AC3EncodeContext *s)
 Set coupling states. More...
 
void ff_eac3_output_frame_header (AC3EncodeContext *s)
 Write the E-AC-3 frame header to the output bitstream.
 

Variables

AVCodec ff_eac3_encoder
 

Detailed Description

E-AC-3 encoder.

Function Documentation

§ ff_eac3_set_cpl_states()

void ff_eac3_set_cpl_states ( AC3EncodeContext s)

Set coupling states.

This determines whether certain flags must be written to the bitstream or whether they will be implicitly already known by the decoder.

Variable Documentation

§ ff_eac3_encoder

AVCodec ff_eac3_encoder
Initial value:
= {
.name = "eac3",
.long_name = NULL_IF_CONFIG_SMALL("ATSC A/52 E-AC-3"),
.type = AVMEDIA_TYPE_AUDIO,
.id = AV_CODEC_ID_EAC3,
.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 = &eac3enc_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