1 /********************************************************************
3 * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
4 * USE, DISTRIBUTION AND REPRODUCTION OF THIS SOURCE IS GOVERNED BY *
5 * THE GNU LESSER/LIBRARY PUBLIC LICENSE, WHICH IS INCLUDED WITH *
6 * THIS SOURCE. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
8 * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2000 *
9 * by Monty <monty@xiph.org> and the XIPHOPHORUS Company *
10 * http://www.xiph.org/ *
12 ********************************************************************
14 function: random psychoacoustics (not including preecho)
15 last mod: $Id: psy.h,v 1.16 2000/11/06 00:07:02 xiphmont Exp $
17 ********************************************************************/
27 /* psychoacoustic setup ********************************************/
31 typedef struct vorbis_info_psy{
37 float noisecull_barkwidth;
42 /* 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 */
43 /* x: 63 88 125 175 250 350 500 700 1k 1.4k 2k 2.8k 4k 5.6k 8k 11.5k 16k Hz */
44 /* y: 0 10 20 30 40 50 60 70 80 90 100 dB */
47 float toneatt[P_BANDS][P_LEVELS];
50 float peakatt[P_BANDS][P_LEVELS];
53 float noiseatt[P_BANDS][P_LEVELS];
64 struct vorbis_info_psy *vi;
76 extern void _vp_psy_init(vorbis_look_psy *p,vorbis_info_psy *vi,int n,long rate);
77 extern void _vp_psy_clear(vorbis_look_psy *p);
78 extern void *_vi_psy_dup(void *source);
80 extern void _vi_psy_free(vorbis_info_psy *i);
81 extern vorbis_info_psy *_vi_psy_copy(vorbis_info_psy *i);
83 extern void _vp_compute_mask(vorbis_look_psy *p,float *f,
86 extern void _vp_apply_floor(vorbis_look_psy *p,float *f,float *flr);