aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/filters.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-08-17 10:04:56 +0200
committerAnton Khirnov <anton@khirnov.net>2024-08-19 21:48:11 +0200
commit52471b56ba5cef13aa0d9149c868911614cfa862 (patch)
tree62806637011c4b0dbd71add7da024d3c88785c6f /libavfilter/filters.h
parentf19c988911f4d03d396ab286138bd03c0a56fed4 (diff)
downloadffmpeg-52471b56ba5cef13aa0d9149c868911614cfa862.tar.gz
lavfi: make FFFilterContext private to generic code
Nothing in it needs to be visible to filters.
Diffstat (limited to 'libavfilter/filters.h')
-rw-r--r--libavfilter/filters.h25
1 files changed, 2 insertions, 23 deletions
diff --git a/libavfilter/filters.h b/libavfilter/filters.h
index 636753b26a..0053ad4303 100644
--- a/libavfilter/filters.h
+++ b/libavfilter/filters.h
@@ -199,24 +199,6 @@ static inline FilterLink* ff_filter_link(AVFilterLink *link)
return (FilterLink*)link;
}
-typedef struct FFFilterContext {
- /**
- * The public AVFilterContext. See avfilter.h for it.
- */
- AVFilterContext p;
-
- avfilter_execute_func *execute;
-
- // 1 when avfilter_init_*() was successfully called on this filter
- // 0 otherwise
- int initialized;
-} FFFilterContext;
-
-static inline FFFilterContext *fffilterctx(AVFilterContext *ctx)
-{
- return (FFFilterContext*)ctx;
-}
-
/**
* The filter is aware of hardware frames, and any hardware frame context
* should not be automatically propagated through it.
@@ -614,10 +596,7 @@ int ff_append_outpad_free_name(AVFilterContext *f, AVFilterPad *p);
*/
int ff_fmt_is_in(int fmt, const int *fmts);
-static av_always_inline int ff_filter_execute(AVFilterContext *ctx, avfilter_action_func *func,
- void *arg, int *ret, int nb_jobs)
-{
- return fffilterctx(ctx)->execute(ctx, func, arg, ret, nb_jobs);
-}
+int ff_filter_execute(AVFilterContext *ctx, avfilter_action_func *func,
+ void *arg, int *ret, int nb_jobs);
#endif /* AVFILTER_FILTERS_H */