summaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_deshake.c
Commit message (Collapse)AuthorAgeFilesLines
* avfilter/vf_deshake: dont pass the wrong context into the SAD functionsMichael Niedermayer2014-05-031-1/+1
| | | | | | | This fixes pointer type warnings The context should have been unused so this should not fix any real bug Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avfilter/vf_deshake: fix loss of precission with odd resolutionsMichael Niedermayer2014-04-161-2/+2
| | | | | | Fixes part of Ticket3466 Found-by: Andrey_Karpov / PVS-Studio Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-10-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: lavfi: do not export the filters from shared objects Conflicts: libavfilter/af_amix.c libavfilter/af_anull.c libavfilter/asrc_anullsrc.c libavfilter/f_select.c libavfilter/f_settb.c libavfilter/split.c libavfilter/src_movie.c libavfilter/vf_aspect.c libavfilter/vf_blackframe.c libavfilter/vf_colorbalance.c libavfilter/vf_copy.c libavfilter/vf_crop.c libavfilter/vf_cropdetect.c libavfilter/vf_drawbox.c libavfilter/vf_format.c libavfilter/vf_framestep.c libavfilter/vf_frei0r.c libavfilter/vf_hflip.c libavfilter/vf_libopencv.c libavfilter/vf_lut.c libavfilter/vf_null.c libavfilter/vf_overlay.c libavfilter/vf_scale.c libavfilter/vf_transpose.c libavfilter/vf_unsharp.c libavfilter/vf_vflip.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* avfilter/vf_deshake: fix block_contrast() lower brightness valueMichael Niedermayer2013-10-071-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avfilter/deshakeLenny Wang2013-10-071-1/+1
| | | | | | The old row index looks weird and wrong to me Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avfilter/vf_deshake: check rxMichael Niedermayer2013-05-181-0/+5
| | | | | | | | | | Fixes crash on SSE2 Fixes Ticket2443 Note, its possible to restructure the code to avoid the 16pixel limitation, and such change is welcome! Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* deshake: fix off by 2 errorMichael Niedermayer2013-04-151-2/+2
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* vf_deshake: Fix crash with r*=64Michael Niedermayer2013-04-151-3/+5
| | | | | | | | | Replace literal numbers by named R_MAX and correct their value Fixes half of Ticket2443 Based on patch by: João Bernardo <jbvsmo@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Add avpriv_dsputil_init() and use it in lavfi where relevant.Clément Bœsch2013-04-141-1/+1
| | | | | | | | dsputil_init() is deprecated and not meant to be exported. ff_dsputil_init() is internal to libavcodec and thus can not be used. avpriv_dsputil_init() is the version shared between libraries. This commit fixes 3 unjustified libavfilter deprecated warnings.
* lavfi: remove now unused args parameter from AVFilter.init and init_opaqueMichael Niedermayer2013-04-121-1/+1
| | | | | | | | | This is mostly automated global search and replace The deprecated aconvert filter is disabled, if it still has users it should be updated Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavfi/deshake: switch to an AVOptions-based system.Clément Bœsch2013-04-111-7/+0
|
* vf_deshake: Reorder constant arguments in an if() statement.Carl Eugen Hoyos2013-04-031-3/+3
| | | | | | Fixes compilation with clang on netbsd with --disable-optimizations. Tested-by: Paul B Mahol
* deshake opencl based on comments on 20130402 3rdhighgod04012013-04-021-57/+60
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavfi/deshake: use standard options parsing.Clément Bœsch2013-03-241-15/+7
|
* lavfi: remove remaining forgotten min/rej perms.Clément Bœsch2013-03-101-1/+0
|
* Merge commit '7e350379f87e7f74420b4813170fe808e2313911'Michael Niedermayer2013-03-101-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '7e350379f87e7f74420b4813170fe808e2313911': lavfi: switch to AVFrame. Conflicts: doc/filters.texi libavfilter/af_ashowinfo.c libavfilter/audio.c libavfilter/avfilter.c libavfilter/avfilter.h libavfilter/buffersink.c libavfilter/buffersrc.c libavfilter/buffersrc.h libavfilter/f_select.c libavfilter/f_setpts.c libavfilter/fifo.c libavfilter/split.c libavfilter/src_movie.c libavfilter/version.h libavfilter/vf_aspect.c libavfilter/vf_bbox.c libavfilter/vf_blackframe.c libavfilter/vf_delogo.c libavfilter/vf_drawbox.c libavfilter/vf_drawtext.c libavfilter/vf_fade.c libavfilter/vf_fieldorder.c libavfilter/vf_fps.c libavfilter/vf_frei0r.c libavfilter/vf_gradfun.c libavfilter/vf_hqdn3d.c libavfilter/vf_lut.c libavfilter/vf_overlay.c libavfilter/vf_pad.c libavfilter/vf_scale.c libavfilter/vf_showinfo.c libavfilter/vf_transpose.c libavfilter/vf_vflip.c libavfilter/vf_yadif.c libavfilter/video.c libavfilter/vsrc_testsrc.c libavfilter/yadif.h Following are notes about the merge authorship and various technical details. Michael Niedermayer: * Main merge operation, notably avfilter.c and video.c * Switch to AVFrame: - afade - anullsrc - apad - aresample - blackframe - deshake - idet - il - mandelbrot - mptestsrc - noise - setfield - smartblur - tinterlace * various merge changes and fixes in: - ashowinfo - blackdetect - field - fps - select - testsrc - yadif Nicolas George: * Switch to AVFrame: - make rawdec work with refcounted frames. Adapted from commit 759001c534287a96dc96d1e274665feb7059145d by Anton Khirnov. Also, fix the use of || instead of | in a flags check. - make buffer sink and src, audio and video work all together Clément Bœsch: * Switch to AVFrame: - aevalsrc - alphaextract - blend - cellauto - colormatrix - concat - earwax - ebur128 - edgedetect - geq - histeq - histogram - hue - kerndeint - life - movie - mp (with the help of Michael) - overlay - pad - pan - pp - pp - removelogo - sendcmd - showspectrum - showwaves - silencedetect - stereo3d - subtitles - super2xsai - swapuv - thumbnail - tile Hendrik Leppkes: * Switch to AVFrame: - aconvert - amerge - asetnsamples - atempo - biquads Matthieu Bouron: * Switch to AVFrame - alphamerge - decimate - volumedetect Stefano Sabatini: * Switch to AVFrame: - astreamsync - flite - framestep Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Clément Bœsch <ubitux@gmail.com> Signed-off-by: Hendrik Leppkes <h.leppkes@gmail.com> Signed-off-by: Matthieu Bouron <matthieu.bouron@gmail.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com> Merged-by: Michael Niedermayer <michaelni@gmx.at>
* lavfi/deshake: support named options.Clément Bœsch2013-03-051-33/+51
|
* vf_deshake: fix strict aliassing errorsMichael Niedermayer2012-12-291-4/+4
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavfi/deshake: remove usage of link->cur_buf.Clément Bœsch2012-12-261-1/+0
|
* lavfi: declare arrays that never change as static constPaul B Mahol2012-12-211-1/+1
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* lavfi/deshake: small align prettifying.Clément Bœsch2012-12-061-7/+5
|
* lavfi/deshake: switch inverted comments.Clément Bœsch2012-12-061-3/+3
|
* lavfi/deshake: remove unecessary check before unref.Clément Bœsch2012-12-061-2/+1
|
* lavfi/deshake: switch to filter_frame.Clément Bœsch2012-12-061-13/+13
|
* lavfi: convert remaining input/output list compound literals to named objects.Clément Bœsch2012-11-281-12/+22
| | | | This is following 568c70e79ee267426c15ef4603c69703f6a5884a.
* Replace usage of the deprecated av_pix_fmt_descriptors array with ↵Hendrik Leppkes2012-10-201-2/+2
| | | | | | av_pix_fmt_desc_get Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit '716d413c13981da15323c7a3821860536eefdbbb'Michael Niedermayer2012-10-081-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '716d413c13981da15323c7a3821860536eefdbbb': Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat Conflicts: doc/examples/muxing.c ffmpeg.h ffmpeg_filter.c ffmpeg_opt.c ffplay.c ffprobe.c libavcodec/8bps.c libavcodec/aasc.c libavcodec/aura.c libavcodec/avcodec.h libavcodec/avs.c libavcodec/bfi.c libavcodec/bmp.c libavcodec/bmpenc.c libavcodec/c93.c libavcodec/cscd.c libavcodec/cyuv.c libavcodec/dpx.c libavcodec/dpxenc.c libavcodec/eatgv.c libavcodec/escape124.c libavcodec/ffv1.c libavcodec/flashsv.c libavcodec/fraps.c libavcodec/h264.c libavcodec/huffyuv.c libavcodec/iff.c libavcodec/imgconvert.c libavcodec/indeo3.c libavcodec/kmvc.c libavcodec/libopenjpegdec.c libavcodec/libopenjpegenc.c libavcodec/libx264.c libavcodec/ljpegenc.c libavcodec/mjpegdec.c libavcodec/mjpegenc.c libavcodec/motionpixels.c libavcodec/mpeg12.c libavcodec/mpeg12enc.c libavcodec/mpeg4videodec.c libavcodec/mpegvideo_enc.c libavcodec/pamenc.c libavcodec/pcxenc.c libavcodec/pgssubdec.c libavcodec/pngdec.c libavcodec/pngenc.c libavcodec/pnm.c libavcodec/pnmdec.c libavcodec/pnmenc.c libavcodec/ptx.c libavcodec/qdrw.c libavcodec/qpeg.c libavcodec/qtrleenc.c libavcodec/raw.c libavcodec/rawdec.c libavcodec/rl2.c libavcodec/sgidec.c libavcodec/sgienc.c libavcodec/snowdec.c libavcodec/snowenc.c libavcodec/sunrast.c libavcodec/targa.c libavcodec/targaenc.c libavcodec/tiff.c libavcodec/tiffenc.c libavcodec/tmv.c libavcodec/truemotion2.c libavcodec/utils.c libavcodec/vb.c libavcodec/vp3.c libavcodec/wnv1.c libavcodec/xl.c libavcodec/xwddec.c libavcodec/xwdenc.c libavcodec/yop.c libavdevice/v4l2.c libavdevice/x11grab.c libavfilter/avfilter.c libavfilter/avfilter.h libavfilter/buffersrc.c libavfilter/drawutils.c libavfilter/formats.c libavfilter/src_movie.c libavfilter/vf_ass.c libavfilter/vf_drawtext.c libavfilter/vf_fade.c libavfilter/vf_format.c libavfilter/vf_hflip.c libavfilter/vf_lut.c libavfilter/vf_overlay.c libavfilter/vf_pad.c libavfilter/vf_scale.c libavfilter/vf_transpose.c libavfilter/vf_yadif.c libavfilter/video.c libavfilter/vsrc_testsrc.c libavformat/movenc.c libavformat/mxf.h libavformat/utils.c libavformat/yuv4mpeg.c libavutil/imgutils.c libavutil/pixdesc.c libswscale/input.c libswscale/output.c libswscale/swscale_internal.h libswscale/swscale_unscaled.c libswscale/utils.c libswscale/x86/swscale_template.c libswscale/x86/yuv2rgb.c libswscale/x86/yuv2rgb_template.c libswscale/yuv2rgb.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* vf_deshake: fix permissions.Nicolas George2012-08-171-1/+1
|
* vf_deshake: set cur_buf to NULL.Nicolas George2012-07-231-0/+1
| | | | Fix a segfault.
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-07-221-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: FATE: fix the asyncts test build: Drop gcc-specific warning flag from header compilation rule FATE: add a test for the asyncts audio filter. matroskadec: return more correct error code on read error. buffersrc: check ff_get_audio_buffer() for errors. lavfi: check all ff_get_video_buffer() calls for errors. lavfi: check all avfilter_ref_buffer() calls for errors. vf_select: avoid an unnecessary avfilter_ref_buffer(). buffersrc: avoid creating unnecessary buffer reference lavfi: use avfilter_unref_bufferp() where appropriate. vf_fps: add more error checks. vf_fps: fix a memleak on malloc failure. lavfi: check all ff_start_frame/draw_slice/end_frame calls for errors lavfi: add error handling to end_frame(). lavfi: add error handling to draw_slice(). lavfi: add error handling to start_frame(). Conflicts: Makefile ffplay.c libavfilter/buffersrc.c libavfilter/vf_boxblur.c libavfilter/vf_drawtext.c libavfilter/vf_fade.c libavfilter/vf_frei0r.c libavfilter/vf_hflip.c libavfilter/vf_overlay.c libavfilter/vf_pad.c libavfilter/vf_scale.c libavfilter/video.c libavfilter/vsrc_color.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-07-211-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: lavfi: unref AVFilterLink.out_buf in ff_end_frame(). lavfi: unref AVFilterLink.cur_buf in ff_end_frame(). vsrc_testsrc: avoid an unnecessary avfilter_ref_buffer(). vf_slicify: clear AVFilterLink.cur_buf in start_frame(). vf_settb: simplify start_frame(). vf_fieldorder: don't give up its own reference to the output buffer. vf_pad: don't give up its own reference to the output buffer. vf_overlay: don't access a buffer reference that's been given away. vf_drawtext: don't give up its own reference to the input buffer. vf_gradfun: don't store two pointers to one AVFilterBufferRef. vf_delogo: don't store two pointers to one AVFilterBufferRef. vf_aspect: clear AVFilterLink.cur_buf in start_frame(). lavfi: add avfilter_unref_bufferp() Conflicts: doc/APIchanges libavfilter/avfilter.h libavfilter/buffer.c libavfilter/vf_aspect.c libavfilter/vf_drawtext.c libavfilter/vf_overlay.c libavfilter/vf_pad.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* lavfi: decrease logging level of message showing initial parametersStefano Sabatini2012-07-151-1/+1
| | | | Reduce log clutter, consistent with 1a49a169eb74a97.
* Merge commit 'a5e8c41c28f907d98d2a739db08f7aef4cbfcf3a'Michael Niedermayer2012-06-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | * commit 'a5e8c41c28f907d98d2a739db08f7aef4cbfcf3a': lavfi: remove 'opaque' parameter from AVFilter.init() mov: do not try to read total disc/track number if data atom is too short. avconv: fix -force_key_frames dxva2_h264: fix signaling of mbaff frames x86: fft: elf64: fix PIC build Conflicts: ffmpeg.c libavcodec/v210dec.h libavfilter/asrc_anullsrc.c libavfilter/buffersrc.c libavfilter/src_movie.c libavfilter/vf_drawtext.c libavfilter/vf_fade.c libavfilter/vf_overlay.c libavfilter/vsrc_color.c libavfilter/vsrc_testsrc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* lavfi/deshake: fix crash in uninit()Stefano Sabatini2012-06-211-1/+2
| | | | | | Add NULL check on avctx before calling avcodec_close() on it. Fix trac ticket #1472.
* lavfi: update some deprecated functionsPaul B Mahol2012-06-161-3/+5
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* vf_deshake: try to fix memleakMichael Niedermayer2012-02-291-0/+2
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* deshake: variable used uninitializedRay Simard2012-01-211-8/+9
| | | | | | | | | | | | | 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-131-9/+0
| | | | | | | 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-131-2/+1
| | | | | | | 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-121-4/+9
| | | | | | | | | | | 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-061-2/+2
| | | | | | | 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-201-4/+44
|
* vf_deshake: Fix cast discards qualifiers from pointer target type warning.Michael Niedermayer2011-10-191-4/+2
| | | | | | And simplify the code in the process. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* deshake: simplify filename check.Clément Bœsch2011-10-041-1/+1
|
* deshake: misc style fixes.Clément Bœsch2011-10-041-7/+7
|
* deshake: move angles from stack to heap.Michael Niedermayer2011-10-041-1/+2
| | | | | | Fixes Ticket530 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* deshake: Allow specifying the filename for statistics and disable them by ↵Michael Niedermayer2011-10-041-7/+14
| | | | | | default. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* deshake: remove non const staticMichael Niedermayer2011-10-041-18/+11
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* doxygen: remove a few @file parameters.Clément Bœsch2011-10-041-1/+1
| | | | It is not mandatory and prevents breakage on rename.
* deshake: fix doxygen comments.Clément Bœsch2011-10-041-17/+17
|
OpenPOWER on IntegriCloud