summaryrefslogtreecommitdiff
path: root/libavcodec/mathtables.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-03-17 12:16:38 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-03-21 23:25:36 +0100
commit86c909558ce3e7505d5a63647c27cd0a4314a603 (patch)
tree05296e13d5d68a282271d8e5c950a86db5be015f /libavcodec/mathtables.c
parent495de744fa949eb789441349736bedc2301d0b61 (diff)
avcodec/internal: Move FF_SIGNBIT and ff_log2_run to mathops.h
It is a more fitting place for them. Also move the definition of ff_log2_run to mathtables.c. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mathtables.c')
-rw-r--r--libavcodec/mathtables.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/mathtables.c b/libavcodec/mathtables.c
index 81eabc7a65..8b0031eb00 100644
--- a/libavcodec/mathtables.c
+++ b/libavcodec/mathtables.c
@@ -112,3 +112,12 @@ const uint8_t ff_zigzag_scan[16+1] = {
1 + 2 * 4, 0 + 3 * 4, 1 + 3 * 4, 2 + 2 * 4,
3 + 1 * 4, 3 + 2 * 4, 2 + 3 * 4, 3 + 3 * 4,
};
+
+const uint8_t ff_log2_run[41] = {
+ 0, 0, 0, 0, 1, 1, 1, 1,
+ 2, 2, 2, 2, 3, 3, 3, 3,
+ 4, 4, 5, 5, 6, 6, 7, 7,
+ 8, 9, 10, 11, 12, 13, 14, 15,
+16, 17, 18, 19, 20, 21, 22, 23,
+24,
+};