dbf-halloween2015

annotate libs/vorbis/misc.h @ 1:c3f5c32cb210

barfed all the libraries in the source tree to make porting easier
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 01 Nov 2015 00:36:56 +0200
parents
children
rev   line source
nuclear@1 1 /********************************************************************
nuclear@1 2 * *
nuclear@1 3 * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
nuclear@1 4 * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
nuclear@1 5 * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
nuclear@1 6 * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
nuclear@1 7 * *
nuclear@1 8 * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2009 *
nuclear@1 9 * by the Xiph.Org Foundation http://www.xiph.org/ *
nuclear@1 10 * *
nuclear@1 11 ********************************************************************
nuclear@1 12
nuclear@1 13 function: miscellaneous prototypes
nuclear@1 14 last mod: $Id: misc.h 16227 2009-07-08 06:58:46Z xiphmont $
nuclear@1 15
nuclear@1 16 ********************************************************************/
nuclear@1 17
nuclear@1 18 #ifndef _V_RANDOM_H_
nuclear@1 19 #define _V_RANDOM_H_
nuclear@1 20 #include "vorbis/codec.h"
nuclear@1 21
nuclear@1 22 extern void *_vorbis_block_alloc(vorbis_block *vb,long bytes);
nuclear@1 23 extern void _vorbis_block_ripcord(vorbis_block *vb);
nuclear@1 24
nuclear@1 25 #ifdef ANALYSIS
nuclear@1 26 extern int analysis_noisy;
nuclear@1 27 extern void _analysis_output(char *base,int i,float *v,int n,int bark,int dB,
nuclear@1 28 ogg_int64_t off);
nuclear@1 29 extern void _analysis_output_always(char *base,int i,float *v,int n,int bark,int dB,
nuclear@1 30 ogg_int64_t off);
nuclear@1 31 #endif
nuclear@1 32
nuclear@1 33 #ifdef DEBUG_MALLOC
nuclear@1 34
nuclear@1 35 #define _VDBG_GRAPHFILE "malloc.m"
nuclear@1 36 #undef _VDBG_GRAPHFILE
nuclear@1 37 extern void *_VDBG_malloc(void *ptr,long bytes,char *file,long line);
nuclear@1 38 extern void _VDBG_free(void *ptr,char *file,long line);
nuclear@1 39
nuclear@1 40 #ifndef MISC_C
nuclear@1 41 #undef _ogg_malloc
nuclear@1 42 #undef _ogg_calloc
nuclear@1 43 #undef _ogg_realloc
nuclear@1 44 #undef _ogg_free
nuclear@1 45
nuclear@1 46 #define _ogg_malloc(x) _VDBG_malloc(NULL,(x),__FILE__,__LINE__)
nuclear@1 47 #define _ogg_calloc(x,y) _VDBG_malloc(NULL,(x)*(y),__FILE__,__LINE__)
nuclear@1 48 #define _ogg_realloc(x,y) _VDBG_malloc((x),(y),__FILE__,__LINE__)
nuclear@1 49 #define _ogg_free(x) _VDBG_free((x),__FILE__,__LINE__)
nuclear@1 50 #endif
nuclear@1 51 #endif
nuclear@1 52
nuclear@1 53 #endif
nuclear@1 54
nuclear@1 55
nuclear@1 56
nuclear@1 57