It is intended as replacement for avfilter_pad_count(). In contrast to the latter, it avoids a loop.
Showing the changes to libavfilter/avfilter.h (1 of 4 files). Show all
Unified · Split
| @@ -325,6 +325,11 @@ typedef struct AVFilter { · 324 unmodified lines | ||
| 325 | 325 | int (*activate)(AVFilterContext *ctx); |
| 326 | 326 | } AVFilter; |
| 327 | 327 | |
| 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 | + | |
| 328 | 333 | /** |
| 329 | 334 | * Process multiple parts of the frame concurrently. |
| 330 | 335 | */ |