| Branch: | Revision:

ffmpeg / libavfilter @ c61bfc11

# Date Author Comment
c61bfc11 04/25/2011 08:45 PM Stefano Sabatini

setdar: prefer "sar" over "par" in log info message

This is more consistent with the terminology adopted by the aspect
filter names.

Signed-off-by: Anton Khirnov <>

b04d1abb 04/25/2011 08:45 PM Mark Himsley

fade: fix draw_slice() check on fade->factor value

draw_slice() checks that the fade factor is < 65536 and only
calculates the fade if so. But the fade factor is clipped in
end_frame() by av_clip_uint16() to 65535, so the fade is calculated
for every frame. This patch alters the check so that it compares with...

9026b27e 04/25/2011 08:45 PM Mark Himsley

fade: make draw_slice() chroma check against planes 1 and 2

draw_slice() checks that planes 0 and 1 of AVFilterBufferRef's data
are not NULL before manipulating planes 1 and 2. This patch makes the
check against planes 1 and 2. More senseful and possibly more robust....

14e3b120 04/20/2011 03:38 PM Michael Niedermayer

Reduce picture size for yadif.

Signed-off-by: Anton Khirnov <>

139f3ac4 04/18/2011 06:19 PM Anton Khirnov

Bump major versions of all libraries.

They've accumulated enough new APIs and corresponding deprecated cruft.

This breaks API and ABI.

6001dad6 04/17/2011 05:31 PM Diego Biurrun

Replace more FFmpeg references by Libav.

aadfc9ee 04/03/2011 06:47 AM Brandon Mintern

lavfi: add fade filter

Port fade filter from libavfilter soc repo, with minor fixes by

Signed-off-by: Michael Niedermayer <>
Signed-off-by: Anton Khirnov <>

233ed6b3 04/03/2011 06:46 AM Michael Niedermayer

Change yadif to not use out of picture lines.

Fixes issue2272.

Signed-off-by: Michael Niedermayer <>
Signed-off-by: Anton Khirnov <>

2912e87a 03/19/2011 01:33 PM Mans Rullgard

Replace FFmpeg with Libav in licence headers

Signed-off-by: Mans Rullgard <>

a03be6e1 03/16/2011 08:54 PM Janne Grunau


29ba0911 03/16/2011 08:54 PM Janne Grunau


also update the multiple inclusion guards in config.h|mak

391a1327 03/05/2011 02:51 PM Mans Rullgard

yadif: add parens around macro parameters

This fixes compilation with preprocessors which do not add whitespace
around replaced tokens, resulting in invalid expressions like 1--1.

Signed-off-by: Mans Rullgard <>

c8c0189d 02/21/2011 02:09 PM Stefano Sabatini

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 <>

5ad06110 02/21/2011 02:09 PM Stefano Sabatini

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 <>

737eb597 02/15/2011 03:18 PM Reinhard Tartler

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...

70c275f8 02/14/2011 08:00 PM Stefano Sabatini

Make avfilter_config_links() propagate audio information of the source link if it is not explicitely set by the filter.

910b5b82 02/14/2011 01:07 PM Michael Niedermayer

Add sample_aspect_ratio to AVFilterLink

Signed-off-by: Mans Rullgard <>

9409c381 02/08/2011 12:20 PM Stefano Sabatini

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 <>

290849e2 02/04/2011 10:00 AM Clément Bœsch

Remove forgotten if (p) av_free(p) forms

Signed-off-by: Mans Rullgard <>

4359288c 02/04/2011 02:55 AM Stefano Sabatini

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 <>

e8e5dde7 02/04/2011 02:55 AM Stefano Sabatini

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...

5fce60c3 02/02/2011 12:12 PM Stefano Sabatini

Log debug information in filter_samples().

Signed-off-by: Mans Rullgard <>

dfd2a005 01/29/2011 10:55 PM Luca Barbato

Replace dprintf with av_dlog

dprintf clashes with POSIX.1-2008

