aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/graphparser.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-04-171-2/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: indeo3: add parens around some macro arguments h264: use proper PROLOGUE statement for a function using 8 registers. doc: Update sample Vim config with suitable (function) indentation settings. dv: Merge dvquant.h into dvdata.c where all other DV tables reside. dv: Move static tables only used in one place to where they are used. graphparser: set next to NULL on an entry extracted from inputs list doc/filters: update documentation. avconv: flush decoders immediately after an EOF. avconv: send EOF to vsrc_buffer. avconv: reindent. Conflicts: doc/filters.texi ffmpeg.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * graphparser: set next to NULL on an entry extracted from inputs listAnton Khirnov2012-04-161-2/+3
| | | | | | | | Prevents it from referring to the rest of the list.
* | Merge commit '3b266da3d35f3f7a61258b78384dfe920d875d29'Michael Niedermayer2012-04-171-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '3b266da3d35f3f7a61258b78384dfe920d875d29': avconv: add support for complex filtergraphs. avconv: make filtergraphs global. avconv: move filtered_frame from InputStream to OutputStream. avconv: don't set output width/height directly from input value. avconv: move resample_{width,height,pix_fmt} to InputStream. avconv: remove a useless variable from OutputStream. avconv: get output pixel format from lavfi. graphparser: fix the order in which unlabeled input links are returned. avconv: change {input,output}_{streams,files} into arrays of pointers. avconv: don't pass input/output streams to some functions. Conflicts: cmdutils.c cmdutils.h doc/ffmpeg.texi ffmpeg.c ffplay.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * graphparser: fix the order in which unlabeled input links are returned.Anton Khirnov2012-04-151-1/+1
| |
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-04-141-12/+192
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: vsrc_buffer: fix check from 7ae7c41. libxvid: Reorder functions to avoid forward declarations; make functions static. libxvid: drop some pointless dead code wmal: vertical alignment cosmetics wmal: Warn about missing bitstream splicing feature and ask for sample. wmal: Skip seekable_frame_in_packet. wmal: Drop unused variable num_possible_block_size. avfiltergraph: make the AVFilterInOut alloc/free API public graphparser: allow specifying sws flags in the graph description. graphparser: fix the order of connecting unlabeled links. graphparser: add avfilter_graph_parse2(). vsrc_buffer: allow using a NULL buffer to signal EOF. swscale: handle last pixel if lines have an odd width. qdm2: fix a dubious pointer cast WMAL: Do not try to read rawpcm coefficients if bits is invalid mov: Fix detecting there is no sync sample. tiffdec: K&R cosmetics avf: has_duration does not check the global one dsputil: fix optimized emu_edge function on Win64. Conflicts: doc/APIchanges libavcodec/libxvid_rc.c libavcodec/libxvidff.c libavcodec/tiff.c libavcodec/wmalosslessdec.c libavfilter/avfiltergraph.h libavfilter/graphparser.c libavfilter/version.h libavfilter/vsrc_buffer.c libswscale/output.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avfiltergraph: make the AVFilterInOut alloc/free API publicStefano Sabatini2012-04-141-15/+20
| | | | | | | | | | | | | | 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-141-0/+29
| |
| * graphparser: fix the order of connecting unlabeled links.Anton Khirnov2012-04-141-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-141-34/+102
| | | | | | | | | | | | 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-281-1/+1
| | | | | | | | | | | | 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-281-7/+7
| | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | libavfilter/graphparser: Avoid spaces in filter instance names.Michael Niedermayer2011-08-301-1/+1
| | | | | | | | | | | | This makes it easier to refer to filters where things are seperated by spaces. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-07-141-0/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: APIchanges: fill in missing hashes and dates. Add an APIChanges entry and bump minor versions for recent changes. ffmpeg: print the low bitrate warning after the codec is openend. doxygen: Move function documentation into the macro generating the function. doxygen: Make sure parameter names match between .c and .h files. h264: move fill_decode_neighbors()/fill_decode_caches() to h264_mvpred.h H.264: Add more x86 assembly for 10-bit H.264 predict functions lavf: fix invalid reads in avformat_find_stream_info() cmdutils: replace opt_default with opt_default2() and remove set_context_opts ffmpeg: use new avcodec_open2 and avformat_find_stream_info API. ffplay: use new avcodec_open2 and avformat_find_stream_info API. cmdutils: store all codec options in one dict instead of video/audio/sub ffmpeg: check experimental flag after codec is opened. ffmpeg: do not set GLOBAL_HEADER flag in the options context Conflicts: cmdutils.c doc/APIchanges ffmpeg.c ffplay.c libavcodec/version.h libavformat/version.h libswscale/swscale_unscaled.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * doxygen: Make sure parameter names match between .c and .h files.Diego Biurrun2011-07-141-0/+2
| |
* | graphparser: simplify condition in avfilter_graph_parse()Stefano Sabatini2011-07-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | Since avfilter_graph_parse() creates the "[in]" inout for the first unlabelled input pad, it is expected that it will create an "[out]" inout for last unlabelled output pad, even in the case where it cannot find any open input pad with that name. This change removes the check on the existence of an open input pad named "out", so it simplifies the checked condition while implementing a more intuitive behavior.
* | graphparser: clarify comments in avfilter_graph_parse()Stefano Sabatini2011-07-071-2/+2
| |
* | graphparser: fix logic for updating the open_inputs/outputs in ↵Stefano Sabatini2011-07-071-24/+30
| | | | | | | | | | | | | | | | | | | | avfilter_graph_parse() Create open_inputs and open_outputs structs if they are not provided by the user, and free them before exit. In particular, fix NULL pointer dereference and crash, in case the passed open_inputs/outputs is NULL and the parsing failed.
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-07-041-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (40 commits) H.264: template left MB handling H.264: faster fill_decode_caches H.264: faster write_back_* H.264: faster fill_filter_caches H.264: make filter_mb_fast support the case of unavailable top mb Do not include log.h in avutil.h Do not include pixfmt.h in avutil.h Do not include rational.h in avutil.h Do not include mathematics.h in avutil.h Do not include intfloat_readwrite.h in avutil.h Remove return statements following infinite loops without break RTSP: Doxygen comment cleanup doxygen: Escape '\' in Doxygen documentation. md5: cosmetics md5: use AV_WL32 to write result md5: add fate test md5: include correct headers md5: fix test program doxygen: Drop array size declarations from Doxygen parameter names. doxygen: Fix parameter names to match the function prototypes. ... Conflicts: libavcodec/x86/dsputil_mmx.c libavformat/flvenc.c libavformat/oggenc.c libavformat/wtv.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * doxygen: Fix parameter names to match the function prototypes.Diego Biurrun2011-07-031-1/+1
| |
| * graphparser: add a NULL check on the argument passed to strstrStefano Sabatini2011-04-251-1/+1
| | | | | | | | | | | | | | 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-191-4/+4
| | | | | | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
| * Make avfilter_graph_parse() not free the input graphStefano Sabatini2011-02-041-1/+3
| | | | | | | | | | | | | | | | | | | | | | 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>
* | graphparser: add missing NULL check in avfilter_graph_parse()Stefano Sabatini2011-06-181-1/+1
| | | | | | | | | | | | | | | | Fix a crash occurring when open_inputs is NULL and *open_inputs is checked, the crash was introduced by the recent avfilter_graph_parse() syntax change. In particular, fix graph2dot crash.
* | avfiltergraph: make the AVFilterInOut alloc/free API publicStefano Sabatini2011-06-121-9/+14
| | | | | | | | | | This is required for letting applications to create and destroy AVFilterInOut structs in a convenient way.
* | avfiltergraph: change the syntax of avfilter_graph_parse()Stefano Sabatini2011-06-121-10/+10
| | | | | | | | | | | | | | Make it returns the list of open inputs and outputs, so it can be reused by applications. Breaks API/ABI.
* | graphparser: prefer void * over AVClass * for log contextsStefano Sabatini2011-06-121-7/+7
| |
* | lavfi: fix signature for avfilter_graph_parse() and avfilter_graph_config()Stefano Sabatini2011-06-111-1/+1
| | | | | | | | Require "void *" rather than "AVClass *" for the log context type.
* | graphparser: add a NULL check on the argument passed to strstrStefano Sabatini2011-03-301-1/+1
| | | | | | | | | | Fix crash in create_filter() which occurrs if a scale filter with no args is provided.
* | Make avfilter_graph_parse() not free the input graphStefano Sabatini2011-02-061-1/+3
|/ | | | | | | | | | | | 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> (cherry picked from commit e8e5dde779fca80d86e00baea26d1baca333f4c0)
* Add the word "Parsed" in the parsed filter names.Stefano Sabatini2011-01-141-1/+1
| | | | 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-121-2/+3
| | | | | | 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-281-2/+2
| | | | | | 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-171-1/+0
| | | | 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-111-0/+6
| | | | | | | | 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-081-1/+1
| | | | | | | 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-071-1/+0
| | | | | | | | 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-071-1/+12
| | | | 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-071-6/+6
| | | | Originally committed as revision 25700 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make avfilter_graph_parse() always return meaningful error codes.Stefano Sabatini2010-11-071-10/+12
| | | | Originally committed as revision 25699 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make parse_outputs() always return meaningful error codes.Stefano Sabatini2010-11-071-5/+5
| | | | 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-071-1/+2
| | | | | | 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-071-1/+1
| | | | | | 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-071-0/+2
| | | | | | 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-071-8/+8
| | | | | | | | 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-071-5/+5
| | | | 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-071-8/+5
| | | | 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-071-19/+19
| | | | Originally committed as revision 25691 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename avfilter_graph_destroy() to avfilter_graph_free().Stefano Sabatini2010-11-041-1/+1
| | | | | | | | 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-271-0/+1
| | | | Originally committed as revision 25225 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change avfilter_open() signature, from:Stefano Sabatini2010-08-111-1/+1
| | | | | | | | | | | 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