summaryrefslogtreecommitdiff
path: root/lib/modes/mode_44c_Z.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/modes/mode_44c_Z.h')
-rw-r--r--lib/modes/mode_44c_Z.h338
1 files changed, 338 insertions, 0 deletions
diff --git a/lib/modes/mode_44c_Z.h b/lib/modes/mode_44c_Z.h
new file mode 100644
index 00000000..75198add
--- /dev/null
+++ b/lib/modes/mode_44c_Z.h
@@ -0,0 +1,338 @@
+/********************************************************************
+ * *
+ * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
+ * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
+ * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
+ * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
+ * *
+ * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2001 *
+ * by the XIPHOPHORUS Company http://www.xiph.org/ *
+ * *
+ ********************************************************************
+
+ function: predefined encoding modes; 44kHz stereo ~64kbps true VBR
+ last mod: $Id: mode_44c_Z.h,v 1.6.4.1 2001/10/09 04:34:55 xiphmont Exp $
+
+ ********************************************************************/
+
+#ifndef _V_MODES_44c_Z_H_
+#define _V_MODES_44c_Z_H_
+
+#include <stdio.h>
+#include "vorbis/codec.h"
+#include "backends.h"
+
+#include "books/line_128x7_class1.vqh"
+#include "books/line_128x7_class2.vqh"
+
+#include "books/line_128x7_0sub0.vqh"
+#include "books/line_128x7_1sub1.vqh"
+#include "books/line_128x7_1sub2.vqh"
+#include "books/line_128x7_1sub3.vqh"
+#include "books/line_128x7_2sub1.vqh"
+#include "books/line_128x7_2sub2.vqh"
+#include "books/line_128x7_2sub3.vqh"
+
+#include "books/line_1024x31_class0.vqh"
+#include "books/line_1024x31_class1.vqh"
+#include "books/line_1024x31_class2.vqh"
+#include "books/line_1024x31_class3.vqh"
+
+#include "books/line_1024x31_0sub0.vqh"
+#include "books/line_1024x31_0sub1.vqh"
+#include "books/line_1024x31_1sub0.vqh"
+#include "books/line_1024x31_1sub1.vqh"
+#include "books/line_1024x31_2sub1.vqh"
+#include "books/line_1024x31_2sub2.vqh"
+#include "books/line_1024x31_2sub3.vqh"
+#include "books/line_1024x31_3sub1.vqh"
+#include "books/line_1024x31_3sub2.vqh"
+#include "books/line_1024x31_3sub3.vqh"
+
+#include "books/res_44c_Z_128aux.vqh"
+#include "books/res_44c_Z_1024aux.vqh"
+
+#include "books/res_Zc_1.vqh"
+#include "books/res_Zc_2.vqh"
+#include "books/res_Zc_3.vqh"
+#include "books/res_Zc_4.vqh"
+#include "books/res_Zc_5.vqh"
+#include "books/res_Zc_6.vqh"
+#include "books/res_Zc_7.vqh"
+#include "books/res_Zc_8.vqh"
+#include "books/res_Zc_9.vqh"
+#include "books/res_Zc_9a.vqh"
+#include "books/res_Zc_9b.vqh"
+
+#include "maskadj_Z.h"
+
+static vorbis_info_psy_global _psy_set_44c_ZG={
+ 0, /* decaydBpms */
+ 8, /* lines per eighth octave */
+
+ /* thresh sample period, preecho clamp trigger threshhold, range, minenergy */
+ 256, {26.f,26.f,26.f,30.f}, {-90.f,-90.f,-90.f,-90.f}, -90.f,
+ -6.f,
+
+ 0,
+};
+
+static struct vp_couple_pass _psy_pass_44c_Z0[]={
+ {1.f,1.f,
+ {{24, 0, 0, 0},
+ {9999, 0, 0, 7.5f}}
+ },
+};
+
+static vp_couple_pass _psy_pass_44c_Z[]={
+ {1.f,1.f,
+ {{288, 0, 0, 0},
+ {9999, 0, 0, 7.5f}}
+ }
+};
+
+static float _psy_compand_44c_Z[NOISE_COMPAND_LEVELS]={
+ 0.f, 1.f, 2.f, 3.f, 4.f, 5.f, 6.f, 7.f, /* 7dB */
+ 8.f, 9.f, 9.f,10.f,10.f,10.f,11.f, 11.f, /* 15dB */
+ 12.f,12.f,11.f,11.f,10.f,10.f, 9.f, 9.f, /* 23dB */
+ 8.f, 8.f, 8.f, 9.f, 9.f,10.f,11.f, 12.f, /* 31dB */
+ 13.f,14.f,15.f,16.f,17.f,18.f,19.f, 20.f, /* 39dB */
+};
+
+static float _psy_compand_44c_Z0[NOISE_COMPAND_LEVELS]={
+ 0.f, 1.f, 2.f, 3.f, 4.f, 5.f, 6.f, 7.f, /* 7dB */
+ 8.f, 9.f,10.f,11.f,12.f,13.f,14.f, 15.f, /* 15dB */
+ 16.f,17.f,18.f,19.f,20.f,21.f,22.f, 23.f, /* 23dB */
+ 24.f,25.f,26.f,27.f,28.f,29.f,30.f, 31.f, /* 31dB */
+ 32.f,33.f,34.f,35.f,36.f,37.f,38.f, 39.f, /* 39dB */
+};
+
+static vorbis_info_psy _psy_set_44c_Z0={
+ ATH_Bark_dB_lineaggressive,
+ -100.,-110.,
+
+ /* tonemaskp */
+ 3.f, -24.f,-10.f,
+ &_vp_tonemask_consbass_Z,
+ /* peakattp, curvelimitp */
+ 1, 0, &_vp_peakatt_Z,
+
+ /*noisemaskp */
+ 1,-0.f, /* suppress any noise curve over maxspec+n */
+ 5.f, 5.f, /* low/high window */
+ 2, 2, 15,
+
+ /*63 125 250 500 1k 2k 4k 8k 16k*/
+ {-26,-26,-26,-26,-26,-22,-20,-14, -10, -2, 2, 2, 2, 2, 3, 4, 10},
+ //{-20,-20,-20,-20,-20,-20,-20,-26, -22, -22,-20,-20,-22, -22, -22,-23,-20},
+ _psy_compand_44c_Z,
+
+ 95.f, /* even decade + 5 is important; saves an rint() later in a
+ tight loop) */
+ 1,
+ _psy_pass_44c_Z0
+};
+
+static vorbis_info_psy _psy_set_44c_ZT={
+ ATH_Bark_dB_lineaggressive,
+ -100.f,-110.f,
+
+ /* tonemask */
+ 3.f,-24.f,-10.f,
+ &_vp_tonemask_consbass_Z,
+ /* peakattp,curvelimitp */
+ 1, 0, &_vp_peakatt_Z,
+
+ /*noisemaskp */
+ 1, -0.f, /* suppress any noise curve over maxspec+n */
+ .5f,.5f, /* low/high window */
+ 10,10,100,
+
+ /*63 125 250 500 1k 2k 4k 8k 16k*/
+ {-26,-26,-26,-26,-26,-20,-20,-10, -6, 0, 1, 2, 3, 3, 3, 3, 10},
+ //{-20,-20,-20,-20,-20,-20,-20,-26, -22, -22,-20,-20,-22, -22, -22,-23,-20},
+ _psy_compand_44c_Z,
+
+
+ 95.f, /* even decade + 5 is important; saves an rint() later in a
+ tight loop) */
+ 1,_psy_pass_44c_Z
+};
+
+static vorbis_info_psy _psy_set_44c_Z={
+ ATH_Bark_dB_lineaggressive,
+ -100.f, -110.f,
+
+ /* tonemask */
+ 3.f,-24.f,-10.f,
+ &_vp_tonemask_Z,
+ /* peakattp, curvelimitp */
+ 1, 0, &_vp_peakatt_Z,
+
+ /*noisemaskp */
+ 1, -0.f, /* suppress any noise curve over maxspec+n */
+ .5f,.5f, /* low/high window */
+ 10,10,100,
+
+ /*63 125 250 500 1k 2k 4k 8k 16k*/
+ {-20,-20,-20,-20,-20,-20,-20,-10, -6, 0, 1, 2, 3, 3, 3, 3, 10},
+ //{-20,-20,-20,-20,-20,-20,-20,-26, -22, -22,-20,-20,-22, -22, -22,-23,-20},
+ _psy_compand_44c_Z,
+
+
+ 95.f, /* even decade + 5 is important; saves an rint() later in a
+ tight loop) */
+ 1,_psy_pass_44c_Z
+};
+
+static vorbis_info_time0 _time_set_44c_Z={0};
+
+static vorbis_info_floor1 _floor_set_44c_Z0={
+ 3,
+ {0,1,2},
+
+ {1,3,3},
+ {0,2,2},
+ {-1,0,1},
+ {{2},{-1,3,4,5},{-1,6,7,8}},
+
+ 4,
+
+ {0,128,
+
+ 7,
+
+ 2,1,4,
+ 23,13,45},
+
+ 60,30,500,
+ 999,999,0,18.,
+ 8,70,
+ 72};
+
+static vorbis_info_floor1 _floor_set_44c_Z={
+ 10,
+ {0,1,2,2,2,2,2, 3,3,3},
+
+ {3,4,3,3},
+ {1,1,2,2},
+ {9,10,11,12},
+ {{13,14},
+ {15,16},
+ {-1,17,18,19},
+ {-1,20,21,22},
+ },
+
+ 4,
+ {0,1024,
+
+ 88,31,243,
+
+ 14,54,143,460,
+
+ 6,3,10, 22,18,26, 41,36,47,
+ 69,61,78, 112,99,126, 185,162,211,
+ 329,282,387, 672,553,825
+ },
+
+ 60,30,400,
+ 20,8,1,18.,
+ 20,600,
+ 704};
+
+static vorbis_info_residue0 _residue_set_44c_Z0={
+ 0,144, 12, 10,23,
+ {0,1,1,1,1,1,1,1,1,7},
+ {25, 26, 27, 28, 29, 30, 31, 32, 33,34,35},
+ {9999, 9999, 9999, 9999, 2,9999, 9999, 9999, 9999, 9999},
+ {.5, 1.5, 2.5f, 7.5, 1.5f,1.5, 2.5, 7.5, 22.5f},
+ {0},
+ {99, 4, 4, 4, 99,99, 99, 99, 99},
+ {3}};
+
+static vorbis_info_residue0 _residue_set_44c_Z={
+ 0,1408, 32, 10,24,
+ {0,1,1,1,1,1,1,1,1,7},
+ {25, 26, 27, 28, 29, 30, 31, 32, 33,34,35},
+ {9999, 9999, 9999, 9999, 3,9999, 9999, 9999, 9999, 9999},
+ {.5, 1.5, 2.5f, 7.5, 1.5f,1.5, 2.5, 7.5, 22.5f},
+ {0},
+ {99, 18, 18, 18, 99,99, 99, 99, 99},
+ {3}};
+
+static vorbis_info_mapping0 _mapping_set_44c_Z0={
+ 1, {0,0}, {0}, {0}, {0}, {0,0}, 1,{0},{1}};
+static vorbis_info_mapping0 _mapping_set_44c_Z={
+ 1, {0,0}, {0}, {1}, {1}, {1,2}, 1,{0},{1}};
+
+static vorbis_info_mode _mode_set_44c_Z0={0,0,0,0};
+static vorbis_info_mode _mode_set_44c_Z={1,0,0,1};
+
+codec_setup_info info_44c_Z={
+
+ /* smallblock, largeblock */
+ {256, 2048},
+ /* modes,maps,times,floors,residues,books,psys */
+ 2, 2, 1, 2, 2, 36, 3,
+ /* modes */
+ {&_mode_set_44c_Z0,&_mode_set_44c_Z},
+ /* maps */
+ {0,0},{&_mapping_set_44c_Z0,&_mapping_set_44c_Z},
+ /* times */
+ {0,0},{&_time_set_44c_Z},
+ /* floors */
+ {1,1},{&_floor_set_44c_Z0,&_floor_set_44c_Z},
+ /* residue */
+ {2,2},{&_residue_set_44c_Z0,&_residue_set_44c_Z},
+ /* books */
+
+ {
+ &_huff_book_line_128x7_class1,
+ &_huff_book_line_128x7_class2, /* 1 */
+
+ &_huff_book_line_128x7_0sub0, /* 2 */
+ &_huff_book_line_128x7_1sub1, /* 3 */
+ &_huff_book_line_128x7_1sub2,
+ &_huff_book_line_128x7_1sub3, /* 5 */
+ &_huff_book_line_128x7_2sub1,
+ &_huff_book_line_128x7_2sub2, /* 7 */
+ &_huff_book_line_128x7_2sub3,
+
+ &_huff_book_line_1024x31_class0,
+ &_huff_book_line_1024x31_class1, /* 10 */
+ &_huff_book_line_1024x31_class2,
+ &_huff_book_line_1024x31_class3, /* 12 */
+
+ &_huff_book_line_1024x31_0sub0,
+ &_huff_book_line_1024x31_0sub1, /* 14 */
+ &_huff_book_line_1024x31_1sub0,
+ &_huff_book_line_1024x31_1sub1,
+ &_huff_book_line_1024x31_2sub1,
+ &_huff_book_line_1024x31_2sub2, /* 18 */
+ &_huff_book_line_1024x31_2sub3,
+ &_huff_book_line_1024x31_3sub1,
+ &_huff_book_line_1024x31_3sub2,
+ &_huff_book_line_1024x31_3sub3, /* 22 */
+
+ &_huff_book_res_44c_Z_128aux,
+ &_huff_book_res_44c_Z_1024aux,
+
+ &_vq_book_res_Zc_1,
+ &_vq_book_res_Zc_2,
+ &_vq_book_res_Zc_3,
+ &_vq_book_res_Zc_4,
+ &_vq_book_res_Zc_5,
+ &_vq_book_res_Zc_6,
+ &_vq_book_res_Zc_7,
+ &_vq_book_res_Zc_8,
+ &_vq_book_res_Zc_9,
+ &_vq_book_res_Zc_9a,
+ &_vq_book_res_Zc_9b,
+
+ },
+ /* psy */
+ {&_psy_set_44c_Z0,&_psy_set_44c_ZT,&_psy_set_44c_Z},
+ &_psy_set_44c_ZG
+};
+
+#endif