3e5bc7ff 01/28/2011 04:27 PM Stefano Sabatini

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)....

eb7ccf8f 01/26/2011 03:33 PM Diego Elio Pettenò

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 <>

daed21a1 01/18/2011 08:48 PM Mans Rullgard

avfilter: remove stray semicolon

2c3589bf 01/18/2011 08:32 PM Janne Grunau

consolidate .gitignore patters into a single file

Signed-off-by: Janne Grunau <>

348b8218 01/17/2011 02:50 PM Janne Grunau

convert svn:ignore properties to .gitignore files

Signed-off-by: Janne Grunau <>

dccdd93e 01/16/2011 08:11 PM Stefano Sabatini

Make config_props() return AVERROR rather than 1 in case of
failed SWScaleContext initialization.

Fix issue2546.

Originally committed as revision 26395 to svn://

84cac86e 01/16/2011 03:20 AM Ronald S. Bultje

Fix fate breakage in r26382.

Originally committed as revision 26383 to svn://

ecea47a6 01/16/2011 02:47 AM Baptiste Coudurier

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://

b1779800 01/15/2011 08:43 PM Stefano Sabatini

Include libavcore/audioconvert.h, required for
av_get_channel_layout_string() in ff_dprintf_link.

Fix compilation.

Originally committed as revision 26380 to svn://

1d5b1885 01/15/2011 08:02 PM Stefano Sabatini


Originally committed as revision 26379 to svn://

7986e34d 01/15/2011 07:58 PM Stefano Sabatini

Make ff_dprintf_link() print meaningful information for audio links.

Originally committed as revision 26378 to svn://

a242ac36 01/15/2011 05:31 PM Stefano Sabatini

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://

6baf4afa 01/15/2011 05:21 PM Stefano Sabatini

Make avfilter_unref_buffer() accept a NULL parameter.

Originally committed as revision 26373 to svn://

a51c71bb 01/15/2011 12:32 AM Baptiste Coudurier

In yadif filter, default to top field first if interlacing is unknown

Originally committed as revision 26347 to svn://

3bf3fc0e 01/14/2011 08:58 PM Stefano Sabatini

Add the word "Parsed" in the parsed filter names.

Originally committed as revision 26334 to svn://

891aeeee 01/13/2011 01:00 AM Stefano Sabatini

Check linked pads media type mismatch in avfilter_link().

Originally committed as revision 26325 to svn://

caeb0c30 01/12/2011 09:23 PM Stefano Sabatini

Make avfilter_graph_free() do nothing if graph is NULL.

Originally committed as revision 26323 to svn://

8bca3493 01/12/2011 04:40 PM Stefano Sabatini

In the pad filter, log information about the input size.

Originally committed as revision 26320 to svn://

e3331706 01/11/2011 11:53 PM Michael Niedermayer

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://

36dc00de 01/11/2011 11:53 PM Michael Niedermayer

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://

69057b70 01/05/2011 01:14 AM Baptiste Coudurier

In pad filter, update new ref w/h in start_frame, fix chaining

Originally committed as revision 26217 to svn://

d34a77fb 01/05/2011 01:00 AM Baptiste Coudurier

In crop filter, update new ref w/h instead of old one, fix chaining

Originally committed as revision 26216 to svn://

b59dd1ea 12/28/2010 02:10 PM Stefano Sabatini

Fix style nits in avfiltergraph.c.

Originally committed as revision 26116 to svn://

b5670209 12/28/2010 01:01 AM Stefano Sabatini

Add copy filter, useful for testing the avfilter_draw_slice() copy

Originally committed as revision 26112 to svn://

28e5d45c 12/27/2010 06:16 PM Stefano Sabatini

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://

b4356e41 12/27/2010 06:04 PM Stefano Sabatini

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://

0ccabeea 12/27/2010 03:10 PM Michael Niedermayer

Support filters and decoders that dont support negative linesizes.
This patch is based on work by stefano.

Originally committed as revision 26108 to svn://

17fc9493 12/26/2010 11:27 AM Stefano Sabatini

