Additional optimizations, rearrangement.
[platform/upstream/libvorbis.git] / lib / registry.c
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  ********************************************************************
12
13  function: registry for time, floor, res backends and channel mappings
14  last mod: $Id: registry.c,v 1.8 2001/06/15 21:15:40 xiphmont Exp $
15
16  ********************************************************************/
17
18 #include "vorbis/codec.h"
19 #include "registry.h"
20 #include "misc.h"
21
22 /* seems like major overkill now; the backend numbers will grow into
23    the infrastructure soon enough */
24
25 extern vorbis_func_time      time0_exportbundle;
26 extern vorbis_func_floor     floor0_exportbundle;
27 extern vorbis_func_floor     floor1_exportbundle;
28 extern vorbis_func_residue   residue0_exportbundle;
29 extern vorbis_func_residue   residue1_exportbundle;
30 extern vorbis_func_residue   residue2_exportbundle;
31 extern vorbis_func_mapping   mapping0_exportbundle;
32
33 vorbis_func_time      *_time_P[]={
34   &time0_exportbundle,
35 };
36
37 vorbis_func_floor     *_floor_P[]={
38   &floor0_exportbundle,
39   &floor1_exportbundle,
40 };
41
42 vorbis_func_residue   *_residue_P[]={
43   &residue0_exportbundle,
44   &residue1_exportbundle,
45   &residue2_exportbundle,
46 };
47
48 vorbis_func_mapping   *_mapping_P[]={
49   &mapping0_exportbundle,
50 };
51