Chris@1: /******************************************************************** Chris@1: * * Chris@1: * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. * Chris@1: * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * Chris@1: * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE * Chris@1: * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. * Chris@1: * * Chris@1: * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2009 * Chris@1: * by the Xiph.Org Foundation http://www.xiph.org/ * Chris@1: * * Chris@1: ******************************************************************** Chris@1: Chris@1: function: miscellaneous prototypes Chris@1: last mod: $Id: misc.h 16227 2009-07-08 06:58:46Z xiphmont $ Chris@1: Chris@1: ********************************************************************/ Chris@1: Chris@1: #ifndef _V_RANDOM_H_ Chris@1: #define _V_RANDOM_H_ Chris@1: #include "vorbis/codec.h" Chris@1: Chris@1: extern void *_vorbis_block_alloc(vorbis_block *vb,long bytes); Chris@1: extern void _vorbis_block_ripcord(vorbis_block *vb); Chris@1: Chris@1: #ifdef ANALYSIS Chris@1: extern int analysis_noisy; Chris@1: extern void _analysis_output(char *base,int i,float *v,int n,int bark,int dB, Chris@1: ogg_int64_t off); Chris@1: extern void _analysis_output_always(char *base,int i,float *v,int n,int bark,int dB, Chris@1: ogg_int64_t off); Chris@1: #endif Chris@1: Chris@1: #ifdef DEBUG_MALLOC Chris@1: Chris@1: #define _VDBG_GRAPHFILE "malloc.m" Chris@1: #undef _VDBG_GRAPHFILE Chris@1: extern void *_VDBG_malloc(void *ptr,long bytes,char *file,long line); Chris@1: extern void _VDBG_free(void *ptr,char *file,long line); Chris@1: Chris@1: #ifndef MISC_C Chris@1: #undef _ogg_malloc Chris@1: #undef _ogg_calloc Chris@1: #undef _ogg_realloc Chris@1: #undef _ogg_free Chris@1: Chris@1: #define _ogg_malloc(x) _VDBG_malloc(NULL,(x),__FILE__,__LINE__) Chris@1: #define _ogg_calloc(x,y) _VDBG_malloc(NULL,(x)*(y),__FILE__,__LINE__) Chris@1: #define _ogg_realloc(x,y) _VDBG_malloc((x),(y),__FILE__,__LINE__) Chris@1: #define _ogg_free(x) _VDBG_free((x),__FILE__,__LINE__) Chris@1: #endif Chris@1: #endif Chris@1: Chris@1: #endif Chris@1: Chris@1: Chris@1: Chris@1: