summaryrefslogtreecommitdiff
path: root/libavfilter/vf_deshake.c
Commit message (Collapse)AuthorAge
* deshake: variable used uninitializedRay Simard2012-01-21
| | | | | | | | | | | | | 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>
* vf_deshake: remove unused variable totalanglesRay Simard2012-01-13
| | | | | | | 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>
* vf_deshake: zero-init Transform structs in end_frame()Ray Simard2012-01-13
| | | | | | | 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>
* Use an int MotionVector for find_block_motion.Reimar Döffinger2012-01-12
| | | | | | | | | | | 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>
* Mark AVFilterPad[] compound literals as const.Reimar Döffinger2011-11-06
| | | | | | | 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>
* deshake: limit deshake to specific area to search for motion vectors.Paul Flinders2011-10-20
|
* vf_deshake: Fix cast discards qualifiers from pointer target type warning.Michael Niedermayer2011-10-19
| | | | | | And simplify the code in the process. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* deshake: simplify filename check.Clément Bœsch2011-10-04
|
* deshake: misc style fixes.Clément Bœsch2011-10-04
|
* deshake: move angles from stack to heap.Michael Niedermayer2011-10-04
| | | | | | Fixes Ticket530 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* deshake: Allow specifying the filename for statistics and disable them by ↵Michael Niedermayer2011-10-04
| | | | | | default. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* deshake: remove non const staticMichael Niedermayer2011-10-04
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* doxygen: remove a few @file parameters.Clément Bœsch2011-10-04
| | | | It is not mandatory and prevents breakage on rename.
* deshake: fix doxygen comments.Clément Bœsch2011-10-04
|
* deshake: nicer looking defaultsMichael Niedermayer2011-10-04
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* libavfilter: add deshake filterdanielgtaylor2011-10-04
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>