diff options
author | Rostislav Pehlivanov <rpehlivanov@ob-encoder.com> | 2016-06-23 20:06:59 +0300 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2016-07-12 01:38:01 +0300 |
commit | 09d89d940635e34b0f61266d66fbb9802b18564c (patch) | |
tree | 972503d5dd77694917501c035e0e5ad4e253df95 /libavcodec/diractab.h | |
parent | b9c6c5f4539dfaf26e8484aece1b39f0a55f8fff (diff) |
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.h | 2 |
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 */ |