residue_8.h 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /********************************************************************
  2. * *
  3. * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
  4. * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
  5. * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
  6. * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
  7. * *
  8. * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2002 *
  9. * by the XIPHOPHORUS Company http://www.xiph.org/ *
  10. * *
  11. ********************************************************************
  12. function: toplevel residue templates 8/11kHz
  13. last mod: $Id: residue_8.h,v 1.2 2002/07/11 06:41:04 xiphmont Exp $
  14. ********************************************************************/
  15. #include "vorbis/codec.h"
  16. #include "backends.h"
  17. /***** residue backends *********************************************/
  18. static static_bookblock _resbook_8s_0={
  19. {
  20. {0},{0,0,&_8c0_s_p1_0},{0,0,&_8c0_s_p2_0},{0,0,&_8c0_s_p3_0},
  21. {0,0,&_8c0_s_p4_0},{0,0,&_8c0_s_p5_0},{0,0,&_8c0_s_p6_0},
  22. {&_8c0_s_p7_0,&_8c0_s_p7_1},{&_8c0_s_p8_0,&_8c0_s_p8_1},
  23. {&_8c0_s_p9_0,&_8c0_s_p9_1,&_8c0_s_p9_2}
  24. }
  25. };
  26. static static_bookblock _resbook_8s_1={
  27. {
  28. {0},{0,0,&_8c1_s_p1_0},{0,0,&_8c1_s_p2_0},{0,0,&_8c1_s_p3_0},
  29. {0,0,&_8c1_s_p4_0},{0,0,&_8c1_s_p5_0},{0,0,&_8c1_s_p6_0},
  30. {&_8c1_s_p7_0,&_8c1_s_p7_1},{&_8c1_s_p8_0,&_8c1_s_p8_1},
  31. {&_8c1_s_p9_0,&_8c1_s_p9_1,&_8c1_s_p9_2}
  32. }
  33. };
  34. static vorbis_residue_template _res_8s_0[]={
  35. {2,0, &_residue_44_mid,
  36. &_huff_book__8c0_s_single,&_huff_book__8c0_s_single,
  37. &_resbook_8s_0,&_resbook_8s_0},
  38. };
  39. static vorbis_residue_template _res_8s_1[]={
  40. {2,0, &_residue_44_mid,
  41. &_huff_book__8c1_s_single,&_huff_book__8c1_s_single,
  42. &_resbook_8s_1,&_resbook_8s_1},
  43. };
  44. static vorbis_mapping_template _mapres_template_8_stereo[2]={
  45. { _map_nominal, _res_8s_0 }, /* 0 */
  46. { _map_nominal, _res_8s_1 }, /* 1 */
  47. };
  48. static static_bookblock _resbook_8u_0={
  49. {
  50. {0},
  51. {0,0,&_8u0__p1_0},
  52. {0,0,&_8u0__p2_0},
  53. {0,0,&_8u0__p3_0},
  54. {0,0,&_8u0__p4_0},
  55. {0,0,&_8u0__p5_0},
  56. {&_8u0__p6_0,&_8u0__p6_1},
  57. {&_8u0__p7_0,&_8u0__p7_1,&_8u0__p7_2}
  58. }
  59. };
  60. static static_bookblock _resbook_8u_1={
  61. {
  62. {0},
  63. {0,0,&_8u1__p1_0},
  64. {0,0,&_8u1__p2_0},
  65. {0,0,&_8u1__p3_0},
  66. {0,0,&_8u1__p4_0},
  67. {0,0,&_8u1__p5_0},
  68. {0,0,&_8u1__p6_0},
  69. {&_8u1__p7_0,&_8u1__p7_1},
  70. {&_8u1__p8_0,&_8u1__p8_1},
  71. {&_8u1__p9_0,&_8u1__p9_1,&_8u1__p9_2}
  72. }
  73. };
  74. static vorbis_residue_template _res_8u_0[]={
  75. {1,0, &_residue_44_low_un,
  76. &_huff_book__8u0__single,&_huff_book__8u0__single,
  77. &_resbook_8u_0,&_resbook_8u_0},
  78. };
  79. static vorbis_residue_template _res_8u_1[]={
  80. {1,0, &_residue_44_mid_un,
  81. &_huff_book__8u1__single,&_huff_book__8u1__single,
  82. &_resbook_8u_1,&_resbook_8u_1},
  83. };
  84. static vorbis_mapping_template _mapres_template_8_uncoupled[2]={
  85. { _map_nominal_u, _res_8u_0 }, /* 0 */
  86. { _map_nominal_u, _res_8u_1 }, /* 1 */
  87. };