Clément Bœsch
d4005e22c3
deshake: misc style fixes.
14 years ago
Michael Niedermayer
b0f270fdef
deshake: move angles from stack to heap.
...
Fixes Ticket530
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
1e4da6031c
deshake: Allow specifying the filename for statistics and disable them by default.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
171a5b5d36
deshake: remove non const static
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Clément Bœsch
1912c215e0
doxygen: remove a few @file parameters.
...
It is not mandatory and prevents breakage on rename.
14 years ago
Clément Bœsch
65d5edcd2c
lavfi: remove align tabs in Makefile.
14 years ago
Clément Bœsch
136093236f
deshake: fix doxygen comments.
14 years ago
Michael Niedermayer
2cdb5e1986
deshake: nicer looking defaults
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
danielgtaylor
0cc2ed4a20
libavfilter: add deshake filter
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
danielgtaylor
7985381e23
libavfilter: image transform code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Stefano Sabatini
91492bd1c4
lavfi: remove usage of deprecated av_opt_set_defaults2() function
...
Prefer av_opt_set_defaults() instead.
14 years ago
Michael Niedermayer
8447703c16
vf_scale.c: propagate error code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Stefano Sabatini
1ee2014190
vf_unsharp: set default chroma size value to 5x5
...
The previous default value 0x0 was not good, since it is not even
valid.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Stefano Sabatini
998e8519ef
vf_unsharp: fix out-of-buffer read
...
In apply_unsharp(), when y is >= height, prevent out-of-buffer reading
from src, read from the last buffer line in src2 instead.
The check was implemented in the original unsharp libmpcodecs code and
lost in the port.
This also fixes output discrepancy between the two filters.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Michael Niedermayer
514c44c4fa
sink_buffer: fix typo
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Stefano Sabatini
f63ec3eee9
lavfi: fix FF_API_* definition macros
...
Fix ABI break occurred after their use.
Bug reported and patch provided by chinsou, fix trac issue #516 ,
+80cola for me.
14 years ago
Nicolas George
fb35f7d7e1
vf_boxblur: remove useless code.
...
This block was probably leftovers from code refactoring.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Stefano Sabatini
1c257dc32d
vf_unsharp: store hsub/vsub in the filter context
...
Also drop obfuscating CHROMA_WIDTH/HEIGHT macros.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Stefano Sabatini
e6d17ba426
vf_unsharp: adopt a more natural order of params in apply_unsharp()
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Stefano Sabatini
de7b58da3e
vf_unsharp: rename method "unsharpen" to "apply_unsharp"
...
More consistent with the original libmpcodecs code, and the name
"unsharpen" was confusing.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Michael Niedermayer
d33e0c6bc8
vf_scale: apply the same transform to the aspect during init that is applied per frame
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Stefano Sabatini
80de930a78
vf_pad: fix "vsub" variable value computation
...
It was shifting 2 rather than 1, +10l.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Stefano Sabatini
46b29397a6
vf_scale: add a "sar" variable
...
Also create a "dar" alias for the "a" variable, for avoiding possible
confusion between dar/sar.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Stefano Sabatini
0ec56d1144
lavfi: fix realloc size computation in avfilter_add_format()
...
Replace sizeof((*avff)->formats)
with sizeof(*(*avff)->formats)
as the size of the array element is given by the pointed element
rather than by its pointer.
In particular fix computation with the pending patch when
sizeof(int64_t) != sizeof(int64_t *).
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Stefano Sabatini
e63e4c99c9
vsrc_color: use internal timebase
...
Avoid timescale conversion, simplify.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Stefano Sabatini
57fa314090
lavfi: fix signature for avfilter_graph_parse() and avfilter_graph_config()
...
Require "void *" rather than "AVClass *" for the log context type.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Stefano Sabatini
64abd375ec
graphparser: prefer void * over AVClass * for log contexts
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Stefano Sabatini
59cef18c24
avfiltergraph: use meaningful error codes
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Stefano Sabatini
9921613e82
vf_drawtext: apply misc style fixes
14 years ago
Stefano Sabatini
80daa247d8
vf_drawtext: do not reset "n" variable to 0 in case the filter is reinited
14 years ago
Stefano Sabatini
dd91499b66
lavfi: add debug trace when processing events
14 years ago
Stefano Sabatini
e64de2ad1a
lavfi: document AVFilterCommand fields
14 years ago
Stefano Sabatini
87f5e79732
vf_drawtext: use ctx for expressing outlink and dtext in end_frame
...
(Very) slighly improve readability.
14 years ago
Stefano Sabatini
3de684206e
vf_drawtext: perform misc cosmetics changes to uninit
...
In particular:
* lexically sort strings freeing commands
* logically group freeing instructions
* prefer NULL over 0 when setting dtext->glyphs
14 years ago
Stefano Sabatini
275516f87c
vf_drawtext: set string defaults in the options array
...
Simplify.
14 years ago
Stefano Sabatini
482ce0ce4e
vf_drawtext: make x and y options parametric
...
Address trac issue #378 .
14 years ago
Stefano Sabatini
163854bca0
vf_drawtext: drop text wrapping feature
...
Or in other word, do not go to the next line when the text cannot be
rendered within the frame.
The rationale is that wrapping is hard to manage, as it depends on the
position of the text, thus making hard/impossible to compute the size
occupied by the rendered text, and makes the filter behavior
unpredictible with moving text (implemented in a pending patch).
Also the current wrapping code is very limited (for example it splits
words in the middle), and correctly handling wrapping requires much
more complexity (alignment, gravity, word parsing etc.), while
drawtext is meant to be only a thin wrapper around libfreetype, so
such advanced features don't belong here.
14 years ago
Stefano Sabatini
b87d4c2b9f
vf_drawtext: do not set limitations on fontsize
...
It may be needed to use values greater than 72, and in general greater
than an arbitrary big value. Let the user choose what's too big for
her.
14 years ago
Stefano Sabatini
3a87dce6bf
vf_drawtext: remove useless and misnamed intermediary "baseline" variable in draw_text()
14 years ago
Stefano Sabatini
500b3210da
vf_drawtext: fix background box coloring with RGB formats != RGBA
...
drawbox() expects a color specified in RGBA format, while the code was
providing a color with the components specified in the same order of
the input pixel format.
In particular, fix box coloring with AXXX RGB formats.
14 years ago
Stefano Sabatini
db56a7507e
vf_drawtext: prefer int over unsigned int
...
This avoids overflow errors when the considered x and y values are
negative, as required by the incoming patches.
14 years ago
Stefano Sabatini
be4e8908d2
vf_yadif: add support to yuva420p
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Stefano Sabatini
4703a7b50b
vf_yadif: correct documentation on the parity parameter
...
0 is top-field-first, 1 is bottom-field-first, not the other way
around.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Joakim Plate
5feb67f8a1
vf_yadif: copy buffer properties like aspect for second frame as well
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Michael Niedermayer
7491816010
libavfilter/libmpcodecs: add vf_stereo3d support
...
(code from mplayer see their svn for detailed authorship)
parameters must be integers as we do not have mplayers parser
also the stuff passed to it through non constant globals is not supported
this should be fixed in mplayer first.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
5aa18fed84
libmpcodecs: some hunks from mplayer HEAD
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Joakim Plate
ab09df9dea
vf_yadif: add an option to enable/disable deinterlacing based on src frame "interlaced" flag
...
Signed-off-by: Joakim Plate <elupus@ecce.se>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Stefano Sabatini
91aff2665d
vsrc_color: set output pos values to -1
...
-1 is more correct than 0, as the position in the file is undefined.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Stefano Sabatini
753890d0db
vsrc_color: add @file doxy
...
Also remove outdated reference to color in vf_pad.c.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Stefano Sabatini
deb58ab447
vsrc_buffer: remove duplicated file description
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago