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.

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

mercurial