diff options
author | Daniil Cherednik <dan.cherednik@gmail.com> | 2017-01-18 17:26:27 +0300 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2017-01-20 10:03:46 +0000 |
commit | 9a619bef5492a664c1e80a74c5779e28763179f3 (patch) | |
tree | ec91c5785e92efa5fe981087a9627bf2d7b78ddf /libavcodec/dcahuff.h | |
parent | 6b0a3ee6f809c577ee5e3d7c38af03d08d51a13f (diff) | |
download | ffmpeg-streaming-9a619bef5492a664c1e80a74c5779e28763179f3.zip ffmpeg-streaming-9a619bef5492a664c1e80a74c5779e28763179f3.tar.gz |
dcaenc: Use Huffman codes for Bit Allocation Index
Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec/dcahuff.h')
-rw-r--r-- | libavcodec/dcahuff.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/dcahuff.h b/libavcodec/dcahuff.h index c017622..02b0e37 100644 --- a/libavcodec/dcahuff.h +++ b/libavcodec/dcahuff.h @@ -30,6 +30,7 @@ #include "put_bits.h" #define DCA_CODE_BOOKS 10 +#define DCA_BITALLOC_12_COUNT 5 typedef struct DCAVLC { int offset; ///< Code values offset @@ -58,5 +59,7 @@ extern VLC ff_dca_vlc_rsd; av_cold void ff_dca_init_vlcs(void); uint32_t ff_dca_vlc_calc_quant_bits(int *values, uint8_t n, uint8_t sel, uint8_t abits); void ff_dca_vlc_enc_quant(PutBitContext *pb, int *values, uint8_t n, uint8_t sel, uint8_t abits); +uint32_t ff_dca_vlc_calc_alloc_bits(int *values, uint8_t n, uint8_t sel); +void ff_dca_vlc_enc_alloc(PutBitContext *pb, int *values, uint8_t n, uint8_t sel); #endif /* AVCODEC_DCAHUFF_H */ |