diff mbox series

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

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


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_vc1_b_field_mvpred_scales[3] 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/vc1data.h | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series


diff --git a/libavcodec/vc1data.h b/libavcodec/vc1data.h
index 90dd8baf61..3512dc169b 100644
--- a/libavcodec/vc1data.h
+++ b/libavcodec/vc1data.h
@@ -30,10 +30,12 @@ 
 #include <stdint.h>
+#include "libavutil/attributes_internal.h"
 #include "libavutil/rational.h"
 #include "vlc.h"
 /** Table for conversion between TTBLK and TTMB */
 extern const int ff_vc1_ttblk_to_tt[3][8];
@@ -204,5 +206,6 @@  extern const uint16_t ff_vc1_b_field_mvpred_scales[7][4];
 #define AC_MODES 8
 extern const int ff_vc1_ac_sizes[AC_MODES];
 #endif /* AVCODEC_VC1DATA_H */