summaryrefslogtreecommitdiff
path: root/libavcodec/me_cmp.h
diff options
context:
space:
mode:
authorMuhammad Faiz <mfcc64@gmail.com>2018-02-04 05:44:23 +0700
committerMuhammad Faiz <mfcc64@gmail.com>2018-02-05 22:42:59 +0700
commitcaa4bd7a9fe9186a56fdcb8194263b066978cbbe (patch)
treeacd3e433556150ab4f80861d2bbefbf04213dbf9 /libavcodec/me_cmp.h
parent118e1b0b3370dd1c0da442901b486689efd1654b (diff)
downloadffmpeg-caa4bd7a9fe9186a56fdcb8194263b066978cbbe.tar.gz
avcodec/me_cmp: remove ff_me_cmp_init_static()
Precalculate and constify ff_square_tab. Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
Diffstat (limited to 'libavcodec/me_cmp.h')
-rw-r--r--libavcodec/me_cmp.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/me_cmp.h b/libavcodec/me_cmp.h
index 0dbbcbb1d9..0a589e3c3d 100644
--- a/libavcodec/me_cmp.h
+++ b/libavcodec/me_cmp.h
@@ -23,7 +23,7 @@
#include "avcodec.h"
-extern uint32_t ff_square_tab[512];
+extern const uint32_t ff_square_tab[512];
/* minimum alignment rules ;)
@@ -79,8 +79,6 @@ typedef struct MECmpContext {
me_cmp_func median_sad[6];
} MECmpContext;
-void ff_me_cmp_init_static(void);
-
int ff_check_alignment(void);
void ff_me_cmp_init(MECmpContext *c, AVCodecContext *avctx);