examples/SFExamples/oggvorbiscodec94/src/libvorbis/lib/modes/psych_8.h

00001 /********************************************************************
00002  *                                                                  *
00003  * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE.   *
00004  * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS     *
00005  * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
00006  * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.       *
00007  *                                                                  *
00008  * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2002             *
00009  * by the XIPHOPHORUS Company http://www.xiph.org/                  *
00010  *                                                                  *
00011  ********************************************************************
00012 
00013  function: 8kHz psychoacoustic settings 
00014  last mod: $Id: psych_8.h 7187 2004-07-20 07:24:27Z xiphmont $
00015 
00016  ********************************************************************/
00017 
00018 static att3 _psy_tone_masteratt_8[3]={
00019   {{ 32,  25,  12},  0,   0},  /* 0 */
00020   {{ 30,  25,  12},  0,   0},  /* 0 */
00021   {{ 20,   0, -14},  0,   0}, /* 0 */
00022 };
00023 
00024 static vp_adjblock _vp_tonemask_adj_8[3]={
00025   /* adjust for mode zero */
00026   /* 63     125     250     500     1     2     4     8    16 */
00027   {{-15,-15,-15,-15,-10,-10, -6, 0, 0, 0, 0,10, 0, 0,99,99,99}}, /* 1 */
00028   {{-15,-15,-15,-15,-10,-10, -6, 0, 0, 0, 0,10, 0, 0,99,99,99}}, /* 1 */
00029   {{-15,-15,-15,-15,-10,-10, -6, 0, 0, 0, 0, 0, 0, 0,99,99,99}}, /* 1 */
00030 };
00031 
00032 
00033 static noise3 _psy_noisebias_8[3]={
00034   /*  63     125     250     500      1k       2k      4k      8k     16k*/
00035   {{{-10,-10,-10,-10, -5, -5, -5,  0,  4,  8,  8,  8, 10, 10, 99, 99, 99},
00036     {-10,-10,-10,-10, -5, -5, -5,  0,  0,  4,  4,  4,  4,  4, 99, 99, 99},
00037     {-30,-30,-30,-30,-30,-24,-20,-14,-10, -6, -8, -8, -6, -6, 99, 99, 99}}},
00038 
00039   {{{-10,-10,-10,-10, -5, -5, -5,  0,  4,  8,  8,  8, 10, 10, 99, 99, 99},
00040     {-10,-10,-10,-10,-10,-10, -5, -5, -5,  0,  0,  0,  0,  0, 99, 99, 99},
00041     {-30,-30,-30,-30,-30,-24,-20,-14,-10, -6, -8, -8, -6, -6, 99, 99, 99}}},
00042 
00043   {{{-15,-15,-15,-15,-15,-12,-10, -8,  0,  2,  4,  4,  5,  5, 99, 99, 99},
00044     {-30,-30,-30,-30,-26,-22,-20,-14,-12,-12,-10,-10,-10,-10, 99, 99, 99},
00045     {-30,-30,-30,-30,-26,-26,-26,-26,-26,-26,-26,-26,-26,-24, 99, 99, 99}}},
00046 };
00047 
00048 /* stereo mode by base quality level */
00049 static adj_stereo _psy_stereo_modes_8[3]={
00050   /*  0   1   2   3   4   5   6   7   8   9  10  11  12  13  14  */
00051   {{  4,  4,  4,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3},
00052    {  6,  5,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4},
00053    {  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1},
00054    { 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99}},
00055   {{  4,  4,  4,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3},
00056    {  6,  5,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4},
00057    {  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1},
00058    { 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99}},
00059   {{  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3},
00060    {  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4},
00061    {  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1},
00062    { 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99}},
00063 };
00064 
00065 static noiseguard _psy_noiseguards_8[2]={
00066   {10,10,-1},
00067   {10,10,-1},
00068 };
00069 
00070 static compandblock _psy_compand_8[2]={
00071   {{
00072      0, 1, 2, 3, 4, 5, 6,  7,     /* 7dB */
00073      8, 8, 9, 9,10,10,11, 11,     /* 15dB */
00074     12,12,13,13,14,14,15, 15,     /* 23dB */
00075     16,16,17,17,17,18,18, 19,     /* 31dB */
00076     19,19,20,21,22,23,24, 25,     /* 39dB */
00077   }},
00078   {{
00079      0, 1, 2, 3, 4, 5, 6,  6,     /* 7dB */
00080      7, 7, 6, 6, 5, 5, 4,  4,     /* 15dB */
00081      3, 3, 3, 4, 5, 6, 7,  8,     /* 23dB */
00082      9,10,11,12,13,14,15, 16,     /* 31dB */
00083     17,18,19,20,21,22,23, 24,     /* 39dB */
00084   }},
00085 };
00086 
00087 static double _psy_lowpass_8[3]={3.,4.,4.};
00088 static int _noise_start_8[2]={
00089   64,64,
00090 };
00091 static int _noise_part_8[2]={
00092   8,8,
00093 };
00094 
00095 static int _psy_ath_floater_8[3]={
00096   -100,-100,-105,
00097 };
00098 
00099 static int _psy_ath_abs_8[3]={
00100   -130,-130,-140,
00101 };
00102 

Generated by  doxygen 1.6.2