Stefano Sabatini
067180220d
Make the pix_fmts var in query_formats() static const.
...
Originally committed as revision 20343 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-10-21 21:04:53 +00:00
Stefano Sabatini
190c166960
Add video crop filter.
...
Originally committed as revision 20342 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-10-21 20:57:30 +00:00
Stefano Sabatini
9abba21ad3
Cosmetics: prefer "pix_fmts" over "pix_fmt" for the name of the
...
argument of avfilter_make_format_list(), as the argument represents a
list of elements.
Originally committed as revision 20341 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-10-21 20:43:43 +00:00
Stefano Sabatini
1554fed2d6
Make avfilter_make_format_list() take in input a const argument.
...
Originally committed as revision 20340 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-10-21 20:39:05 +00:00
Stefano Sabatini
c0da46c8e0
Break over-80-chars-long line.
...
Originally committed as revision 20320 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-10-19 19:22:08 +00:00
Stefano Sabatini
6b5dc050a2
Rename avfilter_make_format_list2() to avfilter_make_format_list().
...
Originally committed as revision 20302 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-10-18 23:39:54 +00:00
Stefano Sabatini
e768cb7668
Remove avfilter_make_format_list(), it has been replaced by
...
avfilter_make_format_list2().
Originally committed as revision 20301 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-10-18 23:35:54 +00:00
Stefano Sabatini
f6a1fa850a
Implement avfilter_make_format_list2(), which is going to replace
...
avfilter_make_format_list().
See the thread:
"[PATCH] Implement avfilter_make_format_list2(enum PixelFormat pix_fmt, ...)".
Originally committed as revision 20299 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-10-18 23:06:52 +00:00
Stefano Sabatini
f28b385d47
Make clear in the doxy that this is a *video* filter.
...
Originally committed as revision 20298 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-10-18 23:00:11 +00:00
Vitor Sessak
9dd08b4e1e
Fix recursive avfilter_poll_frame(). It was doing
...
min = FFMIN(min, avfilter_poll_frame(link->src->inputs[i]))
which, since FFMIN is a macro, was calling itself
twice for every input, causing an exponential cost in time.
Originally committed as revision 20295 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-10-18 22:33:37 +00:00
Stefano Sabatini
7b018b1d7d
Add the null video filter.
...
Originally committed as revision 20275 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-10-18 09:44:33 +00:00
Stefano Sabatini
930aa45132
Use 'enum PixelFormat *' rather than 'int *' as type for the
...
AVFilterFormats.formats field.
Cleaner / safer.
Originally committed as revision 20274 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-10-18 09:31:57 +00:00
Stefano Sabatini
0eb4ff9e37
Make avfilter_get_video_buffer() recursive.
...
When called on a link with a filter whose destination pad has not a
get_video_buffer callback defined, it will call
avfilter_get_video_buffer() on the first output link of the
destination filer, rather than use avfilter_default_get_buffer(), so
the video buffer can be allocated forward in the filterchain.
Also add the w and h parameters to avfilter_get_video_buffer(), as the
minimum width and height requested by each filter in the filterchain
may change, this allows for example a memcpy-less pad filter.
This change breaks API / ABI backward compatibility.
See the thread:
"[PATCH] Implement recusive avfilter_get_video_buffer()".
Originally committed as revision 20272 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-10-18 08:16:18 +00:00
Stefano Sabatini
46c40e4835
Add w and h fields to AVFilterPic.
...
See the thread:
"[FFmpeg-devel] [PATCH] Add w,h fields to AVFilterPic".
Originally committed as revision 20189 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-10-07 18:50:00 +00:00
Stefano Sabatini
96da1c51f6
Implement trace messages logging in the filterchain processing.
...
It is only enabled when the DEBUG symbol is defined.
Originally committed as revision 20187 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-10-06 22:07:32 +00:00
Stefano Sabatini
0802356cfc
Remove the const qualifier for the name field of AVFilterInOut, since
...
it is meant to be freed.
Fix warnings.
Originally committed as revision 19072 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-06-01 16:07:48 +00:00
Stefano Sabatini
4ec42240ca
Implement avfilter_graph_config_links().
...
Originally committed as revision 19066 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-31 16:30:12 +00:00
Stefano Sabatini
62c58bcc65
Fix grammar for avfilter_graph_parse() doxy.
...
Originally committed as revision 18900 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-22 22:38:41 +00:00
David Conrad
ef516f7377
Move ALIGN macro to libavutil/common.h and use it in various places
...
Originally committed as revision 18898 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-22 21:32:13 +00:00
Stefano Sabatini
cec8e5f76a
Log with level AV_LOG_ERROR if av_parse_color() cannot recognize a
...
color.
Originally committed as revision 18868 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-18 17:59:03 +00:00
Stefano Sabatini
c1ec75b576
Implement av_set_options_string().
...
Originally committed as revision 18832 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-14 22:57:08 +00:00
Stefano Sabatini
3d3bd64db8
Add support in av_parse_color() to a "random" color name, which will
...
result in a randomly choosen random color, as it is with the
"bikeshed" color.
Originally committed as revision 18828 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-14 18:58:06 +00:00
Stefano Sabatini
b69b622c22
Make case insensitive the match for the color name in
...
av_parse_color().
Originally committed as revision 18827 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-14 18:54:25 +00:00
Stefano Sabatini
38efe76877
Use a single space after an ending period and the beginning of the
...
next sentence, consistent with the FFmpeg documentation style.
Originally committed as revision 18824 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-14 18:19:42 +00:00
Stefano Sabatini
c5c6f62668
Apply documentation fixes: use third person, fix grammar and remove
...
inconsistent '\p'.
Originally committed as revision 18823 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-14 18:13:17 +00:00
Vitor Sessak
b755a754d1
"[" is a terminating char for the filter name. This fixes the parsing of
...
things like
[in] vflip [out];
Originally committed as revision 18772 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-08 19:14:21 +00:00
Ramiro Polla
4fa61d1e98
Accept "bikeshed" as a random color.
...
Originally committed as revision 18758 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-06 15:25:30 +00:00
Stefano Sabatini
a3015225c7
Implement av_parse_color().
...
Originally committed as revision 18748 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-05 22:10:06 +00:00
Stefano Sabatini
2e032b32df
Prefer (void) over () in function prototype.
...
Originally committed as revision 18727 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-01 21:35:01 +00:00
Stefano Sabatini
dd04911c4e
Make graphparser.c use av_get_token().
...
This also avoids the need for '\=' escaping.
Originally committed as revision 18726 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-01 18:17:59 +00:00
Michael Niedermayer
d11dbf092c
av_get_token()
...
based on a patch by Stefano Sabatini
Originally committed as revision 18725 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-01 14:38:07 +00:00
Stefano Sabatini
fd548e5bd6
Remove consume_whitespace() and replace it with direct calls to
...
strspn().
Originally committed as revision 18645 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-21 19:08:49 +00:00
Cédric Schieli
fe479c9d63
Also copy pixel_aspect when copying the picref in avfilter_start_frame.
...
This avoids a division by zero in '[in]fifo,scale[out]'
Originally committed as revision 18507 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-14 08:48:47 +00:00
Víctor Paesa
b6fec3eb7f
Make static the list of registered filters.
...
Originally committed as revision 18198 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-26 21:46:45 +00:00
Michael Niedermayer
6d4f53cbac
Remove old scaler.
...
Originally committed as revision 17786 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 22:51:30 +00:00
Stefano Sabatini
86a47378d5
Rename avfilter_parse_graph() to avfilter_graph_parse(), for better
...
consistency with the rest of the API.
Originally committed as revision 17624 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-26 22:03:55 +00:00
Stefano Sabatini
d7dbe55823
Rename avfilter_destroy_graph() to avfilter_graph_destroy(), for better
...
consistency with the rest of the API.
Originally committed as revision 17623 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-26 22:02:09 +00:00
Stefano Sabatini
39c07b8e44
Implement in AVFilterGraph the scale_sws_opts field, and pass its
...
value in the args for the auto-inserted scale filters.
Originally committed as revision 17547 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-23 23:45:21 +00:00
Stefano Sabatini
fd51ff1643
Fix avfilter_parse_graph() invalid graph description detection.
...
See the thread:
"[FFmpeg-devel] [PATCH] Fix avfilter-parse-graph()".
Originally committed as revision 17222 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 11:47:42 +00:00
Stefano Sabatini
822005ed45
Implement avfilter_graph_check_validity().
...
Originally committed as revision 16809 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-26 20:21:25 +00:00
Stefano Sabatini
784712343c
Print a warning and fail if the graph description cannot be
...
parsed.
Originally committed as revision 16648 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-16 23:56:53 +00:00
Aurelien Jacobs
49fb20cb8a
replace all occurrence of ENABLE_ by the corresponding CONFIG_, HAVE_ or ARCH_
...
and remove all ENABLE_ definitions.
Originally committed as revision 16600 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-14 17:19:17 +00:00
Stefano Sabatini
90993b3848
Reindent after the last commit, while at it also add some spaces for
...
improving readability.
Originally committed as revision 16566 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-12 20:34:34 +00:00
Stefano Sabatini
689a5f493b
Make avfilter_open() set to NULL the pads and the filters when the
...
corresponding count is zero, rather than allocate a 16 bytes sized
block for them. Improve safety.
Originally committed as revision 16565 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-12 20:30:57 +00:00
Stefano Sabatini
b9609848f3
Implement the avfilter_default_draw_slice() handler and use it in
...
avfilter_draw_slice() when the draw_slice callback is not defined in
the input pad.
Originally committed as revision 16554 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-11 22:05:48 +00:00
Stefano Sabatini
2b187df99b
Fix capitalization and missing periods issues.
...
Originally committed as revision 16517 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-10 10:26:05 +00:00
Stefano Sabatini
9ce95f272e
Cosmetics: break line to make it not longer than 80 chars.
...
Originally committed as revision 16405 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-02 10:07:26 +00:00
Stefano Sabatini
91535e5f38
Fix typos.
...
Originally committed as revision 16384 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-29 12:11:01 +00:00
Stefano Sabatini
055068d001
Mention in the documentation of avfilter_poll_frame() that it returns
...
a negative value in case of error.
Originally committed as revision 16372 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-28 17:07:47 +00:00
Stefano Sabatini
7f9b3266c9
Change thisIsAVar variable names to this_is_a_var style, more
...
consistent with the rest of libav*.
Originally committed as revision 16356 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-27 09:31:05 +00:00