Add erode libopencv filter.

Originally committed as revision 26097 to svn://

91cbb6ba 12/26/2010 11:27 AM Stefano Sabatini

Add dilate libopencv filter.

Originally committed as revision 26096 to svn://

cf69ad35 12/23/2010 05:24 PM Stefano Sabatini

Redesign the libopencv wrapper to make it more generic. Accept both

The same filter class will be used for managing all the libopencv
filtering functions.

Originally committed as revision 26079 to svn://

fee0deb6 12/19/2010 07:08 PM Stefano Sabatini

Fix avfilter_draw_slice() copy code with alpha planes.

Originally committed as revision 26060 to svn://

2609ad3e 12/19/2010 06:17 PM Stefano Sabatini

Revert commit r22596.

commit ab8610aa176c13b5e25a2d8770df28a14665e169
Author: koorogi &lt;koorogi@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b&gt;
Date: Thu Mar 18 23:13:04 2010 +0000
The vflip filter does not need to keep ownership of a picture reference....
69b8d83e 12/19/2010 01:02 PM Stefano Sabatini

Fix crash in gradfun:end_frame() when inpic == outpic, so it has to be
freed just once.

Originally committed as revision 26058 to svn://

d5f187fd 12/12/2010 05:59 PM Nolan L

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://

9241cd20 12/12/2010 01:39 PM Stefano Sabatini

Make avfilter_parse_graph() output a more meaningful message when an
invalid filterchain is detected.

Originally committed as revision 25936 to svn://

c61cdd0a 12/09/2010 05:27 PM Stefano Sabatini

libavcodec to libavcore.

Remove another compile-time dependancy of libavfilter on libavcodec.

Originally committed as revision 25923 to svn://

90f1f3bf 12/06/2010 12:14 AM Baptiste Coudurier

In yadif filter, declare asm constants directly to avoid dependency on libavcodec

Originally committed as revision 25895 to svn://

a4dc7aa5 12/04/2010 01:03 PM Baptiste Coudurier

Port libmpcodecs hqdn3d filter.

Patch by Baptiste with some fixes by me.

Originally committed as revision 25880 to svn://

4da12e3b 12/04/2010 12:56 PM Stefano Sabatini

Implement av_image_alloc() and use it in

Originally committed as revision 25878 to svn://

bf799f68 12/04/2010 05:50 AM Baptiste Coudurier

Declare sse2 and ssse2 function in yadif header

Originally committed as revision 25877 to svn://

1ef64490 12/04/2010 05:23 AM Baptiste Coudurier

yadif sse2/ssse3 optimizations

Originally committed as revision 25874 to svn://

037be76e 12/02/2010 08:12 PM Stefano Sabatini

Add avfilter_graph_create_filter().

Originally committed as revision 25862 to svn://

f51aeedd 11/30/2010 08:14 PM Stefano Sabatini

Extend the frei0r filter syntax.

Make it accept the frei0r=filtername=params as alternative to

Originally committed as revision 25856 to svn://

f8608dca 11/30/2010 08:14 PM Stefano Sabatini

Implement frei0r source.

Originally committed as revision 25855 to svn://

3fa77bde 11/28/2010 10:22 AM Stefano Sabatini

In libavfilter, use consistently "Copyright (c)" in the license

Originally committed as revision 25838 to svn://

2467997c 11/25/2010 11:51 PM Stefano Sabatini

Fix crash in uninit.

Originally committed as revision 25829 to svn://

9b195435 11/25/2010 09:22 PM Stefano Sabatini

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://

d38c340f 11/25/2010 08:50 PM Stefano Sabatini

Implement avfilter_get_video_buffer_ref_from_arrays().

Originally committed as revision 25827 to svn://

4723bc28 11/25/2010 08:50 PM Stefano Sabatini

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://

459b0661 11/24/2010 06:07 PM Stefano Sabatini

0.123l: remove unused arguments in av_log(), fix warning.

Originally committed as revision 25820 to svn://

