FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
ac3dec_fixed.c File Reference
#include "ac3dec.h"
#include "ac3dec.c"

Go to the source code of this file.

Macros

#define FFT_FLOAT   0
 
#define USE_FIXED   1
 
#define FFT_FIXED_32   1
 

Functions

static void scale_coefs (int32_t *dst, const int32_t *src, int dynrng, int len)
 
static void ac3_downmix_c_fixed16 (int16_t **samples, int16_t(*matrix)[2], int out_ch, int in_ch, int len)
 Downmix samples from original signal to stereo or mono (this is for 16-bit samples and fixed point decoder - original (for 32-bit samples) is in ac3dsp.c).
 

Variables

static const int end_freq_inv_tab [8]
 
static const AVOption options []
 
static const AVClass ac3_decoder_class
 
AVCodec ff_ac3_fixed_decoder
 

Macro Definition Documentation

#define FFT_FLOAT   0

Definition at line 50 of file ac3dec_fixed.c.

#define USE_FIXED   1

Definition at line 51 of file ac3dec_fixed.c.

Referenced by ac3_decode_init(), and decode_audio_block().

#define FFT_FIXED_32   1

Definition at line 52 of file ac3dec_fixed.c.

Function Documentation

static void scale_coefs ( int32_t dst,
const int32_t src,
int  dynrng,
int  len 
)
static

Definition at line 61 of file ac3dec_fixed.c.

Referenced by decode_audio_block().

static void ac3_downmix_c_fixed16 ( int16_t **  samples,
int16_t(*)  matrix[2],
int  out_ch,
int  in_ch,
int  len 
)
static

Downmix samples from original signal to stereo or mono (this is for 16-bit samples and fixed point decoder - original (for 32-bit samples) is in ac3dsp.c).

Definition at line 142 of file ac3dec_fixed.c.

Referenced by decode_audio_block().

Variable Documentation

const int end_freq_inv_tab[8]
static
Initial value:
=
{
50529027, 44278013, 39403370, 32292987, 27356480, 23729101, 20951060, 18755316
}

Definition at line 56 of file ac3dec_fixed.c.

Referenced by decode_audio_block().

const AVOption options[]
static
Initial value:
= {
{ "drc_scale", "percentage of dynamic range compression to apply", OFFSET(drc_scale), AV_OPT_TYPE_FLOAT, {.dbl = 1.0}, 0.0, 6.0, PAR },
{ "heavy_compr", "heavy dynamic range compression enabled", OFFSET(heavy_compression), AV_OPT_TYPE_INT, {.i64 = 0 }, 0, 1, PAR },
{ NULL},
}

Definition at line 169 of file ac3dec_fixed.c.

const AVClass ac3_decoder_class
static
Initial value:
= {
.class_name = "Fixed-Point AC-3 Decoder",
.item_name = av_default_item_name,
.option = options,
}

Definition at line 175 of file ac3dec_fixed.c.

AVCodec ff_ac3_fixed_decoder
Initial value:
= {
.name = "ac3_fixed",
.priv_data_size = sizeof (AC3DecodeContext),
.close = ac3_decode_end,
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("ATSC A/52A (AC-3)"),
.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P,
.priv_class = &ac3_decoder_class,
}

Definition at line 182 of file ac3dec_fixed.c.