summaryrefslogtreecommitdiff
path: root/misc.h
diff options
context:
space:
mode:
authorMonty <xiphmont@xiph.org>2003-03-29 03:07:21 +0000
committerMonty <xiphmont@xiph.org>2003-03-29 03:07:21 +0000
commit3c764af8013b5b153d3e97311d56a8741536f4cf (patch)
treeb8201ccdd984c9b5b682641996a19cca15b6593c /misc.h
parenta80cb134d84683d6c4961e2c33fddf3a24b378fa (diff)
downloadtremor-3c764af8013b5b153d3e97311d56a8741536f4cf.tar.gz
Roll all recent optimizations and fixes to mainline vorbisfile into Tremor
First mainline deployment of libogg 2 (embedded into Tremor) git-svn-id: https://svn.xiph.org/trunk/Tremor@4565 0101bb08-14d6-0310-b084-bc0e0c8e3800
Diffstat (limited to 'misc.h')
-rw-r--r--misc.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/misc.h b/misc.h
index 0b6dfdf..2d45c00 100644
--- a/misc.h
+++ b/misc.h
@@ -20,6 +20,21 @@
#include "ivorbiscodec.h"
#include "os_types.h"
+//#define _VDBG_GRAPHFILE "_0.m"
+extern void *_VDBG_malloc(void *ptr,long bytes,char *file,long line);
+extern void _VDBG_free(void *ptr,char *file,long line);
+
+#undef _ogg_malloc
+#undef _ogg_calloc
+#undef _ogg_realloc
+#undef _ogg_free
+
+#define _ogg_malloc(x) _VDBG_malloc(NULL,(x),__FILE__,__LINE__)
+#define _ogg_calloc(x,y) _VDBG_malloc(NULL,(x)*(y),__FILE__,__LINE__)
+#define _ogg_realloc(x,y) _VDBG_malloc((x),(y),__FILE__,__LINE__)
+#define _ogg_free(x) _VDBG_free((x),__FILE__,__LINE__)
+
+
extern void *_vorbis_block_alloc(vorbis_block *vb,long bytes);
extern void _vorbis_block_ripcord(vorbis_block *vb);
extern void _analysis_output(char *base,int i,ogg_int32_t *v,int point,