From f4d581cda3897f66c1dda7586b93f86a591dbbef Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Thu, 24 Mar 2016 11:16:53 +0100 Subject: lavc: Deduplicate zigzag_scan table --- libavcodec/mathtables.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libavcodec/mathtables.c') 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, +}; -- cgit v1.2.3