summaryrefslogtreecommitdiff
path: root/libavcodec/tableprint_vlc.h
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>
* avcodec/bitstream: Move code for initializing VLCs to file of its ownAndreas Rheinhardt2022-03-21
| | | | | | | | | | | | bitstream.c is currently the disjoint union of three parts: The first part is ff_log2_run, the second part are some auxiliary functions for the PutBits-API; and the third part is the code for creating VLCs. This commit moves the latter into a file of its own. This has the advantage of making one of the hacks in tableprint_vlc.h redundant as vlc.c does not include config.h (whereas the PutBits-API part does). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avutil/avassert: Don't include avutil.hAndreas Rheinhardt2022-02-24
| | | | | Reviewed-by: Martin Storsjö <martin@martin.st> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/tableprint_vlc: Fix building with hardcoded tablesAndreas Rheinhardt2021-07-23
| | | | | | | | | | | | This has been broken in 25c8507818d8559a6654a5b30a0f8aae11a48181, because the hacks for headers that are incompatible with building for the host in libavcodec/tableprint_vlc.h have not been adjusted. Moving AV_INPUT_BUFFER_PADDING_SIZE to defs.h which is valid for both the target as well as the host allowed to remove some of the hacks. Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* lavc/tableprint_vlc: Remove avpriv_request_sample() from included files.Carl Eugen Hoyos2019-06-24
| | | | | Fixes compilation with --enable-hardcoded-tables. Fixes ticket #7962.
* avcodec/tableprint_vlc: Fix build failure with --enable-hardcoded-tablesMichael Niedermayer2018-03-29
| | | | | Found-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavcodec/tableprint_vlc.h: include lavu/reverse.c for ff_reverse.Alexis Ballier2015-08-12
| | | | Fixes the build with --enable-hardcoded-tables since ff_reverse has moved to lavu.
* avcodec/tableprint_vlc: Do not define functions to nothingMichael Niedermayer2015-05-07
| | | | | | This avoids potential warnings Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Adapt libavcodec/tableprint_vlc.h to the av_dlog -> ff_dlog change.Alexis Ballier2015-04-27
| | | | | | This fixes the build with --enable-hardcoded-tables that was broken since [8f7b022c8c2f40bf8ddfd90778a4c91424d3a8e5]. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* qdm2: Allow hard-coding VLC tables.Reimar Döffinger2014-12-18
Also adds a lot of infrastructure necessary for it. Some of it is a bit ugly though. Increases binary size for hardcoded tables by about 12 kB, which is about 15 kB from qdm2_table minus data and code saved that was only used for creating it. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>