openshot-audio  0.1.6
Macros | Functions
psy.c File Reference
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "../../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>

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_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_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

◆ NEGINF

#define NEGINF   -9999.f

Function Documentation

◆ _vi_psy_free()

void _vi_psy_free ( vorbis_info_psy i)

◆ _vp_ampmax_decay()

float _vp_ampmax_decay ( float  amp,
vorbis_dsp_state vd 
)

◆ _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 
)

@ M2 ** The boost problem by the combination of noise normalization and point stereo is eased. However, this is a temporary patch. by Aoyumi @ 2004/04/18

◆ _vp_global_free()

void _vp_global_free ( vorbis_look_psy_global look)

◆ _vp_global_look()

vorbis_look_psy_global* _vp_global_look ( vorbis_info vi)

◆ _vp_noisemask()

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

◆ _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 
)

@ 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)

◆ _vp_psy_init()

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

◆ _vp_tonemask()

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