From 86c909558ce3e7505d5a63647c27cd0a4314a603 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Thu, 17 Mar 2022 12:16:38 +0100 Subject: 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 --- libavcodec/mathtables.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libavcodec/mathtables.c') 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, +}; -- cgit v1.2.3