Carl Eugen Hoyos
6e90d9e206
vf_deshake: Reorder constant arguments in an if() statement.
Fixes compilation with clang on netbsd with --disable-optimizations.
Tested-by: Paul B Mahol
12 years ago
highgod0401
9079359141
deshake opencl based on comments on 20130402 3rd
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Clément Bœsch
7edda1a935
lavfi/deshake: use standard options parsing.
12 years ago
Clément Bœsch
96e4b00d62
lavfi: remove remaining forgotten min/rej perms.
12 years ago
Clément Bœsch
34d0ea5247
lavfi/deshake: support named options.
12 years ago
Michael Niedermayer
3cd137bfea
vf_deshake: fix strict aliassing errors
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Clément Bœsch
a612e86ea6
lavfi/deshake: remove usage of link->cur_buf.
12 years ago
Paul B Mahol
185d1f3bfc
lavfi: declare arrays that never change as static const
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Clément Bœsch
eaa47e7454
lavfi/deshake: small align prettifying.
12 years ago
Clément Bœsch
03778575b9
lavfi/deshake: switch inverted comments.
12 years ago
Clément Bœsch
0678641b7c
lavfi/deshake: remove unecessary check before unref.
12 years ago
Clément Bœsch
e7b0e83e96
lavfi/deshake: switch to filter_frame.
12 years ago
Clément Bœsch
2d9d444051
lavfi: convert remaining input/output list compound literals to named objects.
This is following 568c70e79e
.
12 years ago
Hendrik Leppkes
79393a8363
Replace usage of the deprecated av_pix_fmt_descriptors array with av_pix_fmt_desc_get
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Nicolas George
84923555bb
vf_deshake: fix permissions.
13 years ago
Nicolas George
ddcb99bb51
vf_deshake: set cur_buf to NULL.
Fix a segfault.
13 years ago
Stefano Sabatini
fda968aa8f
lavfi: decrease logging level of message showing initial parameters
Reduce log clutter, consistent with 1a49a169eb
.
13 years ago
Stefano Sabatini
1bb30d0295
lavfi/deshake: fix crash in uninit()
Add NULL check on avctx before calling avcodec_close() on it.
Fix trac ticket #1472 .
13 years ago
Paul B Mahol
c9e183b490
lavfi: update some deprecated functions
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Michael Niedermayer
f54e06feb3
vf_deshake: try to fix memleak
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Ray Simard
9ec39937f9
deshake: variable used uninitialized
Sometimes the scan finds nothing that qualifies for addition to
the array and pos is zero after the loops. The code forces pos to
1 and the array is then processed as if it had one valid element in it,
producing some amusing but not very useful results.
I don't see the rationale for this. If pos is zero coming out of the
loops, the only appropriate thing to do is set t->angle to zero. The
attached patch does that. It's worked properly in several tests so far.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Ray Simard
369befb41e
vf_deshake: remove unused variable totalangles
Variable totalangles was created and assigned, but never used.
Signed-off-by: Ray Simard <rhs.ffmpeg@sylvan-glade.com>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
13 years ago
Ray Simard
7f6004fc74
vf_deshake: zero-init Transform structs in end_frame()
Initialize Transform structs t and orig to zero.
Signed-off-by: Ray Simard <rhs.ffmpeg@sylvan-glade.com>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
13 years ago
Reimar Döffinger
7cbb32e461
Use an int MotionVector for find_block_motion.
Using the double variant causes several pointless conversions between
double and int.
Worse, one of the conversions is in an inner loop together with a
function using MMX, resulting in undefined behaviour.
Based on debugging by Ray Simard.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Tested-by: Ray Simard <rhs.ffmpeg@sylvan-glade.com>
13 years ago
Reimar Döffinger
5af7daabc4
Mark AVFilterPad[] compound literals as const.
GCC 4.6.2 at least still seems to fail to put them in .rodata though,
see also http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37303
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Paul Flinders
9ef714328c
deshake: limit deshake to specific area to search for motion vectors.
13 years ago
Michael Niedermayer
5ed20cfeaf
vf_deshake: Fix cast discards qualifiers from pointer target type warning.
And simplify the code in the process.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
073effb6e4
deshake: simplify filename check.
13 years ago
Clément Bœsch
d4005e22c3
deshake: misc style fixes.
13 years ago
Michael Niedermayer
b0f270fdef
deshake: move angles from stack to heap.
Fixes Ticket530
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 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>
13 years ago
Michael Niedermayer
171a5b5d36
deshake: remove non const static
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
1912c215e0
doxygen: remove a few @file parameters.
It is not mandatory and prevents breakage on rename.
13 years ago
Clément Bœsch
136093236f
deshake: fix doxygen comments.
13 years ago
Michael Niedermayer
2cdb5e1986
deshake: nicer looking defaults
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
danielgtaylor
0cc2ed4a20
libavfilter: add deshake filter
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago