FFmpeg
Loading...
Searching...
No Matches
ac3enc_template.c File Reference

AC-3 encoder float/fixed template. More...

#include "config_components.h"
#include <stdint.h>
#include "libavutil/attributes.h"
#include "libavutil/avassert.h"
#include "libavutil/mem_internal.h"
#include "audiodsp.h"
#include "ac3enc.h"
#include "eac3enc.h"

Go to the source code of this file.

Macros

#define RENAME(element)
#define PHASE_BAND_ENERGY_DENOMINATOR   (1 << 14)
#define PHASE_DIFF_ENERGY_FACTOR   (1 << 4)

Functions

static void apply_mdct (AC3EncodeContext *s, uint8_t *const *samples)
static void apply_channel_coupling (AC3EncodeContext *s)
static void compute_rematrixing_strategy (AC3EncodeContext *s)
static void copy_input_samples (AC3EncodeContext *s, const AVFrame *frame)
static void encode_frame (AC3EncodeContext *s, const AVFrame *frame)

Detailed Description

AC-3 encoder float/fixed template.

Definition in file ac3enc_template.c.

Macro Definition Documentation

◆ RENAME

◆ PHASE_BAND_ENERGY_DENOMINATOR

#define PHASE_BAND_ENERGY_DENOMINATOR   (1 << 14)

Definition at line 48 of file ac3enc_template.c.

Referenced by apply_channel_coupling().

◆ PHASE_DIFF_ENERGY_FACTOR

#define PHASE_DIFF_ENERGY_FACTOR   (1 << 4)

Definition at line 49 of file ac3enc_template.c.

Referenced by apply_channel_coupling().

Function Documentation

◆ apply_mdct()

void apply_mdct ( AC3EncodeContext * s,
uint8_t *const * samples )
static

Definition at line 56 of file ac3enc_template.c.

Referenced by encode_frame().

◆ apply_channel_coupling()

void apply_channel_coupling ( AC3EncodeContext * s)
static

Definition at line 92 of file ac3enc_template.c.

Referenced by encode_frame().

◆ compute_rematrixing_strategy()

void compute_rematrixing_strategy ( AC3EncodeContext * s)
static

Definition at line 373 of file ac3enc_template.c.

Referenced by encode_frame().

◆ copy_input_samples()

void copy_input_samples ( AC3EncodeContext * s,
const AVFrame * frame )
static

Definition at line 424 of file ac3enc_template.c.

Referenced by encode_frame().

◆ encode_frame()

void encode_frame ( AC3EncodeContext * s,
const AVFrame * frame )
static

Definition at line 439 of file ac3enc_template.c.