summaryrefslogtreecommitdiff
path: root/libavfilter/deshake.h
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2014-09-01 23:36:29 +0200
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2014-09-02 19:20:28 +0200
commit4ea8406e38112bc374367386966d3a4c7357916c (patch)
tree533e8d26e8469ba176c44a289011c879edcb66ad /libavfilter/deshake.h
parent3980ab12b728fb8e14fc3a54dcd4336336a25422 (diff)
downloadffmpeg-4ea8406e38112bc374367386966d3a4c7357916c.tar.gz
vf_deshake: reduce stack usage.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavfilter/deshake.h')
-rw-r--r--libavfilter/deshake.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/deshake.h b/libavfilter/deshake.h
index f61ed80d53..20df88f4ec 100644
--- a/libavfilter/deshake.h
+++ b/libavfilter/deshake.h
@@ -71,8 +71,11 @@ typedef struct {
#endif
+#define MAX_R 64
+
typedef struct {
const AVClass *class;
+ int counts[2*MAX_R+1][2*MAX_R+1]; /// < Scratch buffer for motion search
AVFrame *ref; ///< Previous frame
int rx; ///< Maximum horizontal shift
int ry; ///< Maximum vertical shift