diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2014-09-01 23:47:12 +0200 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2014-09-02 19:20:28 +0200 |
commit | 098af260675b601c0a02a373b53ed21b77775f22 (patch) | |
tree | fd6622872e8d7296567ce9bd8597282e973f0e68 /libavfilter/deshake.h | |
parent | 4ea8406e38112bc374367386966d3a4c7357916c (diff) | |
download | ffmpeg-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/deshake.h b/libavfilter/deshake.h index 20df88f4ec..62e81c3eaf 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 |