nuclear@1: /******************************************************************** nuclear@1: * * nuclear@1: * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. * nuclear@1: * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * nuclear@1: * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE * nuclear@1: * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. * nuclear@1: * * nuclear@1: * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2007 * nuclear@1: * by the Xiph.Org Foundation http://www.xiph.org/ * nuclear@1: * * nuclear@1: ******************************************************************** nuclear@1: nuclear@1: function: toplevel residue templates 8/11kHz nuclear@1: last mod: $Id: residue_8.h 16962 2010-03-11 07:30:34Z xiphmont $ nuclear@1: nuclear@1: ********************************************************************/ nuclear@1: nuclear@1: #include "vorbis/codec.h" nuclear@1: #include "backends.h" nuclear@1: nuclear@1: /***** residue backends *********************************************/ nuclear@1: nuclear@1: static const static_bookblock _resbook_8s_0={ nuclear@1: { nuclear@1: {0}, nuclear@1: {0,0,&_8c0_s_p1_0}, nuclear@1: {0}, nuclear@1: {0,0,&_8c0_s_p3_0}, nuclear@1: {0,0,&_8c0_s_p4_0}, nuclear@1: {0,0,&_8c0_s_p5_0}, nuclear@1: {0,0,&_8c0_s_p6_0}, nuclear@1: {&_8c0_s_p7_0,&_8c0_s_p7_1}, nuclear@1: {&_8c0_s_p8_0,&_8c0_s_p8_1}, nuclear@1: {&_8c0_s_p9_0,&_8c0_s_p9_1,&_8c0_s_p9_2} nuclear@1: } nuclear@1: }; nuclear@1: static const static_bookblock _resbook_8s_1={ nuclear@1: { nuclear@1: {0}, nuclear@1: {0,0,&_8c1_s_p1_0}, nuclear@1: {0}, nuclear@1: {0,0,&_8c1_s_p3_0}, nuclear@1: {0,0,&_8c1_s_p4_0}, nuclear@1: {0,0,&_8c1_s_p5_0}, nuclear@1: {0,0,&_8c1_s_p6_0}, nuclear@1: {&_8c1_s_p7_0,&_8c1_s_p7_1}, nuclear@1: {&_8c1_s_p8_0,&_8c1_s_p8_1}, nuclear@1: {&_8c1_s_p9_0,&_8c1_s_p9_1,&_8c1_s_p9_2} nuclear@1: } nuclear@1: }; nuclear@1: nuclear@1: static const vorbis_residue_template _res_8s_0[]={ nuclear@1: {2,0,32, &_residue_44_mid, nuclear@1: &_huff_book__8c0_s_single,&_huff_book__8c0_s_single, nuclear@1: &_resbook_8s_0,&_resbook_8s_0}, nuclear@1: }; nuclear@1: static const vorbis_residue_template _res_8s_1[]={ nuclear@1: {2,0,32, &_residue_44_mid, nuclear@1: &_huff_book__8c1_s_single,&_huff_book__8c1_s_single, nuclear@1: &_resbook_8s_1,&_resbook_8s_1}, nuclear@1: }; nuclear@1: nuclear@1: static const vorbis_mapping_template _mapres_template_8_stereo[2]={ nuclear@1: { _map_nominal, _res_8s_0 }, /* 0 */ nuclear@1: { _map_nominal, _res_8s_1 }, /* 1 */ nuclear@1: }; nuclear@1: nuclear@1: static const static_bookblock _resbook_8u_0={ nuclear@1: { nuclear@1: {0}, nuclear@1: {0,0,&_8u0__p1_0}, nuclear@1: {0,0,&_8u0__p2_0}, nuclear@1: {0,0,&_8u0__p3_0}, nuclear@1: {0,0,&_8u0__p4_0}, nuclear@1: {0,0,&_8u0__p5_0}, nuclear@1: {&_8u0__p6_0,&_8u0__p6_1}, nuclear@1: {&_8u0__p7_0,&_8u0__p7_1,&_8u0__p7_2} nuclear@1: } nuclear@1: }; nuclear@1: static const static_bookblock _resbook_8u_1={ nuclear@1: { nuclear@1: {0}, nuclear@1: {0,0,&_8u1__p1_0}, nuclear@1: {0,0,&_8u1__p2_0}, nuclear@1: {0,0,&_8u1__p3_0}, nuclear@1: {0,0,&_8u1__p4_0}, nuclear@1: {0,0,&_8u1__p5_0}, nuclear@1: {0,0,&_8u1__p6_0}, nuclear@1: {&_8u1__p7_0,&_8u1__p7_1}, nuclear@1: {&_8u1__p8_0,&_8u1__p8_1}, nuclear@1: {&_8u1__p9_0,&_8u1__p9_1,&_8u1__p9_2} nuclear@1: } nuclear@1: }; nuclear@1: nuclear@1: static const vorbis_residue_template _res_8u_0[]={ nuclear@1: {1,0,32, &_residue_44_low_un, nuclear@1: &_huff_book__8u0__single,&_huff_book__8u0__single, nuclear@1: &_resbook_8u_0,&_resbook_8u_0}, nuclear@1: }; nuclear@1: static const vorbis_residue_template _res_8u_1[]={ nuclear@1: {1,0,32, &_residue_44_mid_un, nuclear@1: &_huff_book__8u1__single,&_huff_book__8u1__single, nuclear@1: &_resbook_8u_1,&_resbook_8u_1}, nuclear@1: }; nuclear@1: nuclear@1: static const vorbis_mapping_template _mapres_template_8_uncoupled[2]={ nuclear@1: { _map_nominal_u, _res_8u_0 }, /* 0 */ nuclear@1: { _map_nominal_u, _res_8u_1 }, /* 1 */ nuclear@1: };