summaryrefslogtreecommitdiff
path: root/libavfilter/avfilter.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-08-15 07:32:05 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-08-20 13:19:59 +0200
commit7c5f998196d101a661d802aa48dd62dd93d1fb3d (patch)
tree21ce867a770061faab5cfb9ea82321611e813676 /libavfilter/avfilter.h
parent8be701d9f7f77ff2282cc7fe6e0791ca5419de70 (diff)
avfilter/avfilter: Add avfilter_filter_pad_count()
It is intended as replacement for avfilter_pad_count(). In contrast to the latter, it avoids a loop. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/avfilter.h')
-rw-r--r--libavfilter/avfilter.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index 5025fafdc5..3a0f0b7926 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -326,6 +326,11 @@ typedef struct AVFilter {
} AVFilter;
/**
+ * Get the number of elements in an AVFilter's inputs or outputs array.
+ */
+unsigned avfilter_filter_pad_count(const AVFilter *filter, int is_output);
+
+/**
* Process multiple parts of the frame concurrently.
*/
#define AVFILTER_THREAD_SLICE (1 << 0)