summaryrefslogtreecommitdiffstats
path: root/libavfilter/deshake.h
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2014-09-01 23:47:12 +0200
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2014-09-02 19:20:28 +0200
commit098af260675b601c0a02a373b53ed21b77775f22 (patch)
treefd6622872e8d7296567ce9bd8597282e973f0e68 /libavfilter/deshake.h
parent4ea8406e38112bc374367386966d3a4c7357916c (diff)
downloadffmpeg-streaming-098af260675b601c0a02a373b53ed21b77775f22.zip
ffmpeg-streaming-098af260675b601c0a02a373b53ed21b77775f22.tar.gz
vf_deshake: Avoid doing a malloc+free for every single frame.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavfilter/deshake.h')
-rw-r--r--libavfilter/deshake.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/deshake.h b/libavfilter/deshake.h
index 20df88f..62e81c3 100644
--- a/libavfilter/deshake.h
+++ b/libavfilter/deshake.h
@@ -76,6 +76,8 @@ typedef struct {
typedef struct {
const AVClass *class;
int counts[2*MAX_R+1][2*MAX_R+1]; /// < Scratch buffer for motion search
+ double *angles; ///< Scratch buffer for block angles
+ unsigned angles_size;
AVFrame *ref; ///< Previous frame
int rx; ///< Maximum horizontal shift
int ry; ///< Maximum vertical shift
OpenPOWER on IntegriCloud