Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2014-08-31 14:42:51 +0400
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2014-09-06 22:59:20 +0400
commit092d1977cc7146f20c8db2155e7d648afb300de7 (patch)
tree0dcaf9a988d024ae0d5b90ae204db839edf5b11c /libavcodec/cabac.h
parent0f1281b2b8ac6f7d2a0b8d18f6fbba9ed7a1bd08 (diff)
cabac: Allow hardcoding CABAC table.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavcodec/cabac.h')
-rw-r--r--libavcodec/cabac.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libavcodec/cabac.h b/libavcodec/cabac.h
index eb6b521d3e..f9eafed105 100644
--- a/libavcodec/cabac.h
+++ b/libavcodec/cabac.h
@@ -31,7 +31,12 @@
#include "put_bits.h"
-extern uint8_t ff_h264_cabac_tables[512 + 4*2*64 + 4*64 + 63];
+#if CONFIG_HARDCODED_TABLES
+#define CABAC_TABLE_CONST const
+#else
+#define CABAC_TABLE_CONST
+#endif
+extern CABAC_TABLE_CONST uint8_t ff_h264_cabac_tables[512 + 4*2*64 + 4*64 + 63];
#define H264_NORM_SHIFT_OFFSET 0
#define H264_LPS_RANGE_OFFSET 512
#define H264_MLPS_STATE_OFFSET 1024