Files
FFmpeg/libavcodec
Andreas Rheinhardt c1cdaef5ce avcodec/hevc_cabac: Let compiler count offsets
This is easily possible with an X macro.
Using an enum for the offsets also allows to remove
two arrays which are not really needed and will typically
be optimized away by the compiler: The first just exists
to count the number of syntax elements*, the second one
exists to get offset[CONSTANT]. These constants were
of type enum SyntaxElement and this enum was only used
in hevc_cabac.c (although it was declared in hevcdec.h);
it is now no longer needed at all and has therefore been
removed.

The first of these arrays led to a warning from Clang
which is fixed by this commit:
warning: variable 'num_bins_in_se' is not needed and will
not be emitted [-Wunneeded-internal-declaration]

*: One could also just added a trailing SYNTAX_ELEMENT_NB
to the SyntaxElement enum for this purpose.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2024-03-13 23:29:02 +01:00
..
2024-03-04 17:38:57 +01:00
2023-11-10 00:14:02 +01:00
2024-02-27 00:11:21 +01:00
2024-02-27 00:11:21 +01:00
2023-03-02 21:32:00 +01:00
2023-09-11 00:27:45 +02:00
2023-05-15 10:24:54 +02:00
2023-09-11 00:27:45 +02:00
2023-09-11 00:27:45 +02:00
2023-09-22 13:15:00 +08:00
2024-03-13 21:56:59 +00:00
2023-09-01 23:59:14 +02:00
2023-09-11 00:27:45 +02:00
2024-02-12 22:00:03 +02:00
2024-02-12 22:00:03 +02:00
2023-09-22 13:15:00 +08:00
2023-09-22 13:15:00 +08:00
2023-09-11 00:27:45 +02:00
2023-09-11 00:27:45 +02:00
2023-09-11 00:27:45 +02:00
2023-09-11 00:27:45 +02:00
2023-10-01 02:25:09 +02:00
2023-09-07 00:42:10 +02:00
2024-02-27 20:32:37 +02:00
2024-02-27 20:32:37 +02:00
2023-09-11 00:27:45 +02:00
2023-05-21 10:50:59 +02:00
2024-03-04 17:45:00 +01:00
2023-11-14 19:15:51 +02:00
2023-10-09 19:52:51 +03:00
2023-09-07 00:42:10 +02:00
2023-01-26 20:37:14 +01:00
2023-05-15 10:24:54 +02:00
2023-09-11 00:27:45 +02:00
2024-03-10 13:51:37 +01:00
2023-10-03 00:27:14 +02:00
2023-09-11 00:27:45 +02:00
2023-09-11 00:27:45 +02:00
2023-09-11 00:27:45 +02:00
2023-10-31 21:33:25 +02:00
2023-10-31 21:33:25 +02:00
2023-09-07 00:42:10 +02:00
2024-02-29 10:30:16 +01:00
2023-09-11 00:27:45 +02:00
2023-09-07 00:42:10 +02:00
2023-11-08 17:37:58 +11:00
2024-02-20 17:31:40 +11:00
2024-01-25 11:07:28 -05:00
2024-02-21 20:08:25 +02:00
2024-02-21 20:08:25 +02:00
2023-05-15 10:24:54 +02:00
2024-03-12 14:37:49 +01:00
2023-09-11 00:27:45 +02:00
2023-09-07 00:42:10 +02:00
2023-02-09 15:35:14 +01:00
2023-09-11 00:27:45 +02:00
2023-01-31 09:00:56 +01:00
2023-09-11 00:27:45 +02:00
2023-12-29 00:45:20 +01:00
2023-09-04 11:04:45 +02:00
2023-11-09 12:53:35 +01:00
2023-09-11 00:27:45 +02:00
2023-09-11 00:27:45 +02:00
2023-09-28 19:37:58 +02:00
2023-09-30 15:35:04 +02:00
2023-09-11 00:27:45 +02:00
2023-09-11 00:27:45 +02:00
2023-11-01 22:53:26 +02:00
2023-01-17 12:54:54 +01:00
2023-09-11 00:27:45 +02:00
2023-09-11 00:27:45 +02:00
2022-12-24 23:43:45 +01:00
2023-12-22 09:28:04 -03:00
2023-12-22 09:28:04 -03:00
2024-03-12 14:37:49 +01:00
2024-03-12 14:37:49 +01:00
2023-09-11 00:27:45 +02:00
2023-12-08 17:20:48 +02:00
2023-12-08 17:20:48 +02:00
2023-10-10 00:22:55 +02:00
2024-02-03 00:26:17 +01:00
2023-09-11 00:27:45 +02:00
2024-02-17 14:45:49 +02:00
2024-02-17 14:45:49 +02:00
2023-09-11 00:27:45 +02:00