summaryrefslogtreecommitdiff
path: root/libavfilter/avfiltergraph.c
Commit message (Collapse)AuthorAge
* avfiltergraph: shut up uninitialized variable warning.Anton Khirnov2012-06-26
| | | | | | The warning silenced was: libavfilter/avfiltergraph.c: In function ‘avfilter_graph_config’: libavfilter/avfiltergraph.c:500:13: warning: ‘best_idx’ may be used uninitialized in this function [-Wuninitialized]
* lavfi: remove disabled FF_API_GRAPH_AVCLASS cruftAnton Khirnov2012-06-26
|
* lavfi: support automatically inserting the fifo filter when needed.Anton Khirnov2012-06-22
| | | | This breaks libavfilter ABI.
* avfiltergraph: remove a redundant call to avfilter_get_by_name().Anton Khirnov2012-06-13
|
* lavfi: allow building without swscale.Anton Khirnov2012-06-13
|
* lavfi: replace AVFilterContext.input/output_count with nb_inputs/outputsAnton Khirnov2012-06-13
| | | | This is more consistent with naming in the rest of Libav.
* lavfi: make formats API private on next bump.Anton Khirnov2012-06-05
| | | | | It is only useful inside filters and we don't allow user filters for now.
* avfiltergraph: make some functions static.Anton Khirnov2012-06-04
| | | | They are not used outside of avfiltergraph.c
* lavfi: remove avfilter_default_* from public API on next bump.Anton Khirnov2012-05-22
| | | | | Those functions are only useful inside filters. It is better to not support user filters until the API is more stable.
* avfiltergraph: smarter sample format selection.Anton Khirnov2012-05-22
|
* avfiltergraph: reindentAnton Khirnov2012-05-14
|
* lavfi: add channel layout/sample rate negotiation.Anton Khirnov2012-05-14
|
* lavfi: autoinsert resample filter when necessary.Anton Khirnov2012-05-12
|
* avfiltergraph: try to reduce format conversions in filters.Anton Khirnov2012-04-01
| | | | | | | | | | | | | Current code, with a filterchain such as (input - yuv411) -> (scale - any) -> (sink - any) will result in yuv420 being chosen for the second link, which is clearly not right. This commit attempts to improve in the following way: repeat until convergence: loop over all filters find input link with exactly one format force this format on all output links of the same type (if possible)
* avfiltergraph: add an AVClass to AVFilterGraph on next major bump.Anton Khirnov2012-04-01
| | | | It will be used for logging, possibly also AVOptions.
* lavfi: fix signature for avfilter_graph_parse() and avfilter_graph_config()Stefano Sabatini2011-09-28
| | | | | | Require "void *" rather than "AVClass *" for the log context type. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avfiltergraph: use meaningful error codesStefano Sabatini2011-09-28
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Make avfilter_graph_free() free the graph.Stefano Sabatini2011-02-04
| | | | | | | | | | Make avfilter_graph_free() free not only the internal structures, but also the allocated graph, and set the graph pointer to NULL for increased safety. Simplify usage. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Make avfilter_graph_free() do nothing if graph is NULL.Stefano Sabatini2011-01-12
| | | | Originally committed as revision 26323 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix style nits in avfiltergraph.c.Stefano Sabatini2010-12-28
| | | | Originally committed as revision 26116 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add avfilter_graph_create_filter().Stefano Sabatini2010-12-02
| | | | Originally committed as revision 25862 to svn://svn.ffmpeg.org/ffmpeg/trunk
* In libavfilter, use consistently "Copyright (c)" in the licenseStefano Sabatini2010-11-28
| | | | | | headers. Originally committed as revision 25838 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Prefix with "ff_" the functions:Stefano Sabatini2010-11-13
| | | | | | | | | | | | ff_avfilter_graph_check_validity() ff_avfilter_graph_config_links() ff_avfilter_graph_config_formats() and move their declaration to internal.h. These functions are never used in application code, so it is better to consider them internal functions, this can be changed later if necessary. Simplify API. Originally committed as revision 25737 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename avfilter_destroy() as avfilter_free().Stefano Sabatini2010-11-08
| | | | | | | The new name is shorter and more consistent with the FFmpeg API, and sounds less evil. Originally committed as revision 25707 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename avfilter_graph_destroy() to avfilter_graph_free().Stefano Sabatini2010-11-04
| | | | | | | | The new name is shorter and more consistent with the rest of the API. This change breaks libavfilter API/ABI. Originally committed as revision 25674 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement avfilter_graph_alloc().Stefano Sabatini2010-11-04
| | | | Originally committed as revision 25673 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add avfilter_graph_config().Stefano Sabatini2010-10-16
| | | | Originally committed as revision 25502 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change avfilter_open() signature, from:Stefano Sabatini2010-08-11
| | | | | | | | | | | AVFilterContext *avfilter_open(AVFilter *filter, const char *inst_name); to: int avfilter_open(AVFilterContext **filter_ctx, AVFilter *filter, const char *inst_name); This way it is possible to propagate an error code telling the reason of the failure. Originally committed as revision 24765 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Generalize pixel format enum fields to int formats.S.N. Hemanth Meenakshisundaram2010-07-22
| | | | | | | | | | | | | | | | | | | | | | | | | | This is needed to make the libavfilter framework work with audio filters. In particular add a type field to AVFilterLink, change the field types: enum PixelFormat format -> int format in AVFilterBuffer enum PixelFormat *formats -> int *formats in AVFilterFormats enum PixelFormat *format -> int format in AVFilterLink and change the function signatures: AVFilterFormats *avfilter_make_format_list(const enum PixelFormat *pix_fmts); -> AVFilterFormats *avfilter_make_format_list(const int *fmts); int avfilter_add_colorspace(AVFilterFormats **avff, enum PixelFormat pix_fmt); -> int avfilter_add_format(AVFilterFormats **avff, int fmt); AVFilterFormats *avfilter_all_colorspaces(void); -> AVFilterFormats *avfilter_all_formats(enum AVMediaType type); This change breaks libavfilter API/ABI. Patch by S.N. Hemanth Meenakshisundaram |smeenaks|ucsd|edu|. Originally committed as revision 24424 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix leak in avfilter_graph_add_filter().Stefano Sabatini2010-04-18
| | | | | | | | In case of reallocation failure the pointer to the original filter array was lost. The correct behavior seems to just keep the old array and count. Originally committed as revision 22905 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make avfilter_graph_add_filter() returns AVERROR(ENOMEM) in case ofStefano Sabatini2010-04-13
| | | | | | failed reallocation, rather than just -1. Originally committed as revision 22878 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make query_formats() print an error message if an auto-inserted scaleStefano Sabatini2010-01-13
| | | | | | filter cannot convert between input and output formats. Originally committed as revision 21176 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make query_formats() increment the scaler_count after each scalerStefano Sabatini2010-01-10
| | | | | | insertion. Originally committed as revision 21124 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a log context to avfilter_graph_config_links().Stefano Sabatini2010-01-10
| | | | Originally committed as revision 21121 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement avfilter_graph_config_links().Stefano Sabatini2009-05-31
| | | | Originally committed as revision 19066 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename avfilter_destroy_graph() to avfilter_graph_destroy(), for betterStefano Sabatini2009-02-26
| | | | | | consistency with the rest of the API. Originally committed as revision 17623 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement in AVFilterGraph the scale_sws_opts field, and pass itsStefano Sabatini2009-02-23
| | | | | | value in the args for the auto-inserted scale filters. Originally committed as revision 17547 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement avfilter_graph_check_validity().Stefano Sabatini2009-01-26
| | | | Originally committed as revision 16809 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Handle av_realloc() failureVitor Sessak2008-04-04
| | | | | | Commited in SoC by Vitor Sessak on 2008-04-04 15:35:38 Originally committed as revision 12754 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use sizeof(var) instead of sizeof(type)Vitor Sessak2008-04-04
| | | | | | Commited in SoC by Vitor Sessak on 2008-04-03 19:53:18 Originally committed as revision 12753 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Give a more meaningful instance name to auto-inserted scalerVitor Sessak2008-04-04
| | | | | | Commited in SoC by Vitor Sessak on 2008-04-03 16:51:39 Originally committed as revision 12752 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Merge two ifsVitor Sessak2008-04-04
| | | | | | Commited in SoC by Vitor Sessak on 2008-04-03 16:44:27 Originally committed as revision 12751 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unused checkVitor Sessak2008-04-04
| | | | | | Commited in SoC by Vitor Sessak on 2008-04-03 16:38:51 Originally committed as revision 12750 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetical: alignmentVitor Sessak2008-04-04
| | | | | | Commited in SoC by Vitor Sessak on 2008-04-03 16:36:13 Originally committed as revision 12749 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove some unwanted todosVitor Sessak2008-04-04
| | | | | | Commited in SoC by Vitor Sessak on 2008-04-03 16:32:37 Originally committed as revision 12748 to svn://svn.ffmpeg.org/ffmpeg/trunk
* I should not have merged the graph parser with the graphVitor Sessak2008-04-04
| | | | | | | | framework. Split it. Commited in SoC by Vitor Sessak on 2008-04-03 16:29:07 Originally committed as revision 12746 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace consume_char() function by *(*buf)++Vitor Sessak2008-04-04
| | | | | | Commited in SoC by Vitor Sessak on 2008-03-30 15:46:38 Originally committed as revision 12745 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add backslash '\' support to the parserVitor Sessak2008-04-04
| | | | | | Commited in SoC by Vitor Sessak on 2008-03-29 16:26:47 Originally committed as revision 12744 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove AVFilterGraphDesc struct.Vitor Sessak2008-04-04
| | | | | | | | | Now the parser link the filters from the graph directly with avfilter_link(). Commited in SoC by Vitor Sessak on 2008-03-29 15:12:47 Originally committed as revision 12743 to svn://svn.ffmpeg.org/ffmpeg/trunk