All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
atrac.h File Reference

ATRAC common header. More...

Go to the source code of this file.

Data Structures

struct  AtracGainInfo
 Gain control parameters for one subband. More...
struct  AtracGCContext
 Gain compensation context structure. More...


void ff_atrac_generate_tables (void)
 Generate common tables. More...
void ff_atrac_init_gain_compensation (AtracGCContext *gctx, int id2exp_offset, int loc_scale)
 Initialize gain compensation context. More...
void ff_atrac_gain_compensation (AtracGCContext *gctx, float *in, float *prev, AtracGainInfo *gc_now, AtracGainInfo *gc_next, int num_samples, float *out)
 Apply gain compensation and perform the MDCT overlapping part. More...
void ff_atrac_iqmf (float *inlo, float *inhi, unsigned int nIn, float *pOut, float *delayBuf, float *temp)
 Quadrature mirror synthesis filter. More...


float ff_atrac_sf_table [64]

Detailed Description

ATRAC common header.

Definition in file atrac.h.

Function Documentation

void ff_atrac_generate_tables ( void  )

Generate common tables.

Definition at line 48 of file atrac.c.

Referenced by atrac1_decode_init(), and atrac3_init_static_data().

void ff_atrac_init_gain_compensation ( AtracGCContext gctx,
int  id2exp_offset,
int  loc_scale 

Initialize gain compensation context.

gctxpointer to gain compensation context to initialize
id2exp_offsetoffset for converting level index into level exponent
loc_scalelocation size factor

Definition at line 66 of file atrac.c.

Referenced by atrac3_decode_init(), and atrac3p_decode_init().

void ff_atrac_gain_compensation ( AtracGCContext gctx,
float *  in,
float *  prev,
AtracGainInfo gc_now,
AtracGainInfo gc_next,
int  num_samples,
float *  out 

Apply gain compensation and perform the MDCT overlapping part.

gctxpointer to gain compensation context
ininput buffer
prevprevious buffer to perform overlap against
gc_nowgain control information for current frame
gc_nextgain control information for next frame
num_samplesnumber of samples to process
outoutput data goes here

Definition at line 84 of file atrac.c.

Referenced by decode_channel_sound_unit(), and reconstruct_frame().

void ff_atrac_iqmf ( float *  inlo,
float *  inhi,
unsigned int  nIn,
float *  pOut,
float *  delayBuf,
float *  temp 

Quadrature mirror synthesis filter.

inlolower part of spectrum
inhihigher part of spectrum
nInsize of spectrum buffer
pOutout buffer
delayBufdelayBuf buffer
temptemp buffer

Definition at line 127 of file atrac.c.

Referenced by at1_subband_synthesis(), and decode_frame().

Variable Documentation

float ff_atrac_sf_table[64]