diff options
Diffstat (limited to 'libavcodec/mathtables.c')
-rw-r--r-- | libavcodec/mathtables.c | 7 |
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, +}; |