summaryrefslogtreecommitdiff
path: root/libavcodec/dcahuff.c
Commit message (Collapse)AuthorAge
* avcodec/vlc: Use structure instead of VLC_TYPE array as VLC elementAndreas Rheinhardt2022-06-17
| | | | | | | | | | | | | | | | | | In C, qualifiers for arrays are broken: const VLC_TYPE (*foo)[2] is a pointer to an array of two const VLC_TYPE elements and unfortunately this is not compatible with a pointer to a const array of two VLC_TYPE, because the latter does not exist as array types are never qualified (the qualifier applies to the base type instead). This is the reason why get_vlc2() doesn't accept a const VLC table despite not modifying the table at all, as there is no automatic conversion from VLC_TYPE (*)[2] to const VLC_TYPE (*)[2]. Fix this by using a structure VLCElem for the VLC table. This also has the advantage of making it clear which element is which. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* Remove unnecessary libavutil/(avutil|common|internal).h inclusionsAndreas Rheinhardt2022-02-24
| | | | | | | | | | Some of these were made possible by moving several common macros to libavutil/macros.h. While just at it, also improve the other headers a bit. Reviewed-by: Martin Storsjö <martin@martin.st> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* Remove/replace some unnecessary avcodec.h inclusionsAndreas Rheinhardt2021-07-22
| | | | | | | Also remove other unnecessary headers and include headers directly while at it. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/dca*: Make decoder init-threadsafeAndreas Rheinhardt2021-05-02
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* dcaenc: Use Huffman codes for Bit Allocation IndexDaniil Cherednik2017-01-20
| | | | Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* dcaenc: Implementation of Huffman codes for DCA encoderDaniil Cherednik2017-01-15
| | | | Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* avcodec/dca: add DTS Express (LBR) decoderfoo862016-05-10
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/dca: move huffman data into separate object filefoo862016-05-01
Signed-off-by: James Almer <jamrial@gmail.com>