media/libvorbis/lib/modes/setup_8.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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  ********************************************************************
    13  function: 8kHz settings
    14  last mod: $Id: setup_8.h 16894 2010-02-12 20:32:12Z xiphmont $
    16  ********************************************************************/
    18 #include "psych_8.h"
    19 #include "residue_8.h"
    21 static const int blocksize_8[2]={
    22   512,512
    23 };
    25 static const int _floor_mapping_8a[]={
    26   6,6
    27 };
    29 static const int *_floor_mapping_8[]={
    30   _floor_mapping_8a
    31 };
    33 static const double rate_mapping_8[3]={
    34   6000.,9000.,32000.,
    35 };
    37 static const double rate_mapping_8_uncoupled[3]={
    38   8000.,14000.,42000.,
    39 };
    41 static const double quality_mapping_8[3]={
    42   -.1,.0,1.
    43 };
    45 static const double _psy_compand_8_mapping[3]={ 0., 1., 1.};
    47 static const double _global_mapping_8[3]={ 1., 2., 3. };
    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,
    57   blocksize_8,
    58   blocksize_8,
    60   _psy_tone_masteratt_8,
    61   _psy_tone_0dB,
    62   _psy_tone_suppress,
    64   _vp_tonemask_adj_8,
    65   NULL,
    66   _vp_tonemask_adj_8,
    68   _psy_noiseguards_8,
    69   _psy_noisebias_8,
    70   _psy_noisebias_8,
    71   NULL,
    72   NULL,
    73   _psy_noise_suppress,
    75   _psy_compand_8,
    76   _psy_compand_8_mapping,
    77   NULL,
    79   {_noise_start_8,_noise_start_8},
    80   {_noise_part_8,_noise_part_8},
    81   _noise_thresh_5only,
    83   _psy_ath_floater_8,
    84   _psy_ath_abs_8,
    86   _psy_lowpass_8,
    88   _psy_global_44,
    89   _global_mapping_8,
    90   _psy_stereo_modes_8,
    92   _floor_books,
    93   _floor,
    94   1,
    95   _floor_mapping_8,
    97   _mapres_template_8_stereo
    98 };
   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,
   108   blocksize_8,
   109   blocksize_8,
   111   _psy_tone_masteratt_8,
   112   _psy_tone_0dB,
   113   _psy_tone_suppress,
   115   _vp_tonemask_adj_8,
   116   NULL,
   117   _vp_tonemask_adj_8,
   119   _psy_noiseguards_8,
   120   _psy_noisebias_8,
   121   _psy_noisebias_8,
   122   NULL,
   123   NULL,
   124   _psy_noise_suppress,
   126   _psy_compand_8,
   127   _psy_compand_8_mapping,
   128   NULL,
   130   {_noise_start_8,_noise_start_8},
   131   {_noise_part_8,_noise_part_8},
   132   _noise_thresh_5only,
   134   _psy_ath_floater_8,
   135   _psy_ath_abs_8,
   137   _psy_lowpass_8,
   139   _psy_global_44,
   140   _global_mapping_8,
   141   _psy_stereo_modes_8,
   143   _floor_books,
   144   _floor,
   145   1,
   146   _floor_mapping_8,
   148   _mapres_template_8_uncoupled
   149 };

mercurial