diff options
author | Muhammad Faiz <mfcc64@gmail.com> | 2018-02-04 01:44:23 +0300 |
---|---|---|
committer | Muhammad Faiz <mfcc64@gmail.com> | 2018-02-05 18:42:59 +0300 |
commit | caa4bd7a9fe9186a56fdcb8194263b066978cbbe (patch) | |
tree | acd3e433556150ab4f80861d2bbefbf04213dbf9 /libavcodec/me_cmp.h | |
parent | 118e1b0b3370dd1c0da442901b486689efd1654b (diff) |
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.h | 4 |
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); |