Files
FFmpeg/libavcodec
Andreas Rheinhardt abffd9313d avcodec/hqxvlc: Avoid hardcoded RL VLC table
hqxvlc.c contains sort-of run-length VLCs in hardcoded form;
they amount to 26688 elements, taking 104KiB. These tables contain
many duplicated entries (they are partially created via a RPT_1024
macro). There are actually only 3039 different codes in all tables
combined, making this very wasteful.

This commit changes this by extracting the underlying entries
and creating a (static) RL-VLC. This only costs 3*3039 bytes
of .rodata. The resulting table needs only 15630 entries,
because our VLC init code uses smaller subtables when possible
(for an incomplete code, the negative of the length stored in
the VLC code is the number of bits the subtable uses; the hardcoded
tables uses a worst-case per table value).

Using GET_RL_VLC also gets rid of an unnecessary reload in case
a code is too long to be parsed in the first stage.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2025-03-17 03:26:07 +01:00
..
2025-01-25 09:37:45 +02:00
2024-03-31 00:08:43 +01:00
2025-02-26 17:12:08 +01:00
2025-02-26 17:12:08 +01:00
2024-06-08 00:22:40 +02:00
2024-06-08 00:22:40 +02:00
2024-03-31 00:08:43 +01:00
2024-08-14 18:21:01 +02:00
2024-03-31 00:08:43 +01:00
2025-02-04 00:14:14 +01:00
2024-04-06 09:26:30 +02:00
2024-04-10 13:22:18 +02:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2025-02-09 20:27:49 -06:00
2025-02-09 20:27:49 -06:00
2024-07-12 22:42:18 +02:00
2024-03-31 00:08:43 +01:00
2024-09-06 13:59:28 +02:00
2024-04-04 23:58:57 +02:00
2024-03-31 00:08:43 +01:00
2024-07-12 22:42:20 +02:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-05-13 03:40:17 +02:00
2024-03-31 00:08:43 +01:00
2024-09-28 18:35:35 +02:00
2024-09-28 18:35:35 +02:00
2024-03-31 00:08:43 +01:00
2025-01-01 20:31:08 +01:00
2024-03-31 00:08:43 +01:00
2024-11-01 12:13:07 +08:00
2024-07-12 22:42:28 +02:00
2024-09-24 15:37:19 +02:00
2024-03-31 00:08:43 +01:00
2024-05-31 13:36:02 -03:00
2024-07-12 22:42:40 +02:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2025-02-06 13:48:47 -03:00
2024-03-31 00:08:43 +01:00
2024-06-08 00:22:35 +02:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-06-20 18:58:39 +02:00
2024-05-03 18:00:53 +03:00
2024-05-03 18:00:53 +03:00
2024-11-03 10:53:15 +11:00
2024-11-03 10:53:15 +11:00
2024-11-03 10:53:15 +11:00
2024-11-03 10:53:15 +11:00
2024-03-31 00:08:43 +01:00
2024-06-03 14:13:34 +02:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-10-12 11:21:14 -03:00
2024-10-12 11:21:14 -03:00
2024-10-12 11:21:14 -03:00
2024-11-01 12:13:07 +08:00
2024-11-01 12:13:07 +08:00
2024-03-31 00:08:43 +01:00
2024-09-24 15:37:19 +02:00
2024-06-12 12:07:49 +02:00
2025-02-09 20:27:49 -06:00
2025-03-14 02:03:58 +01:00
2024-03-31 00:08:43 +01:00
2024-10-31 17:49:48 +11:00
2024-10-31 17:49:48 +11:00
2024-04-29 20:46:05 +03:00
2024-04-19 13:18:04 +02:00
2024-10-31 17:49:48 +11:00
2024-10-31 17:49:48 +11:00
2024-09-24 15:37:20 +02:00
2024-03-31 00:08:43 +01:00