aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-05-28 10:20:54 +0200
committerHarald Welte <laforge@gnumonks.org>2017-05-28 10:44:06 +0200
commit5912848d2edbf61158ac7edc72c2302649a0d9ed (patch)
treede76a2a48b98730f5cb92af44410e47761d0e61d /include
parent62688b60c29225d557da8844d7259ce3eee962c5 (diff)
prepare gapk for dealing with variable-length frames
The existing architecture was modelled around fixed-length codec frame sizes, which of course fails with multi-rate codecs such as AMR.
Diffstat (limited to 'include')
-rw-r--r--include/gapk/codecs.h2
-rw-r--r--include/gapk/formats.h2
-rw-r--r--include/gapk/procqueue.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/include/gapk/codecs.h b/include/gapk/codecs.h
index 1699347..e8d7027 100644
--- a/include/gapk/codecs.h
+++ b/include/gapk/codecs.h
@@ -38,7 +38,7 @@ enum codec_type {
#include <gapk/formats.h> /* need to import here because or enum interdep */
-typedef int (*codec_conv_cb_t)(void *state, uint8_t *dst, const uint8_t *src);
+typedef int (*codec_conv_cb_t)(void *state, uint8_t *dst, const uint8_t *src, unsigned int src_len);
struct codec_desc {
enum codec_type type;
diff --git a/include/gapk/formats.h b/include/gapk/formats.h
index cb5e2fd..5e1a262 100644
--- a/include/gapk/formats.h
+++ b/include/gapk/formats.h
@@ -53,7 +53,7 @@ enum format_type {
#include <gapk/codecs.h> /* need to import here because or enum interdep */
-typedef int (*fmt_conv_cb_t)(uint8_t *dst, const uint8_t *src);
+typedef int (*fmt_conv_cb_t)(uint8_t *dst, const uint8_t *src, unsigned int src_len);
struct format_desc {
enum format_type type;
diff --git a/include/gapk/procqueue.h b/include/gapk/procqueue.h
index 68d6f52..b2ee0ee 100644
--- a/include/gapk/procqueue.h
+++ b/include/gapk/procqueue.h
@@ -29,7 +29,7 @@ struct pq_item {
int len_in;
int len_out;
void *state;
- int (*proc)(void *state, uint8_t *out, const uint8_t *in);
+ int (*proc)(void *state, uint8_t *out, const uint8_t *in, unsigned int in_len);
void (*exit)(void *state);
};