aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/hqxvlc.h
Commit message (Collapse)AuthorAgeFilesLines
* avcodec/hq{xvlc,_hqadata}: Deduplicate and hardcode cbp tableAndreas Rheinhardt2025-04-131-15/+1
| | | | | | | | | | This table is so small (32 elements amounting to 128 bytes) that it is more efficient size-wise to hardcode it instead of initializing it at runtime. Also stop duplicating it in hq_hqa.o and hqx.o. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/hqxvlc: Make dc9, dc10 VLC tables staticAndreas Rheinhardt2025-03-171-7/+11
| | | | | | | | It allows to share them between frame threads. dc11 can unfortunately not be made static without increasing LOCALBUF_ELEMS in vlc.c. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/hqx: Cache pointer to used dc tableAndreas Rheinhardt2025-03-171-1/+1
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/hqxvlc: Make cbp_vlc staticAndreas Rheinhardt2025-03-171-2/+5
| | | | | | | This is trivial as well as beneficial because frame threads now use the same table, saving cache/memory. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/hqx: Include hqxvlc directlyAndreas Rheinhardt2025-03-171-0/+1582
This avoids having to expose HQXContext in a header and allows to make several symbols static. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>