doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs | Functions
psy.h File Reference
#include "smallft.h"
#include "backends.h"
#include "envelope.h"

Go to the source code of this file.

Classes

struct  vorbis_info_psy
 
struct  vorbis_info_psy_global
 
struct  vorbis_look_psy_global
 
struct  vorbis_look_psy
 

Macros

#define P_BANDS   17 /* 62Hz to 16kHz */
 
#define P_LEVELS   8 /* 30dB to 100dB */
 
#define P_LEVEL_0   30. /* 30 dB */
 
#define P_NOISECURVES   3
 
#define NOISE_COMPAND_LEVELS   40
 

Typedefs

typedef struct vorbis_info_psy vorbis_info_psy
 

Functions

void _vp_psy_init (vorbis_look_psy *p, vorbis_info_psy *vi, vorbis_info_psy_global *gi, int n, long rate)
 
void _vp_psy_clear (vorbis_look_psy *p)
 
void_vi_psy_dup (void *source)
 
void _vi_psy_free (vorbis_info_psy *i)
 
vorbis_info_psy_vi_psy_copy (vorbis_info_psy *i)
 
void _vp_remove_floor (vorbis_look_psy *p, float *mdct, int *icodedflr, float *residue, int sliding_lowpass)
 
void _vp_noisemask (vorbis_look_psy *p, float *logmdct, float *logmask)
 
void _vp_tonemask (vorbis_look_psy *p, float *logfft, float *logmask, float global_specmax, float local_specmax)
 
void _vp_offset_and_mix (vorbis_look_psy *p, float *noise, float *tone, int offset_select, float *logmask)
 
float _vp_ampmax_decay (float amp, vorbis_dsp_state *vd)
 
float ** _vp_quantize_couple_memo (vorbis_block *vb, vorbis_info_psy_global *g, vorbis_look_psy *p, vorbis_info_mapping0 *vi, float **mdct)
 
void _vp_couple (int blobno, vorbis_info_psy_global *g, vorbis_look_psy *p, vorbis_info_mapping0 *vi, float **res, float **mag_memo, int **mag_sort, int **ifloor, int *nonzero, int sliding_lowpass)
 
void _vp_noise_normalize (vorbis_look_psy *p, float *in, float *out, int *sortedindex)
 
void _vp_noise_normalize_sort (vorbis_look_psy *p, float *magnitudes, int *sortedindex)
 
int ** _vp_quantize_couple_sort (vorbis_block *vb, vorbis_look_psy *p, vorbis_info_mapping0 *vi, float **mags)
 

Macro Definition Documentation

#define NOISE_COMPAND_LEVELS   40

Definition at line 35 of file psy.h.

#define P_BANDS   17 /* 62Hz to 16kHz */

Definition at line 30 of file psy.h.

#define P_LEVEL_0   30. /* 30 dB */

Definition at line 32 of file psy.h.

#define P_LEVELS   8 /* 30dB to 100dB */

Definition at line 31 of file psy.h.

#define P_NOISECURVES   3

Definition at line 33 of file psy.h.

Typedef Documentation

Function Documentation

vorbis_info_psy* _vi_psy_copy ( vorbis_info_psy i)
void* _vi_psy_dup ( void source)
void _vi_psy_free ( vorbis_info_psy i)

Definition at line 61 of file psy.c.

float _vp_ampmax_decay ( float  amp,
vorbis_dsp_state vd 
)

Definition at line 859 of file psy.c.

void _vp_couple ( int  blobno,
vorbis_info_psy_global g,
vorbis_look_psy p,
vorbis_info_mapping0 vi,
float **  res,
float **  mag_memo,
int **  mag_sort,
int **  ifloor,
int nonzero,
int  sliding_lowpass 
)

Definition at line 1064 of file psy.c.

void _vp_noise_normalize ( vorbis_look_psy p,
float in,
float out,
int sortedindex 
)

Definition at line 1018 of file psy.c.

void _vp_noise_normalize_sort ( vorbis_look_psy p,
float magnitudes,
int sortedindex 
)

Definition at line 1000 of file psy.c.

void _vp_noisemask ( vorbis_look_psy p,
float logmdct,
float logmask 
)

Definition at line 771 of file psy.c.

void _vp_offset_and_mix ( vorbis_look_psy p,
float noise,
float tone,
int  offset_select,
float logmask 
)

Definition at line 844 of file psy.c.

void _vp_psy_clear ( vorbis_look_psy p)

Definition at line 350 of file psy.c.

void _vp_psy_init ( vorbis_look_psy p,
vorbis_info_psy vi,
vorbis_info_psy_global gi,
int  n,
long  rate 
)

Definition at line 266 of file psy.c.

float** _vp_quantize_couple_memo ( vorbis_block vb,
vorbis_info_psy_global g,
vorbis_look_psy p,
vorbis_info_mapping0 vi,
float **  mdct 
)

Definition at line 944 of file psy.c.

int** _vp_quantize_couple_sort ( vorbis_block vb,
vorbis_look_psy p,
vorbis_info_mapping0 vi,
float **  mags 
)

Definition at line 974 of file psy.c.

void _vp_remove_floor ( vorbis_look_psy p,
float mdct,
int icodedflr,
float residue,
int  sliding_lowpass 
)

Definition at line 752 of file psy.c.

void _vp_tonemask ( vorbis_look_psy p,
float logfft,
float logmask,
float  global_specmax,
float  local_specmax 
)

Definition at line 819 of file psy.c.