summaryrefslogtreecommitdiff
path: root/libavcodec/snow.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-12-02 03:52:40 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-05-02 05:14:42 +0200
commita7f4abbc62cb6b768c9bcb927ba2485ba6e61913 (patch)
tree2995d2f17dd43fcede383b8f8ecf0804389cdbf2 /libavcodec/snow.h
parent56df06dd8346687d6d9b7321f2af41e4fd614ee3 (diff)
downloadffmpeg-a7f4abbc62cb6b768c9bcb927ba2485ba6e61913.tar.gz
avcodec/snow: Hardcode table to save space
The size of ff_qexp is only 32 bytes, but the code to generate it at runtime takes 47 bytes (GCC 9.3, x64, -O3 in an av_cold function); so just hardcode it. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/snow.h')
-rw-r--r--libavcodec/snow.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/snow.h b/libavcodec/snow.h
index 41a3bef4de..c0d2599859 100644
--- a/libavcodec/snow.h
+++ b/libavcodec/snow.h
@@ -194,7 +194,7 @@ typedef struct SnowContext{
/* Tables */
extern const uint8_t * const ff_obmc_tab[4];
-extern uint8_t ff_qexp[QROOT];
+extern const uint8_t ff_qexp[QROOT];
extern int ff_scale_mv_ref[MAX_REF_FRAMES][MAX_REF_FRAMES];
/* C bits used by mmx/sse2/altivec */