media/libvorbis/lib/vorbis_registry.c

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

michael@0 1 /********************************************************************
michael@0 2 * *
michael@0 3 * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
michael@0 4 * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
michael@0 5 * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
michael@0 6 * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
michael@0 7 * *
michael@0 8 * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2009 *
michael@0 9 * by the Xiph.Org Foundation http://www.xiph.org/ *
michael@0 10 * *
michael@0 11 ********************************************************************
michael@0 12
michael@0 13 function: registry for time, floor, res backends and channel mappings
michael@0 14 last mod: $Id: registry.c 16227 2009-07-08 06:58:46Z xiphmont $
michael@0 15
michael@0 16 ********************************************************************/
michael@0 17
michael@0 18 #include "vorbis/codec.h"
michael@0 19 #include "codec_internal.h"
michael@0 20 #include "registry.h"
michael@0 21 #include "misc.h"
michael@0 22 /* seems like major overkill now; the backend numbers will grow into
michael@0 23 the infrastructure soon enough */
michael@0 24
michael@0 25 extern const vorbis_func_floor floor0_exportbundle;
michael@0 26 extern const vorbis_func_floor floor1_exportbundle;
michael@0 27 extern const vorbis_func_residue residue0_exportbundle;
michael@0 28 extern const vorbis_func_residue residue1_exportbundle;
michael@0 29 extern const vorbis_func_residue residue2_exportbundle;
michael@0 30 extern const vorbis_func_mapping mapping0_exportbundle;
michael@0 31
michael@0 32 const vorbis_func_floor *const _floor_P[]={
michael@0 33 &floor0_exportbundle,
michael@0 34 &floor1_exportbundle,
michael@0 35 };
michael@0 36
michael@0 37 const vorbis_func_residue *const _residue_P[]={
michael@0 38 &residue0_exportbundle,
michael@0 39 &residue1_exportbundle,
michael@0 40 &residue2_exportbundle,
michael@0 41 };
michael@0 42
michael@0 43 const vorbis_func_mapping *const _mapping_P[]={
michael@0 44 &mapping0_exportbundle,
michael@0 45 };

mercurial