diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-08-15 07:32:05 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-08-20 13:19:59 +0200 |
commit | 7c5f998196d101a661d802aa48dd62dd93d1fb3d (patch) | |
tree | 21ce867a770061faab5cfb9ea82321611e813676 /libavfilter/avfilter.h | |
parent | 8be701d9f7f77ff2282cc7fe6e0791ca5419de70 (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.h | 5 |
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) |