summaryrefslogtreecommitdiffstats
path: root/libaf/af.h
diff options
context:
space:
mode:
authoranders <anders@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-05 11:02:39 +0000
committeranders <anders@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-05 11:02:39 +0000
commit24556149010249ccd4d223d71b77148e616502e8 (patch)
tree17ffc8345269ad1052fcd213b29eb63949038a09 /libaf/af.h
parent65d1d8d94832d99175479bf50e1a9591248b8c6e (diff)
downloadmpv-24556149010249ccd4d223d71b77148e616502e8.tar.bz2
mpv-24556149010249ccd4d223d71b77148e616502e8.tar.xz
Adding function for estimating required buffer length
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7599 b3059339-0415-0410-9bf9-f77b7e298cf2
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