summaryrefslogtreecommitdiff
path: root/libavcodec/mathtables.c
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2016-04-24 11:47:15 +0100
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2016-04-24 11:47:39 +0100
commita5a6621616aac55b8284002af4fef35b66e2b2d1 (patch)
treee162517aeeef766d788a645d362e089221681234 /libavcodec/mathtables.c
parent2e67a99fbc6b99315925de40fc6fa7161576be10 (diff)
parentf4d581cda3897f66c1dda7586b93f86a591dbbef (diff)
Merge commit 'f4d581cda3897f66c1dda7586b93f86a591dbbef'
* commit 'f4d581cda3897f66c1dda7586b93f86a591dbbef': lavc: Deduplicate zigzag_scan table Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavcodec/mathtables.c')
-rw-r--r--libavcodec/mathtables.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/mathtables.c b/libavcodec/mathtables.c
index 7b5efb88a6..81eabc7a65 100644
--- a/libavcodec/mathtables.c
+++ b/libavcodec/mathtables.c
@@ -105,3 +105,10 @@ const uint8_t ff_zigzag_direct[64] = {
58, 59, 52, 45, 38, 31, 39, 46,
53, 60, 61, 54, 47, 55, 62, 63
};
+
+const uint8_t ff_zigzag_scan[16+1] = {
+ 0 + 0 * 4, 1 + 0 * 4, 0 + 1 * 4, 0 + 2 * 4,
+ 1 + 1 * 4, 2 + 0 * 4, 3 + 0 * 4, 2 + 1 * 4,
+ 1 + 2 * 4, 0 + 3 * 4, 1 + 3 * 4, 2 + 2 * 4,
+ 3 + 1 * 4, 3 + 2 * 4, 2 + 3 * 4, 3 + 3 * 4,
+};