aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/filters.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-08-05 10:49:18 +0200
committerAnton Khirnov <anton@khirnov.net>2024-08-15 19:27:01 +0200
commit54754eec1e4b4882e7bbe1fbf4374c11d955eb36 (patch)
treec0c87f01fd703e01dec9a4c81010c7f1fb86d63e /libavfilter/filters.h
parent426e33c75853c395b39e216e7ecde0103ff48086 (diff)
downloadffmpeg-54754eec1e4b4882e7bbe1fbf4374c11d955eb36.tar.gz
lavfi: add a new struct for private link properties
Specifically those that should be visible to filters, but hidden from API callers. Such properties are currently located at the end of the public AVFilterLink struct, demarcated by a comment marking them as private. However it is generally better to hide them explicitly, using the same pattern already employed in avformat or avcodec. The new struct is currently trivial, but will become more useful in following commits.
Diffstat (limited to 'libavfilter/filters.h')
-rw-r--r--libavfilter/filters.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavfilter/filters.h b/libavfilter/filters.h
index 86bc49d459..2c856fead7 100644
--- a/libavfilter/filters.h
+++ b/libavfilter/filters.h
@@ -34,6 +34,16 @@
#define FFERROR_NOT_READY FFERRTAG('N','R','D','Y')
/**
+ * Link properties exposed to filter code, but not external callers.
+ *
+ * Cf. AVFilterLink for public properties, FilterLinkInternal for
+ * properties private to the generic layer.
+ */
+typedef struct FilterLink {
+ AVFilterLink pub;
+} FilterLink;
+
+/**
* Mark a filter ready and schedule it for activation.
*
* This is automatically done when something happens to the filter (queued