Statistics
| Branch: | Revision:

ffmpeg / libavfilter @ e74bf3f3

# Date Author Comment
e74bf3f3 05/07/2011 08:18 AM Michael Niedermayer

drawtext: simplify chroma blend and fix chroma alpha.

Signed-off-by: Anton Khirnov <>

a5b64584 05/07/2011 08:17 AM Stefano Sabatini

lavfi: 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
  • fix minor errors and typos in the filter description...
0699dbb8 05/04/2011 02:35 AM Ronald S. Bultje

avfilter: check malloc return values.

f8af93ab 05/04/2011 02:29 AM Ronald S. Bultje

avfilter: don't av_malloc(0).

a3b7dabb 04/29/2011 01:00 PM Diego Biurrun

vf_fieldorder: Replace FFmpeg by Libav in license boilerplate.

c90626b2 04/28/2011 05:25 AM Peter Ross

hflip: make the filter accept PIX_FMT_BGR48LE and PIX_FMT_BGR48BE pixel formats

Signed-off-by: Anton Khirnov <>

a1f4d075 04/28/2011 05:25 AM Peter Ross

crop: make the filter accept PIX_FMT_BGR48LE and PIX_FMT_BGR48BE pixel formats

Signed-off-by: Anton Khirnov <>

bebe72f4 04/26/2011 06:38 AM Stefano Sabatini

lavc: deprecate FF_*_TYPE macros in favor of AV_PICTURE_TYPE_* enums

Also deprecate av_get_pict_type_char() in favor of
av_get_picture_type_char().

The new enum and av_get_picture_type_char() are defined in libavutil.
This allows the use in libavfilter without the need to link against...

73a4f7c2 04/26/2011 05:43 AM Stefano Sabatini

pad: make the filter parametric

Signed-off-by: Stefano Sabatini <>
Signed-off-by: Anton Khirnov <>

0bbb28c7 04/26/2011 05:43 AM royger

vsrc_movie: add key_frame and pict_type.

Signed-off-by: Roger Pau Monné <>
Signed-off-by: Michael Niedermayer <>
Signed-off-by: Anton Khirnov <>

5eb901cf 04/26/2011 05:42 AM Stefano Sabatini

vsrc_movie: fix leak in request_frame()

Also set movie->picref to NULL, in order to avoid a crash in uninit()
when movie->picref is unreffed again and it was already freed.

Signed-off-by: Stefano Sabatini <>
Signed-off-by: Anton Khirnov <>

10d39405 04/26/2011 05:42 AM Roger Pau Monné

lavfi: add key_frame and pict_type to AVFilterBufferRefVideo.

Signed-off-by: Anton Khirnov <>

7a11c82f 04/26/2011 05:38 AM Michael Niedermayer

vsrc_buffer: add sample_aspect_ratio fields to arguments.

This fixes aspect handling in ffmpeg.

This is based on a patch by Baptiste.

Signed-off-by: Anton Khirnov <>

2f84bb42 04/26/2011 05:37 AM Mark Himsley

lavfi: add fieldorder filter

Signed-off-by: Stefano Sabatini <>
Signed-off-by: Anton Khirnov <>

68e23c08 04/26/2011 05:29 AM Stefano Sabatini

scale: make the filter parametric

Make the filter accept parametric expressions for the output video
size.

Signed-off-by: Stefano Sabatini <>
Signed-off-by: Anton Khirnov <>

b137bf7d 04/26/2011 05:21 AM James Darnley

yadif: support 16-bit

Fixes by Michael Niedermayer <>

Signed-off-by: Anton Khirnov <>

88312a4d 04/26/2011 05:15 AM James Darnley

yadif: support more than yuv420p.

and correctly support grey8

Signed-off-by: Anton Khirnov <>

d85e18e6 04/26/2011 05:15 AM Michael Niedermayer

yadif: Fix assert() failure

Signed-off-by: Anton Khirnov <>

f80b381b 04/25/2011 08:45 PM Stefano Sabatini

graphparser: add a NULL check on the argument passed to strstr

Fix crash in create_filter() which occurrs if a scale filter with no
args is provided.

Signed-off-by: Anton Khirnov <>

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

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

use LIBAV_LICENSE and LIBAV_VERSION instead of FFMPEG_*

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

replace FFMPEG with LIBAV in FFMPEG_CONFIGURATION

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://svn.ffmpeg.org/ffmpeg/trunk

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

Fix fate breakage in r26382.

Originally committed as revision 26383 to svn://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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

Reindent.

Originally committed as revision 26379 to svn://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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

Make avfilter_unref_buffer() accept a NULL parameter.

Originally committed as revision 26373 to svn://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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

Fix style nits in avfiltergraph.c.

Originally committed as revision 26116 to svn://svn.ffmpeg.org/ffmpeg/trunk

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

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

Originally committed as revision 26112 to svn://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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

Add erode libopencv filter.

Originally committed as revision 26097 to svn://svn.ffmpeg.org/ffmpeg/trunk

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

Add dilate libopencv filter.

Originally committed as revision 26096 to svn://svn.ffmpeg.org/ffmpeg/trunk

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

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

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://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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

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

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://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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

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

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

Declare sse2 and ssse2 function in yadif header

Originally committed as revision 25877 to svn://svn.ffmpeg.org/ffmpeg/trunk

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

yadif sse2/ssse3 optimizations

Originally committed as revision 25874 to svn://svn.ffmpeg.org/ffmpeg/trunk

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

Add avfilter_graph_create_filter().

Originally committed as revision 25862 to svn://svn.ffmpeg.org/ffmpeg/trunk

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

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

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

Implement frei0r source.

Originally committed as revision 25855 to svn://svn.ffmpeg.org/ffmpeg/trunk

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

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

Originally committed as revision 25838 to svn://svn.ffmpeg.org/ffmpeg/trunk

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

Fix crash in uninit.

Originally committed as revision 25829 to svn://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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

Implement avfilter_get_video_buffer_ref_from_arrays().

Originally committed as revision 25827 to svn://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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

In aspect filter, fix display for input resolution

Originally committed as revision 25819 to svn://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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

Add informative log message in the crop filter.

Originally committed as revision 25817 to svn://svn.ffmpeg.org/ffmpeg/trunk

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

Reindent.

Originally committed as revision 25803 to svn://svn.ffmpeg.org/ffmpeg/trunk

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

Implement robust parsing in aspect filters.

Originally committed as revision 25802 to svn://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk