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
5fce60c3a9
Log debug information in filter_samples().
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-02-02 12:12:32 +00:00
Luca Barbato
dfd2a005eb
Replace dprintf with av_dlog
...
dprintf clashes with POSIX.1-2008
2011-01-29 23:55:37 +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ò
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
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
Stefano Sabatini
214c0d420b
Implement settb filter.
...
Originally committed as revision 25445 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-11 14:00:40 +00:00
Stefano Sabatini
867ae7aa5d
Add a time_base field to AVFilterLink.
...
This is required for allowing a filter to use a time base different
from AV_TIME_BASE_Q, as it was previously assumed.
Originally committed as revision 25441 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-10 22:26:14 +00:00
Stefano Sabatini
f167a1a4f6
Rename out -> outlink, link -> inlink in various defaults.c functions,
...
improve readability / consistency.
Originally committed as revision 25434 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-10 18:54:45 +00:00
Stefano Sabatini
69f73a8928
Make avfilter_config_links() propagate the error code coming from the
...
callee functions.
Originally committed as revision 25433 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-10 18:54:39 +00:00
Stefano Sabatini
74d127b537
Add validity checks for the unsharp filter.
...
Prevent crash.
Originally committed as revision 25419 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-08 23:36:35 +00:00
İsmail Dönmez
5ef42826d2
yadif: Explicit wordlength for compare. Fixes compile with clang.
...
Patch by İsmail Dönmez: ismail at namtrac dot org
Originally committed as revision 25328 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-03 20:01:36 +00:00
Víctor Paesa
524aae8625
Use SLIBSUF instead of .so, as a more generic dynamic library suffix.
...
Originally committed as revision 25321 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-03 09:49:36 +00:00
Stefano Sabatini
333771210e
Fix reference to nonexistent function.
...
Originally committed as revision 25296 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-01 18:32:53 +00:00
Stefano Sabatini
ab3efd0077
Return AVERROR(EINVAL) rather than -1 in case of invalid values.
...
Originally committed as revision 25274 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-30 20:24:49 +00:00
Alexander Strange
5ba24e4982
Fix compile on Darwin (FATE). Compile error:
...
yadif.c:226: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
yadif.c:220: error: 'asm' operand has impossible constraints
Patch by Alexander Strange <astrange ithinksw com>.
Originally committed as revision 25251 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-29 12:34:01 +00:00
Stefano Sabatini
c10676aca3
Make init() return sensible error code rather than -1 in case of
...
invalid values.
Originally committed as revision 25248 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-28 14:59:09 +00:00
Stefano Sabatini
46daee6e4e
Cosmetics: apply nits.
...
Originally committed as revision 25247 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-28 14:59:06 +00:00
Stefano Sabatini
e40032e23a
Add the drawbox filter from the soc libavfilter repo.
...
Pedagogically useful.
Originally committed as revision 25244 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-28 13:16:40 +00:00
Stefano Sabatini
c85eef4ed8
Move av_set_options_string() from libavfilter to libavutil.
...
Originally committed as revision 25236 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-27 22:09:53 +00:00
Stefano Sabatini
486adc55c0
Use more expressive names for the avfilter_insert_filter() in and out
...
parameters.
Originally committed as revision 25235 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-27 21:57:16 +00:00
Aurelien Jacobs
fa6f4ebc08
use a Makefile in x86 subdir
...
Originally committed as revision 25234 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-27 21:50:26 +00:00
Aurelien Jacobs
236f79480b
merge #if with if()
...
Originally committed as revision 25233 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-27 21:48:06 +00:00
Stefano Sabatini
db9dfa3cc3
Make avfilter_insert_filter() propagate an error code in case the
...
called avfilter_link() fails.
Originally committed as revision 25229 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-27 17:28:53 +00:00
Stefano Sabatini
acc0490f09
Make AVFilterLink store the pointers to the source and destination
...
pads, rather than their index.
Originally committed as revision 25227 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-27 16:58:48 +00:00
Stefano Sabatini
372e288408
Move av_get_token() from libavfilter to libavutil.
...
Originally committed as revision 25225 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-27 16:23:43 +00:00
Stefano Sabatini
b1a05b820e
Make avfilter_destroy() code less convoluted, introducing a temporary
...
variable link.
Originally committed as revision 25217 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-27 01:17:46 +00:00
Måns Rullgård
536e229ae2
yadif: remove unnecessary #include
...
Originally committed as revision 25215 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-26 22:37:45 +00:00
Stefano Sabatini
13fabd7a8d
Port MPlayer blackframe filter.
...
See thread:
Subject: [FFmpeg-devel] [PATCH] Port MPlayer blackframe filter.
Date: Sun, 26 Sep 2010 01:10:40 +0200
Originally committed as revision 25214 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-26 21:36:05 +00:00
Michael Niedermayer
6ed040408b
Move AVOptions from libavcodec to libavutil
...
Originally committed as revision 25210 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-26 14:25:22 +00:00
Stefano Sabatini
b0f65613ac
Cosmetics: fix style nits.
...
Originally committed as revision 25207 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-26 11:09:43 +00:00
Baptiste Coudurier
48f7f29f52
In yadif filter, use current frame when previous is missing,
...
better results for the first frame
Originally committed as revision 25202 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-26 00:56:26 +00:00
Stefano Sabatini
b9f9e59afc
Replace deprecated CODEC_TYPE_AUDIO and CODEC_TYPE_VIDEO with the
...
corresponding AVMEDIA_TYPE_* symbols.
Originally committed as revision 25201 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-25 23:27:16 +00:00
Michael Niedermayer
9f27ca3f25
Stefanos port was missing DIRS variable in the Makefile for the newly added x86
...
Originally committed as revision 25199 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-25 17:09:12 +00:00
Stefano Sabatini
5900deeb90
Bump lavfi minor and add Changelog notice after yadif addition.
...
Originally committed as revision 25198 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-25 17:03:26 +00:00
Michael Niedermayer
96a1459ed5
Fix 0 vs 1 porting bug from mplayer.
...
Originally committed as revision 25197 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-25 16:54:09 +00:00
Michael Niedermayer
acbac56789
yadif filter, based on stefanos port of my yadif from mplayer.
...
Compared to stefanos, 2 frame output works with ffplay.
Originally committed as revision 25196 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-25 16:43:42 +00:00
Stefano Sabatini
1afab33857
Prefix enum var_name symbols with VAR_, to avoid conflicts with already
...
defined symbols, in particular should fix compilation in DOS.
Originally committed as revision 25194 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-25 13:53:32 +00:00
Stefano Sabatini
921bf9f1ff
Fix memleak introduced in:
...
r25185 | stefano | 2010-09-25 03:18:43 +0200 (Sat, 25 Sep 2010) | 1 line
Make the crop filters accept parametric expressions.
Originally committed as revision 25193 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-25 13:42:17 +00:00
S.N. Hemanth Meenakshisundaram
f0a5543898
Add asink_anullsink - null audio sink.
...
Patch by "S.N. Hemanth Meenakshisundaram" /smeenaks/ucsd/edu.
Originally committed as revision 25189 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-25 01:57:01 +00:00
Stefano Sabatini
1ee410f330
Add asrc_anullsrc - null audio source.
...
Based on a patch by "S.N. Hemanth Meenakshisundaram" smeenaks!ucsd!edu.
Originally committed as revision 25188 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-25 01:56:58 +00:00
Stefano Sabatini
75b67a8a99
Make the crop filters accept parametric expressions.
...
Originally committed as revision 25185 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-25 01:18:43 +00:00
Stefano Sabatini
2bc05d3547
Change the syntax of the crop filter from x:y:w:h to w:h:x:y.
...
Slightly more intuitive and required by a pending changes for making
the filter parametric.
Originally committed as revision 25184 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-24 23:14:01 +00:00