Mans Rullgard
e65ab9d94f
Remove unused variables
2011-06-02 20:06:00 +01:00
Diego Biurrun
b0a4e5f9e7
Employ correct printf format specifiers, mostly in debug output.
2011-05-31 23:45:14 +02:00
Diego Biurrun
5ac4952a58
vf_drawtext: Replace FFmpeg by Libav in license boilerplate.
2011-05-31 21:15:49 +02:00
Diego Biurrun
d6e0729b24
avfilter: Surround function only used in debug mode by appropriate #ifdef.
...
This fixes the warning:
libavfilter/avfilter.c:219: warning: ‘ff_get_ref_perms_string’ defined but not used
2011-05-29 13:43:03 +02:00
Diego Biurrun
2146f4928a
vf_crop: Replace #ifdef DEBUG + av_log() by av_dlog().
2011-05-29 13:43:02 +02:00
Stefano Sabatini and Anton Khirnov
75abcdb391
vsrc_buffer.h: add file doxy
...
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-05-24 14:22:51 +02:00
Stefano Sabatini and Anton Khirnov
f7053dc41a
vsrc_buffer: tweak error message in init()
...
Change:
Expected 7 arguments, but only %d found in '%s'\n
to:
Expected 7 arguments, but %d found in '%s'\n
as the user may provide more than 7 arguments, in that case the error
is not misleading.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-05-24 14:21:20 +02:00
Diego Biurrun
153382e1b6
multiple inclusion guard cleanup
...
Add missing multiple inclusion guards; clean up #endif comments;
add missing library prefixes; keep guard names consistent.
2011-05-21 13:48:10 +02:00
Stefano Sabatini and Alex Converse
5dc65a3d03
lavfi: print key-frame and picture type information in ff_dlog_ref()
...
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it >
(cherry picked from commit f7bdffb09d )
2011-05-16 14:13:03 -07:00
Anton Khirnov
b66752790a
AVOptions: make default_val a union, as proposed in AVOption2.
...
This breaks API and ABI.
2011-05-10 20:22:06 +02:00
Michael Niedermayer and Anton Khirnov
c5420f100f
drawtext: add shadow support.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-05-07 10:21:56 +02:00
Michael Niedermayer and Anton Khirnov
e73127a443
drawtext: factor draw_glyphs.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-05-07 10:21:56 +02:00
Michael Niedermayer and Anton Khirnov
a5b81c317e
drawtext: fix and optimize yuv blend.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-05-07 10:21:53 +02:00
Michael Niedermayer and Anton Khirnov
3953a88014
drawtext: get rid of divisions in the inner loop.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-05-07 10:18:16 +02:00
Michael Niedermayer and Anton Khirnov
e74bf3f368
drawtext: simplify chroma blend and fix chroma alpha.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-05-07 10:18:16 +02:00
Stefano Sabatini and Anton Khirnov
a5b64584f3
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
* extend/clarify examples in the filter description
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-05-07 10:17:40 +02:00
Ronald S. Bultje
0699dbb847
avfilter: check malloc return values.
2011-05-03 22:35:23 -04:00
Ronald S. Bultje
f8af93ab99
avfilter: don't av_malloc(0).
2011-05-03 22:29:13 -04:00
Diego Biurrun
a3b7dabb5b
vf_fieldorder: Replace FFmpeg by Libav in license boilerplate.
2011-04-29 15:00:08 +02:00
Peter Ross and Anton Khirnov
c90626b2ea
hflip: make the filter accept PIX_FMT_BGR48LE and PIX_FMT_BGR48BE pixel formats
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-04-28 07:25:27 +02:00
Peter Ross and Anton Khirnov
a1f4d07563
crop: make the filter accept PIX_FMT_BGR48LE and PIX_FMT_BGR48BE pixel formats
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-04-28 07:25:27 +02:00
Stefano Sabatini and Anton Khirnov
bebe72f4a0
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
libavcodec.
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-04-26 08:38:57 +02:00
Stefano Sabatini and Anton Khirnov
73a4f7c21b
pad: make the filter parametric
...
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-04-26 07:43:34 +02:00
royger and Anton Khirnov
0bbb28c75b
vsrc_movie: add key_frame and pict_type.
...
Signed-off-by: Roger Pau Monné <roger.pau@entel.upc.edu >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-04-26 07:43:16 +02:00
Stefano Sabatini and Anton Khirnov
5eb901cfec
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 <stefano.sabatini-lala@poste.it >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-04-26 07:42:56 +02:00
Roger Pau Monné and Anton Khirnov
10d39405fa
lavfi: add key_frame and pict_type to AVFilterBufferRefVideo.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-04-26 07:42:13 +02:00
Michael Niedermayer and Anton Khirnov
7a11c82fb7
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 <anton@khirnov.net >
2011-04-26 07:38:24 +02:00
Mark Himsley and Anton Khirnov
2f84bb4236
lavfi: add fieldorder filter
...
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-04-26 07:37:41 +02:00
Stefano Sabatini and Anton Khirnov
68e23c083a
scale: make the filter parametric
...
Make the filter accept parametric expressions for the output video
size.
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-04-26 07:29:29 +02:00
James Darnley and Anton Khirnov
b137bf7df3
yadif: support 16-bit
...
Fixes by Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-04-26 07:21:40 +02:00
James Darnley and Anton Khirnov
88312a4de3
yadif: support more than yuv420p.
...
and correctly support grey8
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-04-26 07:15:54 +02:00
Michael Niedermayer and Anton Khirnov
d85e18e6e3
yadif: Fix assert() failure
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-04-26 07:15:10 +02:00
Stefano Sabatini and Anton Khirnov
f80b381bfd
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 <anton@khirnov.net >
2011-04-25 22:45:44 +02:00
Stefano Sabatini and Anton Khirnov
c61bfc113a
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 <anton@khirnov.net >
2011-04-25 22:45:44 +02:00
Mark Himsley and Anton Khirnov
b04d1abb40
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
< 65535 (UINT16_MAX).
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-04-25 22:45:44 +02:00
Mark Himsley and Anton Khirnov
9026b27e84
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.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-04-25 22:45:44 +02:00
Michael Niedermayer and Anton Khirnov
14e3b120ad
Reduce picture size for yadif.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-04-20 17:38:19 +02:00
Anton Khirnov
139f3ac42d
Bump major versions of all libraries.
...
They've accumulated enough new APIs and corresponding deprecated cruft.
This breaks API and ABI.
2011-04-18 20:19:47 +02:00
Diego Biurrun
6001dad6e2
Replace more FFmpeg references by Libav.
2011-04-17 19:31:49 +02:00
Brandon Mintern and Anton Khirnov
aadfc9ee74
lavfi: add fade filter
...
Port fade filter from libavfilter soc repo, with minor fixes by
Stefano.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-04-03 08:47:16 +02:00
Michael Niedermayer and Anton Khirnov
233ed6b314
Change yadif to not use out of picture lines.
...
Fixes issue2272.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-04-03 08:46:19 +02:00
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-03-19 13:33:20 +00:00
Janne Grunau and Janne Grunau
a03be6e1ba
use LIBAV_LICENSE and LIBAV_VERSION instead of FFMPEG_*
2011-03-16 21:54:39 +01:00
Janne Grunau and Janne Grunau
29ba091136
replace FFMPEG with LIBAV in FFMPEG_CONFIGURATION
...
also update the multiple inclusion guards in config.h|mak
2011-03-16 21:54:39 +01:00
Mans Rullgard
391a1327bd
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 <mans@mansr.com >
2011-03-05 14:51:03 +00:00
Stefano Sabatini and Mans Rullgard
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 and Mans Rullgard
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
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 and Luca Barbato
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 and Mans Rullgard
910b5b82e8
Add sample_aspect_ratio to AVFilterLink
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-02-14 13:07:21 +00:00