LMMS
Loading...
Searching...
No Matches
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_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 *mdct, float *logmdct)
float _vp_ampmax_decay (float amp, vorbis_dsp_state *vd)
void _vp_couple_quantize_normalize (int blobno, vorbis_info_psy_global *g, vorbis_look_psy *p, vorbis_info_mapping0 *vi, float **mdct, int **iwork, int *nonzero, int sliding_lowpass, int ch)

Macro Definition Documentation

◆ NOISE_COMPAND_LEVELS

#define NOISE_COMPAND_LEVELS   40

◆ P_BANDS

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

◆ P_LEVEL_0

#define P_LEVEL_0   30. /* 30 dB */

◆ P_LEVELS

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

◆ P_NOISECURVES

#define P_NOISECURVES   3

Typedef Documentation

◆ vorbis_info_psy

typedef struct vorbis_info_psy vorbis_info_psy

Function Documentation

◆ _vi_psy_copy()

vorbis_info_psy * _vi_psy_copy ( vorbis_info_psy * i)
extern

◆ _vi_psy_dup()

void * _vi_psy_dup ( void * source)
extern

◆ _vi_psy_free()

void _vi_psy_free ( vorbis_info_psy * i)
extern

◆ _vp_ampmax_decay()

float _vp_ampmax_decay ( float amp,
vorbis_dsp_state * vd )
extern

◆ _vp_couple_quantize_normalize()

void _vp_couple_quantize_normalize ( int blobno,
vorbis_info_psy_global * g,
vorbis_look_psy * p,
vorbis_info_mapping0 * vi,
float ** mdct,
int ** iwork,
int * nonzero,
int sliding_lowpass,
int ch )
extern

◆ _vp_noisemask()

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

◆ _vp_offset_and_mix()

void _vp_offset_and_mix ( vorbis_look_psy * p,
float * noise,
float * tone,
int offset_select,
float * logmask,
float * mdct,
float * logmdct )
extern

@ M1 ** The following codes improve a noise problem. A fundamental idea uses the value of masking and carries out the relative compensation of the MDCT. However, this code is not perfect and all noise problems cannot be solved. by Aoyumi @ 2004/04/18

◆ _vp_psy_clear()

void _vp_psy_clear ( vorbis_look_psy * p)
extern

◆ _vp_psy_init()

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

◆ _vp_tonemask()

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