Path: blob/master/thirdparty/libvorbis/modes/residue_16.h
9899 views
/********************************************************************1* *2* This FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *3* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *4* GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *5* IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *6* *7* THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2009 *8* by the Xiph.Org Foundation https://xiph.org/ *9* *10********************************************************************1112function: toplevel residue templates 16/22kHz1314********************************************************************/1516/***** residue backends *********************************************/1718static const static_bookblock _resbook_16s_0={19{20{0},21{0,0,&_16c0_s_p1_0},22{0},23{0,0,&_16c0_s_p3_0},24{0,0,&_16c0_s_p4_0},25{0,0,&_16c0_s_p5_0},26{0,0,&_16c0_s_p6_0},27{&_16c0_s_p7_0,&_16c0_s_p7_1},28{&_16c0_s_p8_0,&_16c0_s_p8_1},29{&_16c0_s_p9_0,&_16c0_s_p9_1,&_16c0_s_p9_2}30}31};32static const static_bookblock _resbook_16s_1={33{34{0},35{0,0,&_16c1_s_p1_0},36{0},37{0,0,&_16c1_s_p3_0},38{0,0,&_16c1_s_p4_0},39{0,0,&_16c1_s_p5_0},40{0,0,&_16c1_s_p6_0},41{&_16c1_s_p7_0,&_16c1_s_p7_1},42{&_16c1_s_p8_0,&_16c1_s_p8_1},43{&_16c1_s_p9_0,&_16c1_s_p9_1,&_16c1_s_p9_2}44}45};46static const static_bookblock _resbook_16s_2={47{48{0},49{0,0,&_16c2_s_p1_0},50{0,0,&_16c2_s_p2_0},51{0,0,&_16c2_s_p3_0},52{0,0,&_16c2_s_p4_0},53{&_16c2_s_p5_0,&_16c2_s_p5_1},54{&_16c2_s_p6_0,&_16c2_s_p6_1},55{&_16c2_s_p7_0,&_16c2_s_p7_1},56{&_16c2_s_p8_0,&_16c2_s_p8_1},57{&_16c2_s_p9_0,&_16c2_s_p9_1,&_16c2_s_p9_2}58}59};6061static const vorbis_residue_template _res_16s_0[]={62{2,0,32, &_residue_44_mid,63&_huff_book__16c0_s_single,&_huff_book__16c0_s_single,64&_resbook_16s_0,&_resbook_16s_0},65};66static const vorbis_residue_template _res_16s_1[]={67{2,0,32, &_residue_44_mid,68&_huff_book__16c1_s_short,&_huff_book__16c1_s_short,69&_resbook_16s_1,&_resbook_16s_1},7071{2,0,32, &_residue_44_mid,72&_huff_book__16c1_s_long,&_huff_book__16c1_s_long,73&_resbook_16s_1,&_resbook_16s_1}74};75static const vorbis_residue_template _res_16s_2[]={76{2,0,32, &_residue_44_high,77&_huff_book__16c2_s_short,&_huff_book__16c2_s_short,78&_resbook_16s_2,&_resbook_16s_2},7980{2,0,32, &_residue_44_high,81&_huff_book__16c2_s_long,&_huff_book__16c2_s_long,82&_resbook_16s_2,&_resbook_16s_2}83};8485static const vorbis_mapping_template _mapres_template_16_stereo[3]={86{ _map_nominal, _res_16s_0 }, /* 0 */87{ _map_nominal, _res_16s_1 }, /* 1 */88{ _map_nominal, _res_16s_2 }, /* 2 */89};9091static const static_bookblock _resbook_16u_0={92{93{0},94{0,0,&_16u0__p1_0},95{0,0,&_16u0__p2_0},96{0,0,&_16u0__p3_0},97{0,0,&_16u0__p4_0},98{0,0,&_16u0__p5_0},99{&_16u0__p6_0,&_16u0__p6_1},100{&_16u0__p7_0,&_16u0__p7_1,&_16u0__p7_2}101}102};103static const static_bookblock _resbook_16u_1={104{105{0},106{0,0,&_16u1__p1_0},107{0,0,&_16u1__p2_0},108{0,0,&_16u1__p3_0},109{0,0,&_16u1__p4_0},110{0,0,&_16u1__p5_0},111{0,0,&_16u1__p6_0},112{&_16u1__p7_0,&_16u1__p7_1},113{&_16u1__p8_0,&_16u1__p8_1},114{&_16u1__p9_0,&_16u1__p9_1,&_16u1__p9_2}115}116};117static const static_bookblock _resbook_16u_2={118{119{0},120{0,0,&_16u2_p1_0},121{0,0,&_16u2_p2_0},122{0,0,&_16u2_p3_0},123{0,0,&_16u2_p4_0},124{&_16u2_p5_0,&_16u2_p5_1},125{&_16u2_p6_0,&_16u2_p6_1},126{&_16u2_p7_0,&_16u2_p7_1},127{&_16u2_p8_0,&_16u2_p8_1},128{&_16u2_p9_0,&_16u2_p9_1,&_16u2_p9_2}129}130};131132static const vorbis_residue_template _res_16u_0[]={133{1,0,32, &_residue_44_low_un,134&_huff_book__16u0__single,&_huff_book__16u0__single,135&_resbook_16u_0,&_resbook_16u_0},136};137static const vorbis_residue_template _res_16u_1[]={138{1,0,32, &_residue_44_mid_un,139&_huff_book__16u1__short,&_huff_book__16u1__short,140&_resbook_16u_1,&_resbook_16u_1},141142{1,0,32, &_residue_44_mid_un,143&_huff_book__16u1__long,&_huff_book__16u1__long,144&_resbook_16u_1,&_resbook_16u_1}145};146static const vorbis_residue_template _res_16u_2[]={147{1,0,32, &_residue_44_hi_un,148&_huff_book__16u2__short,&_huff_book__16u2__short,149&_resbook_16u_2,&_resbook_16u_2},150151{1,0,32, &_residue_44_hi_un,152&_huff_book__16u2__long,&_huff_book__16u2__long,153&_resbook_16u_2,&_resbook_16u_2}154};155156157static const vorbis_mapping_template _mapres_template_16_uncoupled[3]={158{ _map_nominal_u, _res_16u_0 }, /* 0 */159{ _map_nominal_u, _res_16u_1 }, /* 1 */160{ _map_nominal_u, _res_16u_2 }, /* 2 */161};162163164