diff options
author | Daniil Cherednik <dan.cherednik@gmail.com> | 2017-01-07 15:18:32 +0300 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2017-01-15 18:17:12 +0000 |
commit | c2500d62c68a1e4c929cd5096f6617b56268d4e8 (patch) | |
tree | 85e45e6a869a9a263791388d5cab4e3aff320a6f /libavcodec/dcadata.c | |
parent | a6191d098a03f94685ae4c072bfdf10afcd86223 (diff) | |
download | ffmpeg-c2500d62c68a1e4c929cd5096f6617b56268d4e8.tar.gz |
dcaenc: Implementation of Huffman codes for DCA encoder
Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec/dcadata.c')
-rw-r--r-- | libavcodec/dcadata.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/dcadata.c b/libavcodec/dcadata.c index b2e0f6cfb1..193247b18b 100644 --- a/libavcodec/dcadata.c +++ b/libavcodec/dcadata.c @@ -50,6 +50,14 @@ const uint8_t ff_dca_dmix_primary_nch[8] = { 1, 2, 2, 3, 3, 4, 4, 0 }; +const uint8_t ff_dca_quant_index_sel_nbits[DCA_CODE_BOOKS] = { + 1, 2, 2, 2, 2, 3, 3, 3, 3, 3 +}; + +const uint8_t ff_dca_quant_index_group_size[DCA_CODE_BOOKS] = { + 1, 3, 3, 3, 3, 7, 7, 7, 7, 7 +}; + /* ADPCM data */ /* 16 bits signed fractional Q13 binary codes */ |