|
FFmpeg
|
fast deshake / depan video filter More...
#include "avfilter.h"#include "formats.h"#include "internal.h"#include "video.h"#include "libavutil/common.h"#include "libavutil/mem.h"#include "libavutil/opt.h"#include "libavutil/pixdesc.h"#include "libavutil/qsort.h"#include "deshake.h"Macros | |
| #define | OFFSET(x) offsetof(DeshakeContext, x) |
| #define | FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
| #define | CMP(i, j) |
Functions | |
| AVFILTER_DEFINE_CLASS (deshake) | |
Variables | |
| AVFilter | ff_vf_deshake |
fast deshake / depan video filter
SAD block-matching motion compensation to fix small changes in horizontal and/or vertical shift. This filter helps remove camera shake from hand-holding a camera, bumping a tripod, moving on a vehicle, etc.
Algorithm:
TODO:
Dark Shikari links to http://wiki.videolan.org/SoC_x264_2010#GPU_Motion_Estimation_2 for an algorithm similar to what could be used here to get the gmv It requires only a couple diamond searches + fast downscaling
Special thanks to Jason Kotenko for his help with the algorithm and my inability to see simple errors in C code.
| #define CMP | ( | i, | |
| j | |||
| ) |
| AVFilter ff_vf_deshake |
1.8.12