diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-04-27 10:42:46 +0200 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2012-05-14 21:29:58 +0200 |
commit | 440af105f2306d3c7b3b3f4d7530bab910d49cb9 (patch) | |
tree | 9bcffc765646a1550b960c4b472af07d3f94ef04 /libavfilter/avfiltergraph.h | |
parent | 7e944159c63c4d4504cf76f90bb668519c3109af (diff) |
lavfi: add avfilter_graph_set_auto_convert().
Diffstat (limited to 'libavfilter/avfiltergraph.h')
-rw-r--r-- | libavfilter/avfiltergraph.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libavfilter/avfiltergraph.h b/libavfilter/avfiltergraph.h index b003795750..7e47566129 100644 --- a/libavfilter/avfiltergraph.h +++ b/libavfilter/avfiltergraph.h @@ -43,6 +43,8 @@ typedef struct AVFilterGraph { AVFilterLink **sink_links; int sink_links_count; + + unsigned disable_auto_convert; } AVFilterGraph; /** @@ -84,6 +86,21 @@ int avfilter_graph_create_filter(AVFilterContext **filt_ctx, AVFilter *filt, AVFilterGraph *graph_ctx); /** + * Enable or disable automatic format conversion inside the graph. + * + * Note that format conversion can still happen inside explicitly inserted + * scale and aconvert filters. + * + * @param flags any of the AVFILTER_AUTO_CONVERT_* constants + */ +void avfilter_graph_set_auto_convert(AVFilterGraph *graph, unsigned flags); + +enum { + AVFILTER_AUTO_CONVERT_ALL = 0, /**< all automatic conversions enabled */ + AVFILTER_AUTO_CONVERT_NONE = -1, /**< all automatic conversions disabled */ +}; + +/** * Check validity and configure all the links and formats in the graph. * * @param graphctx the filter graph |