media/libvorbis/lib/modes/setup_32.h

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     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: toplevel settings for 32kHz
    14  last mod: $Id: setup_32.h 16894 2010-02-12 20:32:12Z xiphmont $
    16  ********************************************************************/
    18 static const double rate_mapping_32[12]={
    19   18000.,28000.,35000.,45000.,56000.,60000.,
    20   75000.,90000.,100000.,115000.,150000.,190000.,
    21 };
    23 static const double rate_mapping_32_un[12]={
    24   30000.,42000.,52000.,64000.,72000.,78000.,
    25   86000.,92000.,110000.,120000.,140000.,190000.,
    26 };
    28 static const double _psy_lowpass_32[12]={
    29   12.3,13.,13.,14.,15.,99.,99.,99.,99.,99.,99.,99.
    30 };
    32 static const ve_setup_data_template ve_setup_32_stereo={
    33   11,
    34   rate_mapping_32,
    35   quality_mapping_44,
    36   2,
    37   26000,
    38   40000,
    40   blocksize_short_44,
    41   blocksize_long_44,
    43   _psy_tone_masteratt_44,
    44   _psy_tone_0dB,
    45   _psy_tone_suppress,
    47   _vp_tonemask_adj_otherblock,
    48   _vp_tonemask_adj_longblock,
    49   _vp_tonemask_adj_otherblock,
    51   _psy_noiseguards_44,
    52   _psy_noisebias_impulse,
    53   _psy_noisebias_padding,
    54   _psy_noisebias_trans,
    55   _psy_noisebias_long,
    56   _psy_noise_suppress,
    58   _psy_compand_44,
    59   _psy_compand_short_mapping,
    60   _psy_compand_long_mapping,
    62   {_noise_start_short_44,_noise_start_long_44},
    63   {_noise_part_short_44,_noise_part_long_44},
    64   _noise_thresh_44,
    66   _psy_ath_floater,
    67   _psy_ath_abs,
    69   _psy_lowpass_32,
    71   _psy_global_44,
    72   _global_mapping_44,
    73   _psy_stereo_modes_44,
    75   _floor_books,
    76   _floor,
    77   2,
    78   _floor_mapping_44,
    80   _mapres_template_44_stereo
    81 };
    83 static const ve_setup_data_template ve_setup_32_uncoupled={
    84   11,
    85   rate_mapping_32_un,
    86   quality_mapping_44,
    87   -1,
    88   26000,
    89   40000,
    91   blocksize_short_44,
    92   blocksize_long_44,
    94   _psy_tone_masteratt_44,
    95   _psy_tone_0dB,
    96   _psy_tone_suppress,
    98   _vp_tonemask_adj_otherblock,
    99   _vp_tonemask_adj_longblock,
   100   _vp_tonemask_adj_otherblock,
   102   _psy_noiseguards_44,
   103   _psy_noisebias_impulse,
   104   _psy_noisebias_padding,
   105   _psy_noisebias_trans,
   106   _psy_noisebias_long,
   107   _psy_noise_suppress,
   109   _psy_compand_44,
   110   _psy_compand_short_mapping,
   111   _psy_compand_long_mapping,
   113   {_noise_start_short_44,_noise_start_long_44},
   114   {_noise_part_short_44,_noise_part_long_44},
   115   _noise_thresh_44,
   117   _psy_ath_floater,
   118   _psy_ath_abs,
   120   _psy_lowpass_32,
   122   _psy_global_44,
   123   _global_mapping_44,
   124   NULL,
   126   _floor_books,
   127   _floor,
   128   2,
   129   _floor_mapping_44,
   131   _mapres_template_44_uncoupled
   132 };

mercurial