summaryrefslogtreecommitdiffstats
path: root/libaf/af.h
diff options
context:
space:
mode:
Diffstat (limited to 'libaf/af.h')
-rw-r--r--libaf/af.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/libaf/af.h b/libaf/af.h
index 31991cd2c5..6f8a9d4672 100644
--- a/libaf/af.h
+++ b/libaf/af.h
@@ -146,7 +146,16 @@ int af_outputlen(af_stream_t* s, int len);
the input length required to produce the output length "len". The
calculated length is <= the actual length */
int af_inputlen(af_stream_t* s, int len);
-
+/* Calculate how long the input IN to the filters should be to produce
+ a certain output length OUT but with the following three constraints:
+ 1. IN <= max_insize, where max_insize is the maximum possible input
+ block length
+ 2. OUT <= max_outsize, where max_outsize is the maximum possible
+ output block length
+ 3. If possible OUT >= len.
+ Return -1 in case of error */
+int af_calc_insize_constrained(af_stream_t* s, int len,
+ int max_outsize,int max_insize);
// Helper functions and macros used inside the audio filters