• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /********************************************************************
2  *                                                                  *
3  * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE.   *
4  * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS     *
5  * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
6  * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.       *
7  *                                                                  *
8  * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2009             *
9  * by the Xiph.Org Foundation http://www.xiph.org/                  *
10  *                                                                  *
11  ********************************************************************
12 
13  function: 8kHz settings
14  last mod: $Id: setup_8.h 16894 2010-02-12 20:32:12Z xiphmont $
15 
16  ********************************************************************/
17 
18 #include "psych_8.h"
19 #include "residue_8.h"
20 
21 static const int blocksize_8[2]={
22   512,512
23 };
24 
25 static const int _floor_mapping_8a[]={
26   6,6
27 };
28 
29 static const int *_floor_mapping_8[]={
30   _floor_mapping_8a
31 };
32 
33 static const double rate_mapping_8[3]={
34   6000.,9000.,32000.,
35 };
36 
37 static const double rate_mapping_8_uncoupled[3]={
38   8000.,14000.,42000.,
39 };
40 
41 static const double quality_mapping_8[3]={
42   -.1,.0,1.
43 };
44 
45 static const double _psy_compand_8_mapping[3]={ 0., 1., 1.};
46 
47 static const double _global_mapping_8[3]={ 1., 2., 3. };
48 
49 static const ve_setup_data_template ve_setup_8_stereo={
50   2,
51   rate_mapping_8,
52   quality_mapping_8,
53   2,
54   8000,
55   9000,
56 
57   blocksize_8,
58   blocksize_8,
59 
60   _psy_tone_masteratt_8,
61   _psy_tone_0dB,
62   _psy_tone_suppress,
63 
64   _vp_tonemask_adj_8,
65   NULL,
66   _vp_tonemask_adj_8,
67 
68   _psy_noiseguards_8,
69   _psy_noisebias_8,
70   _psy_noisebias_8,
71   NULL,
72   NULL,
73   _psy_noise_suppress,
74 
75   _psy_compand_8,
76   _psy_compand_8_mapping,
77   NULL,
78 
79   {_noise_start_8,_noise_start_8},
80   {_noise_part_8,_noise_part_8},
81   _noise_thresh_5only,
82 
83   _psy_ath_floater_8,
84   _psy_ath_abs_8,
85 
86   _psy_lowpass_8,
87 
88   _psy_global_44,
89   _global_mapping_8,
90   _psy_stereo_modes_8,
91 
92   _floor_books,
93   _floor,
94   1,
95   _floor_mapping_8,
96 
97   _mapres_template_8_stereo
98 };
99 
100 static const ve_setup_data_template ve_setup_8_uncoupled={
101   2,
102   rate_mapping_8_uncoupled,
103   quality_mapping_8,
104   -1,
105   8000,
106   9000,
107 
108   blocksize_8,
109   blocksize_8,
110 
111   _psy_tone_masteratt_8,
112   _psy_tone_0dB,
113   _psy_tone_suppress,
114 
115   _vp_tonemask_adj_8,
116   NULL,
117   _vp_tonemask_adj_8,
118 
119   _psy_noiseguards_8,
120   _psy_noisebias_8,
121   _psy_noisebias_8,
122   NULL,
123   NULL,
124   _psy_noise_suppress,
125 
126   _psy_compand_8,
127   _psy_compand_8_mapping,
128   NULL,
129 
130   {_noise_start_8,_noise_start_8},
131   {_noise_part_8,_noise_part_8},
132   _noise_thresh_5only,
133 
134   _psy_ath_floater_8,
135   _psy_ath_abs_8,
136 
137   _psy_lowpass_8,
138 
139   _psy_global_44,
140   _global_mapping_8,
141   _psy_stereo_modes_8,
142 
143   _floor_books,
144   _floor,
145   1,
146   _floor_mapping_8,
147 
148   _mapres_template_8_uncoupled
149 };
150