libavcodec/ac3enc_float.c File Reference

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

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

Go to the source code of this file.

Defines

#define CONFIG_AC3ENC_FLOAT   1

Functions

av_cold void ff_ac3_float_mdct_end (AC3EncodeContext *s)
 Finalize MDCT and free allocated memory.
av_cold int ff_ac3_float_mdct_init (AC3EncodeContext *s)
 Initialize MDCT tables.
static void apply_window (void *dsp, float *output, const float *input, const float *window, unsigned int len)
static int normalize_samples (AC3EncodeContext *s)
static void scale_coefficients (AC3EncodeContext *s)
static void sum_square_butterfly (AC3EncodeContext *s, float sum[4], const float *coef0, const float *coef1, int len)
static void clip_coefficients (DSPContext *dsp, float *coef, unsigned int len)
static CoefType calc_cpl_coord (CoefSumType energy_ch, CoefSumType energy_cpl)


Detailed Description

floating-point AC-3 encoder.

Definition in file ac3enc_float.c.


Define Documentation

#define CONFIG_AC3ENC_FLOAT   1

Definition at line 29 of file ac3enc_float.c.


Function Documentation

static void apply_window ( void *  dsp,
float *  output,
const float *  input,
const float *  window,
unsigned int  len 
) [static]

Definition at line 93 of file ac3enc_float.c.

static CoefType calc_cpl_coord ( CoefSumType  energy_ch,
CoefSumType  energy_cpl 
) [static]

Definition at line 143 of file ac3enc_float.c.

static void clip_coefficients ( DSPContext dsp,
float *  coef,
unsigned int  len 
) [static]

Definition at line 134 of file ac3enc_float.c.

av_cold void ff_ac3_float_mdct_end ( AC3EncodeContext s  ) 

Finalize MDCT and free allocated memory.

Parameters:
s AC-3 encoder private context

Definition at line 55 of file ac3enc_float.c.

Referenced by ff_ac3_encode_init().

av_cold int ff_ac3_float_mdct_init ( AC3EncodeContext s  ) 

Initialize MDCT tables.

Parameters:
s AC-3 encoder private context
Returns:
0 on success, negative error code on failure

Definition at line 68 of file ac3enc_float.c.

Referenced by ff_ac3_encode_init().

static int normalize_samples ( AC3EncodeContext s  )  [static]

Definition at line 106 of file ac3enc_float.c.

static void scale_coefficients ( AC3EncodeContext s  )  [static]

Definition at line 115 of file ac3enc_float.c.

static void sum_square_butterfly ( AC3EncodeContext s,
float  sum[4],
const float *  coef0,
const float *  coef1,
int  len 
) [static]

Definition at line 124 of file ac3enc_float.c.


Generated on Fri Oct 26 02:50:03 2012 for FFmpeg by  doxygen 1.5.8