summaryrefslogtreecommitdiff
path: root/libavfilter/graphparser.c
Commit message (Collapse)AuthorAge
* avfilter: Support both syntaxes for the scale filterLuca Barbato2015-09-13
|
* graphparser: Check av_get_token() memory errorVittorio Giovara2015-02-17
| | | | | CC: libav-stable@libav.org Bug-Id: CID 1267891
* avfilter/graphparser: Directly free filter memory if initialization failsDiego Biurrun2013-11-06
|
* graphparser: only print filter arguments if they are non-NULLAnton Khirnov2013-04-30
|
* lavfi: add avfilter_init_str() to replace avfilter_init_filter().Anton Khirnov2013-04-11
| | | | Drop the unused opaque parameter from its signature.
* lavfi: make avfilter_free() remove the filter from its graph.Anton Khirnov2013-04-11
|
* lavfi: replace avfilter_open() with avfilter_graph_alloc_filter().Anton Khirnov2013-04-11
| | | | | | | Since we do not support "standalone" filters not attached to an AVFilterGraph, we should not have a public function to create such filters. In addition that function is horribly named, the action it does cannot be possibly described as "opening" a filter.
* lavfi: merge avfiltergraph.h into avfilter.hAnton Khirnov2013-04-11
| | | | | We do not support using filters without AVFilterGraph in practice anyway, so there is no point in pretending we do.
* avfiltergraph: check for sws opts being non-NULL before using them.Anton Khirnov2013-04-03
| | | | | | Avoid snprintfing a NULL pointer. CC: libav-stable@libav.org
* avfiltergraph: replace AVFilterGraph.filter_count with nb_filtersAnton Khirnov2013-03-16
| | | | This is more consistent with the naming in the rest of Libav.
* Use the avstring.h locale-independent character type functionsReimar Döffinger2013-03-07
| | | | | | Make sure the behavior does not change with the locale. Signed-off-by: Martin Storsjö <martin@martin.st>
* avfilter: fix graphparser memleaks on error pathsJanne Grunau2012-10-25
| | | | Fixes CID700635, CID700636 and CID732274.
* Don't include common.h from avutil.hMartin Storsjö2012-08-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lavfi: remove disabled FF_API_GRAPH_AVCLASS cruftAnton Khirnov2012-06-26
|
* lavfi: replace AVFilterContext.input/output_count with nb_inputs/outputsAnton Khirnov2012-06-13
| | | | This is more consistent with naming in the rest of Libav.
* graphparser: set next to NULL on an entry extracted from inputs listAnton Khirnov2012-04-16
| | | | Prevents it from referring to the rest of the list.
* graphparser: fix the order in which unlabeled input links are returned.Anton Khirnov2012-04-15
|
* avfiltergraph: make the AVFilterInOut alloc/free API publicStefano Sabatini2012-04-14
| | | | | | | This is required for letting applications to create and destroy AVFilterInOut structs in a convenient way. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* graphparser: allow specifying sws flags in the graph description.Anton Khirnov2012-04-14
|
* graphparser: fix the order of connecting unlabeled links.Anton Khirnov2012-04-14
| | | | | | | | | | | | | | | | Right now, e.g. scale,[in]overlay would connect scale to the first overlay input and [in] to the second, which goes against the documentation and is unintuitive. The bug happens because of the ordering mess in curr_inputs variable: 1) the unlabeled links from the previous filter are added to it in correct order 2) input labels are parsed and inserted to the beginning one by one (i.e. in reverse order) 3) curr_inputs is matched against filter inputs in reverse order Fix the problem by always using proper ordering without trying to be clever.
* graphparser: add avfilter_graph_parse2().Anton Khirnov2012-04-14
| | | | | | Unlike avfilter_graph_parse(), it returns unlinked inputs and outputs to the caller, which allows parsing of graphs where inputs/outputs are not known in advance.
* 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>
* graphparser: prefer void * over AVClass * for log contextsStefano Sabatini2011-09-28
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* doxygen: Make sure parameter names match between .c and .h files.Diego Biurrun2011-07-14
|
* doxygen: Fix parameter names to match the function prototypes.Diego Biurrun2011-07-03
|
* graphparser: add a NULL check on the argument passed to strstrStefano Sabatini2011-04-25
| | | | | | | Fix crash in create_filter() which occurrs if a scale filter with no args is provided. 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_parse() not free the input graphStefano Sabatini2011-02-04
| | | | | | | | | | | Make avfilter_graph_parse() only release the internal structures allocated during the parsing, and leave to free the graph itself to the calling code. This approach looks cleaner, as the graph is not allocated by the function. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Add the word "Parsed" in the parsed filter names.Stefano Sabatini2011-01-14
| | | | Originally committed as revision 26334 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make avfilter_parse_graph() output a more meaningful message when anStefano Sabatini2010-12-12
| | | | | | invalid filterchain is detected. Originally committed as revision 25936 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
* move the av_parse_color() function from libavfilter to libavcoreAurelien Jacobs2010-11-17
| | | | Originally committed as revision 25761 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add missing check on the existence of an associated output pad forStefano Sabatini2010-11-11
| | | | | | | | each specified output link label. Fix crash. Originally committed as revision 25723 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
* Remove graphparser.h header, move AVFilterInOut andStefano Sabatini2010-11-07
| | | | | | | | avfilter_graph_parse() declaration to libavfilter/avfiltergraph.h. Simplify, and less confusing for the user. Originally committed as revision 25705 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Extend documentation for parse_filter().Stefano Sabatini2010-11-07
| | | | Originally committed as revision 25703 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename AVFilterInOut field filter to filter_ctx, more semantically correct.Stefano Sabatini2010-11-07
| | | | Originally committed as revision 25700 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make avfilter_graph_parse() always return meaningful error codes.Stefano Sabatini2010-11-07
| | | | Originally committed as revision 25699 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make parse_outputs() always return meaningful error codes.Stefano Sabatini2010-11-07
| | | | Originally committed as revision 25698 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add missing memory check in parse_inputs(), and fix possible (yet very ↵Stefano Sabatini2010-11-07
| | | | | | unlikely) crash. Originally committed as revision 25697 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make parse_inputs() return AVERROR(EINVAL) rather than -1 in case theStefano Sabatini2010-11-07
| | | | | | link label parsed by parse_link_name() is invalid. Originally committed as revision 25696 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add missing check in link_filter_inouts(), and fix possible (yet very ↵Stefano Sabatini2010-11-07
| | | | | | unlikely) crash. Originally committed as revision 25695 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename the variable filter to filt_ctx in link_filter_inouts, as the ↵Stefano Sabatini2010-11-07
| | | | | | | | variable denotes a filter context. Less confusing. Originally committed as revision 25694 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make link_filter_inouts() return meaningful error codes.Stefano Sabatini2010-11-07
| | | | Originally committed as revision 25693 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change the signature of parse_filter() to make it return an error code.Stefano Sabatini2010-11-07
| | | | Originally committed as revision 25692 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change the signature of create_filter() to make it return an error code.Stefano Sabatini2010-11-07
| | | | Originally committed as revision 25691 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
* Move av_get_token() from libavfilter to libavutil.Stefano Sabatini2010-09-27
| | | | Originally committed as revision 25225 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
* Document create_filter().Stefano Sabatini2010-07-22
| | | | Originally committed as revision 24423 to svn://svn.ffmpeg.org/ffmpeg/trunk