diff mbox series

[FFmpeg-devel,3/6] avcodec/mpegvideodata: Mark tables as hidden

Message ID AS8P250MB074421FF6BF8D969B1D7DF1B8F329@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 700a39e63cf978c5346ab7652f4f2effa5d67668
Headers show
Series [FFmpeg-devel,1/6] avcodec/mpegvideodata: Make DC scale tables smaller | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt Oct. 28, 2022, 2:49 p.m. UTC
This e.g. allows compilers to bake the offset implied
by using ff_mpeg12_dc_scale_table[3] (as the SpeedHQ encoder
does) into the general offset; for certain arches this is
also necessary in order to avoid building suboptimal code.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/mpegvideodata.h | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/libavcodec/mpegvideodata.h b/libavcodec/mpegvideodata.h
index 7264b434ae..42c9d6c293 100644
--- a/libavcodec/mpegvideodata.h
+++ b/libavcodec/mpegvideodata.h
@@ -21,6 +21,9 @@ 
 
 #include <stdint.h>
 
+#include "libavutil/attributes_internal.h"
+
+FF_VISIBILITY_PUSH_HIDDEN
 /* encoding scans */
 extern const uint8_t ff_alternate_horizontal_scan[64];
 extern const uint8_t ff_alternate_vertical_scan[64];
@@ -31,5 +34,6 @@  static const uint8_t *const ff_mpeg1_dc_scale_table = ff_mpeg12_dc_scale_table[0
 extern const uint8_t ff_mpeg2_non_linear_qscale[32];
 
 extern const uint8_t ff_default_chroma_qscale_table[32];
+FF_VISIBILITY_POP_HIDDEN
 
 #endif /* AVCODEC_MPEGVIDEODATA_H */