summaryrefslogtreecommitdiffstats
path: root/libavcodec/tableprint.h
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2014-08-30 17:27:57 +0200
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2014-09-06 20:59:20 +0200
commit87c7fb2b215f306c4b2db42b71d41a7b340e6b7f (patch)
tree8fa15ea8e9a34f7e679d9828798469d6f79f803a /libavcodec/tableprint.h
parent684d0a0b23dce1f7759a40b1ef5c24eb7d8e9329 (diff)
downloadffmpeg-streaming-87c7fb2b215f306c4b2db42b71d41a7b340e6b7f.zip
ffmpeg-streaming-87c7fb2b215f306c4b2db42b71d41a7b340e6b7f.tar.gz
aacsbr: support hardcoding tables.
For sbr_qmf_window_us there is even a question if it maybe should be fully hardcoded all the time. Since half of it is coded, it ends up in .data and not .bss. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavcodec/tableprint.h')
-rw-r--r--libavcodec/tableprint.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/tableprint.h b/libavcodec/tableprint.h
index 26d063e..5107912 100644
--- a/libavcodec/tableprint.h
+++ b/libavcodec/tableprint.h
@@ -81,6 +81,16 @@ void write_float_2d_array (const void *, int, int);
#define FMT "zu"
#endif
+#define WRITE_ARRAY_ALIGNED(prefix, align, type, name) \
+ do { \
+ const size_t array_size = FF_ARRAY_ELEMS(name); \
+ printf(prefix" DECLARE_ALIGNED("#align", " \
+ #type", "#name")[%"FMT"] = {\n", \
+ array_size); \
+ write_##type##_array(name, array_size); \
+ printf("};\n"); \
+ } while(0)
+
#define WRITE_ARRAY(prefix, type, name) \
do { \
const size_t array_size = FF_ARRAY_ELEMS(name); \
OpenPOWER on IntegriCloud