summaryrefslogtreecommitdiffstats
path: root/sbc/sbc.h
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-11-12 18:15:59 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-11-12 18:15:59 +0000
commit397d6c2b3bc7661f978c1777442d33fd86ada21e (patch)
tree7ac2b0d3768715896e286eab291dccfde333cfb8 /sbc/sbc.h
parentf89c7796c7882c65e829e5203a79606c3d1d63b0 (diff)
Make sbc codec to write directly in application buffers and so avoiding memcpys.
Diffstat (limited to 'sbc/sbc.h')
-rw-r--r--sbc/sbc.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/sbc/sbc.h b/sbc/sbc.h
index 72512c02..d55587d0 100644
--- a/sbc/sbc.h
+++ b/sbc/sbc.h
@@ -42,10 +42,6 @@ struct sbc_struct {
int bitpool;
int swap;
- void *data;
- int size;
- int len;
-
unsigned long duration;
void *priv;
@@ -54,9 +50,13 @@ struct sbc_struct {
typedef struct sbc_struct sbc_t;
int sbc_init(sbc_t *sbc, unsigned long flags);
-int sbc_parse(sbc_t *sbc, void *data, int count);
-int sbc_decode(sbc_t *sbc, void *data, int count);
-int sbc_encode(sbc_t *sbc, void *data, int count);
+int sbc_parse(sbc_t *sbc, void *input, int input_len);
+int sbc_decode(sbc_t *sbc, void *input, int input_len, void *output,
+ int output_len, int *len);
+int sbc_encode(sbc_t *sbc, void *input, int input_len, void *output,
+ int output_len, int *written);
+int sbc_get_frame_length(sbc_t *sbc);
+int sbc_get_codesize(sbc_t *sbc);
void sbc_finish(sbc_t *sbc);
#ifdef __cplusplus