registry.c 1.8 KB

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