summaryrefslogtreecommitdiffstats
path: root/libavcodec/tableprint.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-05-20 05:42:04 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-05-20 05:48:22 +0200
commit80d156d7fdc44b09783ba242fe2681a6d4cc8df5 (patch)
tree7881b70297c87daa2f6d6f4790afaf438c53b3aa /libavcodec/tableprint.h
parent6efb29686fc9a7f76480405df8fe7eaa7a9dd4cf (diff)
parent984ece7503597d30e6f3bdeb67e337ea1616f880 (diff)
downloadffmpeg-streaming-80d156d7fdc44b09783ba242fe2681a6d4cc8df5.zip
ffmpeg-streaming-80d156d7fdc44b09783ba242fe2681a6d4cc8df5.tar.gz
Merge remote-tracking branch 'qatar/master'
* qatar/master: qdm2: Use floating point synthesis filter. h264: correct border check. h264: fix loopfilter with threading at slice boundaries. Fix ff_mpa_synth_filter_fixed() prototype Rename costablegen.c ---> cos_tablegen.c. Collapse tableprint.c into tableprint.h. Simplify trig table rules Remove potentially unstable filenames from comments in generated files. Ignore generated tables and generated table generator programs. Simplify CLEANFILES make variable by using wildcards. Remove silly insults from avformat_version() Doxygen documentation. mpegaudiodsp: fix x86 and ppc makefiles configure: Adjust AVX assembler check. mpegaudio: remove unused version of SAME_HEADER_MASK mpegaudio: remove useless #undef at end of file asfdec: add missing #include for av_bswap32() mpegaudio: merge two #if CONFIG_FLOAT blocks mpegaudio: move some struct definitions from mpegaudio.h Move some mpegaudio functions to new mpegaudiodsp subsystem Conflicts: libavcodec/h264.c libavcodec/x86/Makefile Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/tableprint.h')
-rw-r--r--libavcodec/tableprint.h24
1 files changed, 20 insertions, 4 deletions
diff --git a/libavcodec/tableprint.h b/libavcodec/tableprint.h
index 97a667d..d81b9a3 100644
--- a/libavcodec/tableprint.h
+++ b/libavcodec/tableprint.h
@@ -23,8 +23,9 @@
#ifndef AVCODEC_TABLEPRINT_H
#define AVCODEC_TABLEPRINT_H
-#include <stdint.h>
+#include <inttypes.h>
#include <stdio.h>
+
#include "libavutil/common.h"
#define WRITE_1D_FUNC_ARGV(type, linebrk, fmtstr, ...)\
@@ -70,9 +71,6 @@ void write_uint32_t_2d_array(const void *, int, int);
void write_float_2d_array (const void *, int, int);
/** \} */ // end of printfuncs group
-/** Write a standard file header */
-void write_fileheader(void);
-
#define WRITE_ARRAY(prefix, type, name) \
do { \
const size_t array_size = FF_ARRAY_ELEMS(name); \
@@ -92,4 +90,22 @@ void write_fileheader(void);
printf("};\n"); \
} while(0)
+
+WRITE_1D_FUNC(int8_t, "%3"PRIi8, 15)
+WRITE_1D_FUNC(uint8_t, "0x%02"PRIx8, 15)
+WRITE_1D_FUNC(uint16_t, "0x%08"PRIx16, 7)
+WRITE_1D_FUNC(uint32_t, "0x%08"PRIx32, 7)
+WRITE_1D_FUNC(float, "%.18e", 3)
+
+WRITE_2D_FUNC(int8_t)
+WRITE_2D_FUNC(uint8_t)
+WRITE_2D_FUNC(uint32_t)
+WRITE_2D_FUNC(float)
+
+static inline void write_fileheader(void)
+{
+ printf("/* This file was automatically generated. */\n");
+ printf("#include <stdint.h>\n");
+}
+
#endif /* AVCODEC_TABLEPRINT_H */
OpenPOWER on IntegriCloud