FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
ac3enc_template.c File Reference

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

#include <stdint.h>
#include "libavutil/attributes.h"
#include "libavutil/internal.h"
#include "audiodsp.h"
#include "internal.h"
#include "ac3enc.h"
#include "eac3enc.h"

Go to the source code of this file.

Functions

static void scale_coefficients (AC3EncodeContext *s)
 
static int normalize_samples (AC3EncodeContext *s)
 
static void clip_coefficients (AudioDSPContext *adsp, CoefType *coef, unsigned int len)
 
static CoefType calc_cpl_coord (CoefSumType energy_ch, CoefSumType energy_cpl)
 
static void sum_square_butterfly (AC3EncodeContext *s, CoefSumType sum[4], const CoefType *coef0, const CoefType *coef1, int len)
 
int AC3_NAME() allocate_sample_buffers (AC3EncodeContext *s)
 
static void copy_input_samples (AC3EncodeContext *s, SampleType **samples)
 
static void apply_mdct (AC3EncodeContext *s)
 
static void apply_channel_coupling (AC3EncodeContext *s)
 
static void compute_rematrixing_strategy (AC3EncodeContext *s)
 
int AC3_NAME() encode_frame (AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
 

Detailed Description

AC-3 encoder float/fixed template.

Definition in file ac3enc_template.c.

Function Documentation

static void scale_coefficients ( AC3EncodeContext s)
static

Referenced by encode_frame().

static int normalize_samples ( AC3EncodeContext s)
static

Referenced by apply_mdct().

static void clip_coefficients ( AudioDSPContext adsp,
CoefType coef,
unsigned int  len 
)
static
static CoefType calc_cpl_coord ( CoefSumType  energy_ch,
CoefSumType  energy_cpl 
)
static

Referenced by apply_channel_coupling().

static void sum_square_butterfly ( AC3EncodeContext s,
CoefSumType  sum[4],
const CoefType coef0,
const CoefType coef1,
int  len 
)
static
int AC3_NAME() allocate_sample_buffers ( AC3EncodeContext s)

Definition at line 54 of file ac3enc_template.c.

static void copy_input_samples ( AC3EncodeContext s,
SampleType **  samples 
)
static

Definition at line 78 of file ac3enc_template.c.

Referenced by encode_frame().

static void apply_mdct ( AC3EncodeContext s)
static

Definition at line 101 of file ac3enc_template.c.

Referenced by encode_frame().

static void apply_channel_coupling ( AC3EncodeContext s)
static

Definition at line 131 of file ac3enc_template.c.

Referenced by encode_frame().

static void compute_rematrixing_strategy ( AC3EncodeContext s)
static

Definition at line 339 of file ac3enc_template.c.

Referenced by encode_frame().

int AC3_NAME() encode_frame ( AVCodecContext avctx,
AVPacket avpkt,
const AVFrame frame,
int *  got_packet_ptr 
)