Stefano Sabatini
bd8e750300
Port drawtext filter by Hemanth from the libavfilter soc repo, with
...
the following additions:
* support to anti-aliased glyph rendering
* support to UTF-8 text and Unicode chars rendering
* support for RGB packed formats
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2011-02-22 01:49:45 +01:00
Stefano Sabatini
c8c0189d62
lavfi: put color source in a dedicated file
...
Move the color source code from vf_pad.c to vsrc_color.c.
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-02-21 14:09:46 +00:00
Stefano Sabatini
5ad06110e0
lavfi: add drawutils
...
Add drawutils.h and drawutils.c, and use them in the pad filter.
The new functions are going to be shared by other filters.
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-02-21 14:09:08 +00:00
Brandon Mintern
704865fc87
lavfi: add fade filter
...
Port fade filter from libavfilter soc repo, with minor fixes by
Stefano.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2011-02-21 13:56:48 +01:00
Stefano Sabatini
fd0b42cce0
lavfi: put color source in a dedicated file
...
Move the color source code from vf_pad.c to vsrc_color.c.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2011-02-21 13:45:44 +01:00
Stefano Sabatini
bcfd9e821b
lavfi: add drawutils
...
Add drawutils.h and drawutils.c, and use them in the pad filter.
The new functions are going to be shared by other filters.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2011-02-21 13:44:52 +01:00
Michael Niedermayer
02d0803571
Reduce picture size for yadif.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2011-02-18 19:39:56 +01:00
Michael Niedermayer
bad82d3d7d
Change yadif to not use out of picture lines.
...
Fixes issue2272.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2011-02-18 19:39:42 +01:00
Reinhard Tartler
7ffe76e540
Merge libavcore into libavutil
...
Done to keep ABI compatible. Otherwise this is just silly
2011-02-16 23:00:30 +01:00
Reinhard Tartler
737eb5976f
Merge libavcore into libavutil
...
It is pretty hopeless that other considerable projects will adopt
libavutil alone in other projects. Projects that need small footprint
are better off with more specialized libraries such as gnulib or rather
just copy the necessary parts that they need. With this in mind, nobody
is helped by having libavutil and libavcore split. In order to ease
maintenance inside and around FFmpeg and to reduce confusion where to
put common code, avcore's functionality is merged (back) to avutil.
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
2011-02-15 16:18:21 +01:00
Stefano Sabatini
6985d7bf87
Make avfilter_config_links() propagate audio information of the source link if it is not explicitely set by the filter.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2011-02-14 23:37:34 +01:00
Stefano Sabatini
70c275f8c3
Make avfilter_config_links() propagate audio information of the source link if it is not explicitely set by the filter.
2011-02-14 21:00:25 +01:00
Michael Niedermayer
910b5b82e8
Add sample_aspect_ratio to AVFilterLink
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-02-14 13:07:21 +00:00
Stefano Sabatini
9b8bb626dc
libavfilter: add video movie source
...
See thread:
Subject: [PATCH] movie video source
Date: 2010-12-31 15:35:30 GMT
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
2011-02-09 03:33:28 +01:00
Stefano Sabatini
9409c3811c
libavfilter: add video movie source
...
See thread:
Subject: [PATCH] movie video source
Date: 2010-12-31 15:35:30 GMT
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
2011-02-08 13:20:56 +01:00
Clément Bœsch
bffad70c66
Remove forgotten if (p) av_free(p) forms
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 290849e2a4
)
2011-02-06 20:31:44 +01:00
Stefano Sabatini
ab543afe47
Make avfilter_graph_free() free the graph.
...
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>
(cherry picked from commit 4359288c56
)
2011-02-06 20:31:42 +01:00
Stefano Sabatini
c68be8e135
Make avfilter_graph_parse() not free the input graph
...
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 e8e5dde779
)
2011-02-06 20:31:42 +01:00
Clément Bœsch
290849e2a4
Remove forgotten if (p) av_free(p) forms
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-02-04 10:00:52 +00:00
Stefano Sabatini
4359288c56
Make avfilter_graph_free() free the graph.
...
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>
2011-02-04 02:55:11 +00:00
Stefano Sabatini
e8e5dde779
Make avfilter_graph_parse() not free the input graph
...
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>
2011-02-04 02:55:11 +00:00
Stefano Sabatini
057f3d2763
Log debug information in filter_samples().
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 5fce60c3a9
)
2011-02-04 03:08:09 +01:00
Stefano Sabatini
5fce60c3a9
Log debug information in filter_samples().
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-02-02 12:12:32 +00:00
Michael Niedermayer
7b3ea5507c
Add sample_aspect_ratio fields to vsrc_buffer arguments.
...
This fixes aspect handling in ffmpeg
This is based on a patch by baptiste
2011-01-31 21:32:06 +01:00
Michael Niedermayer
14b171cd71
Add sample_aspect_ratio to AVFilterLink
2011-01-31 21:32:06 +01:00
Luca Barbato
9ef5a9deaf
Replace dprintf with av_dlog
...
dprintf clashes with POSIX.1-2008
(cherry picked from commit dfd2a005eb
)
2011-01-30 03:41:48 +01:00
Stefano Sabatini
8bc6568595
In the start_frame() debug log, print the reference pos value rather than the evaluated value converted to int.
...
That's required because -1 is evaluated as NAN, which converted back
to int looks like a random number, this is especially annoying when
debugging sources with undefined pos (as the video4linux2 device).
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit 3e5bc7ff6a
)
2011-01-30 03:40:59 +01:00
Luca Barbato
dfd2a005eb
Replace dprintf with av_dlog
...
dprintf clashes with POSIX.1-2008
2011-01-29 23:55:37 +01:00
Michael Niedermayer
55fa97e215
Remove useage of memalign() from libmpcodecs, not all platforms have memalign().
2011-01-28 21:55:23 +01:00
Michael Niedermayer
be3e8eda5a
Add forgotten dependancy of avcodec for vf_mp.c
2011-01-28 19:04:24 +01:00
Stefano Sabatini
3e5bc7ff6a
In the start_frame() debug log, print the reference pos value rather than the evaluated value converted to int.
...
That's required because -1 is evaluated as NAN, which converted back
to int looks like a random number, this is especially annoying when
debugging sources with undefined pos (as the video4linux2 device).
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
2011-01-28 17:27:54 +01:00
Diego Elio Pettenò
97e528a9e1
Make the avfilter debug functions and macros static to avfilter.c
...
This removes ff_get_ref_perms_string, ff_dprintf_ref and ff_dprintf_link
fro the interface of libavfilter.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit eb7ccf8f33
)
2011-01-28 03:15:32 +01:00
Diego Elio Pettenò
eb7ccf8f33
Make the avfilter debug functions and macros static to avfilter.c
...
This removes ff_get_ref_perms_string, ff_dprintf_ref and ff_dprintf_link
fro the interface of libavfilter.
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-01-26 15:33:12 +00:00
Michael Niedermayer
61d7f8fed4
Warn about vf_mp
2011-01-20 03:27:01 +01:00
Michael Niedermayer
fd4c59b519
Enable libmpcodecs support.
2011-01-20 03:27:01 +01:00
Michael Niedermayer
a61b0df708
Add ASMALIGN() hack to patch around its recent removial from configure
2011-01-20 03:27:01 +01:00
Michael Niedermayer
3aa43978da
Add libmpcodecs wrapper for libavfilter, still disabled
2011-01-20 03:26:54 +01:00
Michael Niedermayer
3be78f7ecd
Hack libmpcodecs to make it buildable.
2011-01-20 00:59:30 +01:00
Michael Niedermayer
8e45c103e9
Remove dependancy of m_option & m_struct from libmpcodecs.
2011-01-20 00:57:33 +01:00
Michael Niedermayer
4d46361425
Avoid dependancy on global variable verbose in libmpcodecs/vf_pullup.c
2011-01-20 00:52:26 +01:00
Michael Niedermayer
45c889a3ad
Add #define _BSD_SOURCE where mplayer is not C99.
2011-01-20 00:50:42 +01:00
Michael Niedermayer
e4852fb38d
Add MPlayers libmpcodecs, this will be needed for our libavfilter wraper for it.
2011-01-20 00:49:27 +01:00
Mans Rullgard
daed21a17e
avfilter: remove stray semicolon
2011-01-18 20:48:23 +00:00
Janne Grunau
2c3589bfda
consolidate .gitignore patters into a single file
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
2011-01-18 21:32:05 +01:00
Janne Grunau
348b8218f7
convert svn:ignore properties to .gitignore files
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
2011-01-17 15:50:14 +01:00
Stefano Sabatini
dccdd93efc
Make config_props() return AVERROR(EINVAL) rather than 1 in case of
...
failed SWScaleContext initialization.
Fix issue2546.
Originally committed as revision 26395 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-16 20:11:46 +00:00
Ronald S. Bultje
84cac86e7e
Fix fate breakage in r26382.
...
Originally committed as revision 26383 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-16 03:20:03 +00:00
Baptiste Coudurier
ecea47a6ed
Remove useless free, fix warning:
...
libavfilter/defaults.c: In function 'avfilter_default_get_audio_buffer':
libavfilter/defaults.c:129: warning: 'buf' is used uninitialized in this function
Originally committed as revision 26382 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-16 02:47:25 +00:00
Stefano Sabatini
b1779800c4
Include libavcore/audioconvert.h, required for
...
av_get_channel_layout_string() in ff_dprintf_link.
Fix compilation.
Originally committed as revision 26380 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-15 20:43:01 +00:00
Stefano Sabatini
1d5b188518
Reindent.
...
Originally committed as revision 26379 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-15 20:02:03 +00:00
Stefano Sabatini
7986e34db0
Make ff_dprintf_link() print meaningful information for audio links.
...
Originally committed as revision 26378 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-15 19:58:29 +00:00
Stefano Sabatini
a242ac3620
Rename AVFilterBufferRefAudioProps.samples_nb to nb_samples.
...
More consistent with the rest of FFmpeg and sounds more natural to
English speaking people.
Originally committed as revision 26374 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-15 17:31:34 +00:00
Stefano Sabatini
6baf4afa99
Make avfilter_unref_buffer() accept a NULL parameter.
...
Originally committed as revision 26373 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-15 17:21:15 +00:00
Baptiste Coudurier
a51c71bb54
In yadif filter, default to top field first if interlacing is unknown
...
Originally committed as revision 26347 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-15 00:32:36 +00:00
Stefano Sabatini
3bf3fc0e54
Add the word "Parsed" in the parsed filter names.
...
Originally committed as revision 26334 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-14 20:58:47 +00:00
Stefano Sabatini
891aeeee72
Check linked pads media type mismatch in avfilter_link().
...
Originally committed as revision 26325 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-13 01:00:36 +00:00
Stefano Sabatini
caeb0c3027
Make avfilter_graph_free() do nothing if graph is NULL.
...
Originally committed as revision 26323 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-12 21:23:16 +00:00
Stefano Sabatini
8bca34933e
In the pad filter, log information about the input size.
...
Originally committed as revision 26320 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-12 16:40:23 +00:00
Michael Niedermayer
e3331706fc
Fix design of the pad filter.
...
Previously the pad filter just drawed borders in the surrounding of the input
without checking if this area was allocated or writeable. Now we check and
allocate a new buffer if the input is unsuitable.
Originally committed as revision 26315 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-11 23:53:24 +00:00
Michael Niedermayer
36dc00de52
Add w,h,format back into AVFilterBuffer, these are required for direct rendering.
...
These fields are needed to be able to know which area of memory is allocated and
which is off limits.
This reverts 24291 and parts of r24424.
Originally committed as revision 26314 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-11 23:53:17 +00:00
Baptiste Coudurier
69057b70f7
In pad filter, update new ref w/h in start_frame, fix chaining
...
Originally committed as revision 26217 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-05 01:14:14 +00:00
Baptiste Coudurier
d34a77fb09
In crop filter, update new ref w/h instead of old one, fix chaining
...
Originally committed as revision 26216 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-05 01:00:53 +00:00
Stefano Sabatini
b59dd1ea4f
Fix style nits in avfiltergraph.c.
...
Originally committed as revision 26116 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-28 14:10:12 +00:00
Stefano Sabatini
b567020943
Add copy filter, useful for testing the avfilter_draw_slice() copy
...
code.
Originally committed as revision 26112 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-28 01:01:09 +00:00
Stefano Sabatini
28e5d45c68
Bump lavfi minor and add an entry after r26108 (which added
...
AV_PERM_NEG_LINESIZES to avfilter.h).
Originally committed as revision 26111 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-27 18:16:52 +00:00
Stefano Sabatini
b4356e4118
In the crop filter, put under ifdef DEBUG the trace logs for the
...
evaluated crop area coordinates.
Prevent debug log spamming, define the DEBUG symbol for enabling them.
Originally committed as revision 26110 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-27 18:04:35 +00:00
Michael Niedermayer
0ccabeeaef
Support filters and decoders that dont support negative linesizes.
...
This patch is based on work by stefano.
Originally committed as revision 26108 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-27 15:10:21 +00:00
Stefano Sabatini
17fc94933b
Add erode libopencv filter.
...
Originally committed as revision 26097 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-26 11:27:09 +00:00
Stefano Sabatini
91cbb6ba53
Add dilate libopencv filter.
...
Originally committed as revision 26096 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-26 11:27:05 +00:00
Stefano Sabatini
cf69ad35c5
Redesign the libopencv wrapper to make it more generic. Accept both
...
FILTERNAME=ARGS and FILTERNAME:ARGS syntax.
The same filter class will be used for managing all the libopencv
filtering functions.
Originally committed as revision 26079 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-23 17:24:19 +00:00
Stefano Sabatini
fee0deb61f
Fix avfilter_draw_slice() copy code with alpha planes.
...
Originally committed as revision 26060 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-19 19:08:30 +00:00
Stefano Sabatini
2609ad3e40
Revert commit r22596.
...
commit ab8610aa176c13b5e25a2d8770df28a14665e169
Author: koorogi <koorogi@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Date: Thu Mar 18 23:13:04 2010 +0000
The vflip filter does not need to keep ownership of a picture reference.
Avoid creating and releasing useless extra picture references in the
start_frame and end_frame callbacks.
Originally committed as revision 22596 to svn://svn.ffmpeg.org/ffmpeg/trunk
The new reference creation is required when the linesizes are used by the
previous filters in the filterchain, for example as in "pad=W:H:X:Y,vflip".
Originally committed as revision 26059 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-19 18:17:11 +00:00
Stefano Sabatini
69b8d83ecf
Fix crash in gradfun:end_frame() when inpic == outpic, so it has to be
...
freed just once.
Originally committed as revision 26058 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-19 13:02:05 +00:00
Nolan L
d5f187fd33
Add gradfun filter, ported from MPlayer.
...
Patch by Nolan L nol888 <=> gmail >=< com.
See thread:
Subject: [FFmpeg-devel] [PATCH] Port gradfun to libavfilter (GCI)
Date: Mon, 29 Nov 2010 07:18:14 -0500
Originally committed as revision 25942 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-12 17:59:10 +00:00
Stefano Sabatini
9241cd2095
Make avfilter_parse_graph() output a more meaningful message when an
...
invalid filterchain is detected.
Originally committed as revision 25936 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-12 13:39:16 +00:00
Stefano Sabatini
c61cdd0afb
Move AV_NOPTS_VALUE, AV_TIME_BASE, AV_TIME_BASE_Q symbols from
...
libavcodec to libavcore.
Remove another compile-time dependancy of libavfilter on libavcodec.
Originally committed as revision 25923 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-09 17:27:33 +00:00
Baptiste Coudurier
90f1f3bf00
In yadif filter, declare asm constants directly to avoid dependency on libavcodec
...
Originally committed as revision 25895 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-06 00:14:15 +00:00
Baptiste Coudurier
a4dc7aa5b5
Port libmpcodecs hqdn3d filter.
...
Patch by Baptiste with some fixes by me.
Originally committed as revision 25880 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-04 13:03:42 +00:00
Stefano Sabatini
4da12e3b13
Implement av_image_alloc() and use it in
...
avfilter_default_get_video_buffer().
Originally committed as revision 25878 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-04 12:56:16 +00:00
Baptiste Coudurier
bf799f686f
Declare sse2 and ssse2 function in yadif header
...
Originally committed as revision 25877 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-04 05:50:28 +00:00
Baptiste Coudurier
1ef64490e1
yadif sse2/ssse3 optimizations
...
Originally committed as revision 25874 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-04 05:23:44 +00:00
Stefano Sabatini
037be76e15
Add avfilter_graph_create_filter().
...
Originally committed as revision 25862 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-02 20:12:27 +00:00
Stefano Sabatini
f51aeedd41
Extend the frei0r filter syntax.
...
Make it accept the frei0r=filtername=params as alternative to
frei0r=filtername:params.
Originally committed as revision 25856 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-30 20:14:41 +00:00
Stefano Sabatini
f8608dcac3
Implement frei0r source.
...
Originally committed as revision 25855 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-30 20:14:36 +00:00
Stefano Sabatini
3fa77bde1b
In libavfilter, use consistently "Copyright (c)" in the license
...
headers.
Originally committed as revision 25838 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-28 10:22:58 +00:00
Stefano Sabatini
2467997c8c
Fix crash in uninit.
...
Originally committed as revision 25829 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-25 23:51:37 +00:00
Stefano Sabatini
9b195435b3
Fix timestamp scaling in the overlay filter.
...
Compute the outpicref PTS in start_frame(), since it is required for
comparing that value with the value of the overpicref.
Originally committed as revision 25828 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-25 21:22:55 +00:00
Stefano Sabatini
d38c340fdc
Implement avfilter_get_video_buffer_ref_from_arrays().
...
Originally committed as revision 25827 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-25 20:50:28 +00:00
Stefano Sabatini
4723bc2868
Make avfilter_default_free_buffer() an internal shared symbol, so that
...
it can be referenced outside defaults.c.
Originally committed as revision 25826 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-25 20:50:23 +00:00
Stefano Sabatini
459b06610c
0.123l: remove unused arguments in av_log(), fix warning.
...
Originally committed as revision 25820 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-24 18:07:39 +00:00
Baptiste Coudurier
6fd2b8bd0a
In aspect filter, fix display for input resolution
...
Originally committed as revision 25819 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-24 02:38:55 +00:00
Baptiste Coudurier
3ff9995350
In crop filter, reference picref after updating w/h, fix issue #2377
...
Originally committed as revision 25818 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-24 01:32:49 +00:00
Stefano Sabatini
16d14d641c
Add informative log message in the crop filter.
...
Originally committed as revision 25817 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-23 21:08:22 +00:00
Stefano Sabatini
b7be04f3c0
Reindent.
...
Originally committed as revision 25803 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-22 22:03:32 +00:00
Stefano Sabatini
7de19a3264
Implement robust parsing in aspect filters.
...
Originally committed as revision 25802 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-22 22:03:30 +00:00
Stefano Sabatini
eee0ef5e4f
Add informative log messages to the set aspect filters.
...
Originally committed as revision 25801 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-22 22:03:27 +00:00
Stefano Sabatini
2fb21bf4ff
Give more explicit/less confusing names to the filters dealing with
...
aspect ratio.
Originally committed as revision 25800 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-22 22:03:24 +00:00
Baptiste Coudurier
902d49eef7
In yadif filter, copy video props to output picture.
...
Fix issue #2269 .
Interpolate pts for the second frame when using field output mode.
Originally committed as revision 25798 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-22 20:42:08 +00:00
Stefano Sabatini
63e8d9760f
Use the new libavcore audio channel API.
...
This also allows to remove a linking dependency of libavfilter on
libavcodec.
Originally committed as revision 25789 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-21 20:06:22 +00:00
Stefano Sabatini
58935b25d0
Port overlay filter from the libavfilter repo (with many fixes),
...
adopting Baptiste variant which is simpler and faster.
Originally committed as revision 25784 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-21 18:39:34 +00:00
Stefano Sabatini
9abf34411a
Log error message in case of invalid parsing.
...
Originally committed as revision 25765 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-18 20:37:22 +00:00
Stefano Sabatini
bdb47f3a2c
Fix style: if( -> if (.
...
Originally committed as revision 25764 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-18 20:37:20 +00:00
Stefano Sabatini
cef4b74bf2
Remove redundant information in header.
...
Originally committed as revision 25763 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-18 20:37:17 +00:00
Aurelien Jacobs
0985e1a3ca
move the av_parse_color() function from libavfilter to libavcore
...
Originally committed as revision 25761 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-17 22:58:28 +00:00
Baptiste Coudurier
c71e9640db
100L fix get_video_buffer in pad filter, get_video_buffer will store wrong values for w and h
...
Originally committed as revision 25759 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-17 01:03:06 +00:00
Stefano Sabatini
f6c182a0c3
Fix frei0r filter after av_parse_color() syntax change.
...
Originally committed as revision 25748 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-13 14:37:48 +00:00
Aurelien Jacobs
2722dd6ebf
improve av_parse_color() to allow for non-null terminated color string
...
Originally committed as revision 25744 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-13 13:55:01 +00:00
Aurelien Jacobs
521b860748
improve av_parse_color() to support html formatting
...
Originally committed as revision 25743 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-13 13:49:58 +00:00
Stefano Sabatini
5aaea022ab
Make avfiltergraph.h public.
...
Originally committed as revision 25740 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-13 09:51:22 +00:00
Stefano Sabatini
906eaab460
In ff_get_ref_perms_string() use 'u' and 'U' for representing
...
AV_PERM_REUSE and AV_PERM_REUSE2 flags, avoid conflict with the char
'r' used for AV_PERM_READ.
Originally committed as revision 25739 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-13 09:20:32 +00:00
Stefano Sabatini
4fcbb2af33
Prefix with "ff_" the functions:
...
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
2010-11-13 00:21:28 +00:00
Stefano Sabatini
5d6e4c160a
Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enum
...
SampleFormat with AVSampleFormat.
Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-12 11:04:40 +00:00
Stefano Sabatini
668673f10c
Add missing check on the existence of an associated output pad for
...
each specified output link label.
Fix crash.
Originally committed as revision 25723 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-11 22:41:22 +00:00
Aurelien Jacobs
cb4fe49294
remove declaration inside for(), i is already declared
...
Originally committed as revision 25722 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-11 21:29:37 +00:00
Aurelien Jacobs
6ed3bace97
drop support for base-10 encoded alpha component in av_parse_color()
...
Originally committed as revision 25719 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-10 23:37:12 +00:00
Stefano Sabatini
d2af7205a1
Use hierarchic names convention (prefix them with av_expr) for the
...
eval API.
More grep-friendly and more consistent with the rest of the FFmpeg
API.
Originally committed as revision 25708 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-08 14:06:49 +00:00
Stefano Sabatini
24de0edbd5
Rename avfilter_destroy() as avfilter_free().
...
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
2010-11-08 12:32:39 +00:00
Stefano Sabatini
1e80a0eaa4
Remove graphparser.h header, move AVFilterInOut and
...
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
2010-11-07 22:56:29 +00:00
Stefano Sabatini
0b90e4a240
Document AVFilterInOut fields.
...
Originally committed as revision 25704 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-07 22:47:37 +00:00
Stefano Sabatini
55b2a9ba3b
Extend documentation for parse_filter().
...
Originally committed as revision 25703 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-07 22:47:33 +00:00
Stefano Sabatini
da6ec07c41
Bump lavfi minor and add APIchanges entry after the rename of
...
AVFilterInOut.filter.
Originally committed as revision 25701 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-07 18:56:44 +00:00
Stefano Sabatini
7313132bcc
Rename AVFilterInOut field filter to filter_ctx, more semantically correct.
...
Originally committed as revision 25700 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-07 18:40:18 +00:00
Stefano Sabatini
c24f76b948
Make avfilter_graph_parse() always return meaningful error codes.
...
Originally committed as revision 25699 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-07 18:40:14 +00:00
Stefano Sabatini
0cc8b65950
Make parse_outputs() always return meaningful error codes.
...
Originally committed as revision 25698 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-07 18:40:12 +00:00
Stefano Sabatini
00b3ca3c7a
Add missing memory check in parse_inputs(), and fix possible (yet very unlikely) crash.
...
Originally committed as revision 25697 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-07 18:40:09 +00:00
Stefano Sabatini
42e7f6d781
Make parse_inputs() return AVERROR(EINVAL) rather than -1 in case the
...
link label parsed by parse_link_name() is invalid.
Originally committed as revision 25696 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-07 18:40:07 +00:00
Stefano Sabatini
fbd97184f8
Add missing check in link_filter_inouts(), and fix possible (yet very unlikely) crash.
...
Originally committed as revision 25695 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-07 18:40:04 +00:00
Stefano Sabatini
ed581e65e2
Rename the variable filter to filt_ctx in link_filter_inouts, as the variable denotes a filter context.
...
Less confusing.
Originally committed as revision 25694 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-07 18:40:01 +00:00
Stefano Sabatini
684ade4935
Make link_filter_inouts() return meaningful error codes.
...
Originally committed as revision 25693 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-07 18:39:58 +00:00
Stefano Sabatini
688b9dad9c
Change the signature of parse_filter() to make it return an error code.
...
Originally committed as revision 25692 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-07 18:39:54 +00:00
Stefano Sabatini
c58572f87b
Change the signature of create_filter() to make it return an error code.
...
Originally committed as revision 25691 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-07 18:39:52 +00:00
Stefano Sabatini
97dd1e4a87
Rename avfilter_graph_destroy() to avfilter_graph_free().
...
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
2010-11-04 20:34:24 +00:00
Stefano Sabatini
e15aeea656
Implement avfilter_graph_alloc().
...
Originally committed as revision 25673 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-04 20:34:19 +00:00
Stefano Sabatini
a6fdd5748f
Amend avfilter_graph_parse() documentation for the return code, make
...
it more generic.
Originally committed as revision 25672 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-04 20:26:45 +00:00
Stefano Sabatini
ba7d6e798e
Remove usage of deprecated libavcodec/audioconvert.h functions.
...
Originally committed as revision 25668 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-03 20:19:34 +00:00
Stefano Sabatini
6f2325e3f1
1/PHIl: swap again settb/setpts, fix alphabetical order.
...
Originally committed as revision 25657 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-02 22:53:18 +00:00
Stefano Sabatini
a532bb390f
Add setpts filter, ported from the libavfilter soc repo.
...
Originally committed as revision 25655 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-02 22:29:17 +00:00
Stefano Sabatini
41f1d3afeb
Fix timestamp handling in more filters after the change which set the
...
timebase in the filter link.
Originally committed as revision 25649 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-02 19:42:08 +00:00
Stefano Sabatini
a4ef9658a2
Make the blackframe filter print the time, in addition to the
...
timestamp, for each detected black frame.
Originally committed as revision 25648 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-02 19:42:05 +00:00
Stefano Sabatini
d370e3e931
Make the cropdetect filter print the time for each frame, in addition
...
to the timestamp.
Originally committed as revision 25647 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-02 19:42:03 +00:00
Stefano Sabatini
4b3d0dc643
Fix crop->var_values[VAR_T] computation in the crop filter.
...
Originally committed as revision 25645 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-02 18:40:55 +00:00
Stefano Sabatini
d545aea8f0
100l: remove bogus inclusion of libavcodec/audioconvert.c in
...
avfilter.c.
Originally committed as revision 25565 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-25 04:28:36 +00:00
Stefano Sabatini
43945b2766
Add transpose filter.
...
Originally committed as revision 25525 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-18 21:29:37 +00:00
Stefano Sabatini
2a24df9357
Add avfilter_graph_config().
...
Originally committed as revision 25502 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-16 10:20:53 +00:00
Stefano Sabatini
6fae8c5443
Make the validity checks fail only if the corresponding luma or chroma
...
values are not zero.
Prevent aborting with the default values.
Originally committed as revision 25471 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-13 13:14:52 +00:00
Stefano Sabatini
cf5fe8ec9e
Make avfilter_config_links() use the timebase of the first input link
...
of a filter for setting the output timebase, if there is such a link,
rather than always use AV_TIME_BASE_Q.
This fixes configuration for all the filters which do not use the
default config_props for the output link, and do not set explicitely
the timebase.
Originally committed as revision 25456 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-12 22:32:31 +00:00
Stefano Sabatini
94498ec98a
Extend buffer source to accept the time base for the output PTS.
...
Originally committed as revision 25451 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-12 18:40:20 +00:00
Stefano Sabatini
610312e904
Remove unused symbol.
...
Originally committed as revision 25449 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-12 13:56:12 +00:00
Stefano Sabatini
68b79bfc48
Implement cropdetect filter.
...
Originally committed as revision 25447 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-12 09:22:32 +00:00
Stefano Sabatini
16134b7c40
Extend the nullsrc source, make it accept a parameter for specifying
...
the timebase. Useful for debugging timebase configuration issues.
Originally committed as revision 25446 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-11 23:27:33 +00:00