From 6bfc655ee19aa82cce3277e6f9c861661cca5fb4 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Tue, 19 Jul 2005 18:10:29 +0000 Subject: update goom to 2k4-0 + patches. details: - removed convolve_fx: goom logo is definitely annoying. besides using xine_fast_memcpy instead of convolve makes it much faster! - reduced number of tentacles: too many tentacles on low res (320x240) made it too brighter - darker ifs.c: again problem with low res, image was saturating to white most of the time - increased fps to 14 now that goom is faster ;-) CVS patchset: 7667 CVS date: 2005/07/19 18:10:29 --- src/post/goom/goomsl_heap.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/post/goom/goomsl_heap.h (limited to 'src/post/goom/goomsl_heap.h') diff --git a/src/post/goom/goomsl_heap.h b/src/post/goom/goomsl_heap.h new file mode 100644 index 000000000..a22bac695 --- /dev/null +++ b/src/post/goom/goomsl_heap.h @@ -0,0 +1,29 @@ +#ifndef GOOMSL_HEAP +#define GOOMSL_HEAP + +/** + * Resizable Array that guarranty that resizes don't change address of + * the stored datas. + * + * This is implemented as an array of arrays... granularity is the size + * of each arrays. + */ + +typedef struct _GOOM_HEAP GoomHeap; + +/* Constructors / Destructor */ +GoomHeap *goom_heap_new(void); +GoomHeap *goom_heap_new_with_granularity(int granularity); +void goom_heap_delete(GoomHeap *_this); + +/* This method behaves like malloc. */ +void *goom_heap_malloc(GoomHeap *_this, int nb_bytes); +/* This adds an alignment constraint. */ +void *goom_heap_malloc_with_alignment(GoomHeap *_this, int nb_bytes, int alignment); + +/* Returns a pointeur on the bytes... prefix is before */ +void *goom_heap_malloc_with_alignment_prefixed(GoomHeap *_this, int nb_bytes, + int alignment, int prefix_bytes); + +#endif + -- cgit v1.2.3