summaryrefslogtreecommitdiff
path: root/libavcodec/diractab.h
diff options
context:
space:
mode:
authorRostislav Pehlivanov <rpehlivanov@ob-encoder.com>2016-06-23 18:06:59 +0100
committerRostislav Pehlivanov <atomnuker@gmail.com>2016-07-11 23:38:01 +0100
commit09d89d940635e34b0f61266d66fbb9802b18564c (patch)
tree972503d5dd77694917501c035e0e5ad4e253df95 /libavcodec/diractab.h
parentb9c6c5f4539dfaf26e8484aece1b39f0a55f8fff (diff)
downloadffmpeg-09d89d940635e34b0f61266d66fbb9802b18564c.tar.gz
diractab: expose the maximum quantization index as a macro
Prevents having to have random magic values in the decoder and a separate macro in the encoder. Signed-off-by: Rostislav Pehlivanov <rpehlivanov@obe.tv>
Diffstat (limited to 'libavcodec/diractab.h')
-rw-r--r--libavcodec/diractab.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/diractab.h b/libavcodec/diractab.h
index cd8b8acee7..2423b07293 100644
--- a/libavcodec/diractab.h
+++ b/libavcodec/diractab.h
@@ -38,4 +38,6 @@ extern const int32_t ff_dirac_qoffset_intra_tab[120];
/* Scaling offsets needed for quantization/dequantization, for inter frames */
extern const int ff_dirac_qoffset_inter_tab[122];
+#define DIRAC_MAX_QUANT_INDEX (FF_ARRAY_ELEMS(ff_dirac_qscale_tab))
+
#endif /* AVCODEC_DIRACTAB_H */