6fd2b8bd 11/24/2010 02:38 AM Baptiste Coudurier

In aspect filter, fix display for input resolution

Originally committed as revision 25819 to svn://

3ff99953 11/24/2010 01:32 AM Baptiste Coudurier

In crop filter, reference picref after updating w/h, fix issue #2377

Originally committed as revision 25818 to svn://

16d14d64 11/23/2010 09:08 PM Stefano Sabatini

Add informative log message in the crop filter.

Originally committed as revision 25817 to svn://

b7be04f3 11/22/2010 10:03 PM Stefano Sabatini


Originally committed as revision 25803 to svn://

7de19a32 11/22/2010 10:03 PM Stefano Sabatini

Implement robust parsing in aspect filters.

Originally committed as revision 25802 to svn://

eee0ef5e 11/22/2010 10:03 PM Stefano Sabatini

Add informative log messages to the set aspect filters.

Originally committed as revision 25801 to svn://

2fb21bf4 11/22/2010 10:03 PM Stefano Sabatini

Give more explicit/less confusing names to the filters dealing with
aspect ratio.

Originally committed as revision 25800 to svn://

902d49ee 11/22/2010 08:42 PM Baptiste Coudurier

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://

63e8d976 11/21/2010 08:06 PM Stefano Sabatini

Use the new libavcore audio channel API.

This also allows to remove a linking dependency of libavfilter on

Originally committed as revision 25789 to svn://

58935b25 11/21/2010 06:39 PM Stefano Sabatini

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://

9abf3441 11/18/2010 08:37 PM Stefano Sabatini

Log error message in case of invalid parsing.

Originally committed as revision 25765 to svn://

bdb47f3a 11/18/2010 08:37 PM Stefano Sabatini

Fix style: if( -> if (.

Originally committed as revision 25764 to svn://

cef4b74b 11/18/2010 08:37 PM Stefano Sabatini

Remove redundant information in header.

Originally committed as revision 25763 to svn://

0985e1a3 11/17/2010 10:58 PM Aurelien Jacobs

move the av_parse_color() function from libavfilter to libavcore

Originally committed as revision 25761 to svn://

c71e9640 11/17/2010 01:03 AM Baptiste Coudurier

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://

f6c182a0 11/13/2010 02:37 PM Stefano Sabatini

Fix frei0r filter after av_parse_color() syntax change.

Originally committed as revision 25748 to svn://

2722dd6e 11/13/2010 01:55 PM Aurelien Jacobs

improve av_parse_color() to allow for non-null terminated color string

Originally committed as revision 25744 to svn://

521b8607 11/13/2010 01:49 PM Aurelien Jacobs

improve av_parse_color() to support html formatting

Originally committed as revision 25743 to svn://

5aaea022 11/13/2010 09:51 AM Stefano Sabatini

Make avfiltergraph.h public.

Originally committed as revision 25740 to svn://

906eaab4 11/13/2010 09:20 AM Stefano Sabatini

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://

4fcbb2af 11/13/2010 12:21 AM Stefano Sabatini

Prefix with "ff_" the functions:

and move their declaration to internal.h. These functions are never
used in application code, so it is better to consider them internal...

5d6e4c16 11/12/2010 11:04 AM Stefano Sabatini

Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enum
SampleFormat with AVSampleFormat.

Originally committed as revision 25730 to svn://

668673f1 11/11/2010 10:41 PM Stefano Sabatini

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://

cb4fe492 11/11/2010 09:29 PM Aurelien Jacobs

remove declaration inside for(), i is already declared

Originally committed as revision 25722 to svn://

6ed3bace 11/10/2010 11:37 PM Aurelien Jacobs

drop support for base-10 encoded alpha component in av_parse_color()

Originally committed as revision 25719 to svn://

d2af7205 11/08/2010 02:06 PM Stefano Sabatini

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

Originally committed as revision 25708 to svn://

24de0edb 11/08/2010 12:32 PM Stefano Sabatini

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://