doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions
psy.c File Reference
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "../vorbis/codec.h"
#include "codec_internal.h"
#include "masking.h"
#include "psy.h"
#include "os.h"
#include "lpc.h"
#include "smallft.h"
#include "scales.h"
#include "misc.h"
#include <stdio.h>

Go to the source code of this file.

Macros

#define NEGINF   -9999.f
 

Functions

vorbis_look_psy_global_vp_global_look (vorbis_info *vi)
 
void _vp_global_free (vorbis_look_psy_global *look)
 
void _vi_gpsy_free (vorbis_info_psy_global *i)
 
void _vi_psy_free (vorbis_info_psy *i)
 
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 _vp_remove_floor (vorbis_look_psy *p, float *mdct, int *codedflr, 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)
 
int ** _vp_quantize_couple_sort (vorbis_block *vb, vorbis_look_psy *p, vorbis_info_mapping0 *vi, float **mags)
 
void _vp_noise_normalize_sort (vorbis_look_psy *p, float *magnitudes, int *sortedindex)
 
void _vp_noise_normalize (vorbis_look_psy *p, float *in, float *out, int *sortedindex)
 
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)
 

Macro Definition Documentation

#define NEGINF   -9999.f

Definition at line 32 of file psy.c.

Function Documentation

void _vi_gpsy_free ( vorbis_info_psy_global i)

Definition at line 54 of file psy.c.

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_global_free ( vorbis_look_psy_global look)

Definition at line 47 of file psy.c.

vorbis_look_psy_global* _vp_global_look ( vorbis_info vi)

Definition at line 35 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 codedflr,
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.