vrshoot

diff libs/vorbis/registry.c @ 0:b2f14e535253

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 01 Feb 2014 19:58:19 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libs/vorbis/registry.c	Sat Feb 01 19:58:19 2014 +0200
     1.3 @@ -0,0 +1,45 @@
     1.4 +/********************************************************************
     1.5 + *                                                                  *
     1.6 + * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE.   *
     1.7 + * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS     *
     1.8 + * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
     1.9 + * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.       *
    1.10 + *                                                                  *
    1.11 + * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2009             *
    1.12 + * by the Xiph.Org Foundation http://www.xiph.org/                  *
    1.13 + *                                                                  *
    1.14 + ********************************************************************
    1.15 +
    1.16 + function: registry for time, floor, res backends and channel mappings
    1.17 + last mod: $Id: registry.c 16227 2009-07-08 06:58:46Z xiphmont $
    1.18 +
    1.19 + ********************************************************************/
    1.20 +
    1.21 +#include "vorbis/codec.h"
    1.22 +#include "codec_internal.h"
    1.23 +#include "registry.h"
    1.24 +#include "misc.h"
    1.25 +/* seems like major overkill now; the backend numbers will grow into
    1.26 +   the infrastructure soon enough */
    1.27 +
    1.28 +extern const vorbis_func_floor     floor0_exportbundle;
    1.29 +extern const vorbis_func_floor     floor1_exportbundle;
    1.30 +extern const vorbis_func_residue   residue0_exportbundle;
    1.31 +extern const vorbis_func_residue   residue1_exportbundle;
    1.32 +extern const vorbis_func_residue   residue2_exportbundle;
    1.33 +extern const vorbis_func_mapping   mapping0_exportbundle;
    1.34 +
    1.35 +const vorbis_func_floor     *const _floor_P[]={
    1.36 +  &floor0_exportbundle,
    1.37 +  &floor1_exportbundle,
    1.38 +};
    1.39 +
    1.40 +const vorbis_func_residue   *const _residue_P[]={
    1.41 +  &residue0_exportbundle,
    1.42 +  &residue1_exportbundle,
    1.43 +  &residue2_exportbundle,
    1.44 +};
    1.45 +
    1.46 +const vorbis_func_mapping   *const _mapping_P[]={
    1.47 +  &mapping0_exportbundle,
    1.48 +};