vrshoot

annotate libs/vorbis/modes/psych_8.h @ 2:334d17aed7de

visual studio project files
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 02 Feb 2014 18:36:38 +0200
parents
children
rev   line source
nuclear@0 1 /********************************************************************
nuclear@0 2 * *
nuclear@0 3 * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
nuclear@0 4 * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
nuclear@0 5 * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
nuclear@0 6 * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
nuclear@0 7 * *
nuclear@0 8 * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2009 *
nuclear@0 9 * by the Xiph.Org Foundation http://www.xiph.org/ *
nuclear@0 10 * *
nuclear@0 11 ********************************************************************
nuclear@0 12
nuclear@0 13 function: 8kHz psychoacoustic settings
nuclear@0 14 last mod: $Id: psych_8.h 16227 2009-07-08 06:58:46Z xiphmont $
nuclear@0 15
nuclear@0 16 ********************************************************************/
nuclear@0 17
nuclear@0 18 static const att3 _psy_tone_masteratt_8[3]={
nuclear@0 19 {{ 32, 25, 12}, 0, 0}, /* 0 */
nuclear@0 20 {{ 30, 25, 12}, 0, 0}, /* 0 */
nuclear@0 21 {{ 20, 0, -14}, 0, 0}, /* 0 */
nuclear@0 22 };
nuclear@0 23
nuclear@0 24 static const vp_adjblock _vp_tonemask_adj_8[3]={
nuclear@0 25 /* adjust for mode zero */
nuclear@0 26 /* 63 125 250 500 1 2 4 8 16 */
nuclear@0 27 {{-15,-15,-15,-15,-10,-10, -6, 0, 0, 0, 0,10, 0, 0,99,99,99}}, /* 1 */
nuclear@0 28 {{-15,-15,-15,-15,-10,-10, -6, 0, 0, 0, 0,10, 0, 0,99,99,99}}, /* 1 */
nuclear@0 29 {{-15,-15,-15,-15,-10,-10, -6, 0, 0, 0, 0, 0, 0, 0,99,99,99}}, /* 1 */
nuclear@0 30 };
nuclear@0 31
nuclear@0 32
nuclear@0 33 static const noise3 _psy_noisebias_8[3]={
nuclear@0 34 /* 63 125 250 500 1k 2k 4k 8k 16k*/
nuclear@0 35 {{{-10,-10,-10,-10, -5, -5, -5, 0, 4, 8, 8, 8, 10, 10, 99, 99, 99},
nuclear@0 36 {-10,-10,-10,-10, -5, -5, -5, 0, 0, 4, 4, 4, 4, 4, 99, 99, 99},
nuclear@0 37 {-30,-30,-30,-30,-30,-24,-20,-14,-10, -6, -8, -8, -6, -6, 99, 99, 99}}},
nuclear@0 38
nuclear@0 39 {{{-10,-10,-10,-10, -5, -5, -5, 0, 4, 8, 8, 8, 10, 10, 99, 99, 99},
nuclear@0 40 {-10,-10,-10,-10,-10,-10, -5, -5, -5, 0, 0, 0, 0, 0, 99, 99, 99},
nuclear@0 41 {-30,-30,-30,-30,-30,-24,-20,-14,-10, -6, -8, -8, -6, -6, 99, 99, 99}}},
nuclear@0 42
nuclear@0 43 {{{-15,-15,-15,-15,-15,-12,-10, -8, 0, 2, 4, 4, 5, 5, 99, 99, 99},
nuclear@0 44 {-30,-30,-30,-30,-26,-22,-20,-14,-12,-12,-10,-10,-10,-10, 99, 99, 99},
nuclear@0 45 {-30,-30,-30,-30,-26,-26,-26,-26,-26,-26,-26,-26,-26,-24, 99, 99, 99}}},
nuclear@0 46 };
nuclear@0 47
nuclear@0 48 /* stereo mode by base quality level */
nuclear@0 49 static const adj_stereo _psy_stereo_modes_8[3]={
nuclear@0 50 /* 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 */
nuclear@0 51 {{ 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3},
nuclear@0 52 { 6, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4},
nuclear@0 53 { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
nuclear@0 54 { 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99}},
nuclear@0 55 {{ 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3},
nuclear@0 56 { 6, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4},
nuclear@0 57 { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
nuclear@0 58 { 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99}},
nuclear@0 59 {{ 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3},
nuclear@0 60 { 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4},
nuclear@0 61 { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
nuclear@0 62 { 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99}},
nuclear@0 63 };
nuclear@0 64
nuclear@0 65 static const noiseguard _psy_noiseguards_8[2]={
nuclear@0 66 {10,10,-1},
nuclear@0 67 {10,10,-1},
nuclear@0 68 };
nuclear@0 69
nuclear@0 70 static const compandblock _psy_compand_8[2]={
nuclear@0 71 {{
nuclear@0 72 0, 1, 2, 3, 4, 5, 6, 7, /* 7dB */
nuclear@0 73 8, 8, 9, 9,10,10,11, 11, /* 15dB */
nuclear@0 74 12,12,13,13,14,14,15, 15, /* 23dB */
nuclear@0 75 16,16,17,17,17,18,18, 19, /* 31dB */
nuclear@0 76 19,19,20,21,22,23,24, 25, /* 39dB */
nuclear@0 77 }},
nuclear@0 78 {{
nuclear@0 79 0, 1, 2, 3, 4, 5, 6, 6, /* 7dB */
nuclear@0 80 7, 7, 6, 6, 5, 5, 4, 4, /* 15dB */
nuclear@0 81 3, 3, 3, 4, 5, 6, 7, 8, /* 23dB */
nuclear@0 82 9,10,11,12,13,14,15, 16, /* 31dB */
nuclear@0 83 17,18,19,20,21,22,23, 24, /* 39dB */
nuclear@0 84 }},
nuclear@0 85 };
nuclear@0 86
nuclear@0 87 static const double _psy_lowpass_8[3]={3.,4.,4.};
nuclear@0 88 static const int _noise_start_8[2]={
nuclear@0 89 64,64,
nuclear@0 90 };
nuclear@0 91 static const int _noise_part_8[2]={
nuclear@0 92 8,8,
nuclear@0 93 };
nuclear@0 94
nuclear@0 95 static const int _psy_ath_floater_8[3]={
nuclear@0 96 -100,-100,-105,
nuclear@0 97 };
nuclear@0 98
nuclear@0 99 static const int _psy_ath_abs_8[3]={
nuclear@0 100 -130,-130,-140,
nuclear@0 101 };