123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 |
- /********************************************************************
- * *
- * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
- * USE, DISTRIBUTION AND REPRODUCTION OF THIS SOURCE IS GOVERNED BY *
- * THE GNU LESSER/LIBRARY PUBLIC LICENSE, WHICH IS INCLUDED WITH *
- * THIS SOURCE. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
- * *
- * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2000 *
- * by Monty <monty@xiph.org> and the XIPHOPHORUS Company *
- * http://www.xiph.org/ *
- * *
- ********************************************************************
- function: predefined encoding modes
- last mod: $Id: mode_D.h,v 1.1.2.3 2000/11/04 06:22:08 xiphmont Exp $
- ********************************************************************/
- /* this is really a freeform VBR mode. It roughly centers on 256 kbps stereo */
- #ifndef _V_MODES_D_H_
- #define _V_MODES_D_H_
- #include <stdio.h>
- #include "vorbis/codec.h"
- #include "backends.h"
- #include "books/lsp12_0.vqh"
- #include "books/lsp30_0.vqh"
- #include "books/resaux0_128a_256.vqh"
- #include "books/resaux0_1024a_256.vqh"
- #include "books/res0_128a_256_1.vqh"
- #include "books/res0_128a_256_2.vqh"
- #include "books/res0_128a_256_3.vqh"
- #include "books/res0_128a_256_4.vqh"
- #include "books/res0_128a_256_5.vqh"
- #include "books/res0_1024a_256_1.vqh"
- #include "books/res0_1024a_256_2.vqh"
- #include "books/res0_1024a_256_3.vqh"
- #include "books/res0_1024a_256_4.vqh"
- #include "books/res0_1024a_256_5.vqh"
- static vorbis_info_psy _psy_set_256 ={
- 1,/*athp*/
- 0,/*decayp*/
- 1,/*smoothp*/
- 0,.1,
- -100.,
- -140.,
- /* 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 */
- /* x: 63 88 125 175 250 350 500 700 1k 1.4k 2k 2.8k 4k 5.6k 8k 11.5k 16k Hz */
- /* y: 0 10 20 30 40 50 60 70 80 90 100 dB */
- 1,/* tonemaskp */
- /* 0 10 20 30 40 50 60 70 80 90 100 */
- {{-40.,-40.,-40.,-45.,-45.,-55.,-65.,-75.,-85.,-95.,-105.}, /*63*/
- {-40.,-40.,-40.,-45.,-45.,-55.,-65.,-75.,-85.,-95.,-105.}, /*125*/
- {-40.,-40.,-40.,-45.,-45.,-55.,-65.,-75.,-85.,-95.,-105.}, /*175*/
- {-40.,-40.,-40.,-45.,-45.,-55.,-65.,-75.,-85.,-95.,-105.}, /*250*/
- {-40.,-40.,-40.,-45.,-45.,-55.,-65.,-75.,-85.,-95.,-105.}, /*350*/
- {-40.,-40.,-40.,-45.,-45.,-55.,-65.,-75.,-85.,-95.,-105.}, /*500*/
- {-40.,-40.,-40.,-45.,-45.,-55.,-65.,-75.,-85.,-95.,-105.}, /*700*/
- {-40.,-40.,-40.,-45.,-45.,-55.,-65.,-75.,-85.,-95.,-105.}, /*1000*/
- {-40.,-40.,-40.,-45.,-45.,-55.,-65.,-75.,-85.,-95.,-105.}, /*1400*/
- {-40.,-40.,-40.,-45.,-45.,-55.,-65.,-75.,-85.,-95.,-105.}, /*2000*/
- {-40.,-40.,-40.,-45.,-45.,-55.,-65.,-75.,-85.,-95.,-105.}, /*2800*/
- {-40.,-40.,-40.,-45.,-45.,-55.,-65.,-75.,-85.,-95.,-105.}, /*4000*/
- {-40.,-40.,-40.,-45.,-45.,-55.,-65.,-75.,-85.,-95.,-105.}, /*5600*/
- {-40.,-40.,-40.,-45.,-45.,-55.,-65.,-75.,-85.,-95.,-105.}, /*8000*/
- {-40.,-40.,-40.,-45.,-45.,-55.,-65.,-75.,-85.,-95.,-105.}, /*11500*/
- {-40.,-40.,-40.,-45.,-45.,-55.,-65.,-75.,-85.,-95.,-105.}, /*16000*/
- },
- 1,/* peakattp */
- {{-14.,-16.,-18.,-19.,-20.,-21.,-22.,-22.,-22.,-22.,-22.}, /*63*/
- {-14.,-16.,-18.,-19.,-20.,-21.,-22.,-22.,-22.,-22.,-22.}, /*88*/
- {-14.,-16.,-18.,-19.,-20.,-21.,-22.,-22.,-22.,-22.,-22.}, /*125*/
- {-14.,-16.,-18.,-19.,-20.,-21.,-22.,-22.,-22.,-22.,-22.}, /*175*/
- {-14.,-16.,-18.,-19.,-20.,-21.,-22.,-22.,-22.,-22.,-22.}, /*250*/
- {-14.,-16.,-18.,-19.,-20.,-21.,-22.,-22.,-22.,-22.,-22.}, /*350*/
- {-14.,-16.,-18.,-19.,-20.,-21.,-22.,-22.,-22.,-22.,-22.}, /*500*/
- {-14.,-16.,-18.,-19.,-20.,-21.,-22.,-22.,-22.,-22.,-22.}, /*700*/
- {-14.,-16.,-18.,-19.,-20.,-21.,-22.,-22.,-22.,-22.,-22.}, /*1000*/
- {-14.,-16.,-18.,-19.,-20.,-21.,-22.,-22.,-22.,-22.,-22.}, /*1400*/
- {-14.,-16.,-18.,-19.,-20.,-21.,-22.,-22.,-22.,-22.,-22.}, /*2000*/
- {-14.,-16.,-18.,-19.,-20.,-21.,-22.,-22.,-22.,-22.,-22.}, /*2800*/
- {-14.,-16.,-18.,-19.,-20.,-21.,-22.,-22.,-22.,-22.,-22.}, /*4000*/
- {-14.,-16.,-18.,-19.,-20.,-21.,-22.,-22.,-22.,-22.,-22.}, /*5600*/
- {-14.,-16.,-18.,-19.,-20.,-21.,-22.,-22.,-22.,-22.,-22.}, /*8000*/
- {-14.,-16.,-18.,-19.,-20.,-21.,-22.,-22.,-22.,-22.,-22.}, /*11500*/
- {-14.,-16.,-18.,-19.,-20.,-21.,-22.,-22.,-22.,-22.,-22.}, /*16000*/
- },
- 0,/*noisemaskp */
- /* 0 10 20 30 40 50 60 70 80 90 100 */
- {{0}},
-
- 110.,
- -0., -.004 /* attack/decay control */
- };
- /* with GNUisms, this could be short and readable. Oh well */
- static vorbis_info_time0 _time_set0_256={0};
- static vorbis_info_floor0 _floor_set0_256={12, 44100, 64, 12,150, 1, {0} };
- static vorbis_info_floor0 _floor_set1_256={30, 44100, 256, 12,150, 1, {1} };
- static vorbis_info_residue0 _residue_set0_256={0,128, 32,6,2,
- {0,1,1,1,1,1},
- {4,5,6,7,8},
- {0,9999,9999,9999,9999},
- {99,2.5,7,13.5,27.5},
- {5,5,5,5,5},
- {99,99,99,99,99}};
- static vorbis_info_residue0 _residue_set1_256={0,1024, 32,6,3,
- {0,1,1,1,1,1},
- {9,10,11,12,13},
-
- {0,9999,9999,9999,9999},
- {99,2.5,7,13.5,27.5},
- {5,5,5,5,5},
- {99,99,99,99,99}};
- static vorbis_info_mapping0 _mapping_set0_256={1, {0,0}, {0}, {0}, {0}, {0}};
- static vorbis_info_mapping0 _mapping_set1_256={1, {0,0}, {0}, {1}, {1}, {0}};
- static vorbis_info_mode _mode_set0_256={0,0,0,0};
- static vorbis_info_mode _mode_set1_256={1,0,0,1};
- /* CD quality stereo, no channel coupling */
- codec_setup_info info_D={
- /* smallblock, largeblock */
- {256, 2048},
- /* modes,maps,times,floors,residues,books,psys */
- 2, 2, 1, 2, 2, 14, 1,
- /* modes */
- {&_mode_set0_256,&_mode_set1_256},
- /* maps */
- {0,0},{&_mapping_set0_256,&_mapping_set1_256},
- /* times */
- {0,0},{&_time_set0_256},
- /* floors */
- {0,0},{&_floor_set0_256,&_floor_set1_256},
- /* residue */
- {0,0},{&_residue_set0_256,&_residue_set1_256},
- /* books */
- {&_vq_book_lsp12_0, /* 0 */
- &_vq_book_lsp30_0, /* 1 */
- &_huff_book_resaux0_128a_256,
- &_huff_book_resaux0_1024a_256,
- &_vq_book_res0_128a_256_1,
- &_vq_book_res0_128a_256_2,
- &_vq_book_res0_128a_256_3,
- &_vq_book_res0_128a_256_4,
- &_vq_book_res0_128a_256_5,
- &_vq_book_res0_1024a_256_1,
- &_vq_book_res0_1024a_256_2,
- &_vq_book_res0_1024a_256_3,
- &_vq_book_res0_1024a_256_4,
- &_vq_book_res0_1024a_256_5,
- },
- /* psy */
- {&_psy_set_256},
- /* thresh sample period, preecho clamp trigger threshhold, range, minenergy */
- 256, 24, 6, -96.
- };
- #define PREDEF_INFO_MAX 0
- #endif
|