vrshoot

diff libs/vorbis/modes/psych_8.h @ 0:b2f14e535253

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 01 Feb 2014 19:58:19 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libs/vorbis/modes/psych_8.h	Sat Feb 01 19:58:19 2014 +0200
     1.3 @@ -0,0 +1,101 @@
     1.4 +/********************************************************************
     1.5 + *                                                                  *
     1.6 + * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE.   *
     1.7 + * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS     *
     1.8 + * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
     1.9 + * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.       *
    1.10 + *                                                                  *
    1.11 + * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2009             *
    1.12 + * by the Xiph.Org Foundation http://www.xiph.org/                  *
    1.13 + *                                                                  *
    1.14 + ********************************************************************
    1.15 +
    1.16 + function: 8kHz psychoacoustic settings
    1.17 + last mod: $Id: psych_8.h 16227 2009-07-08 06:58:46Z xiphmont $
    1.18 +
    1.19 + ********************************************************************/
    1.20 +
    1.21 +static const att3 _psy_tone_masteratt_8[3]={
    1.22 +  {{ 32,  25,  12},  0,   0},  /* 0 */
    1.23 +  {{ 30,  25,  12},  0,   0},  /* 0 */
    1.24 +  {{ 20,   0, -14},  0,   0}, /* 0 */
    1.25 +};
    1.26 +
    1.27 +static const vp_adjblock _vp_tonemask_adj_8[3]={
    1.28 +  /* adjust for mode zero */
    1.29 +  /* 63     125     250     500     1     2     4     8    16 */
    1.30 +  {{-15,-15,-15,-15,-10,-10, -6, 0, 0, 0, 0,10, 0, 0,99,99,99}}, /* 1 */
    1.31 +  {{-15,-15,-15,-15,-10,-10, -6, 0, 0, 0, 0,10, 0, 0,99,99,99}}, /* 1 */
    1.32 +  {{-15,-15,-15,-15,-10,-10, -6, 0, 0, 0, 0, 0, 0, 0,99,99,99}}, /* 1 */
    1.33 +};
    1.34 +
    1.35 +
    1.36 +static const noise3 _psy_noisebias_8[3]={
    1.37 +  /*  63     125     250     500      1k       2k      4k      8k     16k*/
    1.38 +  {{{-10,-10,-10,-10, -5, -5, -5,  0,  4,  8,  8,  8, 10, 10, 99, 99, 99},
    1.39 +    {-10,-10,-10,-10, -5, -5, -5,  0,  0,  4,  4,  4,  4,  4, 99, 99, 99},
    1.40 +    {-30,-30,-30,-30,-30,-24,-20,-14,-10, -6, -8, -8, -6, -6, 99, 99, 99}}},
    1.41 +
    1.42 +  {{{-10,-10,-10,-10, -5, -5, -5,  0,  4,  8,  8,  8, 10, 10, 99, 99, 99},
    1.43 +    {-10,-10,-10,-10,-10,-10, -5, -5, -5,  0,  0,  0,  0,  0, 99, 99, 99},
    1.44 +    {-30,-30,-30,-30,-30,-24,-20,-14,-10, -6, -8, -8, -6, -6, 99, 99, 99}}},
    1.45 +
    1.46 +  {{{-15,-15,-15,-15,-15,-12,-10, -8,  0,  2,  4,  4,  5,  5, 99, 99, 99},
    1.47 +    {-30,-30,-30,-30,-26,-22,-20,-14,-12,-12,-10,-10,-10,-10, 99, 99, 99},
    1.48 +    {-30,-30,-30,-30,-26,-26,-26,-26,-26,-26,-26,-26,-26,-24, 99, 99, 99}}},
    1.49 +};
    1.50 +
    1.51 +/* stereo mode by base quality level */
    1.52 +static const adj_stereo _psy_stereo_modes_8[3]={
    1.53 +  /*  0   1   2   3   4   5   6   7   8   9  10  11  12  13  14  */
    1.54 +  {{  4,  4,  4,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3},
    1.55 +   {  6,  5,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4},
    1.56 +   {  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1},
    1.57 +   { 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99}},
    1.58 +  {{  4,  4,  4,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3},
    1.59 +   {  6,  5,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4},
    1.60 +   {  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1},
    1.61 +   { 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99}},
    1.62 +  {{  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3,  3},
    1.63 +   {  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4,  4},
    1.64 +   {  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1},
    1.65 +   { 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99}},
    1.66 +};
    1.67 +
    1.68 +static const noiseguard _psy_noiseguards_8[2]={
    1.69 +  {10,10,-1},
    1.70 +  {10,10,-1},
    1.71 +};
    1.72 +
    1.73 +static const compandblock _psy_compand_8[2]={
    1.74 +  {{
    1.75 +     0, 1, 2, 3, 4, 5, 6,  7,     /* 7dB */
    1.76 +     8, 8, 9, 9,10,10,11, 11,     /* 15dB */
    1.77 +    12,12,13,13,14,14,15, 15,     /* 23dB */
    1.78 +    16,16,17,17,17,18,18, 19,     /* 31dB */
    1.79 +    19,19,20,21,22,23,24, 25,     /* 39dB */
    1.80 +  }},
    1.81 +  {{
    1.82 +     0, 1, 2, 3, 4, 5, 6,  6,     /* 7dB */
    1.83 +     7, 7, 6, 6, 5, 5, 4,  4,     /* 15dB */
    1.84 +     3, 3, 3, 4, 5, 6, 7,  8,     /* 23dB */
    1.85 +     9,10,11,12,13,14,15, 16,     /* 31dB */
    1.86 +    17,18,19,20,21,22,23, 24,     /* 39dB */
    1.87 +  }},
    1.88 +};
    1.89 +
    1.90 +static const double _psy_lowpass_8[3]={3.,4.,4.};
    1.91 +static const int _noise_start_8[2]={
    1.92 +  64,64,
    1.93 +};
    1.94 +static const int _noise_part_8[2]={
    1.95 +  8,8,
    1.96 +};
    1.97 +
    1.98 +static const int _psy_ath_floater_8[3]={
    1.99 +  -100,-100,-105,
   1.100 +};
   1.101 +
   1.102 +static const int _psy_ath_abs_8[3]={
   1.103 +  -130,-130,-140,
   1.104 +};