aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/avfilter.h
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-06-30 10:11:22 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-06-30 14:03:54 +0200
commit0689d5e17ac0a3269c604b4df2c01140be328647 (patch)
treeb13f02db581e86c23feeaeffa396503ef37cef0c /libavfilter/avfilter.h
parentc9c4835f5164b86510591d4ba604bfb448c7a356 (diff)
downloadffmpeg-0689d5e17ac0a3269c604b4df2c01140be328647.tar.gz
lavfi: implement samples framing on links.
Links can be set up to group samples into buffers of specified minimum and maximum size.
Diffstat (limited to 'libavfilter/avfilter.h')
-rw-r--r--libavfilter/avfilter.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index b679635805..e08a389275 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -590,6 +590,32 @@ struct AVFilterLink {
* It is similar to the r_frae_rate field in AVStream.
*/
AVRational frame_rate;
+
+ /**
+ * Buffer partially filled with samples to achieve a fixed/minimum size.
+ */
+ AVFilterBufferRef *partial_buf;
+
+ /**
+ * Size of the partial buffer to allocate.
+ * Must be between min_samples and max_samples.
+ */
+ int partial_buf_size;
+
+ /**
+ * Minimum number of samples to filter at once. If filter_samples() is
+ * called with fewer samples, it will accumulate them in partial_buf.
+ * This field and the related ones must not be changed after filtering
+ * has started.
+ * If 0, all related fields are ignored.
+ */
+ int min_samples;
+
+ /**
+ * Maximum number of samples to filter at once. If filter_samples() is
+ * called with more samples, it will split them.
+ */
+ int max_samples;
};
/**