registry.c 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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-2009 *
  9. * by the Xiph.Org Foundation http://www.xiph.org/ *
  10. * *
  11. ********************************************************************
  12. function: registry for time, floor, res backends and channel mappings
  13. last mod: $Id: registry.c 16227 2009-07-08 06:58:46Z xiphmont $
  14. ********************************************************************/
  15. #include "vorbis/codec.h"
  16. #include "codec_internal.h"
  17. #include "registry.h"
  18. #include "misc.h"
  19. /* seems like major overkill now; the backend numbers will grow into
  20. the infrastructure soon enough */
  21. extern const vorbis_func_floor floor0_exportbundle;
  22. extern const vorbis_func_floor floor1_exportbundle;
  23. extern const vorbis_func_residue residue0_exportbundle;
  24. extern const vorbis_func_residue residue1_exportbundle;
  25. extern const vorbis_func_residue residue2_exportbundle;
  26. extern const vorbis_func_mapping mapping0_exportbundle;
  27. const vorbis_func_floor *const _floor_P[]={
  28. &floor0_exportbundle,
  29. &floor1_exportbundle,
  30. };
  31. const vorbis_func_residue *const _residue_P[]={
  32. &residue0_exportbundle,
  33. &residue1_exportbundle,
  34. &residue2_exportbundle,
  35. };
  36. const vorbis_func_mapping *const _mapping_P[]={
  37. &mapping0_exportbundle,
  38. };