summaryrefslogtreecommitdiff
path: root/libavcodec/mathtables.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2016-03-24 11:16:53 +0100
committerDiego Biurrun <diego@biurrun.de>2016-03-25 15:23:56 +0100
commitf4d581cda3897f66c1dda7586b93f86a591dbbef (patch)
tree2b0ffc804d914fe27b7324f7e21487476df13bda /libavcodec/mathtables.c
parent02cd8bb9cb4381c50f42a9284098cc8a33d397db (diff)
lavc: Deduplicate zigzag_scan table
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 47695bc343..d198225449 100644
--- a/libavcodec/mathtables.c
+++ b/libavcodec/mathtables.c
@@ -122,3 +122,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] = {
+ 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,
+};