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