summaryrefslogtreecommitdiff
path: root/apps/codecs/libcook/cook.h
diff options
context:
space:
mode:
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 8fcc6f86cd..da3c03f1d0 100644
--- a/apps/codecs/libcook/cook.h
+++ b/apps/codecs/libcook/cook.h
@@ -34,7 +34,7 @@ typedef struct {
34 34
35typedef struct cook { 35typedef struct cook {
36 /* 36 /*
37 * The following 5 functions provide the lowlevel arithmetic on 37 * The following 2 functions provide the lowlevel arithmetic on
38 * the internal audio buffers. 38 * the internal audio buffers.
39 */ 39 */
40 void (* scalar_dequant)(struct cook *q, int index, int quant_index, 40 void (* scalar_dequant)(struct cook *q, int index, int quant_index,
@@ -86,7 +86,7 @@ typedef struct cook {
86 86
87 /* data buffers */ 87 /* data buffers */
88 88
89 uint8_t* decoded_bytes_buffer; 89 uint8_t decoded_bytes_buffer[1024];
90 REAL_T mono_mdct_output[2048] __attribute__ ((aligned(16))); 90 REAL_T mono_mdct_output[2048] __attribute__ ((aligned(16)));
91 REAL_T mono_previous_buffer1[1024]; 91 REAL_T mono_previous_buffer1[1024];
92 REAL_T mono_previous_buffer2[1024]; 92 REAL_T mono_previous_buffer2[1024];
@@ -95,9 +95,8 @@ typedef struct cook {
95 REAL_T decode_buffer_0[1060]; /* static allocation for joint decode */ 95 REAL_T decode_buffer_0[1060]; /* static allocation for joint decode */
96} COOKContext; 96} COOKContext;
97 97
98av_cold int cook_decode_init(RMContext *rmctx, COOKContext *q); 98int cook_decode_init(RMContext *rmctx, COOKContext *q);
99int cook_decode_frame(RMContext *rmctx,COOKContext *q, 99int cook_decode_frame(RMContext *rmctx,COOKContext *q,
100 int16_t *outbuffer, int *data_size, 100 int16_t *outbuffer, int *data_size,
101 const uint8_t *inbuffer, int buf_size); 101 const uint8_t *inbuffer, int buf_size);
102av_cold int cook_decode_close(COOKContext *q);
103#endif 102#endif