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 https://xiph.org/ *
|
---|
10 | * *
|
---|
11 | ********************************************************************
|
---|
12 |
|
---|
13 | function: 8kHz settings
|
---|
14 |
|
---|
15 | ********************************************************************/
|
---|
16 |
|
---|
17 | #include "psych_8.h"
|
---|
18 | #include "residue_8.h"
|
---|
19 |
|
---|
20 | static const int blocksize_8[2]={
|
---|
21 | 512,512
|
---|
22 | };
|
---|
23 |
|
---|
24 | static const int _floor_mapping_8a[]={
|
---|
25 | 6,6
|
---|
26 | };
|
---|
27 |
|
---|
28 | static const int *_floor_mapping_8[]={
|
---|
29 | _floor_mapping_8a
|
---|
30 | };
|
---|
31 |
|
---|
32 | static const double rate_mapping_8[3]={
|
---|
33 | 6000.,9000.,32000.,
|
---|
34 | };
|
---|
35 |
|
---|
36 | static const double rate_mapping_8_uncoupled[3]={
|
---|
37 | 8000.,14000.,42000.,
|
---|
38 | };
|
---|
39 |
|
---|
40 | static const double quality_mapping_8[3]={
|
---|
41 | -.1,.0,1.
|
---|
42 | };
|
---|
43 |
|
---|
44 | static const double _psy_compand_8_mapping[3]={ 0., 1., 1.};
|
---|
45 |
|
---|
46 | static const double _global_mapping_8[3]={ 1., 2., 3. };
|
---|
47 |
|
---|
48 | static const ve_setup_data_template ve_setup_8_stereo={
|
---|
49 | 2,
|
---|
50 | rate_mapping_8,
|
---|
51 | quality_mapping_8,
|
---|
52 | 2,
|
---|
53 | 8000,
|
---|
54 | 9000,
|
---|
55 |
|
---|
56 | blocksize_8,
|
---|
57 | blocksize_8,
|
---|
58 |
|
---|
59 | _psy_tone_masteratt_8,
|
---|
60 | _psy_tone_0dB,
|
---|
61 | _psy_tone_suppress,
|
---|
62 |
|
---|
63 | _vp_tonemask_adj_8,
|
---|
64 | NULL,
|
---|
65 | _vp_tonemask_adj_8,
|
---|
66 |
|
---|
67 | _psy_noiseguards_8,
|
---|
68 | _psy_noisebias_8,
|
---|
69 | _psy_noisebias_8,
|
---|
70 | NULL,
|
---|
71 | NULL,
|
---|
72 | _psy_noise_suppress,
|
---|
73 |
|
---|
74 | _psy_compand_8,
|
---|
75 | _psy_compand_8_mapping,
|
---|
76 | NULL,
|
---|
77 |
|
---|
78 | {_noise_start_8,_noise_start_8},
|
---|
79 | {_noise_part_8,_noise_part_8},
|
---|
80 | _noise_thresh_5only,
|
---|
81 |
|
---|
82 | _psy_ath_floater_8,
|
---|
83 | _psy_ath_abs_8,
|
---|
84 |
|
---|
85 | _psy_lowpass_8,
|
---|
86 |
|
---|
87 | _psy_global_44,
|
---|
88 | _global_mapping_8,
|
---|
89 | _psy_stereo_modes_8,
|
---|
90 |
|
---|
91 | _floor_books,
|
---|
92 | _floor,
|
---|
93 | 1,
|
---|
94 | _floor_mapping_8,
|
---|
95 |
|
---|
96 | _mapres_template_8_stereo
|
---|
97 | };
|
---|
98 |
|
---|
99 | static const ve_setup_data_template ve_setup_8_uncoupled={
|
---|
100 | 2,
|
---|
101 | rate_mapping_8_uncoupled,
|
---|
102 | quality_mapping_8,
|
---|
103 | -1,
|
---|
104 | 8000,
|
---|
105 | 9000,
|
---|
106 |
|
---|
107 | blocksize_8,
|
---|
108 | blocksize_8,
|
---|
109 |
|
---|
110 | _psy_tone_masteratt_8,
|
---|
111 | _psy_tone_0dB,
|
---|
112 | _psy_tone_suppress,
|
---|
113 |
|
---|
114 | _vp_tonemask_adj_8,
|
---|
115 | NULL,
|
---|
116 | _vp_tonemask_adj_8,
|
---|
117 |
|
---|
118 | _psy_noiseguards_8,
|
---|
119 | _psy_noisebias_8,
|
---|
120 | _psy_noisebias_8,
|
---|
121 | NULL,
|
---|
122 | NULL,
|
---|
123 | _psy_noise_suppress,
|
---|
124 |
|
---|
125 | _psy_compand_8,
|
---|
126 | _psy_compand_8_mapping,
|
---|
127 | NULL,
|
---|
128 |
|
---|
129 | {_noise_start_8,_noise_start_8},
|
---|
130 | {_noise_part_8,_noise_part_8},
|
---|
131 | _noise_thresh_5only,
|
---|
132 |
|
---|
133 | _psy_ath_floater_8,
|
---|
134 | _psy_ath_abs_8,
|
---|
135 |
|
---|
136 | _psy_lowpass_8,
|
---|
137 |
|
---|
138 | _psy_global_44,
|
---|
139 | _global_mapping_8,
|
---|
140 | _psy_stereo_modes_8,
|
---|
141 |
|
---|
142 | _floor_books,
|
---|
143 | _floor,
|
---|
144 | 1,
|
---|
145 | _floor_mapping_8,
|
---|
146 |
|
---|
147 | _mapres_template_8_uncoupled
|
---|
148 | };
|
---|