summaryrefslogtreecommitdiff
path: root/apps/codecs/libcook/cook.h
diff options
context:
space:
mode:
authorMohamed Tarek <mt@rockbox.org>2009-05-12 20:50:35 +0000
committerMohamed Tarek <mt@rockbox.org>2009-05-12 20:50:35 +0000
commit49ba646d579a89d5ff0e4f3d5eea237eea22aafd (patch)
tree32aa872eb82b16c22f1915543c1512b116513209 /apps/codecs/libcook/cook.h
parent49fccaf2d925def5cc57fff4a09b98a8fe318cc8 (diff)
downloadrockbox-49ba646d579a89d5ff0e4f3d5eea237eea22aafd.zip
rockbox-49ba646d579a89d5ff0e4f3d5eea237eea22aafd.tar.gz
rockbox-49ba646d579a89d5ff0e4f3d5eea237eea22aafd.tar.bz2
rockbox-49ba646d579a89d5ff0e4f3d5eea237eea22aafd.tar.xz
-Remove all dynamic allocations, hence remove cook_decode_close() which was basically
needed for freeing allocated memory. -Remove any ffmpeg-specific attributes (av_const,av_always_inline .. etc.). -Move some math functions to cook_fixpoint.h - libavutil/common.h is no longer needed. -Remove libavutil/mem.[c/h], libavutil/common.h and libavutil/internal.h. -Fix a warning in cookdata_fixpoint.h. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20922 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libcook/cook.h')
-rw-r--r--apps/codecs/libcook/cook.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/codecs/libcook/cook.h b/apps/codecs/libcook/cook.h
index 8fcc6f8..da3c03f 100644
--- a/apps/codecs/libcook/cook.h
+++ b/apps/codecs/libcook/cook.h
@@ -34,7 +34,7 @@ typedef struct {
typedef struct cook {
/*
- * The following 5 functions provide the lowlevel arithmetic on
+ * The following 2 functions provide the lowlevel arithmetic on
* the internal audio buffers.
*/
void (* scalar_dequant)(struct cook *q, int index, int quant_index,
@@ -86,7 +86,7 @@ typedef struct cook {
/* data buffers */
- uint8_t* decoded_bytes_buffer;
+ uint8_t decoded_bytes_buffer[1024];
REAL_T mono_mdct_output[2048] __attribute__ ((aligned(16)));
REAL_T mono_previous_buffer1[1024];
REAL_T mono_previous_buffer2[1024];
@@ -95,9 +95,8 @@ typedef struct cook {
REAL_T decode_buffer_0[1060]; /* static allocation for joint decode */
} COOKContext;
-av_cold int cook_decode_init(RMContext *rmctx, COOKContext *q);
+int cook_decode_init(RMContext *rmctx, COOKContext *q);
int cook_decode_frame(RMContext *rmctx,COOKContext *q,
int16_t *outbuffer, int *data_size,
const uint8_t *inbuffer, int buf_size);
-av_cold int cook_decode_close(COOKContext *q);
#endif