You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Separate the process of creating links between filters from that of configuring
the links. Commited in SoC by Bobby Bingham on 2007-08-07 21:02:18 Originally committed as revision 12695 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -49,6 +49,20 @@ void avfilter_graph_add_filter(AVFilterContext *graphctx, AVFilterContext *filte
|
|||||||
graph->filters[graph->filter_count - 1] = filter;
|
graph->filters[graph->filter_count - 1] = filter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int avfilter_graph_config_links(AVFilterContext *graphctx)
|
||||||
|
{
|
||||||
|
GraphContext *graph = graphctx->priv;
|
||||||
|
int i, j;
|
||||||
|
|
||||||
|
for(i = 0; i < graph->filter_count; i ++) {
|
||||||
|
for(j = 0; j < graph->filters[i]->input_count; j ++)
|
||||||
|
if(avfilter_config_link(graph->filters[i]->inputs[j]))
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static AVFilterContext *create_filter_with_args(const char *filt, void *opaque)
|
static AVFilterContext *create_filter_with_args(const char *filt, void *opaque)
|
||||||
{
|
{
|
||||||
AVFilterContext *ret;
|
AVFilterContext *ret;
|
||||||
|
@@ -31,4 +31,9 @@
|
|||||||
*/
|
*/
|
||||||
void avfilter_graph_add_filter(AVFilterContext *graphctx, AVFilterContext *filter);
|
void avfilter_graph_add_filter(AVFilterContext *graphctx, AVFilterContext *filter);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Configure the colorspace, resolution, etc of all links in the graph
|
||||||
|
*/
|
||||||
|
int avfilter_graph_config_links(AVFilterContext *graphctx);
|
||||||
|
|
||||||
#endif /* FFMPEG_AVFILTER_H */
|
#endif /* FFMPEG_AVFILTER_H */
|
||||||
|
Reference in New Issue
Block a user