mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-17 04:17:05 +00:00
lavfi: add AVFilterContext.graph.
It will be useful in the following commits.
This commit is contained in:
parent
c2c9801bc9
commit
111367263a
@ -18,6 +18,8 @@ API changes, most recent first:
|
|||||||
avfilterhraph.h, user applications should include just avfilter.h
|
avfilterhraph.h, user applications should include just avfilter.h
|
||||||
Add avfilter_graph_alloc_filter(), deprecate avfilter_open() and
|
Add avfilter_graph_alloc_filter(), deprecate avfilter_open() and
|
||||||
avfilter_graph_add_filter().
|
avfilter_graph_add_filter().
|
||||||
|
Add AVFilterContext.graph pointing to the AVFilterGraph that contains the
|
||||||
|
filter.
|
||||||
|
|
||||||
2013-xx-xx - lavfi 3.7.0 - avfilter.h
|
2013-xx-xx - lavfi 3.7.0 - avfilter.h
|
||||||
Add AVFilter.priv_class for exporting filter options through the AVOptions API
|
Add AVFilter.priv_class for exporting filter options through the AVOptions API
|
||||||
|
@ -458,6 +458,8 @@ struct AVFilterContext {
|
|||||||
unsigned nb_outputs; ///< number of output pads
|
unsigned nb_outputs; ///< number of output pads
|
||||||
|
|
||||||
void *priv; ///< private data for use by the filter
|
void *priv; ///< private data for use by the filter
|
||||||
|
|
||||||
|
struct AVFilterGraph *graph; ///< filtergraph this filter belongs to
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -73,6 +73,8 @@ int avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter)
|
|||||||
graph->filter_count = graph->nb_filters;
|
graph->filter_count = graph->nb_filters;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
filter->graph = graph;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -121,6 +123,8 @@ AVFilterContext *avfilter_graph_alloc_filter(AVFilterGraph *graph,
|
|||||||
graph->filter_count = graph->nb_filters;
|
graph->filter_count = graph->nb_filters;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
s->graph = graph;
|
||||||
|
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user