aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/svq1.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-10 23:27:43 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-14 16:14:24 +0200
commitd08b2900a9f0935959303da668cb00a8a7245228 (patch)
tree4b0267b2df7356c48d74f8eea1fb4a388a92d574 /libavcodec/svq1.h
parente84348a8abd465f3a8b0e254321a3e29561fafc2 (diff)
downloadffmpeg-d08b2900a9f0935959303da668cb00a8a7245228.tar.gz
avcodec/svq1: Set hidden visibility
The encoder uses ff_svq1_inter_mean_vlc + 256 and setting hidden visibility allows to bake this "+ 256" into the general offset of ff_svq1_inter_mean_vlc and the code accessing it. For certain arches, this is also required for the compiler to not produce overtly pessimistic code that can't be fixed up by the linker lateron. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/svq1.h')
-rw-r--r--libavcodec/svq1.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/svq1.h b/libavcodec/svq1.h
index af8a7dfa04..0ccf17c253 100644
--- a/libavcodec/svq1.h
+++ b/libavcodec/svq1.h
@@ -37,6 +37,8 @@
#include <stdint.h>
+#include "libavutil/attributes_internal.h"
+
#define SVQ1_BLOCK_SKIP 0
#define SVQ1_BLOCK_INTER 1
#define SVQ1_BLOCK_INTER_4V 2
@@ -49,6 +51,7 @@
#define SVQ1_BLOCK_INTRA_CODE 0
#define SVQ1_BLOCK_INTRA_LEN 3
+FF_VISIBILITY_PUSH_HIDDEN
extern const int8_t *const ff_svq1_inter_codebooks[6];
extern const int8_t *const ff_svq1_intra_codebooks[6];
@@ -59,5 +62,6 @@ extern const uint16_t ff_svq1_intra_mean_vlc[256][2];
extern const uint16_t ff_svq1_inter_mean_vlc[512][2];
extern const uint16_t ff_svq1_frame_size_table[7][2];
+FF_VISIBILITY_POP_HIDDEN
#endif /* AVCODEC_SVQ1_H */