1 /********************************************************************
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. *
8 * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2009 *
9 * by the Xiph.Org Foundation https://xiph.org/ *
11 ********************************************************************
13 function: toplevel settings for 44.1/48kHz
15 ********************************************************************/
17 #include "modes/floor_all.h"
18 #include "modes/residue_44.h"
19 #include "modes/psych_44.h"
21 static const double rate_mapping_44_stereo[12]={
22 22500.,32000.,40000.,48000.,56000.,64000.,
23 80000.,96000.,112000.,128000.,160000.,250001.
26 static const double quality_mapping_44[12]={
27 -.1,.0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1.0
30 static const int blocksize_short_44[11]={
31 512,256,256,256,256,256,256,256,256,256,256
33 static const int blocksize_long_44[11]={
34 4096,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048
37 static const double _psy_compand_short_mapping[12]={
38 0.5, 1., 1., 1.3, 1.6, 2., 2., 2., 2., 2., 2., 2.
40 static const double _psy_compand_long_mapping[12]={
41 3.5, 4., 4., 4.3, 4.6, 5., 5., 5., 5., 5., 5., 5.
44 static const double _global_mapping_44[12]={
45 /* 1., 1., 1.5, 2., 2., 2.5, 2.7, 3.0, 3.5, 4., 4. */
46 0., 1., 1., 1.5, 2., 2., 2.5, 2.7, 3.0, 3.7, 4., 4.
49 static const int _floor_mapping_44a[11]={
50 1,0,0,2,2,4,5,5,5,5,5
53 static const int _floor_mapping_44b[11]={
54 8,7,7,7,7,7,7,7,7,7,7
57 static const int _floor_mapping_44c[11]={
58 10,10,10,10,10,10,10,10,10,10,10
61 static const int *_floor_mapping_44[]={
67 static const ve_setup_data_template ve_setup_44_stereo={
69 rate_mapping_44_stereo,
78 _psy_tone_masteratt_44,
82 _vp_tonemask_adj_otherblock,
83 _vp_tonemask_adj_longblock,
84 _vp_tonemask_adj_otherblock,
87 _psy_noisebias_impulse,
88 _psy_noisebias_padding,
94 _psy_compand_short_mapping,
95 _psy_compand_long_mapping,
97 {_noise_start_short_44,_noise_start_long_44},
98 {_noise_part_short_44,_noise_part_long_44},
108 _psy_stereo_modes_44,
115 _mapres_template_44_stereo