History

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.

Andreas Rheinhardt committed 5 years ago

Commit 7c5f9981 parent 8be701d4 files · +14 −1Browse files

Showing the changes to libavfilter/avfilter.h (1 of 4 files). Show all

Unified · Split

libavfilter/avfilter.h+5−0
@@ -325,6 +325,11 @@ typedef struct AVFilter { · 324 unmodified lines
325325 int (*activate)(AVFilterContext *ctx);
326326 } AVFilter;
327327
328+/**
329+ * Get the number of elements in an AVFilter's inputs or outputs array.
330+ */
331+unsigned avfilter_filter_pad_count(const AVFilter *filter, int is_output);
332+
328333 /**
329334 * Process multiple parts of the frame concurrently.
330335 */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t