blob: b7b15554267131ba33f4c7a0541287d55ef471a8 [file] [log] [blame]
/*
* Copyright (c) 2016, Alliance for Open Media. All rights reserved
*
* This source code is subject to the terms of the BSD 2 Clause License and
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
* was not distributed with this source code in the LICENSE file, you can
* obtain it at www.aomedia.org/license/software. If the Alliance for Open
* Media Patent License 1.0 was not distributed with this source code in the
* PATENTS file, you can obtain it at www.aomedia.org/license/patent.
*/
#include <assert.h>
#include "av1/common/common_data.h"
#include "av1/common/scan.h"
DECLARE_ALIGNED(16, static const int16_t, default_scan_4x4[16]) = {
0, 4, 1, 5, 8, 2, 12, 9, 3, 6, 13, 10, 7, 14, 11, 15,
};
DECLARE_ALIGNED(16, static const int16_t, mcol_scan_4x4[16]) = {
0, 4, 8, 12, 1, 5, 9, 13, 2, 6, 10, 14, 3, 7, 11, 15,
};
DECLARE_ALIGNED(16, static const int16_t, mrow_scan_4x4[16]) = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
};
DECLARE_ALIGNED(16, static const int16_t, col_scan_4x4[16]) = {
0, 4, 8, 1, 12, 5, 9, 2, 13, 6, 10, 3, 7, 14, 11, 15,
};
DECLARE_ALIGNED(16, static const int16_t, row_scan_4x4[16]) = {
0, 1, 4, 2, 5, 3, 6, 8, 9, 7, 12, 10, 13, 11, 14, 15,
};
DECLARE_ALIGNED(16, static const int16_t, default_scan_4x8[32]) = {
0, 1, 4, 5, 2, 8, 6, 9, 10, 3, 12, 7, 13, 11, 14, 16,
17, 15, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
};
DECLARE_ALIGNED(16, static const int16_t, mcol_scan_4x8[32]) = {
0, 4, 8, 12, 16, 20, 24, 28, 1, 5, 9, 13, 17, 21, 25, 29,
2, 6, 10, 14, 18, 22, 26, 30, 3, 7, 11, 15, 19, 23, 27, 31,
};
DECLARE_ALIGNED(16, static const int16_t, mrow_scan_4x8[32]) = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
};
DECLARE_ALIGNED(16, static const int16_t, default_scan_8x4[32]) = {
0, 1, 8, 9, 2, 16, 10, 17, 18, 3, 24, 11, 25, 19, 26, 4,
12, 27, 20, 5, 28, 13, 21, 29, 6, 14, 22, 30, 7, 15, 23, 31,
};
DECLARE_ALIGNED(16, static const int16_t, mcol_scan_8x4[32]) = {
0, 8, 16, 24, 1, 9, 17, 25, 2, 10, 18, 26, 3, 11, 19, 27,
4, 12, 20, 28, 5, 13, 21, 29, 6, 14, 22, 30, 7, 15, 23, 31,
};
DECLARE_ALIGNED(16, static const int16_t, mrow_scan_8x4[32]) = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
};
DECLARE_ALIGNED(16, static const int16_t, default_scan_4x16[64]) = {
0, 1, 4, 5, 2, 8, 6, 9, 10, 3, 12, 7, 13, 11, 14, 16,
17, 15, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
};
DECLARE_ALIGNED(16, static const int16_t, default_scan_16x4[64]) = {
0, 1, 16, 17, 2, 32, 18, 33, 34, 3, 48, 19, 49, 35, 50, 4,
20, 51, 36, 5, 52, 21, 37, 53, 6, 22, 38, 54, 7, 23, 39, 55,
8, 24, 40, 56, 9, 25, 41, 57, 10, 26, 42, 58, 11, 27, 43, 59,
12, 28, 44, 60, 13, 29, 45, 61, 14, 30, 46, 62, 15, 31, 47, 63,
};
DECLARE_ALIGNED(16, static const int16_t, mrow_scan_4x16[64]) = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
};
DECLARE_ALIGNED(16, static const int16_t, mrow_scan_16x4[64]) = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
};
DECLARE_ALIGNED(16, static const int16_t, mcol_scan_4x16[64]) = {
0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60,
1, 5, 9, 13, 17, 21, 25, 29, 33, 37, 41, 45, 49, 53, 57, 61,
2, 6, 10, 14, 18, 22, 26, 30, 34, 38, 42, 46, 50, 54, 58, 62,
3, 7, 11, 15, 19, 23, 27, 31, 35, 39, 43, 47, 51, 55, 59, 63,
};
DECLARE_ALIGNED(16, static const int16_t, mcol_scan_16x4[64]) = {
0, 16, 32, 48, 1, 17, 33, 49, 2, 18, 34, 50, 3, 19, 35, 51,
4, 20, 36, 52, 5, 21, 37, 53, 6, 22, 38, 54, 7, 23, 39, 55,
8, 24, 40, 56, 9, 25, 41, 57, 10, 26, 42, 58, 11, 27, 43, 59,
12, 28, 44, 60, 13, 29, 45, 61, 14, 30, 46, 62, 15, 31, 47, 63,
};
DECLARE_ALIGNED(16, static const int16_t, default_scan_8x32[256]) = {
0, 1, 8, 2, 9, 16, 3, 10, 17, 24, 4, 11, 18, 25, 32,
5, 12, 19, 26, 33, 40, 6, 13, 20, 27, 34, 41, 48, 7, 14,
21, 28, 35, 42, 49, 56, 15, 22, 29, 36, 43, 50, 57, 64, 23,
30, 37, 44, 51, 58, 65, 72, 31, 38, 45, 52, 59, 66, 73, 80,
39, 46, 53, 60, 67, 74, 81, 88, 47, 54, 61, 68, 75, 82, 89,
96, 55, 62, 69, 76, 83, 90, 97, 104, 63, 70, 77, 84, 91, 98,
105, 112, 71, 78, 85, 92, 99, 106, 113, 120, 79, 86, 93, 100, 107,
114, 121, 128, 87, 94, 101, 108, 115, 122, 129, 136, 95, 102, 109, 116,
123, 130, 137, 144, 103, 110, 117, 124, 131, 138, 145, 152, 111, 118, 125,
132, 139, 146, 153, 160, 119, 126, 133, 140, 147, 154, 161, 168, 127, 134,
141, 148, 155, 162, 169, 176, 135, 142, 149, 156, 163, 170, 177, 184, 143,
150, 157, 164, 171, 178, 185, 192, 151, 158, 165, 172, 179, 186, 193, 200,
159, 166, 173, 180, 187, 194, 201, 208, 167, 174, 181, 188, 195, 202, 209,
216, 175, 182, 189, 196, 203, 210, 217, 224, 183, 190, 197, 204, 211, 218,
225, 232, 191, 198, 205, 212, 219, 226, 233, 240, 199, 206, 213, 220, 227,
234, 241, 248, 207, 214, 221, 228, 235, 242, 249, 215, 222, 229, 236, 243,
250, 223, 230, 237, 244, 251, 231, 238, 245, 252, 239, 246, 253, 247, 254,
255,
};
DECLARE_ALIGNED(16, static const int16_t, default_scan_32x8[256]) = {
0, 1, 32, 2, 33, 64, 3, 34, 65, 96, 4, 35, 66, 97, 128,
5, 36, 67, 98, 129, 160, 6, 37, 68, 99, 130, 161, 192, 7, 38,
69, 100, 131, 162, 193, 224, 8, 39, 70, 101, 132, 163, 194, 225, 9,
40, 71, 102, 133, 164, 195, 226, 10, 41, 72, 103, 134, 165, 196, 227,
11, 42, 73, 104, 135, 166, 197, 228, 12, 43, 74, 105, 136, 167, 198,
229, 13, 44, 75, 106, 137, 168, 199, 230, 14, 45, 76, 107, 138, 169,
200, 231, 15, 46, 77, 108, 139, 170, 201, 232, 16, 47, 78, 109, 140,
171, 202, 233, 17, 48, 79, 110, 141, 172, 203, 234, 18, 49, 80, 111,
142, 173, 204, 235, 19, 50, 81, 112, 143, 174, 205, 236, 20, 51, 82,
113, 144, 175, 206, 237, 21, 52, 83, 114, 145, 176, 207, 238, 22, 53,
84, 115, 146, 177, 208, 239, 23, 54, 85, 116, 147, 178, 209, 240, 24,
55, 86, 117, 148, 179, 210, 241, 25, 56, 87, 118, 149, 180, 211, 242,
26, 57, 88, 119, 150, 181, 212, 243, 27, 58, 89, 120, 151, 182, 213,
244, 28, 59, 90, 121, 152, 183, 214, 245, 29, 60, 91, 122, 153, 184,
215, 246, 30, 61, 92, 123, 154, 185, 216, 247, 31, 62, 93, 124, 155,
186, 217, 248, 63, 94, 125, 156, 187, 218, 249, 95, 126, 157, 188, 219,
250, 127, 158, 189, 220, 251, 159, 190, 221, 252, 191, 222, 253, 223, 254,
255,
};
DECLARE_ALIGNED(16, static const int16_t, mrow_scan_8x32[256]) = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119,
120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179,
180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209,
210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224,
225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239,
240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254,
255,
};
DECLARE_ALIGNED(16, static const int16_t, mrow_scan_32x8[256]) = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119,
120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179,
180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209,
210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224,
225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239,
240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254,
255,
};
DECLARE_ALIGNED(16, static const int16_t, mcol_scan_8x32[256]) = {
0, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 104, 112,
120, 128, 136, 144, 152, 160, 168, 176, 184, 192, 200, 208, 216, 224, 232,
240, 248, 1, 9, 17, 25, 33, 41, 49, 57, 65, 73, 81, 89, 97,
105, 113, 121, 129, 137, 145, 153, 161, 169, 177, 185, 193, 201, 209, 217,
225, 233, 241, 249, 2, 10, 18, 26, 34, 42, 50, 58, 66, 74, 82,
90, 98, 106, 114, 122, 130, 138, 146, 154, 162, 170, 178, 186, 194, 202,
210, 218, 226, 234, 242, 250, 3, 11, 19, 27, 35, 43, 51, 59, 67,
75, 83, 91, 99, 107, 115, 123, 131, 139, 147, 155, 163, 171, 179, 187,
195, 203, 211, 219, 227, 235, 243, 251, 4, 12, 20, 28, 36, 44, 52,
60, 68, 76, 84, 92, 100, 108, 116, 124, 132, 140, 148, 156, 164, 172,
180, 188, 196, 204, 212, 220, 228, 236, 244, 252, 5, 13, 21, 29, 37,
45, 53, 61, 69, 77, 85, 93, 101, 109, 117, 125, 133, 141, 149, 157,
165, 173, 181, 189, 197, 205, 213, 221, 229, 237, 245, 253, 6, 14, 22,
30, 38, 46, 54, 62, 70, 78, 86, 94, 102, 110, 118, 126, 134, 142,
150, 158, 166, 174, 182, 190, 198, 206, 214, 222, 230, 238, 246, 254, 7,
15, 23, 31, 39, 47, 55, 63, 71, 79, 87, 95, 103, 111, 119, 127,
135, 143, 151, 159, 167, 175, 183, 191, 199, 207, 215, 223, 231, 239, 247,
255,
};
DECLARE_ALIGNED(16, static const int16_t, mcol_scan_32x8[256]) = {
0, 32, 64, 96, 128, 160, 192, 224, 1, 33, 65, 97, 129, 161, 193, 225,
2, 34, 66, 98, 130, 162, 194, 226, 3, 35, 67, 99, 131, 163, 195, 227,
4, 36, 68, 100, 132, 164, 196, 228, 5, 37, 69, 101, 133, 165, 197, 229,
6, 38, 70, 102, 134, 166, 198, 230, 7, 39, 71, 103, 135, 167, 199, 231,
8, 40, 72, 104, 136, 168, 200, 232, 9, 41, 73, 105, 137, 169, 201, 233,
10, 42, 74, 106, 138, 170, 202, 234, 11, 43, 75, 107, 139, 171, 203, 235,
12, 44, 76, 108, 140, 172, 204, 236, 13, 45, 77, 109, 141, 173, 205, 237,
14, 46, 78, 110, 142, 174, 206, 238, 15, 47, 79, 111, 143, 175, 207, 239,
16, 48, 80, 112, 144, 176, 208, 240, 17, 49, 81, 113, 145, 177, 209, 241,
18, 50, 82, 114, 146, 178, 210, 242, 19, 51, 83, 115, 147, 179, 211, 243,
20, 52, 84, 116, 148, 180, 212, 244, 21, 53, 85, 117, 149, 181, 213, 245,
22, 54, 86, 118, 150, 182, 214, 246, 23, 55, 87, 119, 151, 183, 215, 247,
24, 56, 88, 120, 152, 184, 216, 248, 25, 57, 89, 121, 153, 185, 217, 249,
26, 58, 90, 122, 154, 186, 218, 250, 27, 59, 91, 123, 155, 187, 219, 251,
28, 60, 92, 124, 156, 188, 220, 252, 29, 61, 93, 125, 157, 189, 221, 253,
30, 62, 94, 126, 158, 190, 222, 254, 31, 63, 95, 127, 159, 191, 223, 255,
};
DECLARE_ALIGNED(16, static const int16_t, default_scan_8x8[64]) = {
0, 8, 1, 16, 9, 2, 17, 24, 10, 3, 18, 25, 32, 11, 4, 26,
33, 19, 40, 12, 34, 27, 5, 41, 20, 48, 13, 35, 42, 28, 21, 6,
49, 56, 36, 43, 29, 7, 14, 50, 57, 44, 22, 37, 15, 51, 58, 30,
45, 23, 52, 59, 38, 31, 60, 53, 46, 39, 61, 54, 47, 62, 55, 63,
};
DECLARE_ALIGNED(16, static const int16_t, mcol_scan_8x8[64]) = {
0, 8, 16, 24, 32, 40, 48, 56, 1, 9, 17, 25, 33, 41, 49, 57,
2, 10, 18, 26, 34, 42, 50, 58, 3, 11, 19, 27, 35, 43, 51, 59,
4, 12, 20, 28, 36, 44, 52, 60, 5, 13, 21, 29, 37, 45, 53, 61,
6, 14, 22, 30, 38, 46, 54, 62, 7, 15, 23, 31, 39, 47, 55, 63,
};
DECLARE_ALIGNED(16, static const int16_t, mrow_scan_8x8[64]) = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
};
DECLARE_ALIGNED(16, static const int16_t, col_scan_8x8[64]) = {
0, 8, 16, 1, 24, 9, 32, 17, 2, 40, 25, 10, 33, 18, 48, 3,
26, 41, 11, 56, 19, 34, 4, 49, 27, 42, 12, 35, 20, 57, 50, 28,
5, 43, 13, 36, 58, 51, 21, 44, 6, 29, 59, 37, 14, 52, 22, 7,
45, 60, 30, 15, 38, 53, 23, 46, 31, 61, 39, 54, 47, 62, 55, 63,
};
DECLARE_ALIGNED(16, static const int16_t, row_scan_8x8[64]) = {
0, 1, 2, 8, 9, 3, 16, 10, 4, 17, 11, 24, 5, 18, 25, 12,
19, 26, 32, 6, 13, 20, 33, 27, 7, 34, 40, 21, 28, 41, 14, 35,
48, 42, 29, 36, 49, 22, 43, 15, 56, 37, 50, 44, 30, 57, 23, 51,
58, 45, 38, 52, 31, 59, 53, 46, 60, 39, 61, 47, 54, 55, 62, 63,
};
DECLARE_ALIGNED(16, static const int16_t, default_scan_8x16[128]) = {
0, 1, 8, 2, 9, 16, 3, 10, 17, 24, 4, 11, 18, 25, 32,
5, 12, 19, 26, 33, 40, 6, 13, 20, 27, 34, 41, 48, 7, 14,
21, 28, 35, 42, 49, 56, 15, 22, 29, 36, 43, 50, 57, 64, 23,
30, 37, 44, 51, 58, 65, 72, 31, 38, 45, 52, 59, 66, 73, 80,
39, 46, 53, 60, 67, 74, 81, 88, 47, 54, 61, 68, 75, 82, 89,
96, 55, 62, 69, 76, 83, 90, 97, 104, 63, 70, 77, 84, 91, 98,
105, 112, 71, 78, 85, 92, 99, 106, 113, 120, 79, 86, 93, 100, 107,
114, 121, 87, 94, 101, 108, 115, 122, 95, 102, 109, 116, 123, 103, 110,
117, 124, 111, 118, 125, 119, 126, 127,
};
DECLARE_ALIGNED(16, static const int16_t, default_scan_16x8[128]) = {
0, 1, 16, 2, 17, 32, 3, 18, 33, 48, 4, 19, 34, 49, 64, 5,
20, 35, 50, 65, 80, 6, 21, 36, 51, 66, 81, 96, 7, 22, 37, 52,
67, 82, 97, 112, 8, 23, 38, 53, 68, 83, 98, 113, 9, 24, 39, 54,
69, 84, 99, 114, 10, 25, 40, 55, 70, 85, 100, 115, 11, 26, 41, 56,
71, 86, 101, 116, 12, 27, 42, 57, 72, 87, 102, 117, 13, 28, 43, 58,
73, 88, 103, 118, 14, 29, 44, 59, 74, 89, 104, 119, 15, 30, 45, 60,
75, 90, 105, 120, 31, 46, 61, 76, 91, 106, 121, 47, 62, 77, 92, 107,
122, 63, 78, 93, 108, 123, 79, 94, 109, 124, 95, 110, 125, 111, 126, 127,
};
DECLARE_ALIGNED(16, static const int16_t, mcol_scan_8x16[128]) = {
0, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 104, 112, 120,
1, 9, 17, 25, 33, 41, 49, 57, 65, 73, 81, 89, 97, 105, 113, 121,
2, 10, 18, 26, 34, 42, 50, 58, 66, 74, 82, 90, 98, 106, 114, 122,
3, 11, 19, 27, 35, 43, 51, 59, 67, 75, 83, 91, 99, 107, 115, 123,
4, 12, 20, 28, 36, 44, 52, 60, 68, 76, 84, 92, 100, 108, 116, 124,
5, 13, 21, 29, 37, 45, 53, 61, 69, 77, 85, 93, 101, 109, 117, 125,
6, 14, 22, 30, 38, 46, 54, 62, 70, 78, 86, 94, 102, 110, 118, 126,
7, 15, 23, 31, 39, 47, 55, 63, 71, 79, 87, 95, 103, 111, 119, 127,
};
DECLARE_ALIGNED(16, static const int16_t, mcol_scan_16x8[128]) = {
0, 16, 32, 48, 64, 80, 96, 112, 1, 17, 33, 49, 65, 81, 97, 113,
2, 18, 34, 50, 66, 82, 98, 114, 3, 19, 35, 51, 67, 83, 99, 115,
4, 20, 36, 52, 68, 84, 100, 116, 5, 21, 37, 53, 69, 85, 101, 117,
6, 22, 38, 54, 70, 86, 102, 118, 7, 23, 39, 55, 71, 87, 103, 119,
8, 24, 40, 56, 72, 88, 104, 120, 9, 25, 41, 57, 73, 89, 105, 121,
10, 26, 42, 58, 74, 90, 106, 122, 11, 27, 43, 59, 75, 91, 107, 123,
12, 28, 44, 60, 76, 92, 108, 124, 13, 29, 45, 61, 77, 93, 109, 125,
14, 30, 46, 62, 78, 94, 110, 126, 15, 31, 47, 63, 79, 95, 111, 127,
};
DECLARE_ALIGNED(16, static const int16_t, mrow_scan_8x16[128]) = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119,
120, 121, 122, 123, 124, 125, 126, 127,
};
DECLARE_ALIGNED(16, static const int16_t, mrow_scan_16x8[128]) = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119,
120, 121, 122, 123, 124, 125, 126, 127,
};
DECLARE_ALIGNED(16, static const int16_t, default_scan_16x32[512]) = {
0, 1, 16, 2, 17, 32, 3, 18, 33, 48, 4, 19, 34, 49, 64,
5, 20, 35, 50, 65, 80, 6, 21, 36, 51, 66, 81, 96, 7, 22,
37, 52, 67, 82, 97, 112, 8, 23, 38, 53, 68, 83, 98, 113, 128,
9, 24, 39, 54, 69, 84, 99, 114, 129, 144, 10, 25, 40, 55, 70,
85, 100, 115, 130, 145, 160, 11, 26, 41, 56, 71, 86, 101, 116, 131,
146, 161, 176, 12, 27, 42, 57, 72, 87, 102, 117, 132, 147, 162, 177,
192, 13, 28, 43, 58, 73, 88, 103, 118, 133, 148, 163, 178, 193, 208,
14, 29, 44, 59, 74, 89, 104, 119, 134, 149, 164, 179, 194, 209, 224,
15, 30, 45, 60, 75, 90, 105, 120, 135, 150, 165, 180, 195, 210, 225,
240, 31, 46, 61, 76, 91, 106, 121, 136, 151, 166, 181, 196, 211, 226,
241, 256, 47, 62, 77, 92, 107, 122, 137, 152, 167, 182, 197, 212, 227,
242, 257, 272, 63, 78, 93, 108, 123, 138, 153, 168, 183, 198, 213, 228,
243, 258, 273, 288, 79, 94, 109, 124, 139, 154, 169, 184, 199, 214, 229,
244, 259, 274, 289, 304, 95, 110, 125, 140, 155, 170, 185, 200, 215, 230,
245, 260, 275, 290, 305, 320, 111, 126, 141, 156, 171, 186, 201, 216, 231,
246, 261, 276, 291, 306, 321, 336, 127, 142, 157, 172, 187, 202, 217, 232,
247, 262, 277, 292, 307, 322, 337, 352, 143, 158, 173, 188, 203, 218, 233,
248, 263, 278, 293, 308, 323, 338, 353, 368, 159, 174, 189, 204, 219, 234,
249, 264, 279, 294, 309, 324, 339, 354, 369, 384, 175, 190, 205, 220, 235,
250, 265, 280, 295, 310, 325, 340, 355, 370, 385, 400, 191, 206, 221, 236,
251, 266, 281, 296, 311, 326, 341, 356, 371, 386, 401, 416, 207, 222, 237,
252, 267, 282, 297, 312, 327, 342, 357, 372, 387, 402, 417, 432, 223, 238,
253, 268, 283, 298, 313, 328, 343, 358, 373, 388, 403, 418, 433, 448, 239,
254, 269, 284, 299, 314, 329, 344, 359, 374, 389, 404, 419, 434, 449, 464,
255, 270, 285, 300, 315, 330, 345, 360, 375, 390, 405, 420, 435, 450, 465,
480, 271, 286, 301, 316, 331, 346, 361, 376, 391, 406, 421, 436, 451, 466,
481, 496, 287, 302, 317, 332, 347, 362, 377, 392, 407, 422, 437, 452, 467,
482, 497, 303, 318, 333, 348, 363, 378, 393, 408, 423, 438, 453, 468, 483,
498, 319, 334, 349, 364, 379, 394, 409, 424, 439, 454, 469, 484, 499, 335,
350, 365, 380, 395, 410, 425, 440, 455, 470, 485, 500, 351, 366, 381, 396,
411, 426, 441, 456, 471, 486, 501, 367, 382, 397, 412, 427, 442, 457, 472,
487, 502, 383, 398, 413, 428, 443, 458, 473, 488, 503, 399, 414, 429, 444,
459, 474, 489, 504, 415, 430, 445, 460, 475, 490, 505, 431, 446, 461, 476,
491, 506, 447, 462, 477, 492, 507, 463, 478, 493, 508, 479, 494, 509, 495,
510, 511,
};
DECLARE_ALIGNED(16, static const int16_t, default_scan_32x16[512]) = {
0, 1, 32, 2, 33, 64, 3, 34, 65, 96, 4, 35, 66, 97, 128,
5, 36, 67, 98, 129, 160, 6, 37, 68, 99, 130, 161, 192, 7, 38,
69, 100, 131, 162, 193, 224, 8, 39, 70, 101, 132, 163, 194, 225, 256,
9, 40, 71, 102, 133, 164, 195, 226, 257, 288, 10, 41, 72, 103, 134,
165, 196, 227, 258, 289, 320, 11, 42, 73, 104, 135, 166, 197, 228, 259,
290, 321, 352, 12, 43, 74, 105, 136, 167, 198, 229, 260, 291, 322, 353,
384, 13, 44, 75, 106, 137, 168, 199, 230, 261, 292, 323, 354, 385, 416,
14, 45, 76, 107, 138, 169, 200, 231, 262, 293, 324, 355, 386, 417, 448,
15, 46, 77, 108, 139, 170, 201, 232, 263, 294, 325, 356, 387, 418, 449,
480, 16, 47, 78, 109, 140, 171, 202, 233, 264, 295, 326, 357, 388, 419,
450, 481, 17, 48, 79, 110, 141, 172, 203, 234, 265, 296, 327, 358, 389,
420, 451, 482, 18, 49, 80, 111, 142, 173, 204, 235, 266, 297, 328, 359,
390, 421, 452, 483, 19, 50, 81, 112, 143, 174, 205, 236, 267, 298, 329,
360, 391, 422, 453, 484, 20, 51, 82, 113, 144, 175, 206, 237, 268, 299,
330, 361, 392, 423, 454, 485, 21, 52, 83, 114, 145, 176, 207, 238, 269,
300, 331, 362, 393, 424, 455, 486, 22, 53, 84, 115, 146, 177, 208, 239,
270, 301, 332, 363, 394, 425, 456, 487, 23, 54, 85, 116, 147, 178, 209,
240, 271, 302, 333, 364, 395, 426, 457, 488, 24, 55, 86, 117, 148, 179,
210, 241, 272, 303, 334, 365, 396, 427, 458, 489, 25, 56, 87, 118, 149,
180, 211, 242, 273, 304, 335, 366, 397, 428, 459, 490, 26, 57, 88, 119,
150, 181, 212, 243, 274, 305, 336, 367, 398, 429, 460, 491, 27, 58, 89,
120, 151, 182, 213, 244, 275, 306, 337, 368, 399, 430, 461, 492, 28, 59,
90, 121, 152, 183, 214, 245, 276, 307, 338, 369, 400, 431, 462, 493, 29,
60, 91, 122, 153, 184, 215, 246, 277, 308, 339, 370, 401, 432, 463, 494,
30, 61, 92, 123, 154, 185, 216, 247, 278, 309, 340, 371, 402, 433, 464,
495, 31, 62, 93, 124, 155, 186, 217, 248, 279, 310, 341, 372, 403, 434,
465, 496, 63, 94, 125, 156, 187, 218, 249, 280, 311, 342, 373, 404, 435,
466, 497, 95, 126, 157, 188, 219, 250, 281, 312, 343, 374, 405, 436, 467,
498, 127, 158, 189, 220, 251, 282, 313, 344, 375, 406, 437, 468, 499, 159,
190, 221, 252, 283, 314, 345, 376, 407, 438, 469, 500, 191, 222, 253, 284,
315, 346, 377, 408, 439, 470, 501, 223, 254, 285, 316, 347, 378, 409, 440,
471, 502, 255, 286, 317, 348, 379, 410, 441, 472, 503, 287, 318, 349, 380,
411, 442, 473, 504, 319, 350, 381, 412, 443, 474, 505, 351, 382, 413, 444,
475, 506, 383, 414, 445, 476, 507, 415, 446, 477, 508, 447, 478, 509, 479,
510, 511,
};
DECLARE_ALIGNED(16, static const int16_t, mcol_scan_16x32[512]) = {
0, 16, 32, 48, 64, 80, 96, 112, 128, 144, 160, 176, 192, 208, 224,
240, 256, 272, 288, 304, 320, 336, 352, 368, 384, 400, 416, 432, 448, 464,
480, 496, 1, 17, 33, 49, 65, 81, 97, 113, 129, 145, 161, 177, 193,
209, 225, 241, 257, 273, 289, 305, 321, 337, 353, 369, 385, 401, 417, 433,
449, 465, 481, 497, 2, 18, 34, 50, 66, 82, 98, 114, 130, 146, 162,
178, 194, 210, 226, 242, 258, 274, 290, 306, 322, 338, 354, 370, 386, 402,
418, 434, 450, 466, 482, 498, 3, 19, 35, 51, 67, 83, 99, 115, 131,
147, 163, 179, 195, 211, 227, 243, 259, 275, 291, 307, 323, 339, 355, 371,
387, 403, 419, 435, 451, 467, 483, 499, 4, 20, 36, 52, 68, 84, 100,
116, 132, 148, 164, 180, 196, 212, 228, 244, 260, 276, 292, 308, 324, 340,
356, 372, 388, 404, 420, 436, 452, 468, 484, 500, 5, 21, 37, 53, 69,
85, 101, 117, 133, 149, 165, 181, 197, 213, 229, 245, 261, 277, 293, 309,
325, 341, 357, 373, 389, 405, 421, 437, 453, 469, 485, 501, 6, 22, 38,
54, 70, 86, 102, 118, 134, 150, 166, 182, 198, 214, 230, 246, 262, 278,
294, 310, 326, 342, 358, 374, 390, 406, 422, 438, 454, 470, 486, 502, 7,
23, 39, 55, 71, 87, 103, 119, 135, 151, 167, 183, 199, 215, 231, 247,
263, 279, 295, 311, 327, 343, 359, 375, 391, 407, 423, 439, 455, 471, 487,
503, 8, 24, 40, 56, 72, 88, 104, 120, 136, 152, 168, 184, 200, 216,
232, 248, 264, 280, 296, 312, 328, 344, 360, 376, 392, 408, 424, 440, 456,
472, 488, 504, 9, 25, 41, 57, 73, 89, 105, 121, 137, 153, 169, 185,
201, 217, 233, 249, 265, 281, 297, 313, 329, 345, 361, 377, 393, 409, 425,
441, 457, 473, 489, 505, 10, 26, 42, 58, 74, 90, 106, 122, 138, 154,
170, 186, 202, 218, 234, 250, 266, 282, 298, 314, 330, 346, 362, 378, 394,
410, 426, 442, 458, 474, 490, 506, 11, 27, 43, 59, 75, 91, 107, 123,
139, 155, 171, 187, 203, 219, 235, 251, 267, 283, 299, 315, 331, 347, 363,
379, 395, 411, 427, 443, 459, 475, 491, 507, 12, 28, 44, 60, 76, 92,
108, 124, 140, 156, 172, 188, 204, 220, 236, 252, 268, 284, 300, 316, 332,
348, 364, 380, 396, 412, 428, 444, 460, 476, 492, 508, 13, 29, 45, 61,
77, 93, 109, 125, 141, 157, 173, 189, 205, 221, 237, 253, 269, 285, 301,
317, 333, 349, 365, 381, 397, 413, 429, 445, 461, 477, 493, 509, 14, 30,
46, 62, 78, 94, 110, 126, 142, 158, 174, 190, 206, 222, 238, 254, 270,
286, 302, 318, 334, 350, 366, 382, 398, 414, 430, 446, 462, 478, 494, 510,
15, 31, 47, 63, 79, 95, 111, 127, 143, 159, 175, 191, 207, 223, 239,
255, 271, 287, 303, 319, 335, 351, 367, 383, 399, 415, 431, 447, 463, 479,
495, 511,
};
DECLARE_ALIGNED(16, static const int16_t, mcol_scan_32x16[512]) = {
0, 32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448, 480,
1, 33, 65, 97, 129, 161, 193, 225, 257, 289, 321, 353, 385, 417, 449, 481,
2, 34, 66, 98, 130, 162, 194, 226, 258, 290, 322, 354, 386, 418, 450, 482,
3, 35, 67, 99, 131, 163, 195, 227, 259, 291, 323, 355, 387, 419, 451, 483,
4, 36, 68, 100, 132, 164, 196, 228, 260, 292, 324, 356, 388, 420, 452, 484,
5, 37, 69, 101, 133, 165, 197, 229, 261, 293, 325, 357, 389, 421, 453, 485,
6, 38, 70, 102, 134, 166, 198, 230, 262, 294, 326, 358, 390, 422, 454, 486,
7, 39, 71, 103, 135, 167, 199, 231, 263, 295, 327, 359, 391, 423, 455, 487,
8, 40, 72, 104, 136, 168, 200, 232, 264, 296, 328, 360, 392, 424, 456, 488,
9, 41, 73, 105, 137, 169, 201, 233, 265, 297, 329, 361, 393, 425, 457, 489,
10, 42, 74, 106, 138, 170, 202, 234, 266, 298, 330, 362, 394, 426, 458, 490,
11, 43, 75, 107, 139, 171, 203, 235, 267, 299, 331, 363, 395, 427, 459, 491,
12, 44, 76, 108, 140, 172, 204, 236, 268, 300, 332, 364, 396, 428, 460, 492,
13, 45, 77, 109, 141, 173, 205, 237, 269, 301, 333, 365, 397, 429, 461, 493,
14, 46, 78, 110, 142, 174, 206, 238, 270, 302, 334, 366, 398, 430, 462, 494,
15, 47, 79, 111, 143, 175, 207, 239, 271, 303, 335, 367, 399, 431, 463, 495,
16, 48, 80, 112, 144, 176, 208, 240, 272, 304, 336, 368, 400, 432, 464, 496,
17, 49, 81, 113, 145, 177, 209, 241, 273, 305, 337, 369, 401, 433, 465, 497,
18, 50, 82, 114, 146, 178, 210, 242, 274, 306, 338, 370, 402, 434, 466, 498,
19, 51, 83, 115, 147, 179, 211, 243, 275, 307, 339, 371, 403, 435, 467, 499,
20, 52, 84, 116, 148, 180, 212, 244, 276, 308, 340, 372, 404, 436, 468, 500,
21, 53, 85, 117, 149, 181, 213, 245, 277, 309, 341, 373, 405, 437, 469, 501,
22, 54, 86, 118, 150, 182, 214, 246, 278, 310, 342, 374, 406, 438, 470, 502,
23, 55, 87, 119, 151, 183, 215, 247, 279, 311, 343, 375, 407, 439, 471, 503,
24, 56, 88, 120, 152, 184, 216, 248, 280, 312, 344, 376, 408, 440, 472, 504,
25, 57, 89, 121, 153, 185, 217, 249, 281, 313, 345, 377, 409, 441, 473, 505,
26, 58, 90, 122, 154, 186, 218, 250, 282, 314, 346, 378, 410, 442, 474, 506,
27, 59, 91, 123, 155, 187, 219, 251, 283, 315, 347, 379, 411, 443, 475, 507,
28, 60, 92, 124, 156, 188, 220, 252, 284, 316, 348, 380, 412, 444, 476, 508,
29, 61, 93, 125, 157, 189, 221, 253, 285, 317, 349, 381, 413, 445, 477, 509,
30, 62, 94, 126, 158, 190, 222, 254, 286, 318, 350, 382, 414, 446, 478, 510,
31, 63, 95, 127, 159, 191, 223, 255, 287, 319, 351, 383, 415, 447, 479, 511,
};
DECLARE_ALIGNED(16, static const int16_t, mrow_scan_16x32[512]) = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119,
120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179,
180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209,
210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224,
225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239,
240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254,
255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269,
270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299,
300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329,
330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344,
345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359,
360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374,
375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389,
390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419,
420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434,
435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449,
450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464,
465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479,
480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494,
495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509,
510, 511,
};
DECLARE_ALIGNED(16, static const int16_t, mrow_scan_32x16[512]) = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119,
120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179,
180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209,
210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224,
225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239,
240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254,
255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269,
270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299,
300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329,
330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344,
345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359,
360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374,
375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389,
390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419,
420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434,
435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449,
450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464,
465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479,
480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494,
495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509,
510, 511,
};
DECLARE_ALIGNED(16, static const int16_t, default_scan_16x16[256]) = {
0, 16, 1, 32, 17, 2, 48, 33, 18, 3, 64, 34, 49, 19, 65,
80, 50, 4, 35, 66, 20, 81, 96, 51, 5, 36, 82, 97, 67, 112,
21, 52, 98, 37, 83, 113, 6, 68, 128, 53, 22, 99, 114, 84, 7,
129, 38, 69, 100, 115, 144, 130, 85, 54, 23, 8, 145, 39, 70, 116,
101, 131, 160, 146, 55, 86, 24, 71, 132, 117, 161, 40, 9, 102, 147,
176, 162, 87, 56, 25, 133, 118, 177, 148, 72, 103, 41, 163, 10, 192,
178, 88, 57, 134, 149, 119, 26, 164, 73, 104, 193, 42, 179, 208, 11,
135, 89, 165, 120, 150, 58, 194, 180, 27, 74, 209, 105, 151, 136, 43,
90, 224, 166, 195, 181, 121, 210, 59, 12, 152, 106, 167, 196, 75, 137,
225, 211, 240, 182, 122, 91, 28, 197, 13, 226, 168, 183, 153, 44, 212,
138, 107, 241, 60, 29, 123, 198, 184, 227, 169, 242, 76, 213, 154, 45,
92, 14, 199, 139, 61, 228, 214, 170, 185, 243, 108, 77, 155, 30, 15,
200, 229, 124, 215, 244, 93, 46, 186, 171, 201, 109, 140, 230, 62, 216,
245, 31, 125, 78, 156, 231, 47, 187, 202, 217, 94, 246, 141, 63, 232,
172, 110, 247, 157, 79, 218, 203, 126, 233, 188, 248, 95, 173, 142, 219,
111, 249, 234, 158, 127, 189, 204, 250, 235, 143, 174, 220, 205, 159, 251,
190, 221, 175, 236, 237, 191, 206, 252, 222, 253, 207, 238, 223, 254, 239,
255,
};
DECLARE_ALIGNED(16, static const int16_t, mcol_scan_16x16[256]) = {
0, 16, 32, 48, 64, 80, 96, 112, 128, 144, 160, 176, 192, 208, 224, 240,
1, 17, 33, 49, 65, 81, 97, 113, 129, 145, 161, 177, 193, 209, 225, 241,
2, 18, 34, 50, 66, 82, 98, 114, 130, 146, 162, 178, 194, 210, 226, 242,
3, 19, 35, 51, 67, 83, 99, 115, 131, 147, 163, 179, 195, 211, 227, 243,
4, 20, 36, 52, 68, 84, 100, 116, 132, 148, 164, 180, 196, 212, 228, 244,
5, 21, 37, 53, 69, 85, 101, 117, 133, 149, 165, 181, 197, 213, 229, 245,
6, 22, 38, 54, 70, 86, 102, 118, 134, 150, 166, 182, 198, 214, 230, 246,
7, 23, 39, 55, 71, 87, 103, 119, 135, 151, 167, 183, 199, 215, 231, 247,
8, 24, 40, 56, 72, 88, 104, 120, 136, 152, 168, 184, 200, 216, 232, 248,
9, 25, 41, 57, 73, 89, 105, 121, 137, 153, 169, 185, 201, 217, 233, 249,
10, 26, 42, 58, 74, 90, 106, 122, 138, 154, 170, 186, 202, 218, 234, 250,
11, 27, 43, 59, 75, 91, 107, 123, 139, 155, 171, 187, 203, 219, 235, 251,
12, 28, 44, 60, 76, 92, 108, 124, 140, 156, 172, 188, 204, 220, 236, 252,
13, 29, 45, 61, 77, 93, 109, 125, 141, 157, 173, 189, 205, 221, 237, 253,
14, 30, 46, 62, 78, 94, 110, 126, 142, 158, 174, 190, 206, 222, 238, 254,
15, 31, 47, 63, 79, 95, 111, 127, 143, 159, 175, 191, 207, 223, 239, 255,
};
DECLARE_ALIGNED(16, static const int16_t, mrow_scan_16x16[256]) = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119,
120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179,
180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209,
210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224,
225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239,
240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254,
255,
};
DECLARE_ALIGNED(16, static const int16_t, col_scan_16x16[256]) = {
0, 16, 32, 48, 1, 64, 17, 80, 33, 96, 49, 2, 65, 112, 18,
81, 34, 128, 50, 97, 3, 66, 144, 19, 113, 35, 82, 160, 98, 51,
129, 4, 67, 176, 20, 114, 145, 83, 36, 99, 130, 52, 192, 5, 161,
68, 115, 21, 146, 84, 208, 177, 37, 131, 100, 53, 162, 224, 69, 6,
116, 193, 147, 85, 22, 240, 132, 38, 178, 101, 163, 54, 209, 117, 70,
7, 148, 194, 86, 179, 225, 23, 133, 39, 164, 8, 102, 210, 241, 55,
195, 118, 149, 71, 180, 24, 87, 226, 134, 165, 211, 40, 103, 56, 72,
150, 196, 242, 119, 9, 181, 227, 88, 166, 25, 135, 41, 104, 212, 57,
151, 197, 120, 73, 243, 182, 136, 167, 213, 89, 10, 228, 105, 152, 198,
26, 42, 121, 183, 244, 168, 58, 137, 229, 74, 214, 90, 153, 199, 184,
11, 106, 245, 27, 122, 230, 169, 43, 215, 59, 200, 138, 185, 246, 75,
12, 91, 154, 216, 231, 107, 28, 44, 201, 123, 170, 60, 247, 232, 76,
139, 13, 92, 217, 186, 248, 155, 108, 29, 124, 45, 202, 233, 171, 61,
14, 77, 140, 15, 249, 93, 30, 187, 156, 218, 46, 109, 125, 62, 172,
78, 203, 31, 141, 234, 94, 47, 188, 63, 157, 110, 250, 219, 79, 126,
204, 173, 142, 95, 189, 111, 235, 158, 220, 251, 127, 174, 143, 205, 236,
159, 190, 221, 252, 175, 206, 237, 191, 253, 222, 238, 207, 254, 223, 239,
255,
};
DECLARE_ALIGNED(16, static const int16_t, row_scan_16x16[256]) = {
0, 1, 2, 16, 3, 17, 4, 18, 32, 5, 33, 19, 6, 34, 48,
20, 49, 7, 35, 21, 50, 64, 8, 36, 65, 22, 51, 37, 80, 9,
66, 52, 23, 38, 81, 67, 10, 53, 24, 82, 68, 96, 39, 11, 54,
83, 97, 69, 25, 98, 84, 40, 112, 55, 12, 70, 99, 113, 85, 26,
41, 56, 114, 100, 13, 71, 128, 86, 27, 115, 101, 129, 42, 57, 72,
116, 14, 87, 130, 102, 144, 73, 131, 117, 28, 58, 15, 88, 43, 145,
103, 132, 146, 118, 74, 160, 89, 133, 104, 29, 59, 147, 119, 44, 161,
148, 90, 105, 134, 162, 120, 176, 75, 135, 149, 30, 60, 163, 177, 45,
121, 91, 106, 164, 178, 150, 192, 136, 165, 179, 31, 151, 193, 76, 122,
61, 137, 194, 107, 152, 180, 208, 46, 166, 167, 195, 92, 181, 138, 209,
123, 153, 224, 196, 77, 168, 210, 182, 240, 108, 197, 62, 154, 225, 183,
169, 211, 47, 139, 93, 184, 226, 212, 241, 198, 170, 124, 155, 199, 78,
213, 185, 109, 227, 200, 63, 228, 242, 140, 214, 171, 186, 156, 229, 243,
125, 94, 201, 244, 215, 216, 230, 141, 187, 202, 79, 172, 110, 157, 245,
217, 231, 95, 246, 232, 126, 203, 247, 233, 173, 218, 142, 111, 158, 188,
248, 127, 234, 219, 249, 189, 204, 143, 174, 159, 250, 235, 205, 220, 175,
190, 251, 221, 191, 206, 236, 207, 237, 252, 222, 253, 223, 238, 239, 254,
255,
};
DECLARE_ALIGNED(16, static const int16_t, mcol_scan_32x32[1024]) = {
0, 32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416,
448, 480, 512, 544, 576, 608, 640, 672, 704, 736, 768, 800, 832, 864,
896, 928, 960, 992, 1, 33, 65, 97, 129, 161, 193, 225, 257, 289,
321, 353, 385, 417, 449, 481, 513, 545, 577, 609, 641, 673, 705, 737,
769, 801, 833, 865, 897, 929, 961, 993, 2, 34, 66, 98, 130, 162,
194, 226, 258, 290, 322, 354, 386, 418, 450, 482, 514, 546, 578, 610,
642, 674, 706, 738, 770, 802, 834, 866, 898, 930, 962, 994, 3, 35,
67, 99, 131, 163, 195, 227, 259, 291, 323, 355, 387, 419, 451, 483,
515, 547, 579, 611, 643, 675, 707, 739, 771, 803, 835, 867, 899, 931,
963, 995, 4, 36, 68, 100, 132, 164, 196, 228, 260, 292, 324, 356,
388, 420, 452, 484, 516, 548, 580, 612, 644, 676, 708, 740, 772, 804,
836, 868, 900, 932, 964, 996, 5, 37, 69, 101, 133, 165, 197, 229,
261, 293, 325, 357, 389, 421, 453, 485, 517, 549, 581, 613, 645, 677,
709, 741, 773, 805, 837, 869, 901, 933, 965, 997, 6, 38, 70, 102,
134, 166, 198, 230, 262, 294, 326, 358, 390, 422, 454, 486, 518, 550,
582, 614, 646, 678, 710, 742, 774, 806, 838, 870, 902, 934, 966, 998,
7, 39, 71, 103, 135, 167, 199, 231, 263, 295, 327, 359, 391, 423,
455, 487, 519, 551, 583, 615, 647, 679, 711, 743, 775, 807, 839, 871,
903, 935, 967, 999, 8, 40, 72, 104, 136, 168, 200, 232, 264, 296,
328, 360, 392, 424, 456, 488, 520, 552, 584, 616, 648, 680, 712, 744,
776, 808, 840, 872, 904, 936, 968, 1000, 9, 41, 73, 105, 137, 169,
201, 233, 265, 297, 329, 361, 393, 425, 457, 489, 521, 553, 585, 617,
649, 681, 713, 745, 777, 809, 841, 873, 905, 937, 969, 1001, 10, 42,
74, 106, 138, 170, 202, 234, 266, 298, 330, 362, 394, 426, 458, 490,
522, 554, 586, 618, 650, 682, 714, 746, 778, 810, 842, 874, 906, 938,
970, 1002, 11, 43, 75, 107, 139, 171, 203, 235, 267, 299, 331, 363,
395, 427, 459, 491, 523, 555, 587, 619, 651, 683, 715, 747, 779, 811,
843, 875, 907, 939, 971, 1003, 12, 44, 76, 108, 140, 172, 204, 236,
268, 300, 332, 364, 396, 428, 460, 492, 524, 556, 588, 620, 652, 684,
716, 748, 780, 812, 844, 876, 908, 940, 972, 1004, 13, 45, 77, 109,
141, 173, 205, 237, 269, 301, 333, 365, 397, 429, 461, 493, 525, 557,
589, 621, 653, 685, 717, 749, 781, 813, 845, 877, 909, 941, 973, 1005,
14, 46, 78, 110, 142, 174, 206, 238, 270, 302, 334, 366, 398, 430,
462, 494, 526, 558, 590, 622, 654, 686, 718, 750, 782, 814, 846, 878,
910, 942, 974, 1006, 15, 47, 79, 111, 143, 175, 207, 239, 271, 303,
335, 367, 399, 431, 463, 495, 527, 559, 591, 623, 655, 687, 719, 751,
783, 815, 847, 879, 911, 943, 975, 1007, 16, 48, 80, 112, 144, 176,
208, 240, 272, 304, 336, 368, 400, 432, 464, 496, 528, 560, 592, 624,
656, 688, 720, 752, 784, 816, 848, 880, 912, 944, 976, 1008, 17, 49,
81, 113, 145, 177, 209, 241, 273, 305, 337, 369, 401, 433, 465, 497,
529, 561, 593, 625, 657, 689, 721, 753, 785, 817, 849, 881, 913, 945,
977, 1009, 18, 50, 82, 114, 146, 178, 210, 242, 274, 306, 338, 370,
402, 434, 466, 498, 530, 562, 594, 626, 658, 690, 722, 754, 786, 818,
850, 882, 914, 946, 978, 1010, 19, 51, 83, 115, 147, 179, 211, 243,
275, 307, 339, 371, 403, 435, 467, 499, 531, 563, 595, 627, 659, 691,
723, 755, 787, 819, 851, 883, 915, 947, 979, 1011, 20, 52, 84, 116,
148, 180, 212, 244, 276, 308, 340, 372, 404, 436, 468, 500, 532, 564,
596, 628, 660, 692, 724, 756, 788, 820, 852, 884, 916, 948, 980, 1012,
21, 53, 85, 117, 149, 181, 213, 245, 277, 309, 341, 373, 405, 437,
469, 501, 533, 565, 597, 629, 661, 693, 725, 757, 789, 821, 853, 885,
917, 949, 981, 1013, 22, 54, 86, 118, 150, 182, 214, 246, 278, 310,
342, 374, 406, 438, 470, 502, 534, 566, 598, 630, 662, 694, 726, 758,
790, 822, 854, 886, 918, 950, 982, 1014, 23, 55, 87, 119, 151, 183,
215, 247, 279, 311, 343, 375, 407, 439, 471, 503, 535, 567, 599, 631,
663, 695, 727, 759, 791, 823, 855, 887, 919, 951, 983, 1015, 24, 56,
88, 120, 152, 184, 216, 248, 280, 312, 344, 376, 408, 440, 472, 504,
536, 568, 600, 632, 664, 696, 728, 760, 792, 824, 856, 888, 920, 952,
984, 1016, 25, 57, 89, 121, 153, 185, 217, 249, 281, 313, 345, 377,
409, 441, 473, 505, 537, 569, 601, 633, 665, 697, 729, 761, 793, 825,
857, 889, 921, 953, 985, 1017, 26, 58, 90, 122, 154, 186, 218, 250,
282, 314, 346, 378, 410, 442, 474, 506, 538, 570, 602, 634, 666, 698,
730, 762, 794, 826, 858, 890, 922, 954, 986, 1018, 27, 59, 91, 123,
155, 187, 219, 251, 283, 315, 347, 379, 411, 443, 475, 507, 539, 571,
603, 635, 667, 699, 731, 763, 795, 827, 859, 891, 923, 955, 987, 1019,
28, 60, 92, 124, 156, 188, 220, 252, 284, 316, 348, 380, 412, 444,
476, 508, 540, 572, 604, 636, 668, 700, 732, 764, 796, 828, 860, 892,
924, 956, 988, 1020, 29, 61, 93, 125, 157, 189, 221, 253, 285, 317,
349, 381, 413, 445, 477, 509, 541, 573, 605, 637, 669, 701, 733, 765,
797, 829, 861, 893, 925, 957, 989, 1021, 30, 62, 94, 126, 158, 190,
222, 254, 286, 318, 350, 382, 414, 446, 478, 510, 542, 574, 606, 638,
670, 702, 734, 766, 798, 830, 862, 894, 926, 958, 990, 1022, 31, 63,
95, 127, 159, 191, 223, 255, 287, 319, 351, 383, 415, 447, 479, 511,
543, 575, 607, 639, 671, 703, 735, 767, 799, 831, 863, 895, 927, 959,
991, 1023,
};
DECLARE_ALIGNED(16, static const int16_t, mrow_scan_32x32[1024]) = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38,
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,
52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77,
78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90,
91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103,
104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116,
117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129,
130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142,
143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155,
156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168,
169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181,
182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207,
208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220,
221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233,
234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246,
247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259,
260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272,
273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285,
286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298,
299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311,
312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337,
338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350,
351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363,
364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376,
377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389,
390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402,
403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415,
416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428,
429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441,
442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454,
455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467,
468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480,
481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493,
494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506,
507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519,
520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532,
533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545,
546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558,
559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571,
572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584,
585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597,
598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610,
611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623,
624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636,
637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649,
650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662,
663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675,
676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701,
702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714,
715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727,
728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740,
741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753,
754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766,
767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779,
780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792,
793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805,
806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818,
819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831,
832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844,
845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857,
858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870,
871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883,
884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896,
897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909,
910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922,
923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935,
936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948,
949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961,
962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974,
975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987,
988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000,
1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013,
1014, 1015, 1016, 1017, 1018, 1019, 1020, 1021, 1022, 1023,
};
DECLARE_ALIGNED(16, static const int16_t, default_scan_32x32[1024]) = {
0, 32, 1, 64, 33, 2, 96, 65, 34, 128, 3, 97, 66,
160, 129, 35, 98, 4, 67, 130, 161, 192, 36, 99, 224, 5,
162, 193, 68, 131, 37, 100, 225, 194, 256, 163, 69, 132, 6,
226, 257, 288, 195, 101, 164, 38, 258, 7, 227, 289, 133, 320,
70, 196, 165, 290, 259, 228, 39, 321, 102, 352, 8, 197, 71,
134, 322, 291, 260, 353, 384, 229, 166, 103, 40, 354, 323, 292,
135, 385, 198, 261, 72, 9, 416, 167, 386, 355, 230, 324, 104,
293, 41, 417, 199, 136, 262, 387, 448, 325, 356, 10, 73, 418,
231, 168, 449, 294, 388, 105, 419, 263, 42, 200, 357, 450, 137,
480, 74, 326, 232, 11, 389, 169, 295, 420, 106, 451, 481, 358,
264, 327, 201, 43, 138, 512, 482, 390, 296, 233, 170, 421, 75,
452, 359, 12, 513, 265, 483, 328, 107, 202, 514, 544, 422, 391,
453, 139, 44, 234, 484, 297, 360, 171, 76, 515, 545, 266, 329,
454, 13, 423, 203, 108, 546, 485, 576, 298, 235, 140, 361, 330,
172, 547, 45, 455, 267, 577, 486, 77, 204, 362, 608, 14, 299,
578, 109, 236, 487, 609, 331, 141, 579, 46, 15, 173, 610, 363,
78, 205, 16, 110, 237, 611, 142, 47, 174, 79, 206, 17, 111,
238, 48, 143, 80, 175, 112, 207, 49, 18, 239, 81, 113, 19,
50, 82, 114, 51, 83, 115, 640, 516, 392, 268, 144, 20, 672,
641, 548, 517, 424, 393, 300, 269, 176, 145, 52, 21, 704, 673,
642, 580, 549, 518, 456, 425, 394, 332, 301, 270, 208, 177, 146,
84, 53, 22, 736, 705, 674, 643, 612, 581, 550, 519, 488, 457,
426, 395, 364, 333, 302, 271, 240, 209, 178, 147, 116, 85, 54,
23, 737, 706, 675, 613, 582, 551, 489, 458, 427, 365, 334, 303,
241, 210, 179, 117, 86, 55, 738, 707, 614, 583, 490, 459, 366,
335, 242, 211, 118, 87, 739, 615, 491, 367, 243, 119, 768, 644,
520, 396, 272, 148, 24, 800, 769, 676, 645, 552, 521, 428, 397,
304, 273, 180, 149, 56, 25, 832, 801, 770, 708, 677, 646, 584,
553, 522, 460, 429, 398, 336, 305, 274, 212, 181, 150, 88, 57,
26, 864, 833, 802, 771, 740, 709, 678, 647, 616, 585, 554, 523,
492, 461, 430, 399, 368, 337, 306, 275, 244, 213, 182, 151, 120,
89, 58, 27, 865, 834, 803, 741, 710, 679, 617, 586, 555, 493,
462, 431, 369, 338, 307, 245, 214, 183, 121, 90, 59, 866, 835,
742, 711, 618, 587, 494, 463, 370, 339, 246, 215, 122, 91, 867,
743, 619, 495, 371, 247, 123, 896, 772, 648, 524, 400, 276, 152,
28, 928, 897, 804, 773, 680, 649, 556, 525, 432, 401, 308, 277,
184, 153, 60, 29, 960, 929, 898, 836, 805, 774, 712, 681, 650,
588, 557, 526, 464, 433, 402, 340, 309, 278, 216, 185, 154, 92,
61, 30, 992, 961, 930, 899, 868, 837, 806, 775, 744, 713, 682,
651, 620, 589, 558, 527, 496, 465, 434, 403, 372, 341, 310, 279,
248, 217, 186, 155, 124, 93, 62, 31, 993, 962, 931, 869, 838,
807, 745, 714, 683, 621, 590, 559, 497, 466, 435, 373, 342, 311,
249, 218, 187, 125, 94, 63, 994, 963, 870, 839, 746, 715, 622,
591, 498, 467, 374, 343, 250, 219, 126, 95, 995, 871, 747, 623,
499, 375, 251, 127, 900, 776, 652, 528, 404, 280, 156, 932, 901,
808, 777, 684, 653, 560, 529, 436, 405, 312, 281, 188, 157, 964,
933, 902, 840, 809, 778, 716, 685, 654, 592, 561, 530, 468, 437,
406, 344, 313, 282, 220, 189, 158, 996, 965, 934, 903, 872, 841,
810, 779, 748, 717, 686, 655, 624, 593, 562, 531, 500, 469, 438,
407, 376, 345, 314, 283, 252, 221, 190, 159, 997, 966, 935, 873,
842, 811, 749, 718, 687, 625, 594, 563, 501, 470, 439, 377, 346,
315, 253, 222, 191, 998, 967, 874, 843, 750, 719, 626, 595, 502,
471, 378, 347, 254, 223, 999, 875, 751, 627, 503, 379, 255, 904,
780, 656, 532, 408, 284, 936, 905, 812, 781, 688, 657, 564, 533,
440, 409, 316, 285, 968, 937, 906, 844, 813, 782, 720, 689, 658,
596, 565, 534, 472, 441, 410, 348, 317, 286, 1000, 969, 938, 907,
876, 845, 814, 783, 752, 721, 690, 659, 628, 597, 566, 535, 504,
473, 442, 411, 380, 349, 318, 287, 1001, 970, 939, 877, 846, 815,
753, 722, 691, 629, 598, 567, 505, 474, 443, 381, 350, 319, 1002,
971, 878, 847, 754, 723, 630, 599, 506, 475, 382, 351, 1003, 879,
755, 631, 507, 383, 908, 784, 660, 536, 412, 940, 909, 816, 785,
692, 661, 568, 537, 444, 413, 972, 941, 910, 848, 817, 786, 724,
693, 662, 600, 569, 538, 476, 445, 414, 1004, 973, 942, 911, 880,
849, 818, 787, 756, 725, 694, 663, 632, 601, 570, 539, 508, 477,
446, 415, 1005, 974, 943, 881, 850, 819, 757, 726, 695, 633, 602,
571, 509, 478, 447, 1006, 975, 882, 851, 758, 727, 634, 603, 510,
479, 1007, 883, 759, 635, 511, 912, 788, 664, 540, 944, 913, 820,
789, 696, 665, 572, 541, 976, 945, 914, 852, 821, 790, 728, 697,
666, 604, 573, 542, 1008, 977, 946, 915, 884, 853, 822, 791, 760,
729, 698, 667, 636, 605, 574, 543, 1009, 978, 947, 885, 854, 823,
761, 730, 699, 637, 606, 575, 1010, 979, 886, 855, 762, 731, 638,
607, 1011, 887, 763, 639, 916, 792, 668, 948, 917, 824, 793, 700,
669, 980, 949, 918, 856, 825, 794, 732, 701, 670, 1012, 981, 950,
919, 888, 857, 826, 795, 764, 733, 702, 671, 1013, 982, 951, 889,
858, 827, 765, 734, 703, 1014, 983, 890, 859, 766, 735, 1015, 891,
767, 920, 796, 952, 921, 828, 797, 984, 953, 922, 860, 829, 798,
1016, 985, 954, 923, 892, 861, 830, 799, 1017, 986, 955, 893, 862,
831, 1018, 987, 894, 863, 1019, 895, 924, 956, 925, 988, 957, 926,
1020, 989, 958, 927, 1021, 990, 959, 1022, 991, 1023,
};
// Scan over two rectangular vertical partitions one after the other
DECLARE_ALIGNED(16, static const int16_t, v2_scan_32x32[1024]) = {
0, 1, 32, 33, 2, 64, 34, 65, 66, 3, 96, 35, 97,
67, 98, 4, 128, 36, 129, 99, 68, 130, 5, 100, 131, 160,
37, 161, 69, 162, 132, 101, 163, 6, 192, 38, 193, 70, 194,
133, 164, 102, 195, 7, 224, 39, 165, 225, 134, 196, 71, 226,
103, 227, 166, 197, 8, 256, 40, 135, 228, 257, 72, 258, 198,
104, 259, 167, 229, 136, 260, 9, 288, 41, 289, 73, 199, 230,
290, 168, 261, 105, 291, 137, 292, 231, 10, 200, 262, 320, 42,
321, 74, 322, 169, 293, 106, 323, 232, 263, 138, 324, 201, 294,
11, 352, 43, 353, 75, 170, 325, 354, 264, 107, 233, 295, 355,
202, 326, 139, 356, 12, 384, 44, 265, 296, 385, 171, 357, 76,
386, 234, 327, 108, 387, 203, 358, 140, 388, 297, 266, 328, 13,
172, 389, 416, 45, 235, 359, 417, 77, 418, 109, 419, 204, 390,
298, 329, 141, 267, 360, 420, 236, 391, 173, 421, 14, 448, 46,
449, 78, 330, 450, 299, 361, 110, 205, 422, 451, 268, 392, 142,
452, 237, 423, 174, 331, 362, 453, 15, 300, 393, 480, 47, 481,
79, 482, 206, 454, 269, 424, 111, 483, 143, 484, 363, 332, 394,
238, 455, 175, 301, 425, 485, 512, 513, 270, 456, 514, 207, 486,
364, 395, 515, 333, 426, 516, 239, 487, 302, 457, 517, 396, 271,
488, 544, 365, 427, 545, 518, 546, 334, 458, 547, 519, 548, 303,
489, 397, 428, 549, 366, 459, 520, 576, 335, 490, 550, 577, 578,
579, 521, 429, 551, 398, 460, 580, 367, 491, 581, 552, 522, 582,
608, 609, 430, 461, 610, 399, 492, 553, 611, 583, 523, 612, 613,
584, 554, 462, 431, 493, 614, 524, 640, 641, 642, 585, 643, 555,
615, 644, 463, 494, 586, 525, 616, 645, 556, 646, 672, 617, 673,
587, 674, 647, 495, 675, 526, 676, 557, 618, 648, 677, 588, 678,
527, 649, 619, 704, 558, 705, 706, 679, 589, 707, 650, 708, 620,
680, 709, 559, 590, 710, 651, 681, 736, 621, 737, 711, 738, 739,
682, 652, 740, 712, 591, 741, 622, 683, 713, 742, 653, 768, 769,
743, 770, 714, 684, 771, 623, 772, 744, 654, 773, 715, 685, 745,
774, 655, 775, 800, 801, 716, 746, 802, 803, 686, 776, 804, 747,
805, 717, 777, 806, 687, 748, 807, 778, 832, 833, 718, 834, 835,
808, 836, 779, 749, 837, 809, 719, 838, 780, 750, 810, 839, 864,
865, 866, 867, 840, 781, 868, 811, 751, 869, 841, 870, 812, 782,
842, 871, 896, 897, 898, 872, 899, 813, 843, 900, 783, 901, 873,
844, 902, 814, 874, 903, 928, 929, 845, 930, 904, 815, 875, 931,
932, 905, 933, 846, 876, 934, 906, 935, 877, 960, 847, 961, 962,
907, 936, 963, 964, 937, 878, 965, 908, 966, 938, 967, 909, 879,
992, 939, 993, 968, 994, 995, 996, 910, 969, 940, 997, 998, 970,
911, 941, 999, 971, 1000, 942, 1001, 972, 1002, 943, 973, 1003, 974,
1004, 975, 1005, 1006, 1007, 16, 48, 80, 112, 144, 176, 17, 49,
208, 81, 113, 145, 240, 177, 272, 18, 50, 209, 82, 114, 304,
241, 146, 178, 273, 336, 210, 19, 51, 83, 115, 305, 242, 147,
368, 179, 274, 337, 211, 20, 400, 52, 84, 306, 116, 243, 369,
148, 338, 180, 275, 432, 401, 212, 21, 53, 307, 85, 370, 244,
117, 464, 149, 433, 339, 276, 181, 402, 213, 308, 496, 371, 22,
54, 465, 86, 245, 118, 434, 150, 340, 277, 403, 182, 528, 497,
214, 466, 372, 309, 23, 55, 435, 87, 246, 119, 341, 404, 151,
529, 560, 278, 498, 183, 467, 373, 215, 310, 436, 24, 56, 247,
561, 88, 530, 592, 342, 120, 405, 499, 152, 279, 468, 184, 374,
311, 437, 216, 562, 593, 531, 624, 25, 248, 500, 57, 406, 89,
343, 121, 469, 280, 153, 594, 185, 375, 563, 625, 438, 532, 656,
312, 217, 501, 407, 249, 26, 344, 58, 90, 470, 122, 595, 626,
281, 564, 657, 154, 376, 533, 688, 439, 186, 313, 502, 218, 408,
627, 596, 658, 250, 345, 471, 27, 59, 565, 689, 91, 123, 282,
534, 720, 155, 440, 377, 187, 503, 314, 628, 659, 219, 597, 690,
409, 472, 566, 721, 346, 251, 28, 60, 535, 752, 92, 124, 283,
441, 378, 156, 660, 504, 629, 691, 598, 722, 188, 315, 567, 753,
220, 410, 473, 347, 536, 784, 252, 29, 661, 692, 61, 93, 442,
630, 723, 284, 125, 379, 505, 599, 754, 157, 316, 568, 785, 189,
474, 411, 221, 537, 816, 693, 348, 662, 724, 253, 631, 755, 443,
30, 600, 786, 62, 506, 94, 285, 380, 126, 569, 817, 158, 317,
190, 475, 694, 725, 412, 663, 756, 538, 848, 222, 632, 787, 349,
254, 601, 818, 444, 507, 31, 63, 381, 286, 95, 570, 849, 726,
127, 695, 757, 664, 788, 159, 476, 318, 413, 539, 880, 191, 633,
819, 223, 350, 602, 850, 508, 255, 445, 727, 758, 696, 789, 571,
881, 382, 287, 665, 820, 477, 634, 851, 540, 912, 319, 414, 603,
882, 759, 728, 790, 351, 509, 697, 821, 446, 572, 913, 666, 852,
383, 635, 883, 478, 541, 944, 415, 760, 791, 604, 914, 729, 822,
698, 853, 510, 667, 884, 447, 573, 945, 636, 915, 792, 761, 823,
542, 976, 479, 730, 854, 605, 946, 699, 885, 668, 916, 511, 574,
977, 793, 824, 637, 947, 762, 855, 731, 886, 543, 1008, 606, 978,
700, 917, 669, 948, 575, 825, 1009, 794, 856, 763, 887, 638, 979,
732, 918, 701, 949, 607, 1010, 670, 980, 826, 857, 795, 888, 764,
919, 639, 1011, 733, 950, 702, 981, 858, 827, 889, 796, 920, 671,
1012, 765, 951, 734, 982, 703, 1013, 859, 890, 828, 921, 797, 952,
766, 983, 735, 1014, 891, 860, 922, 829, 953, 798, 984, 767, 1015,
892, 923, 861, 954, 830, 985, 799, 1016, 924, 893, 955, 862, 986,
831, 1017, 925, 956, 894, 987, 863, 1018, 957, 926, 988, 895, 1019,
958, 989, 927, 1020, 990, 959, 1021, 991, 1022, 1023,
};
// Scan over two rectangular horizontal partitions one after the other
DECLARE_ALIGNED(16, static const int16_t, h2_scan_32x32[1024]) = {
0, 1, 32, 33, 2, 64, 34, 65, 66, 3, 96, 35, 97,
67, 98, 4, 128, 36, 129, 99, 68, 130, 5, 100, 131, 160,
37, 161, 69, 162, 132, 101, 163, 6, 192, 38, 193, 70, 194,
133, 164, 102, 195, 7, 224, 39, 165, 225, 134, 196, 71, 226,
103, 227, 166, 197, 8, 256, 40, 135, 228, 257, 72, 258, 198,
104, 259, 167, 229, 136, 260, 9, 288, 41, 289, 73, 199, 230,
290, 168, 261, 105, 291, 137, 292, 231, 10, 200, 262, 320, 42,
321, 74, 322, 169, 293, 106, 323, 232, 263, 138, 324, 201, 294,
11, 352, 43, 353, 75, 170, 325, 354, 264, 107, 233, 295, 355,
202, 326, 139, 356, 12, 384, 44, 265, 296, 385, 171, 357, 76,
386, 234, 327, 108, 387, 203, 358, 140, 388, 297, 266, 328, 13,
172, 389, 416, 45, 235, 359, 417, 77, 418, 109, 419, 204, 390,
298, 329, 141, 267, 360, 420, 236, 391, 173, 421, 14, 448, 46,
449, 78, 330, 450, 299, 361, 110, 205, 422, 451, 268, 392, 142,
452, 237, 423, 174, 331, 362, 453, 15, 300, 393, 480, 47, 481,
79, 482, 206, 454, 269, 424, 111, 483, 143, 484, 363, 332, 394,
238, 455, 175, 301, 425, 485, 16, 48, 80, 270, 456, 207, 486,
112, 364, 395, 333, 426, 144, 239, 487, 302, 457, 176, 396, 17,
271, 488, 49, 365, 427, 208, 81, 334, 458, 113, 145, 240, 303,
489, 397, 428, 177, 366, 459, 272, 18, 50, 209, 335, 490, 82,
114, 304, 241, 429, 146, 398, 460, 367, 491, 178, 273, 336, 210,
19, 51, 83, 430, 461, 399, 492, 115, 305, 242, 147, 368, 179,
274, 337, 462, 431, 493, 211, 20, 400, 52, 84, 306, 116, 243,
369, 148, 463, 494, 338, 180, 275, 432, 401, 212, 21, 53, 307,
85, 370, 244, 117, 495, 464, 149, 433, 339, 276, 181, 402, 213,
308, 496, 371, 22, 54, 465, 86, 245, 118, 434, 150, 340, 277,
403, 182, 497, 214, 466, 372, 309, 23, 55, 435, 87, 246, 119,
341, 404, 151, 278, 498, 183, 467, 373, 215, 310, 436, 24, 56,
247, 88, 342, 120, 405, 499, 152, 279, 468, 184, 374, 311, 437,
216, 25, 248, 500, 57, 406, 89, 343, 121, 469, 280, 153, 185,
375, 438, 312, 217, 501, 407, 249, 26, 344, 58, 90, 470, 122,
281, 154, 376, 439, 186, 313, 502, 218, 408, 250, 345, 471, 27,
59, 91, 123, 282, 155, 440, 377, 187, 503, 314, 219, 409, 472,
346, 251, 28, 60, 92, 124, 283, 441, 378, 156, 504, 188, 315,
220, 410, 473, 347, 252, 29, 61, 93, 442, 284, 125, 379, 505,
157, 316, 189, 474, 411, 221, 348, 253, 443, 30, 62, 506, 94,
285, 380, 126, 158, 317, 190, 475, 412, 222, 349, 254, 444, 507,
31, 63, 381, 286, 95, 127, 159, 476, 318, 413, 191, 223, 350,
508, 255, 445, 382, 287, 477, 319, 414, 351, 509, 446, 383, 478,
415, 510, 447, 479, 511, 512, 513, 514, 515, 516, 517, 544, 545,
518, 546, 547, 519, 548, 549, 520, 576, 550, 577, 578, 579, 521,
551, 580, 581, 552, 522, 582, 608, 609, 610, 553, 611, 583, 523,
612, 613, 584, 554, 614, 524, 640, 641, 642, 585, 643, 555, 615,
644, 586, 525, 616, 645, 556, 646, 672, 617, 673, 587, 674, 647,
675, 526, 676, 557, 618, 648, 677, 588, 678, 527, 649, 619, 704,
558, 705, 706, 679, 589, 707, 650, 708, 620, 680, 709, 528, 559,
590, 710, 651, 681, 736, 621, 737, 711, 738, 739, 682, 652, 529,
560, 740, 712, 591, 741, 622, 683, 713, 742, 653, 768, 769, 561,
743, 530, 592, 770, 714, 684, 771, 623, 772, 744, 654, 773, 715,
685, 745, 774, 562, 593, 531, 624, 655, 775, 800, 801, 716, 746,
802, 803, 686, 776, 804, 594, 563, 625, 747, 805, 717, 532, 656,
777, 806, 687, 748, 807, 778, 832, 833, 718, 834, 595, 626, 835,
564, 657, 808, 836, 533, 688, 779, 749, 837, 809, 719, 838, 780,
627, 596, 658, 750, 810, 839, 864, 565, 689, 865, 866, 867, 534,
720, 840, 781, 868, 811, 751, 869, 841, 628, 659, 597, 690, 870,
812, 782, 566, 721, 842, 871, 896, 535, 752, 897, 898, 872, 899,
813, 843, 660, 900, 783, 629, 691, 598, 722, 901, 873, 567, 753,
844, 902, 814, 874, 536, 784, 903, 661, 692, 928, 929, 630, 723,
845, 930, 904, 815, 875, 931, 599, 754, 932, 568, 785, 905, 933,
846, 876, 934, 537, 816, 693, 662, 724, 906, 631, 755, 935, 877,
600, 786, 960, 847, 961, 962, 907, 936, 963, 569, 817, 964, 937,
694, 725, 878, 965, 908, 663, 756, 538, 848, 966, 632, 787, 938,
601, 818, 967, 909, 879, 992, 939, 993, 968, 570, 849, 994, 726,
695, 757, 995, 664, 788, 996, 910, 969, 539, 880, 940, 633, 819,
997, 998, 602, 850, 970, 911, 941, 999, 727, 758, 696, 789, 571,
881, 971, 665, 820, 1000, 634, 851, 942, 540, 912, 1001, 972, 603,
882, 759, 728, 790, 1002, 697, 821, 943, 973, 572, 913, 666, 852,
1003, 635, 883, 974, 541, 944, 760, 791, 1004, 604, 914, 729, 822,
698, 853, 975, 667, 884, 573, 945, 1005, 636, 915, 792, 761, 823,
542, 976, 1006, 730, 854, 605, 946, 699, 885, 668, 916, 1007, 574,
977, 793, 824, 637, 947, 762, 855, 731, 886, 543, 1008, 606, 978,
700, 917, 669, 948, 575, 825, 1009, 794, 856, 763, 887, 638, 979,
732, 918, 701, 949, 607, 1010, 670, 980, 826, 857, 795, 888, 764,
919, 639, 1011, 733, 950, 702, 981, 858, 827, 889, 796, 920, 671,
1012, 765, 951, 734, 982, 703, 1013, 859, 890, 828, 921, 797, 952,
766, 983, 735, 1014, 891, 860, 922, 829, 953, 798, 984, 767, 1015,
892, 923, 861, 954, 830, 985, 799, 1016, 924, 893, 955, 862, 986,
831, 1017, 925, 956, 894, 987, 863, 1018, 957, 926, 988, 895, 1019,
958, 989, 927, 1020, 990, 959, 1021, 991, 1022, 1023,
};
// Scan where the top left quarter is scanned first
DECLARE_ALIGNED(16, static const int16_t, qtr_scan_32x32[1024]) = {
0, 1, 32, 33, 2, 64, 34, 65, 66, 3, 96, 35, 97,
67, 98, 4, 128, 36, 129, 99, 68, 130, 5, 100, 131, 160,
37, 161, 69, 162, 132, 101, 163, 6, 192, 38, 193, 70, 194,
133, 164, 102, 195, 7, 224, 39, 165, 225, 134, 196, 71, 226,
103, 227, 166, 197, 8, 256, 40, 135, 228, 257, 72, 258, 198,
104, 259, 167, 229, 136, 260, 9, 288, 41, 289, 73, 199, 230,
290, 168, 261, 105, 291, 137, 292, 231, 10, 200, 262, 320, 42,
321, 74, 322, 169, 293, 106, 323, 232, 263, 138, 324, 201, 294,
11, 352, 43, 353, 75, 170, 325, 354, 264, 107, 233, 295, 355,
202, 326, 139, 356, 12, 384, 44, 265, 296, 385, 171, 357, 76,
386, 234, 327, 108, 387, 203, 358, 140, 388, 297, 266, 328, 13,
172, 389, 416, 45, 235, 359, 417, 77, 418, 109, 419, 204, 390,
298, 329, 141, 267, 360, 420, 236, 391, 173, 421, 14, 448, 46,
449, 78, 330, 450, 299, 361, 110, 205, 422, 451, 268, 392, 142,
452, 237, 423, 174, 331, 362, 453, 15, 300, 393, 480, 47, 481,
79, 482, 206, 454, 269, 424, 111, 483, 143, 484, 363, 332, 394,
238, 455, 175, 301, 425, 485, 270, 456, 207, 486, 364, 395, 333,
426, 239, 487, 302, 457, 396, 271, 488, 365, 427, 334, 458, 303,
489, 397, 428, 366, 459, 335, 490, 429, 398, 460, 367, 491, 430,
461, 399, 492, 462, 431, 493, 463, 494, 495, 16, 512, 48, 513,
80, 514, 112, 515, 144, 516, 176, 517, 17, 544, 49, 545, 208,
518, 81, 546, 113, 547, 145, 240, 519, 548, 177, 549, 272, 520,
18, 576, 50, 209, 550, 577, 82, 578, 114, 579, 304, 521, 241,
551, 146, 580, 178, 581, 273, 552, 336, 522, 210, 582, 19, 608,
51, 609, 83, 610, 115, 305, 553, 611, 242, 583, 147, 368, 523,
612, 179, 613, 274, 584, 337, 554, 211, 614, 20, 400, 524, 640,
52, 641, 84, 642, 306, 585, 116, 643, 243, 369, 555, 615, 148,
644, 338, 586, 180, 275, 432, 525, 616, 645, 401, 556, 212, 646,
21, 672, 53, 307, 617, 673, 85, 370, 587, 674, 244, 647, 117,
675, 464, 526, 149, 676, 433, 557, 339, 618, 276, 648, 181, 677,
402, 588, 213, 678, 308, 496, 527, 649, 371, 619, 22, 704, 54,
465, 558, 705, 86, 706, 245, 679, 118, 434, 589, 707, 150, 340,
650, 708, 277, 403, 620, 680, 182, 709, 528, 497, 559, 214, 466,
590, 710, 372, 651, 309, 681, 23, 736, 55, 435, 621, 737, 87,
246, 711, 738, 119, 739, 341, 682, 404, 652, 151, 529, 560, 740,
278, 712, 498, 591, 183, 741, 467, 622, 373, 683, 215, 310, 713,
742, 436, 653, 24, 768, 56, 769, 247, 561, 743, 88, 530, 592,
770, 342, 714, 120, 405, 684, 771, 499, 623, 152, 772, 279, 744,
468, 654, 184, 773, 374, 715, 311, 437, 685, 745, 216, 774, 562,
593, 531, 624, 25, 248, 500, 655, 775, 800, 57, 801, 406, 716,
89, 343, 746, 802, 121, 803, 469, 686, 280, 776, 153, 804, 594,
185, 375, 563, 625, 747, 805, 438, 717, 532, 656, 312, 777, 217,
806, 501, 687, 407, 748, 249, 807, 26, 344, 778, 832, 58, 833,
90, 470, 718, 834, 122, 595, 626, 835, 281, 564, 657, 808, 154,
836, 376, 533, 688, 779, 439, 749, 186, 837, 313, 809, 502, 719,
218, 838, 408, 780, 627, 596, 658, 250, 345, 471, 750, 810, 839,
27, 864, 59, 565, 689, 865, 91, 866, 123, 867, 282, 534, 720,
840, 155, 440, 781, 868, 377, 811, 187, 503, 751, 869, 314, 841,
628, 659, 219, 597, 690, 870, 409, 812, 472, 782, 566, 721, 346,
842, 251, 871, 28, 896, 60, 535, 752, 897, 92, 898, 124, 283,
872, 899, 441, 813, 378, 843, 156, 660, 900, 504, 783, 629, 691,
598, 722, 188, 901, 315, 873, 567, 753, 220, 410, 844, 902, 473,
814, 347, 874, 536, 784, 252, 903, 29, 661, 692, 928, 61, 929,
93, 442, 630, 723, 845, 930, 284, 904, 125, 379, 505, 815, 875,
931, 599, 754, 157, 932, 316, 568, 785, 905, 189, 933, 474, 846,
411, 876, 221, 934, 537, 816, 693, 348, 662, 724, 906, 253, 631,
755, 935, 443, 877, 30, 600, 786, 960, 62, 506, 847, 961, 94,
962, 285, 380, 907, 936, 126, 963, 569, 817, 158, 964, 317, 937,
190, 475, 694, 725, 878, 965, 412, 908, 663, 756, 538, 848, 222,
966, 632, 787, 349, 938, 254, 601, 818, 967, 444, 909, 507, 879,
31, 992, 63, 381, 939, 993, 286, 968, 95, 570, 849, 994, 726,
127, 695, 757, 995, 664, 788, 159, 996, 476, 910, 318, 969, 413,
539, 880, 940, 191, 633, 819, 997, 223, 998, 350, 602, 850, 970,
508, 911, 255, 445, 941, 999, 727, 758, 696, 789, 571, 881, 382,
971, 287, 665, 820, 1000, 477, 634, 851, 942, 540, 912, 319, 1001,
414, 972, 603, 882, 759, 728, 790, 351, 1002, 509, 697, 821, 943,
446, 973, 572, 913, 666, 852, 383, 1003, 635, 883, 478, 974, 541,
944, 415, 760, 791, 1004, 604, 914, 729, 822, 698, 853, 510, 975,
667, 884, 447, 573, 945, 1005, 636, 915, 792, 761, 823, 542, 976,
479, 1006, 730, 854, 605, 946, 699, 885, 668, 916, 511, 1007, 574,
977, 793, 824, 637, 947, 762, 855, 731, 886, 543, 1008, 606, 978,
700, 917, 669, 948, 575, 825, 1009, 794, 856, 763, 887, 638, 979,
732, 918, 701, 949, 607, 1010, 670, 980, 826, 857, 795, 888, 764,
919, 639, 1011, 733, 950, 702, 981, 858, 827, 889, 796, 920, 671,
1012, 765, 951, 734, 982, 703, 1013, 859, 890, 828, 921, 797, 952,
766, 983, 735, 1014, 891, 860, 922, 829, 953, 798, 984, 767, 1015,
892, 923, 861, 954, 830, 985, 799, 1016, 924, 893, 955, 862, 986,
831, 1017, 925, 956, 894, 987, 863, 1018, 957, 926, 988, 895, 1019,
958, 989, 927, 1020, 990, 959, 1021, 991, 1022, 1023,
};
#if CONFIG_TX64X64
// Scans the top 32x32 sub-block first before scanning the bottom
DECLARE_ALIGNED(16, static const int16_t, default_scan_32x64[2048]) = {
0, 1, 32, 2, 33, 64, 3, 34, 65, 96, 4, 35, 66,
97, 128, 5, 36, 67, 98, 129, 160, 6, 37, 68, 99, 130,
161, 192, 7, 38, 69, 100, 131, 162, 193, 224, 8, 39, 70,
101, 132, 163, 194, 225, 256, 9, 40, 71, 102, 133, 164, 195,
226, 257, 288, 10, 41, 72, 103, 134, 165, 196, 227, 258, 289,
320, 11, 42, 73, 104, 135, 166, 197, 228, 259, 290, 321, 352,
12, 43, 74, 105, 136, 167, 198, 229, 260, 291, 322, 353, 384,
13, 44, 75, 106, 137, 168, 199, 230, 261, 292, 323, 354, 385,
416, 14, 45, 76, 107, 138, 169, 200, 231, 262, 293, 324, 355,
386, 417, 448, 15, 46, 77, 108, 139, 170, 201, 232, 263, 294,
325, 356, 387, 418, 449, 480, 16, 47, 78, 109, 140, 171, 202,
233, 264, 295, 326, 357, 388, 419, 450, 481, 512, 17, 48, 79,
110, 141, 172, 203, 234, 265, 296, 327, 358, 389, 420, 451, 482,
513, 544, 18, 49, 80, 111, 142, 173, 204, 235, 266, 297, 328,
359, 390, 421, 452, 483, 514, 545, 576, 19, 50, 81, 112, 143,
174, 205, 236, 267, 298, 329, 360, 391, 422, 453, 484, 515, 546,
577, 608, 20, 51, 82, 113, 144, 175, 206, 237, 268, 299, 330,
361, 392, 423, 454, 485, 516, 547, 578, 609, 640, 21, 52, 83,
114, 145, 176, 207, 238, 269, 300, 331, 362, 393, 424, 455, 486,
517, 548, 579, 610, 641, 672, 22, 53, 84, 115, 146, 177, 208,
239, 270, 301, 332, 363, 394, 425, 456, 487, 518, 549, 580, 611,
642, 673, 704, 23, 54, 85, 116, 147, 178, 209, 240, 271, 302,
333, 364, 395, 426, 457, 488, 519, 550, 581, 612, 643, 674, 705,
736, 24, 55, 86, 117, 148, 179, 210, 241, 272, 303, 334, 365,
396, 427, 458, 489, 520, 551, 582, 613, 644, 675, 706, 737, 768,
25, 56, 87, 118, 149, 180, 211, 242, 273, 304, 335, 366, 397,
428, 459, 490, 521, 552, 583, 614, 645, 676, 707, 738, 769, 800,
26, 57, 88, 119, 150, 181, 212, 243, 274, 305, 336, 367, 398,
429, 460, 491, 522, 553, 584, 615, 646, 677, 708, 739, 770, 801,
832, 27, 58, 89, 120, 151, 182, 213, 244, 275, 306, 337, 368,
399, 430, 461, 492, 523, 554, 585, 616, 647, 678, 709, 740, 771,
802, 833, 864, 28, 59, 90, 121, 152, 183, 214, 245, 276, 307,
338, 369, 400, 431, 462, 493, 524, 555, 586, 617, 648, 679, 710,
741, 772, 803, 834, 865, 896, 29, 60, 91, 122, 153, 184, 215,
246, 277, 308, 339, 370, 401, 432, 463, 494, 525, 556, 587, 618,
649, 680, 711, 742, 773, 804, 835, 866, 897, 928, 30, 61, 92,
123, 154, 185, 216, 247, 278, 309, 340, 371, 402, 433, 464, 495,
526, 557, 588, 619, 650, 681, 712, 743, 774, 805, 836, 867, 898,
929, 960, 31, 62, 93, 124, 155, 186, 217, 248, 279, 310, 341,
372, 403, 434, 465, 496, 527, 558, 589, 620, 651, 682, 713, 744,
775, 806, 837, 868, 899, 930, 961, 992, 63, 94, 125, 156, 187,
218, 249, 280, 311, 342, 373, 404, 435, 466, 497, 528, 559, 590,
621, 652, 683, 714, 745, 776, 807, 838, 869, 900, 931, 962, 993,
95, 126, 157, 188, 219, 250, 281, 312, 343, 374, 405, 436, 467,
498, 529, 560, 591, 622, 653, 684, 715, 746, 777, 808, 839, 870,
901, 932, 963, 994, 127, 158, 189, 220, 251, 282, 313, 344, 375,
406, 437, 468, 499, 530, 561, 592, 623, 654, 685, 716, 747, 778,
809, 840, 871, 902, 933, 964, 995, 159, 190, 221, 252, 283, 314,
345, 376, 407, 438, 469, 500, 531, 562, 593, 624, 655, 686, 717,
748, 779, 810, 841, 872, 903, 934, 965, 996, 191, 222, 253, 284,
315, 346, 377, 408, 439, 470, 501, 532, 563, 594, 625, 656, 687,
718, 749, 780, 811, 842, 873, 904, 935, 966, 997, 223, 254, 285,
316, 347, 378, 409, 440, 471, 502, 533, 564, 595, 626, 657, 688,
719, 750, 781, 812, 843, 874, 905, 936, 967, 998, 255, 286, 317,
348, 379, 410, 441, 472, 503, 534, 565, 596, 627, 658, 689, 720,
751, 782, 813, 844, 875, 906, 937, 968, 999, 287, 318, 349, 380,
411, 442, 473, 504, 535, 566, 597, 628, 659, 690, 721, 752, 783,
814, 845, 876, 907, 938, 969, 1000, 319, 350, 381, 412, 443, 474,
505, 536, 567, 598, 629, 660, 691, 722, 753, 784, 815, 846, 877,
908, 939, 970, 1001, 351, 382, 413, 444, 475, 506, 537, 568, 599,
630, 661, 692, 723, 754, 785, 816, 847, 878, 909, 940, 971, 1002,
383, 414, 445, 476, 507, 538, 569, 600, 631, 662, 693, 724, 755,
786, 817, 848, 879, 910, 941, 972, 1003, 415, 446, 477, 508, 539,
570, 601, 632, 663, 694, 725, 756, 787, 818, 849, 880, 911, 942,
973, 1004, 447, 478, 509, 540, 571, 602, 633, 664, 695, 726, 757,
788, 819, 850, 881, 912, 943, 974, 1005, 479, 510, 541, 572, 603,
634, 665, 696, 727, 758, 789, 820, 851, 882, 913, 944, 975, 1006,
511, 542, 573, 604, 635, 666, 697, 728, 759, 790, 821, 852, 883,
914, 945, 976, 1007, 543, 574, 605, 636, 667, 698, 729, 760, 791,
822, 853, 884, 915, 946, 977, 1008, 575, 606, 637, 668, 699, 730,
761, 792, 823, 854, 885, 916, 947, 978, 1009, 607, 638, 669, 700,
731, 762, 793, 824, 855, 886, 917, 948, 979, 1010, 639, 670, 701,
732, 763, 794, 825, 856, 887, 918, 949, 980, 1011, 671, 702, 733,
764, 795, 826, 857, 888, 919, 950, 981, 1012, 703, 734, 765, 796,
827, 858, 889, 920, 951, 982, 1013, 735, 766, 797, 828, 859, 890,
921, 952, 983, 1014, 767, 798, 829, 860, 891, 922, 953, 984, 1015,
799, 830, 861, 892, 923, 954, 985, 1016, 831, 862, 893, 924, 955,
986, 1017, 863, 894, 925, 956, 987, 1018, 895, 926, 957, 988, 1019,
927, 958, 989, 1020, 959, 990, 1021, 991, 1022, 1023, 1024, 1025, 1056,
1026, 1057, 1088, 1027, 1058, 1089, 1120, 1028, 1059, 1090, 1121, 1152, 1029,
1060, 1091, 1122, 1153, 1184, 1030, 1061, 1092, 1123, 1154, 1185, 1216, 1031,
1062, 1093, 1124, 1155, 1186, 1217, 1248, 1032, 1063, 1094, 1125, 1156, 1187,
1218, 1249, 1280, 1033, 1064, 1095, 1126, 1157, 1188, 1219, 1250, 1281, 1312,
1034, 1065, 1096, 1127, 1158, 1189, 1220, 1251, 1282, 1313, 1344, 1035, 1066,
1097, 1128, 1159, 1190, 1221, 1252, 1283, 1314, 1345, 1376, 1036, 1067, 1098,
1129, 1160, 1191, 1222, 1253, 1284, 1315, 1346, 1377, 1408, 1037, 1068, 1099,
1130, 1161, 1192, 1223, 1254, 1285, 1316, 1347, 1378, 1409, 1440, 1038, 1069,
1100, 1131, 1162, 1193, 1224, 1255, 1286, 1317, 1348, 1379, 1410, 1441, 1472,
1039, 1070, 1101, 1132, 1163, 1194, 1225, 1256, 1287, 1318, 1349, 1380, 1411,
1442, 1473, 1504, 1040, 1071, 1102, 1133, 1164, 1195, 1226, 1257, 1288, 1319,
1350, 1381, 1412, 1443, 1474, 1505, 1536, 1041, 1072, 1103, 1134, 1165, 1196,
1227, 1258, 1289, 1320, 1351, 1382, 1413, 1444, 1475, 1506, 1537, 1568, 1042,
1073, 1104, 1135, 1166, 1197, 1228, 1259, 1290, 1321, 1352, 1383, 1414, 1445,
1476, 1507, 1538, 1569, 1600, 1043, 1074, 1105, 1136, 1167, 1198, 1229, 1260,
1291, 1322, 1353, 1384, 1415, 1446, 1477, 1508, 1539, 1570, 1601, 1632, 1044,
1075, 1106, 1137, 1168, 1199, 1230, 1261, 1292, 1323, 1354, 1385, 1416, 1447,
1478, 1509, 1540, 1571, 1602, 1633, 1664, 1045, 1076, 1107, 1138, 1169, 1200,
1231, 1262, 1293, 1324, 1355, 1386, 1417, 1448, 1479, 1510, 1541, 1572, 1603,
1634, 1665, 1696, 1046, 1077, 1108, 1139, 1170, 1201, 1232, 1263, 1294, 1325,
1356, 1387, 1418, 1449, 1480, 1511, 1542, 1573, 1604, 1635, 1666, 1697, 1728,
1047, 1078, 1109, 1140, 1171, 1202, 1233, 1264, 1295, 1326, 1357, 1388, 1419,
1450, 1481, 1512, 1543, 1574, 1605, 1636, 1667, 1698, 1729, 1760, 1048, 1079,
1110, 1141, 1172, 1203, 1234, 1265, 1296, 1327, 1358, 1389, 1420, 1451, 1482,
1513, 1544, 1575, 1606, 1637, 1668, 1699, 1730, 1761, 1792, 1049, 1080, 1111,
1142, 1173, 1204, 1235, 1266, 1297, 1328, 1359, 1390, 1421, 1452, 1483, 1514,
1545, 1576, 1607, 1638, 1669, 1700, 1731, 1762, 1793, 1824, 1050, 1081, 1112,
1143, 1174, 1205, 1236, 1267, 1298, 1329, 1360, 1391, 1422, 1453, 1484, 1515,
1546, 1577, 1608, 1639, 1670, 1701, 1732, 1763, 1794, 1825, 1856, 1051, 1082,
1113, 1144, 1175, 1206, 1237, 1268, 1299, 1330, 1361, 1392, 1423, 1454, 1485,
1516, 1547, 1578, 1609, 1640, 1671, 1702, 1733, 1764, 1795, 1826, 1857, 1888,
1052, 1083, 1114, 1145, 1176, 1207, 1238, 1269, 1300, 1331, 1362, 1393, 1424,
1455, 1486, 1517, 1548, 1579, 1610, 1641, 1672, 1703, 1734, 1765, 1796, 1827,
1858, 1889, 1920, 1053, 1084, 1115, 1146, 1177, 1208, 1239, 1270, 1301, 1332,
1363, 1394, 1425, 1456, 1487, 1518, 1549, 1580, 1611, 1642, 1673, 1704, 1735,
1766, 1797, 1828, 1859, 1890, 1921, 1952, 1054, 1085, 1116, 1147, 1178, 1209,
1240, 1271, 1302, 1333, 1364, 1395, 1426, 1457, 1488, 1519, 1550, 1581, 1612,
1643, 1674, 1705, 1736, 1767, 1798, 1829, 1860, 1891, 1922, 1953, 1984, 1055,
1086, 1117, 1148, 1179, 1210, 1241, 1272, 1303, 1334, 1365, 1396, 1427, 1458,
1489, 1520, 1551, 1582, 1613, 1644, 1675, 1706, 1737, 1768, 1799, 1830, 1861,
1892, 1923, 1954, 1985, 2016, 1087, 1118, 1149, 1180, 1211, 1242, 1273, 1304,
1335, 1366, 1397, 1428, 1459, 1490, 1521, 1552, 1583, 1614, 1645, 1676, 1707,
1738, 1769, 1800, 1831, 1862, 1893, 1924, 1955, 1986, 2017, 1119, 1150, 1181,
1212, 1243, 1274, 1305, 1336, 1367, 1398, 1429, 1460, 1491, 1522, 1553, 1584,
1615, 1646, 1677, 1708, 1739, 1770, 1801, 1832, 1863, 1894, 1925, 1956, 1987,
2018, 1151, 1182, 1213, 1244, 1275, 1306, 1337, 1368, 1399, 1430, 1461, 1492,
1523, 1554, 1585, 1616, 1647, 1678, 1709, 1740, 1771, 1802, 1833, 1864, 1895,
1926, 1957, 1988, 2019, 1183, 1214, 1245, 1276, 1307, 1338, 1369, 1400, 1431,
1462, 1493, 1524, 1555, 1586, 1617, 1648, 1679, 1710, 1741, 1772, 1803, 1834,
1865, 1896, 1927, 1958, 1989, 2020, 1215, 1246, 1277, 1308, 1339, 1370, 1401,
1432, 1463, 1494, 1525, 1556, 1587, 1618, 1649, 1680, 1711, 1742, 1773, 1804,
1835, 1866, 1897, 1928, 1959, 1990, 2021, 1247, 1278, 1309, 1340, 1371, 1402,
1433, 1464, 1495, 1526, 1557, 1588, 1619, 1650, 1681, 1712, 1743, 1774, 1805,
1836, 1867, 1898, 1929, 1960, 1991, 2022, 1279, 1310, 1341, 1372, 1403, 1434,
1465, 1496, 1527, 1558, 1589, 1620, 1651, 1682, 1713, 1744, 1775, 1806, 1837,
1868, 1899, 1930, 1961, 1992, 2023, 1311, 1342, 1373, 1404, 1435, 1466, 1497,
1528, 1559, 1590, 1621, 1652, 1683, 1714, 1745, 1776, 1807, 1838, 1869, 1900,
1931, 1962, 1993, 2024, 1343, 1374, 1405, 1436, 1467, 1498, 1529, 1560, 1591,
1622, 1653, 1684, 1715, 1746, 1777, 1808, 1839, 1870, 1901, 1932, 1963, 1994,
2025, 1375, 1406, 1437, 1468, 1499, 1530, 1561, 1592, 1623, 1654, 1685, 1716,
1747, 1778, 1809, 1840, 1871, 1902, 1933, 1964, 1995, 2026, 1407, 1438, 1469,
1500, 1531, 1562, 1593, 1624, 1655, 1686, 1717, 1748, 1779, 1810, 1841, 1872,
1903, 1934, 1965, 1996, 2027, 1439, 1470, 1501, 1532, 1563, 1594, 1625, 1656,
1687, 1718, 1749, 1780, 1811, 1842, 1873, 1904, 1935, 1966, 1997, 2028, 1471,
1502, 1533, 1564, 1595, 1626, 1657, 1688, 1719, 1750, 1781, 1812, 1843, 1874,
1905, 1936, 1967, 1998, 2029, 1503, 1534, 1565, 1596, 1627, 1658, 1689, 1720,
1751, 1782, 1813, 1844, 1875, 1906, 1937, 1968, 1999, 2030, 1535, 1566, 1597,
1628, 1659, 1690, 1721, 1752, 1783, 1814, 1845, 1876, 1907, 1938, 1969, 2000,
2031, 1567, 1598, 1629, 1660, 1691, 1722, 1753, 1784, 1815, 1846, 1877, 1908,
1939, 1970, 2001, 2032, 1599, 1630, 1661, 1692, 1723, 1754, 1785, 1816, 1847,
1878, 1909, 1940, 1971, 2002, 2033, 1631, 1662, 1693, 1724, 1755, 1786, 1817,
1848, 1879, 1910, 1941, 1972, 2003, 2034, 1663, 1694, 1725, 1756, 1787, 1818,
1849, 1880, 1911, 1942, 1973, 2004, 2035, 1695, 1726, 1757, 1788, 1819, 1850,
1881, 1912, 1943, 1974, 2005, 2036, 1727, 1758, 1789, 1820, 1851, 1882, 1913,
1944, 1975, 2006, 2037, 1759, 1790, 1821, 1852, 1883, 1914, 1945, 1976, 2007,
2038, 1791, 1822, 1853, 1884, 1915, 1946, 1977, 2008, 2039, 1823, 1854, 1885,
1916, 1947, 1978, 2009, 2040, 1855, 1886, 1917, 1948, 1979, 2010, 2041, 1887,
1918, 1949, 1980, 2011, 2042, 1919, 1950, 1981, 2012, 2043, 1951, 1982, 2013,
2044, 1983, 2014, 2045, 2015, 2046, 2047,
};
// Scans the left 32x32 sub-block first before scanning the right
DECLARE_ALIGNED(16, static const int16_t, default_scan_64x32[2048]) = {
0, 1, 64, 2, 65, 128, 3, 66, 129, 192, 4, 67, 130,
193, 256, 5, 68, 131, 194, 257, 320, 6, 69, 132, 195, 258,
321, 384, 7, 70, 133, 196, 259, 322, 385, 448, 8, 71, 134,
197, 260, 323, 386, 449, 512, 9, 72, 135, 198, 261, 324, 387,
450, 513, 576, 10, 73, 136, 199, 262, 325, 388, 451, 514, 577,
640, 11, 74, 137, 200, 263, 326, 389, 452, 515, 578, 641, 704,
12, 75, 138, 201, 264, 327, 390, 453, 516, 579, 642, 705, 768,
13, 76, 139, 202, 265, 328, 391, 454, 517, 580, 643, 706, 769,
832, 14, 77, 140, 203, 266, 329, 392, 455, 518, 581, 644, 707,
770, 833, 896, 15, 78, 141, 204, 267, 330, 393, 456, 519, 582,
645, 708, 771, 834, 897, 960, 16, 79, 142, 205, 268, 331, 394,
457, 520, 583, 646, 709, 772, 835, 898, 961, 1024, 17, 80, 143,
206, 269, 332, 395, 458, 521, 584, 647, 710, 773, 836, 899, 962,
1025, 1088, 18, 81, 144, 207, 270, 333, 396, 459, 522, 585, 648,
711, 774, 837, 900, 963, 1026, 1089, 1152, 19, 82, 145, 208, 271,
334, 397, 460, 523, 586, 649, 712, 775, 838, 901, 964, 1027, 1090,
1153, 1216, 20, 83, 146, 209, 272, 335, 398, 461, 524, 587, 650,
713, 776, 839, 902, 965, 1028, 1091, 1154, 1217, 1280, 21, 84, 147,
210, 273, 336, 399, 462, 525, 588, 651, 714, 777, 840, 903, 966,
1029, 1092, 1155, 1218, 1281, 1344, 22, 85, 148, 211, 274, 337, 400,
463, 526, 589, 652, 715, 778, 841, 904, 967, 1030, 1093, 1156, 1219,
1282, 1345, 1408, 23, 86, 149, 212, 275, 338, 401, 464, 527, 590,
653, 716, 779, 842, 905, 968, 1031, 1094, 1157, 1220, 1283, 1346, 1409,
1472, 24, 87, 150, 213, 276, 339, 402, 465, 528, 591, 654, 717,
780, 843, 906, 969, 1032, 1095, 1158, 1221, 1284, 1347, 1410, 1473, 1536,
25, 88, 151, 214, 277, 340, 403, 466, 529, 592, 655, 718, 781,
844, 907, 970, 1033, 1096, 1159, 1222, 1285, 1348, 1411, 1474, 1537, 1600,
26, 89, 152, 215, 278, 341, 404, 467, 530, 593, 656, 719, 782,
845, 908, 971, 1034, 1097, 1160, 1223, 1286, 1349, 1412, 1475, 1538, 1601,
1664, 27, 90, 153, 216, 279, 342, 405, 468, 531, 594, 657, 720,
783, 846, 909, 972, 1035, 1098, 1161, 1224, 1287, 1350, 1413, 1476, 1539,
1602, 1665, 1728, 28, 91, 154, 217, 280, 343, 406, 469, 532, 595,
658, 721, 784, 847, 910, 973, 1036, 1099, 1162, 1225, 1288, 1351, 1414,
1477, 1540, 1603, 1666, 1729, 1792, 29, 92, 155, 218, 281, 344, 407,
470, 533, 596, 659, 722, 785, 848, 911, 974, 1037, 1100, 1163, 1226,
1289, 1352, 1415, 1478, 1541, 1604, 1667, 1730, 1793, 1856, 30, 93, 156,
219, 282, 345, 408, 471, 534, 597, 660, 723, 786, 849, 912, 975,
1038, 1101, 1164, 1227, 1290, 1353, 1416, 1479, 1542, 1605, 1668, 1731, 1794,
1857, 1920, 31, 94, 157, 220, 283, 346, 409, 472, 535, 598, 661,
724, 787, 850, 913, 976, 1039, 1102, 1165, 1228, 1291, 1354, 1417, 1480,
1543, 1606, 1669, 1732, 1795, 1858, 1921, 1984, 95, 158, 221, 284, 347,
410, 473, 536, 599, 662, 725, 788, 851, 914, 977, 1040, 1103, 1166,
1229, 1292, 1355, 1418, 1481, 1544, 1607, 1670, 1733, 1796, 1859, 1922, 1985,
159, 222, 285, 348, 411, 474, 537, 600, 663, 726, 789, 852, 915,
978, 1041, 1104, 1167, 1230, 1293, 1356, 1419, 1482, 1545, 1608, 1671, 1734,
1797, 1860, 1923, 1986, 223, 286, 349, 412, 475, 538, 601, 664, 727,
790, 853, 916, 979, 1042, 1105, 1168, 1231, 1294, 1357, 1420, 1483, 1546,
1609, 1672, 1735, 1798, 1861, 1924, 1987, 287, 350, 413, 476, 539, 602,
665, 728, 791, 854, 917, 980, 1043, 1106, 1169, 1232, 1295, 1358, 1421,
1484, 1547, 1610, 1673, 1736, 1799, 1862, 1925, 1988, 351, 414, 477, 540,
603, 666, 729, 792, 855, 918, 981, 1044, 1107, 1170, 1233, 1296, 1359,
1422, 1485, 1548, 1611, 1674, 1737, 1800, 1863, 1926, 1989, 415, 478, 541,
604, 667, 730, 793, 856, 919, 982, 1045, 1108, 1171, 1234, 1297, 1360,
1423, 1486, 1549, 1612, 1675, 1738, 1801, 1864, 1927, 1990, 479, 542, 605,
668, 731, 794, 857, 920, 983, 1046, 1109, 1172, 1235, 1298, 1361, 1424,
1487, 1550, 1613, 1676, 1739, 1802, 1865, 1928, 1991, 543, 606, 669, 732,
795, 858, 921, 984, 1047, 1110, 1173, 1236, 1299, 1362, 1425, 1488, 1551,
1614, 1677, 1740, 1803, 1866, 1929, 1992, 607, 670, 733, 796, 859, 922,
985, 1048, 1111, 1174, 1237, 1300, 1363, 1426, 1489, 1552, 1615, 1678, 1741,
1804, 1867, 1930, 1993, 671, 734, 797, 860, 923, 986, 1049, 1112, 1175,
1238, 1301, 1364, 1427, 1490, 1553, 1616, 1679, 1742, 1805, 1868, 1931, 1994,
735, 798, 861, 924, 987, 1050, 1113, 1176, 1239, 1302, 1365, 1428, 1491,
1554, 1617, 1680, 1743, 1806, 1869, 1932, 1995, 799, 862, 925, 988, 1051,
1114, 1177, 1240, 1303, 1366, 1429, 1492, 1555, 1618, 1681, 1744, 1807, 1870,
1933, 1996, 863, 926, 989, 1052, 1115, 1178, 1241, 1304, 1367, 1430, 1493,
1556, 1619, 1682, 1745, 1808, 1871, 1934, 1997, 927, 990, 1053, 1116, 1179,
1242, 1305, 1368, 1431, 1494, 1557, 1620, 1683, 1746, 1809, 1872, 1935, 1998,
991, 1054, 1117, 1180, 1243, 1306, 1369, 1432, 1495, 1558, 1621, 1684, 1747,
1810, 1873, 1936, 1999, 1055, 1118, 1181, 1244, 1307, 1370, 1433, 1496, 1559,
1622, 1685, 1748, 1811, 1874, 1937, 2000, 1119, 1182, 1245, 1308, 1371, 1434,
1497, 1560, 1623, 1686, 1749, 1812, 1875, 1938, 2001, 1183, 1246, 1309, 1372,
1435, 1498, 1561, 1624, 1687, 1750, 1813, 1876, 1939, 2002, 1247, 1310, 1373,
1436, 1499, 1562, 1625, 1688, 1751, 1814, 1877, 1940, 2003, 1311, 1374, 1437,
1500, 1563, 1626, 1689, 1752, 1815, 1878, 1941, 2004, 1375, 1438, 1501, 1564,
1627, 1690, 1753, 1816, 1879, 1942, 2005, 1439, 1502, 1565, 1628, 1691, 1754,
1817, 1880, 1943, 2006, 1503, 1566, 1629, 1692, 1755, 1818, 1881, 1944, 2007,
1567, 1630, 1693, 1756, 1819, 1882, 1945, 2008, 1631, 1694, 1757, 1820, 1883,
1946, 2009, 1695, 1758, 1821, 1884, 1947, 2010, 1759, 1822, 1885, 1948, 2011,
1823, 1886, 1949, 2012, 1887, 1950, 2013, 1951, 2014, 2015, 32, 33, 96,
34, 97, 160, 35, 98, 161, 224, 36, 99, 162, 225, 288, 37,
100, 163, 226, 289, 352, 38, 101, 164, 227, 290, 353, 416, 39,
102, 165, 228, 291, 354, 417, 480, 40, 103, 166, 229, 292, 355,
418, 481, 544, 41, 104, 167, 230, 293, 356, 419, 482, 545, 608,
42, 105, 168, 231, 294, 357, 420, 483, 546, 609, 672, 43, 106,
169, 232, 295, 358, 421, 484, 547, 610, 673, 736, 44, 107, 170,
233, 296, 359, 422, 485, 548, 611, 674, 737, 800, 45, 108, 171,
234, 297, 360, 423, 486, 549, 612, 675, 738, 801, 864, 46, 109,
172, 235, 298, 361, 424, 487, 550, 613, 676, 739, 802, 865, 928,
47, 110, 173, 236, 299, 362, 425, 488, 551, 614, 677, 740, 803,
866, 929, 992, 48, 111, 174, 237, 300, 363, 426, 489, 552, 615,
678, 741, 804, 867, 930, 993, 1056, 49, 112, 175, 238, 301, 364,
427, 490, 553, 616, 679, 742, 805, 868, 931, 994, 1057, 1120, 50,
113, 176, 239, 302, 365, 428, 491, 554, 617, 680, 743, 806, 869,
932, 995, 1058, 1121, 1184, 51, 114, 177, 240, 303, 366, 429, 492,
555, 618, 681, 744, 807, 870, 933, 996, 1059, 1122, 1185, 1248, 52,
115, 178, 241, 304, 367, 430, 493, 556, 619, 682, 745, 808, 871,
934, 997, 1060, 1123, 1186, 1249, 1312, 53, 116, 179, 242, 305, 368,
431, 494, 557, 620, 683, 746, 809, 872, 935, 998, 1061, 1124, 1187,
1250, 1313, 1376, 54, 117, 180, 243, 306, 369, 432, 495, 558, 621,
684, 747, 810, 873, 936, 999, 1062, 1125, 1188, 1251, 1314, 1377, 1440,
55, 118, 181, 244, 307, 370, 433, 496, 559, 622, 685, 748, 811,
874, 937, 1000, 1063, 1126, 1189, 1252, 1315, 1378, 1441, 1504, 56, 119,
182, 245, 308, 371, 434, 497, 560, 623, 686, 749, 812, 875, 938,
1001, 1064, 1127, 1190, 1253, 1316, 1379, 1442, 1505, 1568, 57, 120, 183,
246, 309, 372, 435, 498, 561, 624, 687, 750, 813, 876, 939, 1002,
1065, 1128, 1191, 1254, 1317, 1380, 1443, 1506, 1569, 1632, 58, 121, 184,
247, 310, 373, 436, 499, 562, 625, 688, 751, 814, 877, 940, 1003,
1066, 1129, 1192, 1255, 1318, 1381, 1444, 1507, 1570, 1633, 1696, 59, 122,
185, 248, 311, 374, 437, 500, 563, 626, 689, 752, 815, 878, 941,
1004, 1067, 1130, 1193, 1256, 1319, 1382, 1445, 1508, 1571, 1634, 1697, 1760,
60, 123, 186, 249, 312, 375, 438, 501, 564, 627, 690, 753, 816,
879, 942, 1005, 1068, 1131, 1194, 1257, 1320, 1383, 1446, 1509, 1572, 1635,
1698, 1761, 1824, 61, 124, 187, 250, 313, 376, 439, 502, 565, 628,
691, 754, 817, 880, 943, 1006, 1069, 1132, 1195, 1258, 1321, 1384, 1447,
1510, 1573, 1636, 1699, 1762, 1825, 1888, 62, 125, 188, 251, 314, 377,
440, 503, 566, 629, 692, 755, 818, 881, 944, 1007, 1070, 1133, 1196,
1259, 1322, 1385, 1448, 1511, 1574, 1637, 1700, 1763, 1826, 1889, 1952, 63,
126, 189, 252, 315, 378, 441, 504, 567, 630, 693, 756, 819, 882,
945, 1008, 1071, 1134, 1197, 1260, 1323, 1386, 1449, 1512, 1575, 1638, 1701,
1764, 1827, 1890, 1953, 2016, 127, 190, 253, 316, 379, 442, 505, 568,
631, 694, 757, 820, 883, 946, 1009, 1072, 1135, 1198, 1261, 1324, 1387,
1450, 1513, 1576, 1639, 1702, 1765, 1828, 1891, 1954, 2017, 191, 254, 317,
380, 443, 506, 569, 632, 695, 758, 821, 884, 947, 1010, 1073, 1136,
1199, 1262, 1325, 1388, 1451, 1514, 1577, 1640, 1703, 1766, 1829, 1892, 1955,
2018, 255, 318, 381, 444, 507, 570, 633, 696, 759, 822, 885, 948,
1011, 1074, 1137, 1200, 1263, 1326, 1389, 1452, 1515, 1578, 1641, 1704, 1767,
1830, 1893, 1956, 2019, 319, 382, 445, 508, 571, 634, 697, 760, 823,
886, 949, 1012, 1075, 1138, 1201, 1264, 1327, 1390, 1453, 1516, 1579, 1642,
1705, 1768, 1831, 1894, 1957, 2020, 383, 446, 509, 572, 635, 698, 761,
824, 887, 950, 1013, 1076, 1139, 1202, 1265, 1328, 1391, 1454, 1517, 1580,
1643, 1706, 1769, 1832, 1895, 1958, 2021, 447, 510, 573, 636, 699, 762,
825, 888, 951, 1014, 1077, 1140, 1203, 1266, 1329, 1392, 1455, 1518, 1581,
1644, 1707, 1770, 1833, 1896, 1959, 2022, 511, 574, 637, 700, 763, 826,
889, 952, 1015, 1078, 1141, 1204, 1267, 1330, 1393, 1456, 1519, 1582, 1645,
1708, 1771, 1834, 1897, 1960, 2023, 575, 638, 701, 764, 827, 890, 953,
1016, 1079, 1142, 1205, 1268, 1331, 1394, 1457, 1520, 1583, 1646, 1709, 1772,
1835, 1898, 1961, 2024, 639, 702, 765, 828, 891, 954, 1017, 1080, 1143,
1206, 1269, 1332, 1395, 1458, 1521, 1584, 1647, 1710, 1773, 1836, 1899, 1962,
2025, 703, 766, 829, 892, 955, 1018, 1081, 1144, 1207, 1270, 1333, 1396,
1459, 1522, 1585, 1648, 1711, 1774, 1837, 1900, 1963, 2026, 767, 830, 893,
956, 1019, 1082, 1145, 1208, 1271, 1334, 1397, 1460, 1523, 1586, 1649, 1712,
1775, 1838, 1901, 1964, 2027, 831, 894, 957, 1020, 1083, 1146, 1209, 1272,
1335, 1398, 1461, 1524, 1587, 1650, 1713, 1776, 1839, 1902, 1965, 2028, 895,
958, 1021, 1084, 1147, 1210, 1273, 1336, 1399, 1462, 1525, 1588, 1651, 1714,
1777, 1840, 1903, 1966, 2029, 959, 1022, 1085, 1148, 1211, 1274, 1337, 1400,
1463, 1526, 1589, 1652, 1715, 1778, 1841, 1904, 1967, 2030, 1023, 1086, 1149,
1212, 1275, 1338, 1401, 1464, 1527, 1590, 1653, 1716, 1779, 1842, 1905, 1968,
2031, 1087, 1150, 1213, 1276, 1339, 1402, 1465, 1528, 1591, 1654, 1717, 1780,
1843, 1906, 1969, 2032, 1151, 1214, 1277, 1340, 1403, 1466, 1529, 1592, 1655,
1718, 1781, 1844, 1907, 1970, 2033, 1215, 1278, 1341, 1404, 1467, 1530, 1593,
1656, 1719, 1782, 1845, 1908, 1971, 2034, 1279, 1342, 1405, 1468, 1531, 1594,
1657, 1720, 1783, 1846, 1909, 1972, 2035, 1343, 1406, 1469, 1532, 1595, 1658,
1721, 1784, 1847, 1910, 1973, 2036, 1407, 1470, 1533, 1596, 1659, 1722, 1785,
1848, 1911, 1974, 2037, 1471, 1534, 1597, 1660, 1723, 1786, 1849, 1912, 1975,
2038, 1535, 1598, 1661, 1724, 1787, 1850, 1913, 1976, 2039, 1599, 1662, 1725,
1788, 1851, 1914, 1977, 2040, 1663, 1726, 1789, 1852, 1915, 1978, 2041, 1727,
1790, 1853, 1916, 1979, 2042, 1791, 1854, 1917, 1980, 2043, 1855, 1918, 1981,
2044, 1919, 1982, 2045, 1983, 2046, 2047,
};
// Scans the top-left 32x32 sub-block first before scanning the rest
DECLARE_ALIGNED(16, static const int16_t, default_scan_64x64[4096]) = {
0, 1, 64, 2, 65, 128, 3, 66, 129, 192, 4, 67, 130,
193, 256, 5, 68, 131, 194, 257, 320, 6, 69, 132, 195, 258,
321, 384, 7, 70, 133, 196, 259, 322, 385, 448, 8, 71, 134,
197, 260, 323, 386, 449, 512, 9, 72, 135, 198, 261, 324, 387,
450, 513, 576, 10, 73, 136, 199, 262, 325, 388, 451, 514, 577,
640, 11, 74, 137, 200, 263, 326, 389, 452, 515, 578, 641, 704,
12, 75, 138, 201, 264, 327, 390, 453, 516, 579, 642, 705, 768,
13, 76, 139, 202, 265, 328, 391, 454, 517, 580, 643, 706, 769,
832, 14, 77, 140, 203, 266, 329, 392, 455, 518, 581, 644, 707,
770, 833, 896, 15, 78, 141, 204, 267, 330, 393, 456, 519, 582,
645, 708, 771, 834, 897, 960, 16, 79, 142, 205, 268, 331, 394,
457, 520, 583, 646, 709, 772, 835, 898, 961, 1024, 17, 80, 143,
206, 269, 332, 395, 458, 521, 584, 647, 710, 773, 836, 899, 962,
1025, 1088, 18, 81, 144, 207, 270, 333, 396, 459, 522, 585, 648,
711, 774, 837, 900, 963, 1026, 1089, 1152, 19, 82, 145, 208, 271,
334, 397, 460, 523, 586, 649, 712, 775, 838, 901, 964, 1027, 1090,
1153, 1216, 20, 83, 146, 209, 272, 335, 398, 461, 524, 587, 650,
713, 776, 839, 902, 965, 1028, 1091, 1154, 1217, 1280, 21, 84, 147,
210, 273, 336, 399, 462, 525, 588, 651, 714, 777, 840, 903, 966,
1029, 1092, 1155, 1218, 1281, 1344, 22, 85, 148, 211, 274, 337, 400,
463, 526, 589, 652, 715, 778, 841, 904, 967, 1030, 1093, 1156, 1219,
1282, 1345, 1408, 23, 86, 149, 212, 275, 338, 401, 464, 527, 590,
653, 716, 779, 842, 905, 968, 1031, 1094, 1157, 1220, 1283, 1346, 1409,
1472, 24, 87, 150, 213, 276, 339, 402, 465, 528, 591, 654, 717,
780, 843, 906, 969, 1032, 1095, 1158, 1221, 1284, 1347, 1410, 1473, 1536,
25, 88, 151, 214, 277, 340, 403, 466, 529, 592, 655, 718, 781,
844, 907, 970, 1033, 1096, 1159, 1222, 1285, 1348, 1411, 1474, 1537, 1600,
26, 89, 152, 215, 278, 341, 404, 467, 530, 593, 656, 719, 782,
845, 908, 971, 1034, 1097, 1160, 1223, 1286, 1349, 1412, 1475, 1538, 1601,
1664, 27, 90, 153, 216, 279, 342, 405, 468, 531, 594, 657, 720,
783, 846, 909, 972, 1035, 1098, 1161, 1224, 1287, 1350, 1413, 1476, 1539,
1602, 1665, 1728, 28, 91, 154, 217, 280, 343, 406, 469, 532, 595,
658, 721, 784, 847, 910, 973, 1036, 1099, 1162, 1225, 1288, 1351, 1414,
1477, 1540, 1603, 1666, 1729, 1792, 29, 92, 155, 218, 281, 344, 407,
470, 533, 596, 659, 722, 785, 848, 911, 974, 1037, 1100, 1163, 1226,
1289, 1352, 1415, 1478, 1541, 1604, 1667, 1730, 1793, 1856, 30, 93, 156,
219, 282, 345, 408, 471, 534, 597, 660, 723, 786, 849, 912, 975,
1038, 1101, 1164, 1227, 1290, 1353, 1416, 1479, 1542, 1605, 1668, 1731, 1794,
1857, 1920, 31, 94, 157, 220, 283, 346, 409, 472, 535, 598, 661,
724, 787, 850, 913, 976, 1039, 1102, 1165, 1228, 1291, 1354, 1417, 1480,
1543, 1606, 1669, 1732, 1795, 1858, 1921, 1984, 95, 158, 221, 284, 347,
410, 473, 536, 599, 662, 725, 788, 851, 914, 977, 1040, 1103, 1166,
1229, 1292, 1355, 1418, 1481, 1544, 1607, 1670, 1733, 1796, 1859, 1922, 1985,
159, 222, 285, 348, 411, 474, 537, 600, 663, 726, 789, 852, 915,
978, 1041, 1104, 1167, 1230, 1293, 1356, 1419, 1482, 1545, 1608, 1671, 1734,
1797, 1860, 1923, 1986, 223, 286, 349, 412, 475, 538, 601, 664, 727,
790, 853, 916, 979, 1042, 1105, 1168, 1231, 1294, 1357, 1420, 1483, 1546,
1609, 1672, 1735, 1798, 1861, 1924, 1987, 287, 350, 413, 476, 539, 602,
665, 728, 791, 854, 917, 980, 1043, 1106, 1169, 1232, 1295, 1358, 1421,
1484, 1547, 1610, 1673, 1736, 1799, 1862, 1925, 1988, 351, 414, 477, 540,
603, 666, 729, 792, 855, 918, 981, 1044, 1107, 1170, 1233, 1296, 1359,
1422, 1485, 1548, 1611, 1674, 1737, 1800, 1863, 1926, 1989, 415, 478, 541,
604, 667, 730, 793, 856, 919, 982, 1045, 1108, 1171, 1234, 1297, 1360,
1423, 1486, 1549, 1612, 1675, 1738, 1801, 1864, 1927, 1990, 479, 542, 605,
668, 731, 794, 857, 920, 983, 1046, 1109, 1172, 1235, 1298, 1361, 1424,
1487, 1550, 1613, 1676, 1739, 1802, 1865, 1928, 1991, 543, 606, 669, 732,
795, 858, 921, 984, 1047, 1110, 1173, 1236, 1299, 1362, 1425, 1488, 1551,
1614, 1677, 1740, 1803, 1866, 1929, 1992, 607, 670, 733, 796, 859, 922,
985, 1048, 1111, 1174, 1237, 1300, 1363, 1426, 1489, 1552, 1615, 1678, 1741,
1804, 1867, 1930, 1993, 671, 734, 797, 860, 923, 986, 1049, 1112, 1175,
1238, 1301, 1364, 1427, 1490, 1553, 1616, 1679, 1742, 1805, 1868, 1931, 1994,
735, 798, 861, 924, 987, 1050, 1113, 1176, 1239, 1302, 1365, 1428, 1491,
1554, 1617, 1680, 1743, 1806, 1869, 1932, 1995, 799, 862, 925, 988, 1051,
1114, 1177, 1240, 1303, 1366, 1429, 1492, 1555, 1618, 1681, 1744, 1807, 1870,
1933, 1996, 863, 926, 989, 1052, 1115, 1178, 1241, 1304, 1367, 1430, 1493,
1556, 1619, 1682, 1745, 1808, 1871, 1934, 1997, 927, 990, 1053, 1116, 1179,
1242, 1305, 1368, 1431, 1494, 1557, 1620, 1683, 1746, 1809, 1872, 1935, 1998,
991, 1054, 1117, 1180, 1243, 1306, 1369, 1432, 1495, 1558, 1621, 1684, 1747,
1810, 1873, 1936, 1999, 1055, 1118, 1181, 1244, 1307, 1370, 1433, 1496, 1559,
1622, 1685, 1748, 1811, 1874, 1937, 2000, 1119, 1182, 1245, 1308, 1371, 1434,
1497, 1560, 1623, 1686, 1749, 1812, 1875, 1938, 2001, 1183, 1246, 1309, 1372,
1435, 1498, 1561, 1624, 1687, 1750, 1813, 1876, 1939, 2002, 1247, 1310, 1373,
1436, 1499, 1562, 1625, 1688, 1751, 1814, 1877, 1940, 2003, 1311, 1374, 1437,
1500, 1563, 1626, 1689, 1752, 1815, 1878, 1941, 2004, 1375, 1438, 1501, 1564,
1627, 1690, 1753, 1816, 1879, 1942, 2005, 1439, 1502, 1565, 1628, 1691, 1754,
1817, 1880, 1943, 2006, 1503, 1566, 1629, 1692, 1755, 1818, 1881, 1944, 2007,
1567, 1630, 1693, 1756, 1819, 1882, 1945, 2008, 1631, 1694, 1757, 1820, 1883,
1946, 2009, 1695, 1758, 1821, 1884, 1947, 2010, 1759, 1822, 1885, 1948, 2011,
1823, 1886, 1949, 2012, 1887, 1950, 2013, 1951, 2014, 2015, 32, 2048, 33,
96, 2049, 2112, 34, 97, 160, 2050, 2113, 2176, 35, 98, 161, 224,
2051, 2114, 2177, 2240, 36, 99, 162, 225, 288, 2052, 2115, 2178, 2241,
2304, 37, 100, 163, 226, 289, 352, 2053, 2116, 2179, 2242, 2305, 2368,
38, 101, 164, 227, 290, 353, 416, 2054, 2117, 2180, 2243, 2306, 2369,
2432, 39, 102, 165, 228, 291, 354, 417, 480, 2055, 2118, 2181, 2244,
2307, 2370, 2433, 2496, 40, 103, 166, 229, 292, 355, 418, 481, 544,
2056, 2119, 2182, 2245, 2308, 2371, 2434, 2497, 2560, 41, 104, 167, 230,
293, 356, 419, 482, 545, 608, 2057, 2120, 2183, 2246, 2309, 2372, 2435,
2498, 2561, 2624, 42, 105, 168, 231, 294, 357, 420, 483, 546, 609,
672, 2058, 2121, 2184, 2247, 2310, 2373, 2436, 2499, 2562, 2625, 2688, 43,
106, 169, 232, 295, 358, 421, 484, 547, 610, 673, 736, 2059, 2122,
2185, 2248, 2311, 2374, 2437, 2500, 2563, 2626, 2689, 2752, 44, 107, 170,
233, 296, 359, 422, 485, 548, 611, 674, 737, 800, 2060, 2123, 2186,
2249, 2312, 2375, 2438, 2501, 2564, 2627, 2690, 2753, 2816, 45, 108, 171,
234, 297, 360, 423, 486, 549, 612, 675, 738, 801, 864, 2061, 2124,
2187, 2250, 2313, 2376, 2439, 2502, 2565, 2628, 2691, 2754, 2817, 2880, 46,
109, 172, 235, 298, 361, 424, 487, 550, 613, 676, 739, 802, 865,
928, 2062, 2125, 2188, 2251, 2314, 2377, 2440, 2503, 2566, 2629, 2692, 2755,
2818, 2881, 2944, 47, 110, 173, 236, 299, 362, 425, 488, 551, 614,
677, 740, 803, 866, 929, 992, 2063, 2126, 2189, 2252, 2315, 2378, 2441,
2504, 2567, 2630, 2693, 2756, 2819, 2882, 2945, 3008, 48, 111, 174, 237,
300, 363, 426, 489, 552, 615, 678, 741, 804, 867, 930, 993, 1056,
2064, 2127, 2190, 2253, 2316, 2379, 2442, 2505, 2568, 2631, 2694, 2757, 2820,
2883, 2946, 3009, 3072, 49, 112, 175, 238, 301, 364, 427, 490, 553,
616, 679, 742, 805, 868, 931, 994, 1057, 1120, 2065, 2128, 2191, 2254,
2317, 2380, 2443, 2506, 2569, 2632, 2695, 2758, 2821, 2884, 2947, 3010, 3073,
3136, 50, 113, 176, 239, 302, 365, 428, 491, 554, 617, 680, 743,
806, 869, 932, 995, 1058, 1121, 1184, 2066, 2129, 2192, 2255, 2318, 2381,
2444, 2507, 2570, 2633, 2696, 2759, 2822, 2885, 2948, 3011, 3074, 3137, 3200,
51, 114, 177, 240, 303, 366, 429, 492, 555, 618, 681, 744, 807,
870, 933, 996, 1059, 1122, 1185, 1248, 2067, 2130, 2193, 2256, 2319, 2382,
2445, 2508, 2571, 2634, 2697, 2760, 2823, 2886, 2949, 3012, 3075, 3138, 3201,
3264, 52, 115, 178, 241, 304, 367, 430, 493, 556, 619, 682, 745,
808, 871, 934, 997, 1060, 1123, 1186, 1249, 1312, 2068, 2131, 2194, 2257,
2320, 2383, 2446, 2509, 2572, 2635, 2698, 2761, 2824, 2887, 2950, 3013, 3076,
3139, 3202, 3265, 3328, 53, 116, 179, 242, 305, 368, 431, 494, 557,
620, 683, 746, 809, 872, 935, 998, 1061, 1124, 1187, 1250, 1313, 1376,
2069, 2132, 2195, 2258, 2321, 2384, 2447, 2510, 2573, 2636, 2699, 2762, 2825,
2888, 2951, 3014, 3077, 3140, 3203, 3266, 3329, 3392, 54, 117, 180, 243,
306, 369, 432, 495, 558, 621, 684, 747, 810, 873, 936, 999, 1062,
1125, 1188, 1251, 1314, 1377, 1440, 2070, 2133, 2196, 2259, 2322, 2385, 2448,
2511, 2574, 2637, 2700, 2763, 2826, 2889, 2952, 3015, 3078, 3141, 3204, 3267,
3330, 3393, 3456, 55, 118, 181, 244, 307, 370, 433, 496, 559, 622,
685, 748, 811, 874, 937, 1000, 1063, 1126, 1189, 1252, 1315, 1378, 1441,
1504, 2071, 2134, 2197, 2260, 2323, 2386, 2449, 2512, 2575, 2638, 2701, 2764,
2827, 2890, 2953, 3016, 3079, 3142, 3205, 3268, 3331, 3394, 3457, 3520, 56,
119, 182, 245, 308, 371, 434, 497, 560, 623, 686, 749, 812, 875,
938, 1001, 1064, 1127, 1190, 1253, 1316, 1379, 1442, 1505, 1568, 2072, 2135,
2198, 2261, 2324, 2387, 2450, 2513, 2576, 2639, 2702, 2765, 2828, 2891, 2954,
3017, 3080, 3143, 3206, 3269, 3332, 3395, 3458, 3521, 3584, 57, 120, 183,
246, 309, 372, 435, 498, 561, 624, 687, 750, 813, 876, 939, 1002,
1065, 1128, 1191, 1254, 1317, 1380, 1443, 1506, 1569, 1632, 2073, 2136, 2199,
2262, 2325, 2388, 2451, 2514, 2577, 2640, 2703, 2766, 2829, 2892, 2955, 3018,
3081, 3144, 3207, 3270, 3333, 3396, 3459, 3522, 3585, 3648, 58, 121, 184,
247, 310, 373, 436, 499, 562, 625, 688, 751, 814, 877, 940, 1003,
1066, 1129, 1192, 1255, 1318, 1381, 1444, 1507, 1570, 1633, 1696, 2074, 2137,
2200, 2263, 2326, 2389, 2452, 2515, 2578, 2641, 2704, 2767, 2830, 2893, 2956,
3019, 3082, 3145, 3208, 3271, 3334, 3397, 3460, 3523, 3586, 3649, 3712, 59,
122, 185, 248, 311, 374, 437, 500, 563, 626, 689, 752, 815, 878,
941, 1004, 1067, 1130, 1193, 1256, 1319, 1382, 1445, 1508, 1571, 1634, 1697,
1760, 2075, 2138, 2201, 2264, 2327, 2390, 2453, 2516, 2579, 2642, 2705, 2768,
2831, 2894, 2957, 3020, 3083, 3146, 3209, 3272, 3335, 3398, 3461, 3524, 3587,
3650, 3713, 3776, 60, 123, 186, 249, 312, 375, 438, 501, 564, 627,
690, 753, 816, 879, 942, 1005, 1068, 1131, 1194, 1257, 1320, 1383, 1446,
1509, 1572, 1635, 1698, 1761, 1824, 2076, 2139, 2202, 2265, 2328, 2391, 2454,
2517, 2580, 2643, 2706, 2769, 2832, 2895, 2958, 3021, 3084, 3147, 3210, 3273,
3336, 3399, 3462, 3525, 3588, 3651, 3714, 3777, 3840, 61, 124, 187, 250,
313, 376, 439, 502, 565, 628, 691, 754, 817, 880, 943, 1006, 1069,
1132, 1195, 1258, 1321, 1384, 1447, 1510, 1573, 1636, 1699, 1762, 1825, 1888,
2077, 2140, 2203, 2266, 2329, 2392, 2455, 2518, 2581, 2644, 2707, 2770, 2833,
2896, 2959, 3022, 3085, 3148, 3211, 3274, 3337, 3400, 3463, 3526, 3589, 3652,
3715, 3778, 3841, 3904, 62, 125, 188, 251, 314, 377, 440, 503, 566,
629, 692, 755, 818, 881, 944, 1007, 1070, 1133, 1196, 1259, 1322, 1385,
1448, 1511, 1574, 1637, 1700, 1763, 1826, 1889, 1952, 2078, 2141, 2204, 2267,
2330, 2393, 2456, 2519, 2582, 2645, 2708, 2771, 2834, 2897, 2960, 3023, 3086,
3149, 3212, 3275, 3338, 3401, 3464, 3527, 3590, 3653, 3716, 3779, 3842, 3905,
3968, 63, 126, 189, 252, 315, 378, 441, 504, 567, 630, 693, 756,
819, 882, 945, 1008, 1071, 1134, 1197, 1260, 1323, 1386, 1449, 1512, 1575,
1638, 1701, 1764, 1827, 1890, 1953, 2016, 2079, 2142, 2205, 2268, 2331, 2394,
2457, 2520, 2583, 2646, 2709, 2772, 2835, 2898, 2961, 3024, 3087, 3150, 3213,
3276, 3339, 3402, 3465, 3528, 3591, 3654, 3717, 3780, 3843, 3906, 3969, 4032,
127, 190, 253, 316, 379, 442, 505, 568, 631, 694, 757, 820, 883,
946, 1009, 1072, 1135, 1198, 1261, 1324, 1387, 1450, 1513, 1576, 1639, 1702,
1765, 1828, 1891, 1954, 2017, 2080, 2143, 2206, 2269, 2332, 2395, 2458, 2521,
2584, 2647, 2710, 2773, 2836, 2899, 2962, 3025, 3088, 3151, 3214, 3277, 3340,
3403, 3466, 3529, 3592, 3655, 3718, 3781, 3844, 3907, 3970, 4033, 191, 254,
317, 380, 443, 506, 569, 632, 695, 758, 821, 884, 947, 1010, 1073,
1136, 1199, 1262, 1325, 1388, 1451, 1514, 1577, 1640, 1703, 1766, 1829, 1892,
1955, 2018, 2081, 2144, 2207, 2270, 2333, 2396, 2459, 2522, 2585, 2648, 2711,
2774, 2837, 2900, 2963, 3026, 3089, 3152, 3215, 3278, 3341, 3404, 3467, 3530,
3593, 3656, 3719, 3782, 3845, 3908, 3971, 4034, 255, 318, 381, 444, 507,
570, 633, 696, 759, 822, 885, 948, 1011, 1074, 1137, 1200, 1263, 1326,
1389, 1452, 1515, 1578, 1641, 1704, 1767, 1830, 1893, 1956, 2019, 2082, 2145,
2208, 2271, 2334, 2397, 2460, 2523, 2586, 2649, 2712, 2775, 2838, 2901, 2964,
3027, 3090, 3153, 3216, 3279, 3342, 3405, 3468, 3531, 3594, 3657, 3720, 3783,
3846, 3909, 3972, 4035, 319, 382, 445, 508, 571, 634, 697, 760, 823,
886, 949, 1012, 1075, 1138, 1201, 1264, 1327, 1390, 1453, 1516, 1579, 1642,
1705, 1768, 1831, 1894, 1957, 2020, 2083, 2146, 2209, 2272, 2335, 2398, 2461,
2524, 2587, 2650, 2713, 2776, 2839, 2902, 2965, 3028, 3091, 3154, 3217, 3280,
3343, 3406, 3469, 3532, 3595, 3658, 3721, 3784, 3847, 3910, 3973, 4036, 383,
446, 509, 572, 635, 698, 761, 824, 887, 950, 1013, 1076, 1139, 1202,
1265, 1328, 1391, 1454, 1517, 1580, 1643, 1706, 1769, 1832, 1895, 1958, 2021,
2084, 2147, 2210, 2273, 2336, 2399, 2462, 2525, 2588, 2651, 2714, 2777, 2840,
2903, 2966, 3029, 3092, 3155, 3218, 3281, 3344, 3407, 3470, 3533, 3596, 3659,
3722, 3785, 3848, 3911, 3974, 4037, 447, 510, 573, 636, 699, 762, 825,
888, 951, 1014, 1077, 1140, 1203, 1266, 1329, 1392, 1455, 1518, 1581, 1644,
1707, 1770, 1833, 1896, 1959, 2022, 2085, 2148, 2211, 2274, 2337, 2400, 2463,
2526, 2589, 2652, 2715, 2778, 2841, 2904, 2967, 3030, 3093, 3156, 3219, 3282,
3345, 3408, 3471, 3534, 3597, 3660, 3723, 3786, 3849, 3912, 3975, 4038, 511,
574, 637, 700, 763, 826, 889, 952, 1015, 1078, 1141, 1204, 1267, 1330,
1393, 1456, 1519, 1582, 1645, 1708, 1771, 1834, 1897, 1960, 2023, 2086, 2149,
2212, 2275, 2338, 2401, 2464, 2527, 2590, 2653, 2716, 2779, 2842, 2905, 2968,
3031, 3094, 3157, 3220, 3283, 3346, 3409, 3472, 3535, 3598, 3661, 3724, 3787,
3850, 3913, 3976, 4039, 575, 638, 701, 764, 827, 890, 953, 1016, 1079,
1142, 1205, 1268, 1331, 1394, 1457, 1520, 1583, 1646, 1709, 1772, 1835, 1898,
1961, 2024, 2087, 2150, 2213, 2276, 2339, 2402, 2465, 2528, 2591, 2654, 2717,
2780, 2843, 2906, 2969, 3032, 3095, 3158, 3221, 3284, 3347, 3410, 3473, 3536,
3599, 3662, 3725, 3788, 3851, 3914, 3977, 4040, 639, 702, 765, 828, 891,
954, 1017, 1080, 1143, 1206, 1269, 1332, 1395, 1458, 1521, 1584, 1647, 1710,
1773, 1836, 1899, 1962, 2025, 2088, 2151, 2214, 2277, 2340, 2403, 2466, 2529,
2592, 2655, 2718, 2781, 2844, 2907, 2970, 3033, 3096, 3159, 3222, 3285, 3348,
3411, 3474, 3537, 3600, 3663, 3726, 3789, 3852, 3915, 3978, 4041, 703, 766,
829, 892, 955, 1018, 1081, 1144, 1207, 1270, 1333, 1396, 1459, 1522, 1585,
1648, 1711, 1774, 1837, 1900, 1963, 2026, 2089, 2152, 2215, 2278, 2341, 2404,
2467, 2530, 2593, 2656, 2719, 2782, 2845, 2908, 2971, 3034, 3097, 3160, 3223,
3286, 3349, 3412, 3475, 3538, 3601, 3664, 3727, 3790, 3853, 3916, 3979, 4042,
767, 830, 893, 956, 1019, 1082, 1145, 1208, 1271, 1334, 1397, 1460, 1523,
1586, 1649, 1712, 1775, 1838, 1901, 1964, 2027, 2090, 2153, 2216, 2279, 2342,
2405, 2468, 2531, 2594, 2657, 2720, 2783, 2846, 2909, 2972, 3035, 3098, 3161,
3224, 3287, 3350, 3413, 3476, 3539, 3602, 3665, 3728, 3791, 3854, 3917, 3980,
4043, 831, 894, 957, 1020, 1083, 1146, 1209, 1272, 1335, 1398, 1461, 1524,
1587, 1650, 1713, 1776, 1839, 1902, 1965, 2028, 2091, 2154, 2217, 2280, 2343,
2406, 2469, 2532, 2595, 2658, 2721, 2784, 2847, 2910, 2973, 3036, 3099, 3162,
3225, 3288, 3351, 3414, 3477, 3540, 3603, 3666, 3729, 3792, 3855, 3918, 3981,
4044, 895, 958, 1021, 1084, 1147, 1210, 1273, 1336, 1399, 1462, 1525, 1588,
1651, 1714, 1777, 1840, 1903, 1966, 2029, 2092, 2155, 2218, 2281, 2344, 2407,
2470, 2533, 2596, 2659, 2722, 2785, 2848, 2911, 2974, 3037, 3100, 3163, 3226,
3289, 3352, 3415, 3478, 3541, 3604, 3667, 3730, 3793, 3856, 3919, 3982, 4045,
959, 1022, 1085, 1148, 1211, 1274, 1337, 1400, 1463, 1526, 1589, 1652, 1715,
1778, 1841, 1904, 1967, 2030, 2093, 2156, 2219, 2282, 2345, 2408, 2471, 2534,
2597, 2660, 2723, 2786, 2849, 2912, 2975, 3038, 3101, 3164, 3227, 3290, 3353,
3416, 3479, 3542, 3605, 3668, 3731, 3794, 3857, 3920, 3983, 4046, 1023, 1086,
1149, 1212, 1275, 1338, 1401, 1464, 1527, 1590, 1653, 1716, 1779, 1842, 1905,
1968, 2031, 2094, 2157, 2220, 2283, 2346, 2409, 2472, 2535, 2598, 2661, 2724,
2787, 2850, 2913, 2976, 3039, 3102, 3165, 3228, 3291, 3354, 3417, 3480, 3543,
3606, 3669, 3732, 3795, 3858, 3921, 3984, 4047, 1087, 1150, 1213, 1276, 1339,
1402, 1465, 1528, 1591, 1654, 1717, 1780, 1843, 1906, 1969, 2032, 2095, 2158,
2221, 2284, 2347, 2410, 2473, 2536, 2599, 2662, 2725, 2788, 2851, 2914, 2977,
3040, 3103, 3166, 3229, 3292, 3355, 3418, 3481, 3544, 3607, 3670, 3733, 3796,
3859, 3922, 3985, 4048, 1151, 1214, 1277, 1340, 1403, 1466, 1529, 1592, 1655,
1718, 1781, 1844, 1907, 1970, 2033, 2096, 2159, 2222, 2285, 2348, 2411, 2474,
2537, 2600, 2663, 2726, 2789, 2852, 2915, 2978, 3041, 3104, 3167, 3230, 3293,
3356, 3419, 3482, 3545, 3608, 3671, 3734, 3797, 3860, 3923, 3986, 4049, 1215,
1278, 1341, 1404, 1467, 1530, 1593, 1656, 1719, 1782, 1845, 1908, 1971, 2034,
2097, 2160, 2223, 2286, 2349, 2412, 2475, 2538, 2601, 2664, 2727, 2790, 2853,
2916, 2979, 3042, 3105, 3168, 3231, 3294, 3357, 3420, 3483, 3546, 3609, 3672,
3735, 3798, 3861, 3924, 3987, 4050, 1279, 1342, 1405, 1468, 1531, 1594, 1657,
1720, 1783, 1846, 1909, 1972, 2035, 2098, 2161, 2224, 2287, 2350, 2413, 2476,
2539, 2602, 2665, 2728, 2791, 2854, 2917, 2980, 3043, 3106, 3169, 3232, 3295,
3358, 3421, 3484, 3547, 3610, 3673, 3736, 3799, 3862, 3925, 3988, 4051, 1343,
1406, 1469, 1532, 1595, 1658, 1721, 1784, 1847, 1910, 1973, 2036, 2099, 2162,
2225, 2288, 2351, 2414, 2477, 2540, 2603, 2666, 2729, 2792, 2855, 2918, 2981,
3044, 3107, 3170, 3233, 3296, 3359, 3422, 3485, 3548, 3611, 3674, 3737, 3800,
3863, 3926, 3989, 4052, 1407, 1470, 1533, 1596, 1659, 1722, 1785, 1848, 1911,
1974, 2037, 2100, 2163, 2226, 2289, 2352, 2415, 2478, 2541, 2604, 2667, 2730,
2793, 2856, 2919, 2982, 3045, 3108, 3171, 3234, 3297, 3360, 3423, 3486, 3549,
3612, 3675, 3738, 3801, 3864, 3927, 3990, 4053, 1471, 1534, 1597, 1660, 1723,
1786, 1849, 1912, 1975, 2038, 2101, 2164, 2227, 2290, 2353, 2416, 2479, 2542,
2605, 2668, 2731, 2794, 2857, 2920, 2983, 3046, 3109, 3172, 3235, 3298, 3361,
3424, 3487, 3550, 3613, 3676, 3739, 3802, 3865, 3928, 3991, 4054, 1535, 1598,
1661, 1724, 1787, 1850, 1913, 1976, 2039, 2102, 2165, 2228, 2291, 2354, 2417,
2480, 2543, 2606, 2669, 2732, 2795, 2858, 2921, 2984, 3047, 3110, 3173, 3236,
3299, 3362, 3425, 3488, 3551, 3614, 3677, 3740, 3803, 3866, 3929, 3992, 4055,
1599, 1662, 1725, 1788, 1851, 1914, 1977, 2040, 2103, 2166, 2229, 2292, 2355,
2418, 2481, 2544, 2607, 2670, 2733, 2796, 2859, 2922, 2985, 3048, 3111, 3174,
3237, 3300, 3363, 3426, 3489, 3552, 3615, 3678, 3741, 3804, 3867, 3930, 3993,
4056, 1663, 1726, 1789, 1852, 1915, 1978, 2041, 2104, 2167, 2230, 2293, 2356,
2419, 2482, 2545, 2608, 2671, 2734, 2797, 2860, 2923, 2986, 3049, 3112, 3175,
3238, 3301, 3364, 3427, 3490, 3553, 3616, 3679, 3742, 3805, 3868, 3931, 3994,
4057, 1727, 1790, 1853, 1916, 1979, 2042, 2105, 2168, 2231, 2294, 2357, 2420,
2483, 2546, 2609, 2672, 2735, 2798, 2861, 2924, 2987, 3050, 3113, 3176, 3239,
3302, 3365, 3428, 3491, 3554, 3617, 3680, 3743, 3806, 3869, 3932, 3995, 4058,
1791, 1854, 1917, 1980, 2043, 2106, 2169, 2232, 2295, 2358, 2421, 2484, 2547,
2610, 2673, 2736, 2799, 2862, 2925, 2988, 3051, 3114, 3177, 3240, 3303, 3366,
3429, 3492, 3555, 3618, 3681, 3744, 3807, 3870, 3933, 3996, 4059, 1855, 1918,
1981, 2044, 2107, 2170, 2233, 2296, 2359, 2422, 2485, 2548, 2611, 2674, 2737,
2800, 2863, 2926, 2989, 3052, 3115, 3178, 3241, 3304, 3367, 3430, 3493, 3556,
3619, 3682, 3745, 3808, 3871, 3934, 3997, 4060, 1919, 1982, 2045, 2108, 2171,
2234, 2297, 2360, 2423, 2486, 2549, 2612, 2675, 2738, 2801, 2864, 2927, 2990,
3053, 3116, 3179, 3242, 3305, 3368, 3431, 3494, 3557, 3620, 3683, 3746, 3809,
3872, 3935, 3998, 4061, 1983, 2046, 2109, 2172, 2235, 2298, 2361, 2424, 2487,
2550, 2613, 2676, 2739, 2802, 2865, 2928, 2991, 3054, 3117, 3180, 3243, 3306,
3369, 3432, 3495, 3558, 3621, 3684, 3747, 3810, 3873, 3936, 3999, 4062, 2047,
2110, 2173, 2236, 2299, 2362, 2425, 2488, 2551, 2614, 2677, 2740, 2803, 2866,
2929, 2992, 3055, 3118, 3181, 3244, 3307, 3370, 3433, 3496, 3559, 3622, 3685,
3748, 3811, 3874, 3937, 4000, 4063, 2111, 2174, 2237, 2300, 2363, 2426, 2489,
2552, 2615, 2678, 2741, 2804, 2867, 2930, 2993, 3056, 3119, 3182, 3245, 3308,
3371, 3434, 3497, 3560, 3623, 3686, 3749, 3812, 3875, 3938, 4001, 4064, 2175,
2238, 2301, 2364, 2427, 2490, 2553, 2616, 2679, 2742, 2805, 2868, 2931, 2994,
3057, 3120, 3183, 3246, 3309, 3372, 3435, 3498, 3561, 3624, 3687, 3750, 3813,
3876, 3939, 4002, 4065, 2239, 2302, 2365, 2428, 2491, 2554, 2617, 2680, 2743,
2806, 2869, 2932, 2995, 3058, 3121, 3184, 3247, 3310, 3373, 3436, 3499, 3562,
3625, 3688, 3751, 3814, 3877, 3940, 4003, 4066, 2303, 2366, 2429, 2492, 2555,
2618, 2681, 2744, 2807, 2870, 2933, 2996, 3059, 3122, 3185, 3248, 3311, 3374,
3437, 3500, 3563, 3626, 3689, 3752, 3815, 3878, 3941, 4004, 4067, 2367, 2430,
2493, 2556, 2619, 2682, 2745, 2808, 2871, 2934, 2997, 3060, 3123, 3186, 3249,
3312, 3375, 3438, 3501, 3564, 3627, 3690, 3753, 3816, 3879, 3942, 4005, 4068,
2431, 2494, 2557, 2620, 2683, 2746, 2809, 2872, 2935, 2998, 3061, 3124, 3187,
3250, 3313, 3376, 3439, 3502, 3565, 3628, 3691, 3754, 3817, 3880, 3943, 4006,
4069, 2495, 2558, 2621, 2684, 2747, 2810, 2873, 2936, 2999, 3062, 3125, 3188,
3251, 3314, 3377, 3440, 3503, 3566, 3629, 3692, 3755, 3818, 3881, 3944, 4007,
4070, 2559, 2622, 2685, 2748, 2811, 2874, 2937, 3000, 3063, 3126, 3189, 3252,
3315, 3378, 3441, 3504, 3567, 3630, 3693, 3756, 3819, 3882, 3945, 4008, 4071,
2623, 2686, 2749, 2812, 2875, 2938, 3001, 3064, 3127, 3190, 3253, 3316, 3379,
3442, 3505, 3568, 3631, 3694, 3757, 3820, 3883, 3946, 4009, 4072, 2687, 2750,
2813, 2876, 2939, 3002, 3065, 3128, 3191, 3254, 3317, 3380, 3443, 3506, 3569,
3632, 3695, 3758, 3821, 3884, 3947, 4010, 4073, 2751, 2814, 2877, 2940, 3003,
3066, 3129, 3192, 3255, 3318, 3381, 3444, 3507, 3570, 3633, 3696, 3759, 3822,
3885, 3948, 4011, 4074, 2815, 2878, 2941, 3004, 3067, 3130, 3193, 3256, 3319,
3382, 3445, 3508, 3571, 3634, 3697, 3760, 3823, 3886, 3949, 4012, 4075, 2879,
2942, 3005, 3068, 3131, 3194, 3257, 3320, 3383, 3446, 3509, 3572, 3635, 3698,
3761, 3824, 3887, 3950, 4013, 4076, 2943, 3006, 3069, 3132, 3195, 3258, 3321,
3384, 3447, 3510, 3573, 3636, 3699, 3762, 3825, 3888, 3951, 4014, 4077, 3007,
3070, 3133, 3196, 3259, 3322, 3385, 3448, 3511, 3574, 3637, 3700, 3763, 3826,
3889, 3952, 4015, 4078, 3071, 3134, 3197, 3260, 3323, 3386, 3449, 3512, 3575,
3638, 3701, 3764, 3827, 3890, 3953, 4016, 4079, 3135, 3198, 3261, 3324, 3387,
3450, 3513, 3576, 3639, 3702, 3765, 3828, 3891, 3954, 4017, 4080, 3199, 3262,
3325, 3388, 3451, 3514, 3577, 3640, 3703, 3766, 3829, 3892, 3955, 4018, 4081,
3263, 3326, 3389, 3452, 3515, 3578, 3641, 3704, 3767, 3830, 3893, 3956, 4019,
4082, 3327, 3390, 3453, 3516, 3579, 3642, 3705, 3768, 3831, 3894, 3957, 4020,
4083, 3391, 3454, 3517, 3580, 3643, 3706, 3769, 3832, 3895, 3958, 4021, 4084,
3455, 3518, 3581, 3644, 3707, 3770, 3833, 3896, 3959, 4022, 4085, 3519, 3582,
3645, 3708, 3771, 3834, 3897, 3960, 4023, 4086, 3583, 3646, 3709, 3772, 3835,
3898, 3961, 4024, 4087, 3647, 3710, 3773, 3836, 3899, 3962, 4025, 4088, 3711,
3774, 3837, 3900, 3963, 4026, 4089, 3775, 3838, 3901, 3964, 4027, 4090, 3839,
3902, 3965, 4028, 4091, 3903, 3966, 4029, 4092, 3967, 4030, 4093, 4031, 4094,
4095,
};
#endif // CONFIG_TX64X64
// Neighborhood 2-tuples for various scans and blocksizes,
// in {top, left} order for each position in corresponding scan order.
DECLARE_ALIGNED(16, static const int16_t,
default_scan_4x4_neighbors[17 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 4, 0, 1, 4, 4, 5, 5, 1, 8, 8, 5, 8, 2,
2, 2, 5, 9, 12, 6, 9, 3, 6, 10, 13, 7, 10, 11, 14, 0, 0,
};
DECLARE_ALIGNED(16, static const int16_t,
mcol_scan_4x4_neighbors[17 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 4, 4, 8, 8, 0, 0, 1, 4, 5, 8, 9, 12, 1,
1, 2, 5, 6, 9, 10, 13, 2, 2, 3, 6, 7, 10, 11, 14, 0, 0,
};
DECLARE_ALIGNED(16, static const int16_t,
mrow_scan_4x4_neighbors[17 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 1, 1, 2, 2, 0, 0, 1, 4, 2, 5, 3, 6, 4,
4, 5, 8, 6, 9, 7, 10, 8, 8, 9, 12, 10, 13, 11, 14, 0, 0,
};
DECLARE_ALIGNED(16, static const int16_t,
col_scan_4x4_neighbors[17 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 4, 4, 4, 0, 8, 8, 1, 4, 5, 8, 5, 1, 9,
12, 2, 5, 6, 9, 6, 2, 3, 6, 10, 13, 7, 10, 11, 14, 0, 0,
};
DECLARE_ALIGNED(16, static const int16_t,
row_scan_4x4_neighbors[17 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 0, 1, 1, 1, 1, 4, 2, 2, 2, 5, 4, 5, 5,
8, 3, 6, 8, 9, 6, 9, 9, 12, 7, 10, 10, 13, 11, 14, 0, 0,
};
DECLARE_ALIGNED(16, static const int16_t,
default_scan_4x8_neighbors[33 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 0, 0, 1, 4, 1, 1, 4, 4, 2, 5, 5, 8, 6,
9, 2, 2, 8, 8, 3, 6, 9, 12, 7, 10, 10, 13, 12, 12, 13, 16,
11, 14, 14, 17, 15, 18, 16, 16, 17, 20, 18, 21, 19, 22, 20, 20, 21,
24, 22, 25, 23, 26, 24, 24, 25, 28, 26, 29, 27, 30, 0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
mcol_scan_4x8_neighbors[33 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 4, 4, 8, 8, 12, 12, 16, 16, 20, 20, 24, 24, 0,
0, 1, 4, 5, 8, 9, 12, 13, 16, 17, 20, 21, 24, 25, 28, 1, 1,
2, 5, 6, 9, 10, 13, 14, 17, 18, 21, 22, 25, 26, 29, 2, 2, 3,
6, 7, 10, 11, 14, 15, 18, 19, 22, 23, 26, 27, 30, 0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
mrow_scan_4x8_neighbors[33 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 1, 1, 2, 2, 0, 0, 1, 4, 2, 5, 3, 6, 4,
4, 5, 8, 6, 9, 7, 10, 8, 8, 9, 12, 10, 13, 11, 14, 12, 12,
13, 16, 14, 17, 15, 18, 16, 16, 17, 20, 18, 21, 19, 22, 20, 20, 21,
24, 22, 25, 23, 26, 24, 24, 25, 28, 26, 29, 27, 30, 0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
default_scan_8x4_neighbors[33 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 0, 0, 1, 8, 1, 1, 8, 8, 2, 9, 9, 16, 10,
17, 2, 2, 16, 16, 3, 10, 17, 24, 11, 18, 18, 25, 3, 3, 4, 11,
19, 26, 12, 19, 4, 4, 20, 27, 5, 12, 13, 20, 21, 28, 5, 5, 6,
13, 14, 21, 22, 29, 6, 6, 7, 14, 15, 22, 23, 30, 0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
mcol_scan_8x4_neighbors[33 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 8, 8, 16, 16, 0, 0, 1, 8, 9, 16, 17, 24, 1,
1, 2, 9, 10, 17, 18, 25, 2, 2, 3, 10, 11, 18, 19, 26, 3, 3,
4, 11, 12, 19, 20, 27, 4, 4, 5, 12, 13, 20, 21, 28, 5, 5, 6,
13, 14, 21, 22, 29, 6, 6, 7, 14, 15, 22, 23, 30, 0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
mrow_scan_8x4_neighbors[33 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 0,
0, 1, 8, 2, 9, 3, 10, 4, 11, 5, 12, 6, 13, 7, 14, 8, 8,
9, 16, 10, 17, 11, 18, 12, 19, 13, 20, 14, 21, 15, 22, 16, 16, 17,
24, 18, 25, 19, 26, 20, 27, 21, 28, 22, 29, 23, 30, 0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
default_scan_4x16_neighbors[65 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 0, 0, 1, 4, 1, 1, 4, 4, 2, 5, 5, 8, 6, 9, 2,
2, 8, 8, 3, 6, 9, 12, 7, 10, 10, 13, 12, 12, 13, 16, 11, 14, 14, 17,
15, 18, 16, 16, 17, 20, 18, 21, 19, 22, 20, 20, 21, 24, 22, 25, 23, 26, 24,
24, 25, 28, 26, 29, 27, 30, 28, 28, 29, 32, 30, 33, 31, 34, 32, 32, 33, 36,
34, 37, 35, 38, 36, 36, 37, 40, 38, 41, 39, 42, 40, 40, 41, 44, 42, 45, 43,
46, 44, 44, 45, 48, 46, 49, 47, 50, 48, 48, 49, 52, 50, 53, 51, 54, 52, 52,
53, 56, 54, 57, 55, 58, 56, 56, 57, 60, 58, 61, 59, 62, 0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
default_scan_16x4_neighbors[65 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 0, 0, 1, 16, 1, 1, 16, 16, 2, 17, 17, 32, 18, 33, 2,
2, 32, 32, 3, 18, 33, 48, 19, 34, 34, 49, 3, 3, 4, 19, 35, 50, 20, 35,
4, 4, 36, 51, 5, 20, 21, 36, 37, 52, 5, 5, 6, 21, 22, 37, 38, 53, 6,
6, 7, 22, 23, 38, 39, 54, 7, 7, 8, 23, 24, 39, 40, 55, 8, 8, 9, 24,
25, 40, 41, 56, 9, 9, 10, 25, 26, 41, 42, 57, 10, 10, 11, 26, 27, 42, 43,
58, 11, 11, 12, 27, 28, 43, 44, 59, 12, 12, 13, 28, 29, 44, 45, 60, 13, 13,
14, 29, 30, 45, 46, 61, 14, 14, 15, 30, 31, 46, 47, 62, 0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
mrow_scan_4x16_neighbors[65 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 1, 1, 2, 2, 0, 0, 1, 4, 2, 5, 3, 6, 4, 4, 5,
8, 6, 9, 7, 10, 8, 8, 9, 12, 10, 13, 11, 14, 12, 12, 13, 16, 14, 17,
15, 18, 16, 16, 17, 20, 18, 21, 19, 22, 20, 20, 21, 24, 22, 25, 23, 26, 24,
24, 25, 28, 26, 29, 27, 30, 28, 28, 29, 32, 30, 33, 31, 34, 32, 32, 33, 36,
34, 37, 35, 38, 36, 36, 37, 40, 38, 41, 39, 42, 40, 40, 41, 44, 42, 45, 43,
46, 44, 44, 45, 48, 46, 49, 47, 50, 48, 48, 49, 52, 50, 53, 51, 54, 52, 52,
53, 56, 54, 57, 55, 58, 56, 56, 57, 60, 58, 61, 59, 62, 0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
mrow_scan_16x4_neighbors[65 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8,
8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 0, 0, 1, 16, 2, 17,
3, 18, 4, 19, 5, 20, 6, 21, 7, 22, 8, 23, 9, 24, 10, 25, 11, 26, 12,
27, 13, 28, 14, 29, 15, 30, 16, 16, 17, 32, 18, 33, 19, 34, 20, 35, 21, 36,
22, 37, 23, 38, 24, 39, 25, 40, 26, 41, 27, 42, 28, 43, 29, 44, 30, 45, 31,
46, 32, 32, 33, 48, 34, 49, 35, 50, 36, 51, 37, 52, 38, 53, 39, 54, 40, 55,
41, 56, 42, 57, 43, 58, 44, 59, 45, 60, 46, 61, 47, 62, 0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
mcol_scan_4x16_neighbors[65 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 4, 4, 8, 8, 12, 12, 16, 16, 20, 20, 24, 24, 28, 28, 32,
32, 36, 36, 40, 40, 44, 44, 48, 48, 52, 52, 56, 56, 0, 0, 1, 4, 5, 8,
9, 12, 13, 16, 17, 20, 21, 24, 25, 28, 29, 32, 33, 36, 37, 40, 41, 44, 45,
48, 49, 52, 53, 56, 57, 60, 1, 1, 2, 5, 6, 9, 10, 13, 14, 17, 18, 21,
22, 25, 26, 29, 30, 33, 34, 37, 38, 41, 42, 45, 46, 49, 50, 53, 54, 57, 58,
61, 2, 2, 3, 6, 7, 10, 11, 14, 15, 18, 19, 22, 23, 26, 27, 30, 31, 34,
35, 38, 39, 42, 43, 46, 47, 50, 51, 54, 55, 58, 59, 62, 0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
mcol_scan_16x4_neighbors[65 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 16, 16, 32, 32, 0, 0, 1, 16, 17, 32, 33, 48, 1, 1, 2,
17, 18, 33, 34, 49, 2, 2, 3, 18, 19, 34, 35, 50, 3, 3, 4, 19, 20, 35,
36, 51, 4, 4, 5, 20, 21, 36, 37, 52, 5, 5, 6, 21, 22, 37, 38, 53, 6,
6, 7, 22, 23, 38, 39, 54, 7, 7, 8, 23, 24, 39, 40, 55, 8, 8, 9, 24,
25, 40, 41, 56, 9, 9, 10, 25, 26, 41, 42, 57, 10, 10, 11, 26, 27, 42, 43,
58, 11, 11, 12, 27, 28, 43, 44, 59, 12, 12, 13, 28, 29, 44, 45, 60, 13, 13,
14, 29, 30, 45, 46, 61, 14, 14, 15, 30, 31, 46, 47, 62, 0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
default_scan_8x32_neighbors[257 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 0, 0, 1, 1, 1, 8, 8, 8, 2, 2, 2,
9, 9, 16, 16, 16, 3, 3, 3, 10, 10, 17, 17, 24, 24, 24,
4, 4, 4, 11, 11, 18, 18, 25, 25, 32, 32, 32, 5, 5, 5,
12, 12, 19, 19, 26, 26, 33, 33, 40, 40, 40, 6, 6, 6, 13,
13, 20, 20, 27, 27, 34, 34, 41, 41, 48, 48, 48, 7, 14, 14,
21, 21, 28, 28, 35, 35, 42, 42, 49, 49, 56, 56, 56, 15, 22,
22, 29, 29, 36, 36, 43, 43, 50, 50, 57, 57, 64, 64, 64, 23,
30, 30, 37, 37, 44, 44, 51, 51, 58, 58, 65, 65, 72, 72, 72,
31, 38, 38, 45, 45, 52, 52, 59, 59, 66, 66, 73, 73, 80, 80,
80, 39, 46, 46, 53, 53, 60, 60, 67, 67, 74, 74, 81, 81, 88,
88, 88, 47, 54, 54, 61, 61, 68, 68, 75, 75, 82, 82, 89, 89,
96, 96, 96, 55, 62, 62, 69, 69, 76, 76, 83, 83, 90, 90, 97,
97, 104, 104, 104, 63, 70, 70, 77, 77, 84, 84, 91, 91, 98, 98,
105, 105, 112, 112, 112, 71, 78, 78, 85, 85, 92, 92, 99, 99, 106,
106, 113, 113, 120, 120, 120, 79, 86, 86, 93, 93, 100, 100, 107, 107,
114, 114, 121, 121, 128, 128, 128, 87, 94, 94, 101, 101, 108, 108, 115,
115, 122, 122, 129, 129, 136, 136, 136, 95, 102, 102, 109, 109, 116, 116,
123, 123, 130, 130, 137, 137, 144, 144, 144, 103, 110, 110, 117, 117, 124,
124, 131, 131, 138, 138, 145, 145, 152, 152, 152, 111, 118, 118, 125, 125,
132, 132, 139, 139, 146, 146, 153, 153, 160, 160, 160, 119, 126, 126, 133,
133, 140, 140, 147, 147, 154, 154, 161, 161, 168, 168, 168, 127, 134, 134,
141, 141, 148, 148, 155, 155, 162, 162, 169, 169, 176, 176, 176, 135, 142,
142, 149, 149, 156, 156, 163, 163, 170, 170, 177, 177, 184, 184, 184, 143,
150, 150, 157, 157, 164, 164, 171, 171, 178, 178, 185, 185, 192, 192, 192,
151, 158, 158, 165, 165, 172, 172, 179, 179, 186, 186, 193, 193, 200, 200,
200, 159, 166, 166, 173, 173, 180, 180, 187, 187, 194, 194, 201, 201, 208,
208, 208, 167, 174, 174, 181, 181, 188, 188, 195, 195, 202, 202, 209, 209,
216, 216, 216, 175, 182, 182, 189, 189, 196, 196, 203, 203, 210, 210, 217,
217, 224, 224, 224, 183, 190, 190, 197, 197, 204, 204, 211, 211, 218, 218,
225, 225, 232, 232, 232, 191, 198, 198, 205, 205, 212, 212, 219, 219, 226,
226, 233, 233, 240, 240, 240, 199, 206, 206, 213, 213, 220, 220, 227, 227,
234, 234, 241, 241, 248, 207, 214, 214, 221, 221, 228, 228, 235, 235, 242,
242, 249, 215, 222, 222, 229, 229, 236, 236, 243, 243, 250, 223, 230, 230,
237, 237, 244, 244, 251, 231, 238, 238, 245, 245, 252, 239, 246, 246, 253,
247, 254, 0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
default_scan_32x8_neighbors[257 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 0, 0, 1, 1, 1, 32, 32, 32, 2, 2, 2,
33, 33, 64, 64, 64, 3, 3, 3, 34, 34, 65, 65, 96, 96, 96,
4, 4, 4, 35, 35, 66, 66, 97, 97, 128, 128, 128, 5, 5, 5,
36, 36, 67, 67, 98, 98, 129, 129, 160, 160, 160, 6, 6, 6, 37,
37, 68, 68, 99, 99, 130, 130, 161, 161, 192, 192, 192, 7, 7, 7,
38, 38, 69, 69, 100, 100, 131, 131, 162, 162, 193, 193, 224, 8, 8,
8, 39, 39, 70, 70, 101, 101, 132, 132, 163, 163, 194, 194, 225, 9,
9, 9, 40, 40, 71, 71, 102, 102, 133, 133, 164, 164, 195, 195, 226,
10, 10, 10, 41, 41, 72, 72, 103, 103, 134, 134, 165, 165, 196, 196,
227, 11, 11, 11, 42, 42, 73, 73, 104, 104, 135, 135, 166, 166, 197,
197, 228, 12, 12, 12, 43, 43, 74, 74, 105, 105, 136, 136, 167, 167,
198, 198, 229, 13, 13, 13, 44, 44, 75, 75, 106, 106, 137, 137, 168,
168, 199, 199, 230, 14, 14, 14, 45, 45, 76, 76, 107, 107, 138, 138,
169, 169, 200, 200, 231, 15, 15, 15, 46, 46, 77, 77, 108, 108, 139,
139, 170, 170, 201, 201, 232, 16, 16, 16, 47, 47, 78, 78, 109, 109,
140, 140, 171, 171, 202, 202, 233, 17, 17, 17, 48, 48, 79, 79, 110,
110, 141, 141, 172, 172, 203, 203, 234, 18, 18, 18, 49, 49, 80, 80,
111, 111, 142, 142, 173, 173, 204, 204, 235, 19, 19, 19, 50, 50, 81,
81, 112, 112, 143, 143, 174, 174, 205, 205, 236, 20, 20, 20, 51, 51,
82, 82, 113, 113, 144, 144, 175, 175, 206, 206, 237, 21, 21, 21, 52,
52, 83, 83, 114, 114, 145, 145, 176, 176, 207, 207, 238, 22, 22, 22,
53, 53, 84, 84, 115, 115, 146, 146, 177, 177, 208, 208, 239, 23, 23,
23, 54, 54, 85, 85, 116, 116, 147, 147, 178, 178, 209, 209, 240, 24,
24, 24, 55, 55, 86, 86, 117, 117, 148, 148, 179, 179, 210, 210, 241,
25, 25, 25, 56, 56, 87, 87, 118, 118, 149, 149, 180, 180, 211, 211,
242, 26, 26, 26, 57, 57, 88, 88, 119, 119, 150, 150, 181, 181, 212,
212, 243, 27, 27, 27, 58, 58, 89, 89, 120, 120, 151, 151, 182, 182,
213, 213, 244, 28, 28, 28, 59, 59, 90, 90, 121, 121, 152, 152, 183,
183, 214, 214, 245, 29, 29, 29, 60, 60, 91, 91, 122, 122, 153, 153,
184, 184, 215, 215, 246, 30, 30, 30, 61, 61, 92, 92, 123, 123, 154,
154, 185, 185, 216, 216, 247, 31, 62, 62, 93, 93, 124, 124, 155, 155,
186, 186, 217, 217, 248, 63, 94, 94, 125, 125, 156, 156, 187, 187, 218,
218, 249, 95, 126, 126, 157, 157, 188, 188, 219, 219, 250, 127, 158, 158,
189, 189, 220, 220, 251, 159, 190, 190, 221, 221, 252, 191, 222, 222, 253,
223, 254, 0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
mrow_scan_8x32_neighbors[257 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6,
6, 0, 0, 1, 8, 2, 9, 3, 10, 4, 11, 5, 12, 6, 13,
7, 14, 8, 8, 9, 16, 10, 17, 11, 18, 12, 19, 13, 20, 14,
21, 15, 22, 16, 16, 17, 24, 18, 25, 19, 26, 20, 27, 21, 28,
22, 29, 23, 30, 24, 24, 25, 32, 26, 33, 27, 34, 28, 35, 29,
36, 30, 37, 31, 38, 32, 32, 33, 40, 34, 41, 35, 42, 36, 43,
37, 44, 38, 45, 39, 46, 40, 40, 41, 48, 42, 49, 43, 50, 44,
51, 45, 52, 46, 53, 47, 54, 48, 48, 49, 56, 50, 57, 51, 58,
52, 59, 53, 60, 54, 61, 55, 62, 56, 56, 57, 64, 58, 65, 59,
66, 60, 67, 61, 68, 62, 69, 63, 70, 64, 64, 65, 72, 66, 73,
67, 74, 68, 75, 69, 76, 70, 77, 71, 78, 72, 72, 73, 80, 74,
81, 75, 82, 76, 83, 77, 84, 78, 85, 79, 86, 80, 80, 81, 88,
82, 89, 83, 90, 84, 91, 85, 92, 86, 93, 87, 94, 88, 88, 89,
96, 90, 97, 91, 98, 92, 99, 93, 100, 94, 101, 95, 102, 96, 96,
97, 104, 98, 105, 99, 106, 100, 107, 101, 108, 102, 109, 103, 110, 104,
104, 105, 112, 106, 113, 107, 114, 108, 115, 109, 116, 110, 117, 111, 118,
112, 112, 113, 120, 114, 121, 115, 122, 116, 123, 117, 124, 118, 125, 119,
126, 120, 120, 121, 128, 122, 129, 123, 130, 124, 131, 125, 132, 126, 133,
127, 134, 128, 128, 129, 136, 130, 137, 131, 138, 132, 139, 133, 140, 134,
141, 135, 142, 136, 136, 137, 144, 138, 145, 139, 146, 140, 147, 141, 148,
142, 149, 143, 150, 144, 144, 145, 152, 146, 153, 147, 154, 148, 155, 149,
156, 150, 157, 151, 158, 152, 152, 153, 160, 154, 161, 155, 162, 156, 163,
157, 164, 158, 165, 159, 166, 160, 160, 161, 168, 162, 169, 163, 170, 164,
171, 165, 172, 166, 173, 167, 174, 168, 168, 169, 176, 170, 177, 171, 178,
172, 179, 173, 180, 174, 181, 175, 182, 176, 176, 177, 184, 178, 185, 179,
186, 180, 187, 181, 188, 182, 189, 183, 190, 184, 184, 185, 192, 186, 193,
187, 194, 188, 195, 189, 196, 190, 197, 191, 198, 192, 192, 193, 200, 194,
201, 195, 202, 196, 203, 197, 204, 198, 205, 199, 206, 200, 200, 201, 208,
202, 209, 203, 210, 204, 211, 205, 212, 206, 213, 207, 214, 208, 208, 209,
216, 210, 217, 211, 218, 212, 219, 213, 220, 214, 221, 215, 222, 216, 216,
217, 224, 218, 225, 219, 226, 220, 227, 221, 228, 222, 229, 223, 230, 224,
224, 225, 232, 226, 233, 227, 234, 228, 235, 229, 236, 230, 237, 231, 238,
232, 232, 233, 240, 234, 241, 235, 242, 236, 243, 237, 244, 238, 245, 239,
246, 240, 240, 241, 248, 242, 249, 243, 250, 244, 251, 245, 252, 246, 253,
247, 254, 0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
mrow_scan_32x8_neighbors[257 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6,
6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13,
14, 14, 15, 15, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21,
21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28,
29, 29, 30, 30, 0, 0, 1, 32, 2, 33, 3, 34, 4, 35, 5,
36, 6, 37, 7, 38, 8, 39, 9, 40, 10, 41, 11, 42, 12, 43,
13, 44, 14, 45, 15, 46, 16, 47, 17, 48, 18, 49, 19, 50, 20,
51, 21, 52, 22, 53, 23, 54, 24, 55, 25, 56, 26, 57, 27, 58,
28, 59, 29, 60, 30, 61, 31, 62, 32, 32, 33, 64, 34, 65, 35,
66, 36, 67, 37, 68, 38, 69, 39, 70, 40, 71, 41, 72, 42, 73,
43, 74, 44, 75, 45, 76, 46, 77, 47, 78, 48, 79, 49, 80, 50,
81, 51, 82, 52, 83, 53, 84, 54, 85, 55, 86, 56, 87, 57, 88,
58, 89, 59, 90, 60, 91, 61, 92, 62, 93, 63, 94, 64, 64, 65,
96, 66, 97, 67, 98, 68, 99, 69, 100, 70, 101, 71, 102, 72, 103,
73, 104, 74, 105, 75, 106, 76, 107, 77, 108, 78, 109, 79, 110, 80,
111, 81, 112, 82, 113, 83, 114, 84, 115, 85, 116, 86, 117, 87, 118,
88, 119, 89, 120, 90, 121, 91, 122, 92, 123, 93, 124, 94, 125, 95,
126, 96, 96, 97, 128, 98, 129, 99, 130, 100, 131, 101, 132, 102, 133,
103, 134, 104, 135, 105, 136, 106, 137, 107, 138, 108, 139, 109, 140, 110,
141, 111, 142, 112, 143, 113, 144, 114, 145, 115, 146, 116, 147, 117, 148,
118, 149, 119, 150, 120, 151, 121, 152, 122, 153, 123, 154, 124, 155, 125,
156, 126, 157, 127, 158, 128, 128, 129, 160, 130, 161, 131, 162, 132, 163,
133, 164, 134, 165, 135, 166, 136, 167, 137, 168, 138, 169, 139, 170, 140,
171, 141, 172, 142, 173, 143, 174, 144, 175, 145, 176, 146, 177, 147, 178,
148, 179, 149, 180, 150, 181, 151, 182, 152, 183, 153, 184, 154, 185, 155,
186, 156, 187, 157, 188, 158, 189, 159, 190, 160, 160, 161, 192, 162, 193,
163, 194, 164, 195, 165, 196, 166, 197, 167, 198, 168, 199, 169, 200, 170,
201, 171, 202, 172, 203, 173, 204, 174, 205, 175, 206, 176, 207, 177, 208,
178, 209, 179, 210, 180, 211, 181, 212, 182, 213, 183, 214, 184, 215, 185,
216, 186, 217, 187, 218, 188, 219, 189, 220, 190, 221, 191, 222, 192, 192,
193, 224, 194, 225, 195, 226, 196, 227, 197, 228, 198, 229, 199, 230, 200,
231, 201, 232, 202, 233, 203, 234, 204, 235, 205, 236, 206, 237, 207, 238,
208, 239, 209, 240, 210, 241, 211, 242, 212, 243, 213, 244, 214, 245, 215,
246, 216, 247, 217, 248, 218, 249, 219, 250, 220, 251, 221, 252, 222, 253,
223, 254, 0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
mcol_scan_8x32_neighbors[257 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 8, 8, 16, 16, 24, 24, 32, 32, 40, 40, 48,
48, 56, 56, 64, 64, 72, 72, 80, 80, 88, 88, 96, 96, 104, 104,
112, 112, 120, 120, 128, 128, 136, 136, 144, 144, 152, 152, 160, 160, 168,
168, 176, 176, 184, 184, 192, 192, 200, 200, 208, 208, 216, 216, 224, 224,
232, 232, 240, 240, 0, 0, 1, 8, 9, 16, 17, 24, 25, 32, 33,
40, 41, 48, 49, 56, 57, 64, 65, 72, 73, 80, 81, 88, 89, 96,
97, 104, 105, 112, 113, 120, 121, 128, 129, 136, 137, 144, 145, 152, 153,
160, 161, 168, 169, 176, 177, 184, 185, 192, 193, 200, 201, 208, 209, 216,
217, 224, 225, 232, 233, 240, 241, 248, 1, 1, 2, 9, 10, 17, 18,
25, 26, 33, 34, 41, 42, 49, 50, 57, 58, 65, 66, 73, 74, 81,
82, 89, 90, 97, 98, 105, 106, 113, 114, 121, 122, 129, 130, 137, 138,
145, 146, 153, 154, 161, 162, 169, 170, 177, 178, 185, 186, 193, 194, 201,
202, 209, 210, 217, 218, 225, 226, 233, 234, 241, 242, 249, 2, 2, 3,
10, 11, 18, 19, 26, 27, 34, 35, 42, 43, 50, 51, 58, 59, 66,
67, 74, 75, 82, 83, 90, 91, 98, 99, 106, 107, 114, 115, 122, 123,
130, 131, 138, 139, 146, 147, 154, 155, 162, 163, 170, 171, 178, 179, 186,
187, 194, 195, 202, 203, 210, 211, 218, 219, 226, 227, 234, 235, 242, 243,
250, 3, 3, 4, 11, 12, 19, 20, 27, 28, 35, 36, 43, 44, 51,
52, 59, 60, 67, 68, 75, 76, 83, 84, 91, 92, 99, 100, 107, 108,
115, 116, 123, 124, 131, 132, 139, 140, 147, 148, 155, 156, 163, 164, 171,
172, 179, 180, 187, 188, 195, 196, 203, 204, 211, 212, 219, 220, 227, 228,
235, 236, 243, 244, 251, 4, 4, 5, 12, 13, 20, 21, 28, 29, 36,
37, 44, 45, 52, 53, 60, 61, 68, 69, 76, 77, 84, 85, 92, 93,
100, 101, 108, 109, 116, 117, 124, 125, 132, 133, 140, 141, 148, 149, 156,
157, 164, 165, 172, 173, 180, 181, 188, 189, 196, 197, 204, 205, 212, 213,
220, 221, 228, 229, 236, 237, 244, 245, 252, 5, 5, 6, 13, 14, 21,
22, 29, 30, 37, 38, 45, 46, 53, 54, 61, 62, 69, 70, 77, 78,
85, 86, 93, 94, 101, 102, 109, 110, 117, 118, 125, 126, 133, 134, 141,
142, 149, 150, 157, 158, 165, 166, 173, 174, 181, 182, 189, 190, 197, 198,
205, 206, 213, 214, 221, 222, 229, 230, 237, 238, 245, 246, 253, 6, 6,
7, 14, 15, 22, 23, 30, 31, 38, 39, 46, 47, 54, 55, 62, 63,
70, 71, 78, 79, 86, 87, 94, 95, 102, 103, 110, 111, 118, 119, 126,
127, 134, 135, 142, 143, 150, 151, 158, 159, 166, 167, 174, 175, 182, 183,
190, 191, 198, 199, 206, 207, 214, 215, 222, 223, 230, 231, 238, 239, 246,
247, 254, 0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
mcol_scan_32x8_neighbors[257 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 32, 32, 64, 64, 96, 96, 128, 128, 160, 160, 192, 192,
0, 0, 1, 32, 33, 64, 65, 96, 97, 128, 129, 160, 161, 192, 193, 224,
1, 1, 2, 33, 34, 65, 66, 97, 98, 129, 130, 161, 162, 193, 194, 225,
2, 2, 3, 34, 35, 66, 67, 98, 99, 130, 131, 162, 163, 194, 195, 226,
3, 3, 4, 35, 36, 67, 68, 99, 100, 131, 132, 163, 164, 195, 196, 227,
4, 4, 5, 36, 37, 68, 69, 100, 101, 132, 133, 164, 165, 196, 197, 228,
5, 5, 6, 37, 38, 69, 70, 101, 102, 133, 134, 165, 166, 197, 198, 229,
6, 6, 7, 38, 39, 70, 71, 102, 103, 134, 135, 166, 167, 198, 199, 230,
7, 7, 8, 39, 40, 71, 72, 103, 104, 135, 136, 167, 168, 199, 200, 231,
8, 8, 9, 40, 41, 72, 73, 104, 105, 136, 137, 168, 169, 200, 201, 232,
9, 9, 10, 41, 42, 73, 74, 105, 106, 137, 138, 169, 170, 201, 202, 233,
10, 10, 11, 42, 43, 74, 75, 106, 107, 138, 139, 170, 171, 202, 203, 234,
11, 11, 12, 43, 44, 75, 76, 107, 108, 139, 140, 171, 172, 203, 204, 235,
12, 12, 13, 44, 45, 76, 77, 108, 109, 140, 141, 172, 173, 204, 205, 236,
13, 13, 14, 45, 46, 77, 78, 109, 110, 141, 142, 173, 174, 205, 206, 237,
14, 14, 15, 46, 47, 78, 79, 110, 111, 142, 143, 174, 175, 206, 207, 238,
15, 15, 16, 47, 48, 79, 80, 111, 112, 143, 144, 175, 176, 207, 208, 239,
16, 16, 17, 48, 49, 80, 81, 112, 113, 144, 145, 176, 177, 208, 209, 240,
17, 17, 18, 49, 50, 81, 82, 113, 114, 145, 146, 177, 178, 209, 210, 241,
18, 18, 19, 50, 51, 82, 83, 114, 115, 146, 147, 178, 179, 210, 211, 242,
19, 19, 20, 51, 52, 83, 84, 115, 116, 147, 148, 179, 180, 211, 212, 243,
20, 20, 21, 52, 53, 84, 85, 116, 117, 148, 149, 180, 181, 212, 213, 244,
21, 21, 22, 53, 54, 85, 86, 117, 118, 149, 150, 181, 182, 213, 214, 245,
22, 22, 23, 54, 55, 86, 87, 118, 119, 150, 151, 182, 183, 214, 215, 246,
23, 23, 24, 55, 56, 87, 88, 119, 120, 151, 152, 183, 184, 215, 216, 247,
24, 24, 25, 56, 57, 88, 89, 120, 121, 152, 153, 184, 185, 216, 217, 248,
25, 25, 26, 57, 58, 89, 90, 121, 122, 153, 154, 185, 186, 217, 218, 249,
26, 26, 27, 58, 59, 90, 91, 122, 123, 154, 155, 186, 187, 218, 219, 250,
27, 27, 28, 59, 60, 91, 92, 123, 124, 155, 156, 187, 188, 219, 220, 251,
28, 28, 29, 60, 61, 92, 93, 124, 125, 156, 157, 188, 189, 220, 221, 252,
29, 29, 30, 61, 62, 93, 94, 125, 126, 157, 158, 189, 190, 221, 222, 253,
30, 30, 31, 62, 63, 94, 95, 126, 127, 158, 159, 190, 191, 222, 223, 254,
0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
col_scan_8x8_neighbors[65 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 8, 8, 8, 0, 16, 16, 1, 8, 24, 24, 9, 16, 9, 1, 32,
32, 17, 24, 2, 9, 25, 32, 10, 17, 40, 40, 10, 2, 18, 25, 33, 40, 3, 10,
48, 48, 11, 18, 26, 33, 11, 3, 41, 48, 19, 26, 34, 41, 4, 11, 27, 34, 12,
19, 49, 56, 42, 49, 20, 27, 12, 4, 35, 42, 5, 12, 28, 35, 50, 57, 43, 50,
13, 20, 36, 43, 13, 5, 21, 28, 51, 58, 29, 36, 6, 13, 44, 51, 14, 21, 14,
6, 37, 44, 52, 59, 22, 29, 7, 14, 30, 37, 45, 52, 15, 22, 38, 45, 23, 30,
53, 60, 31, 38, 46, 53, 39, 46, 54, 61, 47, 54, 55, 62, 0, 0,
};
DECLARE_ALIGNED(16, static const int16_t,
mcol_scan_8x8_neighbors[65 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 8, 8, 16, 16, 24, 24, 32, 32, 40, 40, 48, 48, 0, 0, 1,
8, 9, 16, 17, 24, 25, 32, 33, 40, 41, 48, 49, 56, 1, 1, 2, 9, 10, 17,
18, 25, 26, 33, 34, 41, 42, 49, 50, 57, 2, 2, 3, 10, 11, 18, 19, 26, 27,
34, 35, 42, 43, 50, 51, 58, 3, 3, 4, 11, 12, 19, 20, 27, 28, 35, 36, 43,
44, 51, 52, 59, 4, 4, 5, 12, 13, 20, 21, 28, 29, 36, 37, 44, 45, 52, 53,
60, 5, 5, 6, 13, 14, 21, 22, 29, 30, 37, 38, 45, 46, 53, 54, 61, 6, 6,
7, 14, 15, 22, 23, 30, 31, 38, 39, 46, 47, 54, 55, 62, 0, 0,
};
DECLARE_ALIGNED(16, static const int16_t,
mrow_scan_8x8_neighbors[65 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 0, 0, 1,
8, 2, 9, 3, 10, 4, 11, 5, 12, 6, 13, 7, 14, 8, 8, 9, 16, 10, 17,
11, 18, 12, 19, 13, 20, 14, 21, 15, 22, 16, 16, 17, 24, 18, 25, 19, 26, 20,
27, 21, 28, 22, 29, 23, 30, 24, 24, 25, 32, 26, 33, 27, 34, 28, 35, 29, 36,
30, 37, 31, 38, 32, 32, 33, 40, 34, 41, 35, 42, 36, 43, 37, 44, 38, 45, 39,
46, 40, 40, 41, 48, 42, 49, 43, 50, 44, 51, 45, 52, 46, 53, 47, 54, 48, 48,
49, 56, 50, 57, 51, 58, 52, 59, 53, 60, 54, 61, 55, 62, 0, 0,
};
DECLARE_ALIGNED(16, static const int16_t,
row_scan_8x8_neighbors[65 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 1, 1, 0, 1, 1, 8, 2, 2, 8, 9, 2, 9, 3, 3, 9,
16, 3, 10, 16, 17, 4, 4, 10, 17, 17, 24, 4, 11, 11, 18, 18, 25, 24, 25,
5, 5, 5, 12, 12, 19, 25, 32, 19, 26, 6, 6, 26, 33, 32, 33, 13, 20, 20,
27, 33, 40, 6, 13, 27, 34, 40, 41, 34, 41, 21, 28, 28, 35, 41, 48, 14, 21,
35, 42, 7, 14, 48, 49, 29, 36, 42, 49, 36, 43, 22, 29, 49, 56, 15, 22, 43,
50, 50, 57, 37, 44, 30, 37, 44, 51, 23, 30, 51, 58, 45, 52, 38, 45, 52, 59,
31, 38, 53, 60, 39, 46, 46, 53, 47, 54, 54, 61, 55, 62, 0, 0,
};
DECLARE_ALIGNED(16, static const int16_t,
default_scan_8x8_neighbors[65 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 8, 0, 8, 8, 1, 8, 9, 1, 9, 16, 16, 17, 2, 9, 10,
2, 10, 17, 17, 24, 24, 25, 3, 10, 11, 3, 18, 25, 25, 32, 11, 18, 32, 33,
4, 11, 26, 33, 19, 26, 12, 4, 33, 40, 12, 19, 40, 41, 5, 12, 27, 34, 34,
41, 20, 27, 13, 20, 13, 5, 41, 48, 48, 49, 28, 35, 35, 42, 21, 28, 6, 6,
6, 13, 42, 49, 49, 56, 36, 43, 14, 21, 29, 36, 7, 14, 43, 50, 50, 57, 22,
29, 37, 44, 15, 22, 44, 51, 51, 58, 30, 37, 23, 30, 52, 59, 45, 52, 38, 45,
31, 38, 53, 60, 46, 53, 39, 46, 54, 61, 47, 54, 55, 62, 0, 0,
};
DECLARE_ALIGNED(16, static const int16_t,
default_scan_8x16_neighbors[129 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 0, 0, 1, 1, 1, 8, 8, 8, 2, 2, 2,
9, 9, 16, 16, 16, 3, 3, 3, 10, 10, 17, 17, 24, 24, 24,
4, 4, 4, 11, 11, 18, 18, 25, 25, 32, 32, 32, 5, 5, 5,
12, 12, 19, 19, 26, 26, 33, 33, 40, 40, 40, 6, 6, 6, 13,
13, 20, 20, 27, 27, 34, 34, 41, 41, 48, 48, 48, 7, 14, 14,
21, 21, 28, 28, 35, 35, 42, 42, 49, 49, 56, 56, 56, 15, 22,
22, 29, 29, 36, 36, 43, 43, 50, 50, 57, 57, 64, 64, 64, 23,
30, 30, 37, 37, 44, 44, 51, 51, 58, 58, 65, 65, 72, 72, 72,
31, 38, 38, 45, 45, 52, 52, 59, 59, 66, 66, 73, 73, 80, 80,
80, 39, 46, 46, 53, 53, 60, 60, 67, 67, 74, 74, 81, 81, 88,
88, 88, 47, 54, 54, 61, 61, 68, 68, 75, 75, 82, 82, 89, 89,
96, 96, 96, 55, 62, 62, 69, 69, 76, 76, 83, 83, 90, 90, 97,
97, 104, 104, 104, 63, 70, 70, 77, 77, 84, 84, 91, 91, 98, 98,
105, 105, 112, 112, 112, 71, 78, 78, 85, 85, 92, 92, 99, 99, 106,
106, 113, 113, 120, 79, 86, 86, 93, 93, 100, 100, 107, 107, 114, 114,
121, 87, 94, 94, 101, 101, 108, 108, 115, 115, 122, 95, 102, 102, 109,
109, 116, 116, 123, 103, 110, 110, 117, 117, 124, 111, 118, 118, 125, 119,
126, 0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
default_scan_16x8_neighbors[129 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 0, 0, 1, 1, 1, 16, 16, 16, 2, 2, 2,
17, 17, 32, 32, 32, 3, 3, 3, 18, 18, 33, 33, 48, 48, 48,
4, 4, 4, 19, 19, 34, 34, 49, 49, 64, 64, 64, 5, 5, 5,
20, 20, 35, 35, 50, 50, 65, 65, 80, 80, 80, 6, 6, 6, 21,
21, 36, 36, 51, 51, 66, 66, 81, 81, 96, 96, 96, 7, 7, 7,
22, 22, 37, 37, 52, 52, 67, 67, 82, 82, 97, 97, 112, 8, 8,
8, 23, 23, 38, 38, 53, 53, 68, 68, 83, 83, 98, 98, 113, 9,
9, 9, 24, 24, 39, 39, 54, 54, 69, 69, 84, 84, 99, 99, 114,
10, 10, 10, 25, 25, 40, 40, 55, 55, 70, 70, 85, 85, 100, 100,
115, 11, 11, 11, 26, 26, 41, 41, 56, 56, 71, 71, 86, 86, 101,
101, 116, 12, 12, 12, 27, 27, 42, 42, 57, 57, 72, 72, 87, 87,
102, 102, 117, 13, 13, 13, 28, 28, 43, 43, 58, 58, 73, 73, 88,
88, 103, 103, 118, 14, 14, 14, 29, 29, 44, 44, 59, 59, 74, 74,
89, 89, 104, 104, 119, 15, 30, 30, 45, 45, 60, 60, 75, 75, 90,
90, 105, 105, 120, 31, 46, 46, 61, 61, 76, 76, 91, 91, 106, 106,
121, 47, 62, 62, 77, 77, 92, 92, 107, 107, 122, 63, 78, 78, 93,
93, 108, 108, 123, 79, 94, 94, 109, 109, 124, 95, 110, 110, 125, 111,
126, 0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
mcol_scan_8x16_neighbors[129 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 8, 8, 16, 16, 24, 24, 32, 32, 40, 40, 48, 48,
56, 56, 64, 64, 72, 72, 80, 80, 88, 88, 96, 96, 104, 104, 112, 112,
0, 0, 1, 8, 9, 16, 17, 24, 25, 32, 33, 40, 41, 48, 49, 56,
57, 64, 65, 72, 73, 80, 81, 88, 89, 96, 97, 104, 105, 112, 113, 120,
1, 1, 2, 9, 10, 17, 18, 25, 26, 33, 34, 41, 42, 49, 50, 57,
58, 65, 66, 73, 74, 81, 82, 89, 90, 97, 98, 105, 106, 113, 114, 121,
2, 2, 3, 10, 11, 18, 19, 26, 27, 34, 35, 42, 43, 50, 51, 58,
59, 66, 67, 74, 75, 82, 83, 90, 91, 98, 99, 106, 107, 114, 115, 122,
3, 3, 4, 11, 12, 19, 20, 27, 28, 35, 36, 43, 44, 51, 52, 59,
60, 67, 68, 75, 76, 83, 84, 91, 92, 99, 100, 107, 108, 115, 116, 123,
4, 4, 5, 12, 13, 20, 21, 28, 29, 36, 37, 44, 45, 52, 53, 60,
61, 68, 69, 76, 77, 84, 85, 92, 93, 100, 101, 108, 109, 116, 117, 124,
5, 5, 6, 13, 14, 21, 22, 29, 30, 37, 38, 45, 46, 53, 54, 61,
62, 69, 70, 77, 78, 85, 86, 93, 94, 101, 102, 109, 110, 117, 118, 125,
6, 6, 7, 14, 15, 22, 23, 30, 31, 38, 39, 46, 47, 54, 55, 62,
63, 70, 71, 78, 79, 86, 87, 94, 95, 102, 103, 110, 111, 118, 119, 126,
0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
mcol_scan_16x8_neighbors[129 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 16, 16, 32, 32, 48, 48, 64, 64, 80, 80, 96, 96,
0, 0, 1, 16, 17, 32, 33, 48, 49, 64, 65, 80, 81, 96, 97, 112,
1, 1, 2, 17, 18, 33, 34, 49, 50, 65, 66, 81, 82, 97, 98, 113,
2, 2, 3, 18, 19, 34, 35, 50, 51, 66, 67, 82, 83, 98, 99, 114,
3, 3, 4, 19, 20, 35, 36, 51, 52, 67, 68, 83, 84, 99, 100, 115,
4, 4, 5, 20, 21, 36, 37, 52, 53, 68, 69, 84, 85, 100, 101, 116,
5, 5, 6, 21, 22, 37, 38, 53, 54, 69, 70, 85, 86, 101, 102, 117,
6, 6, 7, 22, 23, 38, 39, 54, 55, 70, 71, 86, 87, 102, 103, 118,
7, 7, 8, 23, 24, 39, 40, 55, 56, 71, 72, 87, 88, 103, 104, 119,
8, 8, 9, 24, 25, 40, 41, 56, 57, 72, 73, 88, 89, 104, 105, 120,
9, 9, 10, 25, 26, 41, 42, 57, 58, 73, 74, 89, 90, 105, 106, 121,
10, 10, 11, 26, 27, 42, 43, 58, 59, 74, 75, 90, 91, 106, 107, 122,
11, 11, 12, 27, 28, 43, 44, 59, 60, 75, 76, 91, 92, 107, 108, 123,
12, 12, 13, 28, 29, 44, 45, 60, 61, 76, 77, 92, 93, 108, 109, 124,
13, 13, 14, 29, 30, 45, 46, 61, 62, 77, 78, 93, 94, 109, 110, 125,
14, 14, 15, 30, 31, 46, 47, 62, 63, 78, 79, 94, 95, 110, 111, 126,
0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
mrow_scan_8x16_neighbors[129 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6,
6, 0, 0, 1, 8, 2, 9, 3, 10, 4, 11, 5, 12, 6, 13,
7, 14, 8, 8, 9, 16, 10, 17, 11, 18, 12, 19, 13, 20, 14,
21, 15, 22, 16, 16, 17, 24, 18, 25, 19, 26, 20, 27, 21, 28,
22, 29, 23, 30, 24, 24, 25, 32, 26, 33, 27, 34, 28, 35, 29,
36, 30, 37, 31, 38, 32, 32, 33, 40, 34, 41, 35, 42, 36, 43,
37, 44, 38, 45, 39, 46, 40, 40, 41, 48, 42, 49, 43, 50, 44,
51, 45, 52, 46, 53, 47, 54, 48, 48, 49, 56, 50, 57, 51, 58,
52, 59, 53, 60, 54, 61, 55, 62, 56, 56, 57, 64, 58, 65, 59,
66, 60, 67, 61, 68, 62, 69, 63, 70, 64, 64, 65, 72, 66, 73,
67, 74, 68, 75, 69, 76, 70, 77, 71, 78, 72, 72, 73, 80, 74,
81, 75, 82, 76, 83, 77, 84, 78, 85, 79, 86, 80, 80, 81, 88,
82, 89, 83, 90, 84, 91, 85, 92, 86, 93, 87, 94, 88, 88, 89,
96, 90, 97, 91, 98, 92, 99, 93, 100, 94, 101, 95, 102, 96, 96,
97, 104, 98, 105, 99, 106, 100, 107, 101, 108, 102, 109, 103, 110, 104,
104, 105, 112, 106, 113, 107, 114, 108, 115, 109, 116, 110, 117, 111, 118,
112, 112, 113, 120, 114, 121, 115, 122, 116, 123, 117, 124, 118, 125, 119,
126, 0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
mrow_scan_16x8_neighbors[129 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6,
6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13,
14, 14, 0, 0, 1, 16, 2, 17, 3, 18, 4, 19, 5, 20, 6,
21, 7, 22, 8, 23, 9, 24, 10, 25, 11, 26, 12, 27, 13, 28,
14, 29, 15, 30, 16, 16, 17, 32, 18, 33, 19, 34, 20, 35, 21,
36, 22, 37, 23, 38, 24, 39, 25, 40, 26, 41, 27, 42, 28, 43,
29, 44, 30, 45, 31, 46, 32, 32, 33, 48, 34, 49, 35, 50, 36,
51, 37, 52, 38, 53, 39, 54, 40, 55, 41, 56, 42, 57, 43, 58,
44, 59, 45, 60, 46, 61, 47, 62, 48, 48, 49, 64, 50, 65, 51,
66, 52, 67, 53, 68, 54, 69, 55, 70, 56, 71, 57, 72, 58, 73,
59, 74, 60, 75, 61, 76, 62, 77, 63, 78, 64, 64, 65, 80, 66,
81, 67, 82, 68, 83, 69, 84, 70, 85, 71, 86, 72, 87, 73, 88,
74, 89, 75, 90, 76, 91, 77, 92, 78, 93, 79, 94, 80, 80, 81,
96, 82, 97, 83, 98, 84, 99, 85, 100, 86, 101, 87, 102, 88, 103,
89, 104, 90, 105, 91, 106, 92, 107, 93, 108, 94, 109, 95, 110, 96,
96, 97, 112, 98, 113, 99, 114, 100, 115, 101, 116, 102, 117, 103, 118,
104, 119, 105, 120, 106, 121, 107, 122, 108, 123, 109, 124, 110, 125, 111,
126, 0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
default_scan_16x32_neighbors[513 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 0, 0, 1, 1, 1, 16, 16, 16, 2, 2, 2,
17, 17, 32, 32, 32, 3, 3, 3, 18, 18, 33, 33, 48, 48, 48,
4, 4, 4, 19, 19, 34, 34, 49, 49, 64, 64, 64, 5, 5, 5,
20, 20, 35, 35, 50, 50, 65, 65, 80, 80, 80, 6, 6, 6, 21,
21, 36, 36, 51, 51, 66, 66, 81, 81, 96, 96, 96, 7, 7, 7,
22, 22, 37, 37, 52, 52, 67, 67, 82, 82, 97, 97, 112, 112, 112,
8, 8, 8, 23, 23, 38, 38, 53, 53, 68, 68, 83, 83, 98, 98,
113, 113, 128, 128, 128, 9, 9, 9, 24, 24, 39, 39, 54, 54, 69,
69, 84, 84, 99, 99, 114, 114, 129, 129, 144, 144, 144, 10, 10, 10,
25, 25, 40, 40, 55, 55, 70, 70, 85, 85, 100, 100, 115, 115, 130,
130, 145, 145, 160, 160, 160, 11, 11, 11, 26, 26, 41, 41, 56, 56,
71, 71, 86, 86, 101, 101, 116, 116, 131, 131, 146, 146, 161, 161, 176,
176, 176, 12, 12, 12, 27, 27, 42, 42, 57, 57, 72, 72, 87, 87,
102, 102, 117, 117, 132, 132, 147, 147, 162, 162, 177, 177, 192, 192, 192,
13, 13, 13, 28, 28, 43, 43, 58, 58, 73, 73, 88, 88, 103, 103,
118, 118, 133, 133, 148, 148, 163, 163, 178, 178, 193, 193, 208, 208, 208,
14, 14, 14, 29, 29, 44, 44, 59, 59, 74, 74, 89, 89, 104, 104,
119, 119, 134, 134, 149, 149, 164, 164, 179, 179, 194, 194, 209, 209, 224,
224, 224, 15, 30, 30, 45, 45, 60, 60, 75, 75, 90, 90, 105, 105,
120, 120, 135, 135, 150, 150, 165, 165, 180, 180, 195, 195, 210, 210, 225,
225, 240, 240, 240, 31, 46, 46, 61, 61, 76, 76, 91, 91, 106, 106,
121, 121, 136, 136, 151, 151, 166, 166, 181, 181, 196, 196, 211, 211, 226,
226, 241, 241, 256, 256, 256, 47, 62, 62, 77, 77, 92, 92, 107, 107,
122, 122, 137, 137, 152, 152, 167, 167, 182, 182, 197, 197, 212, 212, 227,
227, 242, 242, 257, 257, 272, 272, 272, 63, 78, 78, 93, 93, 108, 108,
123, 123, 138, 138, 153, 153, 168, 168, 183, 183, 198, 198, 213, 213, 228,
228, 243, 243, 258, 258, 273, 273, 288, 288, 288, 79, 94, 94, 109, 109,
124, 124, 139, 139, 154, 154, 169, 169, 184, 184, 199, 199, 214, 214, 229,
229, 244, 244, 259, 259, 274, 274, 289, 289, 304, 304, 304, 95, 110, 110,
125, 125, 140, 140, 155, 155, 170, 170, 185, 185, 200, 200, 215, 215, 230,
230, 245, 245, 260, 260, 275, 275, 290, 290, 305, 305, 320, 320, 320, 111,
126, 126, 141, 141, 156, 156, 171, 171, 186, 186, 201, 201, 216, 216, 231,
231, 246, 246, 261, 261, 276, 276, 291, 291, 306, 306, 321, 321, 336, 336,
336, 127, 142, 142, 157, 157, 172, 172, 187, 187, 202, 202, 217, 217, 232,
232, 247, 247, 262, 262, 277, 277, 292, 292, 307, 307, 322, 322, 337, 337,
352, 352, 352, 143, 158, 158, 173, 173, 188, 188, 203, 203, 218, 218, 233,
233, 248, 248, 263, 263, 278, 278, 293, 293, 308, 308, 323, 323, 338, 338,
353, 353, 368, 368, 368, 159, 174, 174, 189, 189, 204, 204, 219, 219, 234,
234, 249, 249, 264, 264, 279, 279, 294, 294, 309, 309, 324, 324, 339, 339,
354, 354, 369, 369, 384, 384, 384, 175, 190, 190, 205, 205, 220, 220, 235,
235, 250, 250, 265, 265, 280, 280, 295, 295, 310, 310, 325, 325, 340, 340,
355, 355, 370, 370, 385, 385, 400, 400, 400, 191, 206, 206, 221, 221, 236,
236, 251, 251, 266, 266, 281, 281, 296, 296, 311, 311, 326, 326, 341, 341,
356, 356, 371, 371, 386, 386, 401, 401, 416, 416, 416, 207, 222, 222, 237,
237, 252, 252, 267, 267, 282, 282, 297, 297, 312, 312, 327, 327, 342, 342,
357, 357, 372, 372, 387, 387, 402, 402, 417, 417, 432, 432, 432, 223, 238,
238, 253, 253, 268, 268, 283, 283, 298, 298, 313, 313, 328, 328, 343, 343,
358, 358, 373, 373, 388, 388, 403, 403, 418, 418, 433, 433, 448, 448, 448,
239, 254, 254, 269, 269, 284, 284, 299, 299, 314, 314, 329, 329, 344, 344,
359, 359, 374, 374, 389, 389, 404, 404, 419, 419, 434, 434, 449, 449, 464,
464, 464, 255, 270, 270, 285, 285, 300, 300, 315, 315, 330, 330, 345, 345,
360, 360, 375, 375, 390, 390, 405, 405, 420, 420, 435, 435, 450, 450, 465,
465, 480, 480, 480, 271, 286, 286, 301, 301, 316, 316, 331, 331, 346, 346,
361, 361, 376, 376, 391, 391, 406, 406, 421, 421, 436, 436, 451, 451, 466,
466, 481, 481, 496, 287, 302, 302, 317, 317, 332, 332, 347, 347, 362, 362,
377, 377, 392, 392, 407, 407, 422, 422, 437, 437, 452, 452, 467, 467, 482,
482, 497, 303, 318, 318, 333, 333, 348, 348, 363, 363, 378, 378, 393, 393,
408, 408, 423, 423, 438, 438, 453, 453, 468, 468, 483, 483, 498, 319, 334,
334, 349, 349, 364, 364, 379, 379, 394, 394, 409, 409, 424, 424, 439, 439,
454, 454, 469, 469, 484, 484, 499, 335, 350, 350, 365, 365, 380, 380, 395,
395, 410, 410, 425, 425, 440, 440, 455, 455, 470, 470, 485, 485, 500, 351,
366, 366, 381, 381, 396, 396, 411, 411, 426, 426, 441, 441, 456, 456, 471,
471, 486, 486, 501, 367, 382, 382, 397, 397, 412, 412, 427, 427, 442, 442,
457, 457, 472, 472, 487, 487, 502, 383, 398, 398, 413, 413, 428, 428, 443,
443, 458, 458, 473, 473, 488, 488, 503, 399, 414, 414, 429, 429, 444, 444,
459, 459, 474, 474, 489, 489, 504, 415, 430, 430, 445, 445, 460, 460, 475,
475, 490, 490, 505, 431, 446, 446, 461, 461, 476, 476, 491, 491, 506, 447,
462, 462, 477, 477, 492, 492, 507, 463, 478, 478, 493, 493, 508, 479, 494,
494, 509, 495, 510, 0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
default_scan_32x16_neighbors[513 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 0, 0, 1, 1, 1, 32, 32, 32, 2, 2, 2,
33, 33, 64, 64, 64, 3, 3, 3, 34, 34, 65, 65, 96, 96, 96,
4, 4, 4, 35, 35, 66, 66, 97, 97, 128, 128, 128, 5, 5, 5,
36, 36, 67, 67, 98, 98, 129, 129, 160, 160, 160, 6, 6, 6, 37,
37, 68, 68, 99, 99, 130, 130, 161, 161, 192, 192, 192, 7, 7, 7,
38, 38, 69, 69, 100, 100, 131, 131, 162, 162, 193, 193, 224, 224, 224,
8, 8, 8, 39, 39, 70, 70, 101, 101, 132, 132, 163, 163, 194, 194,
225, 225, 256, 256, 256, 9, 9, 9, 40, 40, 71, 71, 102, 102, 133,
133, 164, 164, 195, 195, 226, 226, 257, 257, 288, 288, 288, 10, 10, 10,
41, 41, 72, 72, 103, 103, 134, 134, 165, 165, 196, 196, 227, 227, 258,
258, 289, 289, 320, 320, 320, 11, 11, 11, 42, 42, 73, 73, 104, 104,
135, 135, 166, 166, 197, 197, 228, 228, 259, 259, 290, 290, 321, 321, 352,
352, 352, 12, 12, 12, 43, 43, 74, 74, 105, 105, 136, 136, 167, 167,
198, 198, 229, 229, 260, 260, 291, 291, 322, 322, 353, 353, 384, 384, 384,
13, 13, 13, 44, 44, 75, 75, 106, 106, 137, 137, 168, 168, 199, 199,
230, 230, 261, 261, 292, 292, 323, 323, 354, 354, 385, 385, 416, 416, 416,
14, 14, 14, 45, 45, 76, 76, 107, 107, 138, 138, 169, 169, 200, 200,
231, 231, 262, 262, 293, 293, 324, 324, 355, 355, 386, 386, 417, 417, 448,
448, 448, 15, 15, 15, 46, 46, 77, 77, 108, 108, 139, 139, 170, 170,
201, 201, 232, 232, 263, 263, 294, 294, 325, 325, 356, 356, 387, 387, 418,
418, 449, 449, 480, 16, 16, 16, 47, 47, 78, 78, 109, 109, 140, 140,
171, 171, 202, 202, 233, 233, 264, 264, 295, 295, 326, 326, 357, 357, 388,
388, 419, 419, 450, 450, 481, 17, 17, 17, 48, 48, 79, 79, 110, 110,
141, 141, 172, 172, 203, 203, 234, 234, 265, 265, 296, 296, 327, 327, 358,
358, 389, 389, 420, 420, 451, 451, 482, 18, 18, 18, 49, 49, 80, 80,
111, 111, 142, 142, 173, 173, 204, 204, 235, 235, 266, 266, 297, 297, 328,
328, 359, 359, 390, 390, 421, 421, 452, 452, 483, 19, 19, 19, 50, 50,
81, 81, 112, 112, 143, 143, 174, 174, 205, 205, 236, 236, 267, 267, 298,
298, 329, 329, 360, 360, 391, 391, 422, 422, 453, 453, 484, 20, 20, 20,
51, 51, 82, 82, 113, 113, 144, 144, 175, 175, 206, 206, 237, 237, 268,
268, 299, 299, 330, 330, 361, 361, 392, 392, 423, 423, 454, 454, 485, 21,
21, 21, 52, 52, 83, 83, 114, 114, 145, 145, 176, 176, 207, 207, 238,
238, 269, 269, 300, 300, 331, 331, 362, 362, 393, 393, 424, 424, 455, 455,
486, 22, 22, 22, 53, 53, 84, 84, 115, 115, 146, 146, 177, 177, 208,
208, 239, 239, 270, 270, 301, 301, 332, 332, 363, 363, 394, 394, 425, 425,
456, 456, 487, 23, 23, 23, 54, 54, 85, 85, 116, 116, 147, 147, 178,
178, 209, 209, 240, 240, 271, 271, 302, 302, 333, 333, 364, 364, 395, 395,
426, 426, 457, 457, 488, 24, 24, 24, 55, 55, 86, 86, 117, 117, 148,
148, 179, 179, 210, 210, 241, 241, 272, 272, 303, 303, 334, 334, 365, 365,
396, 396, 427, 427, 458, 458, 489, 25, 25, 25, 56, 56, 87, 87, 118,
118, 149, 149, 180, 180, 211, 211, 242, 242, 273, 273, 304, 304, 335, 335,
366, 366, 397, 397, 428, 428, 459, 459, 490, 26, 26, 26, 57, 57, 88,
88, 119, 119, 150, 150, 181, 181, 212, 212, 243, 243, 274, 274, 305, 305,
336, 336, 367, 367, 398, 398, 429, 429, 460, 460, 491, 27, 27, 27, 58,
58, 89, 89, 120, 120, 151, 151, 182, 182, 213, 213, 244, 244, 275, 275,
306, 306, 337, 337, 368, 368, 399, 399, 430, 430, 461, 461, 492, 28, 28,
28, 59, 59, 90, 90, 121, 121, 152, 152, 183, 183, 214, 214, 245, 245,
276, 276, 307, 307, 338, 338, 369, 369, 400, 400, 431, 431, 462, 462, 493,
29, 29, 29, 60, 60, 91, 91, 122, 122, 153, 153, 184, 184, 215, 215,
246, 246, 277, 277, 308, 308, 339, 339, 370, 370, 401, 401, 432, 432, 463,
463, 494, 30, 30, 30, 61, 61, 92, 92, 123, 123, 154, 154, 185, 185,
216, 216, 247, 247, 278, 278, 309, 309, 340, 340, 371, 371, 402, 402, 433,
433, 464, 464, 495, 31, 62, 62, 93, 93, 124, 124, 155, 155, 186, 186,
217, 217, 248, 248, 279, 279, 310, 310, 341, 341, 372, 372, 403, 403, 434,
434, 465, 465, 496, 63, 94, 94, 125, 125, 156, 156, 187, 187, 218, 218,
249, 249, 280, 280, 311, 311, 342, 342, 373, 373, 404, 404, 435, 435, 466,
466, 497, 95, 126, 126, 157, 157, 188, 188, 219, 219, 250, 250, 281, 281,
312, 312, 343, 343, 374, 374, 405, 405, 436, 436, 467, 467, 498, 127, 158,
158, 189, 189, 220, 220, 251, 251, 282, 282, 313, 313, 344, 344, 375, 375,
406, 406, 437, 437, 468, 468, 499, 159, 190, 190, 221, 221, 252, 252, 283,
283, 314, 314, 345, 345, 376, 376, 407, 407, 438, 438, 469, 469, 500, 191,
222, 222, 253, 253, 284, 284, 315, 315, 346, 346, 377, 377, 408, 408, 439,
439, 470, 470, 501, 223, 254, 254, 285, 285, 316, 316, 347, 347, 378, 378,
409, 409, 440, 440, 471, 471, 502, 255, 286, 286, 317, 317, 348, 348, 379,
379, 410, 410, 441, 441, 472, 472, 503, 287, 318, 318, 349, 349, 380, 380,
411, 411, 442, 442, 473, 473, 504, 319, 350, 350, 381, 381, 412, 412, 443,
443, 474, 474, 505, 351, 382, 382, 413, 413, 444, 444, 475, 475, 506, 383,
414, 414, 445, 445, 476, 476, 507, 415, 446, 446, 477, 477, 508, 447, 478,
478, 509, 479, 510, 0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
mcol_scan_16x32_neighbors[513 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 16, 16, 32, 32, 48, 48, 64, 64, 80, 80, 96,
96, 112, 112, 128, 128, 144, 144, 160, 160, 176, 176, 192, 192, 208, 208,
224, 224, 240, 240, 256, 256, 272, 272, 288, 288, 304, 304, 320, 320, 336,
336, 352, 352, 368, 368, 384, 384, 400, 400, 416, 416, 432, 432, 448, 448,
464, 464, 480, 480, 0, 0, 1, 16, 17, 32, 33, 48, 49, 64, 65,
80, 81, 96, 97, 112, 113, 128, 129, 144, 145, 160, 161, 176, 177, 192,
193, 208, 209, 224, 225, 240, 241, 256, 257, 272, 273, 288, 289, 304, 305,
320, 321, 336, 337, 352, 353, 368, 369, 384, 385, 400, 401, 416, 417, 432,
433, 448, 449, 464, 465, 480, 481, 496, 1, 1, 2, 17, 18, 33, 34,
49, 50, 65, 66, 81, 82, 97, 98, 113, 114, 129, 130, 145, 146, 161,
162, 177, 178, 193, 194, 209, 210, 225, 226, 241, 242, 257, 258, 273, 274,
289, 290, 305, 306, 321, 322, 337, 338, 353, 354, 369, 370, 385, 386, 401,
402, 417, 418, 433, 434, 449, 450, 465, 466, 481, 482, 497, 2, 2, 3,
18, 19, 34, 35, 50, 51, 66, 67, 82, 83, 98, 99, 114, 115, 130,
131, 146, 147, 162, 163, 178, 179, 194, 195, 210, 211, 226, 227, 242, 243,
258, 259, 274, 275, 290, 291, 306, 307, 322, 323, 338, 339, 354, 355, 370,
371, 386, 387, 402, 403, 418, 419, 434, 435, 450, 451, 466, 467, 482, 483,
498, 3, 3, 4, 19, 20, 35, 36, 51, 52, 67, 68, 83, 84, 99,
100, 115, 116, 131, 132, 147, 148, 163, 164, 179, 180, 195, 196, 211, 212,
227, 228, 243, 244, 259, 260, 275, 276, 291, 292, 307, 308, 323, 324, 339,
340, 355, 356, 371, 372, 387, 388, 403, 404, 419, 420, 435, 436, 451, 452,
467, 468, 483, 484, 499, 4, 4, 5, 20, 21, 36, 37, 52, 53, 68,
69, 84, 85, 100, 101, 116, 117, 132, 133, 148, 149, 164, 165, 180, 181,
196, 197, 212, 213, 228, 229, 244, 245, 260, 261, 276, 277, 292, 293, 308,
309, 324, 325, 340, 341, 356, 357, 372, 373, 388, 389, 404, 405, 420, 421,
436, 437, 452, 453, 468, 469, 484, 485, 500, 5, 5, 6, 21, 22, 37,
38, 53, 54, 69, 70, 85, 86, 101, 102, 117, 118, 133, 134, 149, 150,
165, 166, 181, 182, 197, 198, 213, 214, 229, 230, 245, 246, 261, 262, 277,
278, 293, 294, 309, 310, 325, 326, 341, 342, 357, 358, 373, 374, 389, 390,
405, 406, 421, 422, 437, 438, 453, 454, 469, 470, 485, 486, 501, 6, 6,
7, 22, 23, 38, 39, 54, 55, 70, 71, 86, 87, 102, 103, 118, 119,
134, 135, 150, 151, 166, 167, 182, 183, 198, 199, 214, 215, 230, 231, 246,
247, 262, 263, 278, 279, 294, 295, 310, 311, 326, 327, 342, 343, 358, 359,
374, 375, 390, 391, 406, 407, 422, 423, 438, 439, 454, 455, 470, 471, 486,
487, 502, 7, 7, 8, 23, 24, 39, 40, 55, 56, 71, 72, 87, 88,
103, 104, 119, 120, 135, 136, 151, 152, 167, 168, 183, 184, 199, 200, 215,
216, 231, 232, 247, 248, 263, 264, 279, 280, 295, 296, 311, 312, 327, 328,
343, 344, 359, 360, 375, 376, 391, 392, 407, 408, 423, 424, 439, 440, 455,
456, 471, 472, 487, 488, 503, 8, 8, 9, 24, 25, 40, 41, 56, 57,
72, 73, 88, 89, 104, 105, 120, 121, 136, 137, 152, 153, 168, 169, 184,
185, 200, 201, 216, 217, 232, 233, 248, 249, 264, 265, 280, 281, 296, 297,
312, 313, 328, 329, 344, 345, 360, 361, 376, 377, 392, 393, 408, 409, 424,
425, 440, 441, 456, 457, 472, 473, 488, 489, 504, 9, 9, 10, 25, 26,
41, 42, 57, 58, 73, 74, 89, 90, 105, 106, 121, 122, 137, 138, 153,
154, 169, 170, 185, 186, 201, 202, 217, 218, 233, 234, 249, 250, 265, 266,
281, 282, 297, 298, 313, 314, 329, 330, 345, 346, 361, 362, 377, 378, 393,
394, 409, 410, 425, 426, 441, 442, 457, 458, 473, 474, 489, 490, 505, 10,
10, 11, 26, 27, 42, 43, 58, 59, 74, 75, 90, 91, 106, 107, 122,
123, 138, 139, 154, 155, 170, 171, 186, 187, 202, 203, 218, 219, 234, 235,
250, 251, 266, 267, 282, 283, 298, 299, 314, 315, 330, 331, 346, 347, 362,
363, 378, 379, 394, 395, 410, 411, 426, 427, 442, 443, 458, 459, 474, 475,
490, 491, 506, 11, 11, 12, 27, 28, 43, 44, 59, 60, 75, 76, 91,
92, 107, 108, 123, 124, 139, 140, 155, 156, 171, 172, 187, 188, 203, 204,
219, 220, 235, 236, 251, 252, 267, 268, 283, 284, 299, 300, 315, 316, 331,
332, 347, 348, 363, 364, 379, 380, 395, 396, 411, 412, 427, 428, 443, 444,
459, 460, 475, 476, 491, 492, 507, 12, 12, 13, 28, 29, 44, 45, 60,
61, 76, 77, 92, 93, 108, 109, 124, 125, 140, 141, 156, 157, 172, 173,
188, 189, 204, 205, 220, 221, 236, 237, 252, 253, 268, 269, 284, 285, 300,
301, 316, 317, 332, 333, 348, 349, 364, 365, 380, 381, 396, 397, 412, 413,
428, 429, 444, 445, 460, 461, 476, 477, 492, 493, 508, 13, 13, 14, 29,
30, 45, 46, 61, 62, 77, 78, 93, 94, 109, 110, 125, 126, 141, 142,
157, 158, 173, 174, 189, 190, 205, 206, 221, 222, 237, 238, 253, 254, 269,
270, 285, 286, 301, 302, 317, 318, 333, 334, 349, 350, 365, 366, 381, 382,
397, 398, 413, 414, 429, 430, 445, 446, 461, 462, 477, 478, 493, 494, 509,
14, 14, 15, 30, 31, 46, 47, 62, 63, 78, 79, 94, 95, 110, 111,
126, 127, 142, 143, 158, 159, 174, 175, 190, 191, 206, 207, 222, 223, 238,
239, 254, 255, 270, 271, 286, 287, 302, 303, 318, 319, 334, 335, 350, 351,
366, 367, 382, 383, 398, 399, 414, 415, 430, 431, 446, 447, 462, 463, 478,
479, 494, 495, 510, 0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
mcol_scan_32x16_neighbors[513 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 32, 32, 64, 64, 96, 96, 128, 128, 160, 160, 192,
192, 224, 224, 256, 256, 288, 288, 320, 320, 352, 352, 384, 384, 416, 416,
448, 448, 0, 0, 1, 32, 33, 64, 65, 96, 97, 128, 129, 160, 161,
192, 193, 224, 225, 256, 257, 288, 289, 320, 321, 352, 353, 384, 385, 416,
417, 448, 449, 480, 1, 1, 2, 33, 34, 65, 66, 97, 98, 129, 130,
161, 162, 193, 194, 225, 226, 257, 258, 289, 290, 321, 322, 353, 354, 385,
386, 417, 418, 449, 450, 481, 2, 2, 3, 34, 35, 66, 67, 98, 99,
130, 131, 162, 163, 194, 195, 226, 227, 258, 259, 290, 291, 322, 323, 354,
355, 386, 387, 418, 419, 450, 451, 482, 3, 3, 4, 35, 36, 67, 68,
99, 100, 131, 132, 163, 164, 195, 196, 227, 228, 259, 260, 291, 292, 323,
324, 355, 356, 387, 388, 419, 420, 451, 452, 483, 4, 4, 5, 36, 37,
68, 69, 100, 101, 132, 133, 164, 165, 196, 197, 228, 229, 260, 261, 292,
293, 324, 325, 356, 357, 388, 389, 420, 421, 452, 453, 484, 5, 5, 6,
37, 38, 69, 70, 101, 102, 133, 134, 165, 166, 197, 198, 229, 230, 261,
262, 293, 294, 325, 326, 357, 358, 389, 390, 421, 422, 453, 454, 485, 6,
6, 7, 38, 39, 70, 71, 102, 103, 134, 135, 166, 167, 198, 199, 230,
231, 262, 263, 294, 295, 326, 327, 358, 359, 390, 391, 422, 423, 454, 455,
486, 7, 7, 8, 39, 40, 71, 72, 103, 104, 135, 136, 167, 168, 199,
200, 231, 232, 263, 264, 295, 296, 327, 328, 359, 360, 391, 392, 423, 424,
455, 456, 487, 8, 8, 9, 40, 41, 72, 73, 104, 105, 136, 137, 168,
169, 200, 201, 232, 233, 264, 265, 296, 297, 328, 329, 360, 361, 392, 393,
424, 425, 456, 457, 488, 9, 9, 10, 41, 42, 73, 74, 105, 106, 137,
138, 169, 170, 201, 202, 233, 234, 265, 266, 297, 298, 329, 330, 361, 362,
393, 394, 425, 426, 457, 458, 489, 10, 10, 11, 42, 43, 74, 75, 106,
107, 138, 139, 170, 171, 202, 203, 234, 235, 266, 267, 298, 299, 330, 331,
362, 363, 394, 395, 426, 427, 458, 459, 490, 11, 11, 12, 43, 44, 75,
76, 107, 108, 139, 140, 171, 172, 203, 204, 235, 236, 267, 268, 299, 300,
331, 332, 363, 364, 395, 396, 427, 428, 459, 460, 491, 12, 12, 13, 44,
45, 76, 77, 108, 109, 140, 141, 172, 173, 204, 205, 236, 237, 268, 269,
300, 301, 332, 333, 364, 365, 396, 397, 428, 429, 460, 461, 492, 13, 13,
14, 45, 46, 77, 78, 109, 110, 141, 142, 173, 174, 205, 206, 237, 238,
269, 270, 301, 302, 333, 334, 365, 366, 397, 398, 429, 430, 461, 462, 493,
14, 14, 15, 46, 47, 78, 79, 110, 111, 142, 143, 174, 175, 206, 207,
238, 239, 270, 271, 302, 303, 334, 335, 366, 367, 398, 399, 430, 431, 462,
463, 494, 15, 15, 16, 47, 48, 79, 80, 111, 112, 143, 144, 175, 176,
207, 208, 239, 240, 271, 272, 303, 304, 335, 336, 367, 368, 399, 400, 431,
432, 463, 464, 495, 16, 16, 17, 48, 49, 80, 81, 112, 113, 144, 145,
176, 177, 208, 209, 240, 241, 272, 273, 304, 305, 336, 337, 368, 369, 400,
401, 432, 433, 464, 465, 496, 17, 17, 18, 49, 50, 81, 82, 113, 114,
145, 146, 177, 178, 209, 210, 241, 242, 273, 274, 305, 306, 337, 338, 369,
370, 401, 402, 433, 434, 465, 466, 497, 18, 18, 19, 50, 51, 82, 83,
114, 115, 146, 147, 178, 179, 210, 211, 242, 243, 274, 275, 306, 307, 338,
339, 370, 371, 402, 403, 434, 435, 466, 467, 498, 19, 19, 20, 51, 52,
83, 84, 115, 116, 147, 148, 179, 180, 211, 212, 243, 244, 275, 276, 307,
308, 339, 340, 371, 372, 403, 404, 435, 436, 467, 468, 499, 20, 20, 21,
52, 53, 84, 85, 116, 117, 148, 149, 180, 181, 212, 213, 244, 245, 276,
277, 308, 309, 340, 341, 372, 373, 404, 405, 436, 437, 468, 469, 500, 21,
21, 22, 53, 54, 85, 86, 117, 118, 149, 150, 181, 182, 213, 214, 245,
246, 277, 278, 309, 310, 341, 342, 373, 374, 405, 406, 437, 438, 469, 470,
501, 22, 22, 23, 54, 55, 86, 87, 118, 119, 150, 151, 182, 183, 214,
215, 246, 247, 278, 279, 310, 311, 342, 343, 374, 375, 406, 407, 438, 439,
470, 471, 502, 23, 23, 24, 55, 56, 87, 88, 119, 120, 151, 152, 183,
184, 215, 216, 247, 248, 279, 280, 311, 312, 343, 344, 375, 376, 407, 408,
439, 440, 471, 472, 503, 24, 24, 25, 56, 57, 88, 89, 120, 121, 152,
153, 184, 185, 216, 217, 248, 249, 280, 281, 312, 313, 344, 345, 376, 377,
408, 409, 440, 441, 472, 473, 504, 25, 25, 26, 57, 58, 89, 90, 121,
122, 153, 154, 185, 186, 217, 218, 249, 250, 281, 282, 313, 314, 345, 346,
377, 378, 409, 410, 441, 442, 473, 474, 505, 26, 26, 27, 58, 59, 90,
91, 122, 123, 154, 155, 186, 187, 218, 219, 250, 251, 282, 283, 314, 315,
346, 347, 378, 379, 410, 411, 442, 443, 474, 475, 506, 27, 27, 28, 59,
60, 91, 92, 123, 124, 155, 156, 187, 188, 219, 220, 251, 252, 283, 284,
315, 316, 347, 348, 379, 380, 411, 412, 443, 444, 475, 476, 507, 28, 28,
29, 60, 61, 92, 93, 124, 125, 156, 157, 188, 189, 220, 221, 252, 253,
284, 285, 316, 317, 348, 349, 380, 381, 412, 413, 444, 445, 476, 477, 508,
29, 29, 30, 61, 62, 93, 94, 125, 126, 157, 158, 189, 190, 221, 222,
253, 254, 285, 286, 317, 318, 349, 350, 381, 382, 413, 414, 445, 446, 477,
478, 509, 30, 30, 31, 62, 63, 94, 95, 126, 127, 158, 159, 190, 191,
222, 223, 254, 255, 286, 287, 318, 319, 350, 351, 382, 383, 414, 415, 446,
447, 478, 479, 510, 0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
mrow_scan_16x32_neighbors[513 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6,
6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13,
14, 14, 0, 0, 1, 16, 2, 17, 3, 18, 4, 19, 5, 20, 6,
21, 7, 22, 8, 23, 9, 24, 10, 25, 11, 26, 12, 27, 13, 28,
14, 29, 15, 30, 16, 16, 17, 32, 18, 33, 19, 34, 20, 35, 21,
36, 22, 37, 23, 38, 24, 39, 25, 40, 26, 41, 27, 42, 28, 43,
29, 44, 30, 45, 31, 46, 32, 32, 33, 48, 34, 49, 35, 50, 36,
51, 37, 52, 38, 53, 39, 54, 40, 55, 41, 56, 42, 57, 43, 58,
44, 59, 45, 60, 46, 61, 47, 62, 48, 48, 49, 64, 50, 65, 51,
66, 52, 67, 53, 68, 54, 69, 55, 70, 56, 71, 57, 72, 58, 73,
59, 74, 60, 75, 61, 76, 62, 77, 63, 78, 64, 64, 65, 80, 66,
81, 67, 82, 68, 83, 69, 84, 70, 85, 71, 86, 72, 87, 73, 88,
74, 89, 75, 90, 76, 91, 77, 92, 78, 93, 79, 94, 80, 80, 81,
96, 82, 97, 83, 98, 84, 99, 85, 100, 86, 101, 87, 102, 88, 103,
89, 104, 90, 105, 91, 106, 92, 107, 93, 108, 94, 109, 95, 110, 96,
96, 97, 112, 98, 113, 99, 114, 100, 115, 101, 116, 102, 117, 103, 118,
104, 119, 105, 120, 106, 121, 107, 122, 108, 123, 109, 124, 110, 125, 111,
126, 112, 112, 113, 128, 114, 129, 115, 130, 116, 131, 117, 132, 118, 133,
119, 134, 120, 135, 121, 136, 122, 137, 123, 138, 124, 139, 125, 140, 126,
141, 127, 142, 128, 128, 129, 144, 130, 145, 131, 146, 132, 147, 133, 148,
134, 149, 135, 150, 136, 151, 137, 152, 138, 153, 139, 154, 140, 155, 141,
156, 142, 157, 143, 158, 144, 144, 145, 160, 146, 161, 147, 162, 148, 163,
149, 164, 150, 165, 151, 166, 152, 167, 153, 168, 154, 169, 155, 170, 156,
171, 157, 172, 158, 173, 159, 174, 160, 160, 161, 176, 162, 177, 163, 178,
164, 179, 165, 180, 166, 181, 167, 182, 168, 183, 169, 184, 170, 185, 171,
186, 172, 187, 173, 188, 174, 189, 175, 190, 176, 176, 177, 192, 178, 193,
179, 194, 180, 195, 181, 196, 182, 197, 183, 198, 184, 199, 185, 200, 186,
201, 187, 202, 188, 203, 189, 204, 190, 205, 191, 206, 192, 192, 193, 208,
194, 209, 195, 210, 196, 211, 197, 212, 198, 213, 199, 214, 200, 215, 201,
216, 202, 217, 203, 218, 204, 219, 205, 220, 206, 221, 207, 222, 208, 208,
209, 224, 210, 225, 211, 226, 212, 227, 213, 228, 214, 229, 215, 230, 216,
231, 217, 232, 218, 233, 219, 234, 220, 235, 221, 236, 222, 237, 223, 238,
224, 224, 225, 240, 226, 241, 227, 242, 228, 243, 229, 244, 230, 245, 231,
246, 232, 247, 233, 248, 234, 249, 235, 250, 236, 251, 237, 252, 238, 253,
239, 254, 240, 240, 241, 256, 242, 257, 243, 258, 244, 259, 245, 260, 246,
261, 247, 262, 248, 263, 249, 264, 250, 265, 251, 266, 252, 267, 253, 268,
254, 269, 255, 270, 256, 256, 257, 272, 258, 273, 259, 274, 260, 275, 261,
276, 262, 277, 263, 278, 264, 279, 265, 280, 266, 281, 267, 282, 268, 283,
269, 284, 270, 285, 271, 286, 272, 272, 273, 288, 274, 289, 275, 290, 276,
291, 277, 292, 278, 293, 279, 294, 280, 295, 281, 296, 282, 297, 283, 298,
284, 299, 285, 300, 286, 301, 287, 302, 288, 288, 289, 304, 290, 305, 291,
306, 292, 307, 293, 308, 294, 309, 295, 310, 296, 311, 297, 312, 298, 313,
299, 314, 300, 315, 301, 316, 302, 317, 303, 318, 304, 304, 305, 320, 306,
321, 307, 322, 308, 323, 309, 324, 310, 325, 311, 326, 312, 327, 313, 328,
314, 329, 315, 330, 316, 331, 317, 332, 318, 333, 319, 334, 320, 320, 321,
336, 322, 337, 323, 338, 324, 339, 325, 340, 326, 341, 327, 342, 328, 343,
329, 344, 330, 345, 331, 346, 332, 347, 333, 348, 334, 349, 335, 350, 336,
336, 337, 352, 338, 353, 339, 354, 340, 355, 341, 356, 342, 357, 343, 358,
344, 359, 345, 360, 346, 361, 347, 362, 348, 363, 349, 364, 350, 365, 351,
366, 352, 352, 353, 368, 354, 369, 355, 370, 356, 371, 357, 372, 358, 373,
359, 374, 360, 375, 361, 376, 362, 377, 363, 378, 364, 379, 365, 380, 366,
381, 367, 382, 368, 368, 369, 384, 370, 385, 371, 386, 372, 387, 373, 388,
374, 389, 375, 390, 376, 391, 377, 392, 378, 393, 379, 394, 380, 395, 381,
396, 382, 397, 383, 398, 384, 384, 385, 400, 386, 401, 387, 402, 388, 403,
389, 404, 390, 405, 391, 406, 392, 407, 393, 408, 394, 409, 395, 410, 396,
411, 397, 412, 398, 413, 399, 414, 400, 400, 401, 416, 402, 417, 403, 418,
404, 419, 405, 420, 406, 421, 407, 422, 408, 423, 409, 424, 410, 425, 411,
426, 412, 427, 413, 428, 414, 429, 415, 430, 416, 416, 417, 432, 418, 433,
419, 434, 420, 435, 421, 436, 422, 437, 423, 438, 424, 439, 425, 440, 426,
441, 427, 442, 428, 443, 429, 444, 430, 445, 431, 446, 432, 432, 433, 448,
434, 449, 435, 450, 436, 451, 437, 452, 438, 453, 439, 454, 440, 455, 441,
456, 442, 457, 443, 458, 444, 459, 445, 460, 446, 461, 447, 462, 448, 448,
449, 464, 450, 465, 451, 466, 452, 467, 453, 468, 454, 469, 455, 470, 456,
471, 457, 472, 458, 473, 459, 474, 460, 475, 461, 476, 462, 477, 463, 478,
464, 464, 465, 480, 466, 481, 467, 482, 468, 483, 469, 484, 470, 485, 471,
486, 472, 487, 473, 488, 474, 489, 475, 490, 476, 491, 477, 492, 478, 493,
479, 494, 480, 480, 481, 496, 482, 497, 483, 498, 484, 499, 485, 500, 486,
501, 487, 502, 488, 503, 489, 504, 490, 505, 491, 506, 492, 507, 493, 508,
494, 509, 495, 510, 0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
mrow_scan_32x16_neighbors[513 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6,
6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13,
14, 14, 15, 15, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21,
21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28,
29, 29, 30, 30, 0, 0, 1, 32, 2, 33, 3, 34, 4, 35, 5,
36, 6, 37, 7, 38, 8, 39, 9, 40, 10, 41, 11, 42, 12, 43,
13, 44, 14, 45, 15, 46, 16, 47, 17, 48, 18, 49, 19, 50, 20,
51, 21, 52, 22, 53, 23, 54, 24, 55, 25, 56, 26, 57, 27, 58,
28, 59, 29, 60, 30, 61, 31, 62, 32, 32, 33, 64, 34, 65, 35,
66, 36, 67, 37, 68, 38, 69, 39, 70, 40, 71, 41, 72, 42, 73,
43, 74, 44, 75, 45, 76, 46, 77, 47, 78, 48, 79, 49, 80, 50,
81, 51, 82, 52, 83, 53, 84, 54, 85, 55, 86, 56, 87, 57, 88,
58, 89, 59, 90, 60, 91, 61, 92, 62, 93, 63, 94, 64, 64, 65,
96, 66, 97, 67, 98, 68, 99, 69, 100, 70, 101, 71, 102, 72, 103,
73, 104, 74, 105, 75, 106, 76, 107, 77, 108, 78, 109, 79, 110, 80,
111, 81, 112, 82, 113, 83, 114, 84, 115, 85, 116, 86, 117, 87, 118,
88, 119, 89, 120, 90, 121, 91, 122, 92, 123, 93, 124, 94, 125, 95,
126, 96, 96, 97, 128, 98, 129, 99, 130, 100, 131, 101, 132, 102, 133,
103, 134, 104, 135, 105, 136, 106, 137, 107, 138, 108, 139, 109, 140, 110,
141, 111, 142, 112, 143, 113, 144, 114, 145, 115, 146, 116, 147, 117, 148,
118, 149, 119, 150, 120, 151, 121, 152, 122, 153, 123, 154, 124, 155, 125,
156, 126, 157, 127, 158, 128, 128, 129, 160, 130, 161, 131, 162, 132, 163,
133, 164, 134, 165, 135, 166, 136, 167, 137, 168, 138, 169, 139, 170, 140,
171, 141, 172, 142, 173, 143, 174, 144, 175, 145, 176, 146, 177, 147, 178,
148, 179, 149, 180, 150, 181, 151, 182, 152, 183, 153, 184, 154, 185, 155,
186, 156, 187, 157, 188, 158, 189, 159, 190, 160, 160, 161, 192, 162, 193,
163, 194, 164, 195, 165, 196, 166, 197, 167, 198, 168, 199, 169, 200, 170,
201, 171, 202, 172, 203, 173, 204, 174, 205, 175, 206, 176, 207, 177, 208,
178, 209, 179, 210, 180, 211, 181, 212, 182, 213, 183, 214, 184, 215, 185,
216, 186, 217, 187, 218, 188, 219, 189, 220, 190, 221, 191, 222, 192, 192,
193, 224, 194, 225, 195, 226, 196, 227, 197, 228, 198, 229, 199, 230, 200,
231, 201, 232, 202, 233, 203, 234, 204, 235, 205, 236, 206, 237, 207, 238,
208, 239, 209, 240, 210, 241, 211, 242, 212, 243, 213, 244, 214, 245, 215,
246, 216, 247, 217, 248, 218, 249, 219, 250, 220, 251, 221, 252, 222, 253,
223, 254, 224, 224, 225, 256, 226, 257, 227, 258, 228, 259, 229, 260, 230,
261, 231, 262, 232, 263, 233, 264, 234, 265, 235, 266, 236, 267, 237, 268,
238, 269, 239, 270, 240, 271, 241, 272, 242, 273, 243, 274, 244, 275, 245,
276, 246, 277, 247, 278, 248, 279, 249, 280, 250, 281, 251, 282, 252, 283,
253, 284, 254, 285, 255, 286, 256, 256, 257, 288, 258, 289, 259, 290, 260,
291, 261, 292, 262, 293, 263, 294, 264, 295, 265, 296, 266, 297, 267, 298,
268, 299, 269, 300, 270, 301, 271, 302, 272, 303, 273, 304, 274, 305, 275,
306, 276, 307, 277, 308, 278, 309, 279, 310, 280, 311, 281, 312, 282, 313,
283, 314, 284, 315, 285, 316, 286, 317, 287, 318, 288, 288, 289, 320, 290,
321, 291, 322, 292, 323, 293, 324, 294, 325, 295, 326, 296, 327, 297, 328,
298, 329, 299, 330, 300, 331, 301, 332, 302, 333, 303, 334, 304, 335, 305,
336, 306, 337, 307, 338, 308, 339, 309, 340, 310, 341, 311, 342, 312, 343,
313, 344, 314, 345, 315, 346, 316, 347, 317, 348, 318, 349, 319, 350, 320,
320, 321, 352, 322, 353, 323, 354, 324, 355, 325, 356, 326, 357, 327, 358,
328, 359, 329, 360, 330, 361, 331, 362, 332, 363, 333, 364, 334, 365, 335,
366, 336, 367, 337, 368, 338, 369, 339, 370, 340, 371, 341, 372, 342, 373,
343, 374, 344, 375, 345, 376, 346, 377, 347, 378, 348, 379, 349, 380, 350,
381, 351, 382, 352, 352, 353, 384, 354, 385, 355, 386, 356, 387, 357, 388,
358, 389, 359, 390, 360, 391, 361, 392, 362, 393, 363, 394, 364, 395, 365,
396, 366, 397, 367, 398, 368, 399, 369, 400, 370, 401, 371, 402, 372, 403,
373, 404, 374, 405, 375, 406, 376, 407, 377, 408, 378, 409, 379, 410, 380,
411, 381, 412, 382, 413, 383, 414, 384, 384, 385, 416, 386, 417, 387, 418,
388, 419, 389, 420, 390, 421, 391, 422, 392, 423, 393, 424, 394, 425, 395,
426, 396, 427, 397, 428, 398, 429, 399, 430, 400, 431, 401, 432, 402, 433,
403, 434, 404, 435, 405, 436, 406, 437, 407, 438, 408, 439, 409, 440, 410,
441, 411, 442, 412, 443, 413, 444, 414, 445, 415, 446, 416, 416, 417, 448,
418, 449, 419, 450, 420, 451, 421, 452, 422, 453, 423, 454, 424, 455, 425,
456, 426, 457, 427, 458, 428, 459, 429, 460, 430, 461, 431, 462, 432, 463,
433, 464, 434, 465, 435, 466, 436, 467, 437, 468, 438, 469, 439, 470, 440,
471, 441, 472, 442, 473, 443, 474, 444, 475, 445, 476, 446, 477, 447, 478,
448, 448, 449, 480, 450, 481, 451, 482, 452, 483, 453, 484, 454, 485, 455,
486, 456, 487, 457, 488, 458, 489, 459, 490, 460, 491, 461, 492, 462, 493,
463, 494, 464, 495, 465, 496, 466, 497, 467, 498, 468, 499, 469, 500, 470,
501, 471, 502, 472, 503, 473, 504, 474, 505, 475, 506, 476, 507, 477, 508,
478, 509, 479, 510, 0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
mcol_scan_16x16_neighbors[257 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 16, 16, 32, 32, 48, 48, 64, 64, 80, 80, 96,
96, 112, 112, 128, 128, 144, 144, 160, 160, 176, 176, 192, 192, 208, 208,
224, 224, 0, 0, 1, 16, 17, 32, 33, 48, 49, 64, 65, 80, 81,
96, 97, 112, 113, 128, 129, 144, 145, 160, 161, 176, 177, 192, 193, 208,
209, 224, 225, 240, 1, 1, 2, 17, 18, 33, 34, 49, 50, 65, 66,
81, 82, 97, 98, 113, 114, 129, 130, 145, 146, 161, 162, 177, 178, 193,
194, 209, 210, 225, 226, 241, 2, 2, 3, 18, 19, 34, 35, 50, 51,
66, 67, 82, 83, 98, 99, 114, 115, 130, 131, 146, 147, 162, 163, 178,
179, 194, 195, 210, 211, 226, 227, 242, 3, 3, 4, 19, 20, 35, 36,
51, 52, 67, 68, 83, 84, 99, 100, 115, 116, 131, 132, 147, 148, 163,
164, 179, 180, 195, 196, 211, 212, 227, 228, 243, 4, 4, 5, 20, 21,
36, 37, 52, 53, 68, 69, 84, 85, 100, 101, 116, 117, 132, 133, 148,
149, 164, 165, 180, 181, 196, 197, 212, 213, 228, 229, 244, 5, 5, 6,
21, 22, 37, 38, 53, 54, 69, 70, 85, 86, 101, 102, 117, 118, 133,
134, 149, 150, 165, 166, 181, 182, 197, 198, 213, 214, 229, 230, 245, 6,
6, 7, 22, 23, 38, 39, 54, 55, 70, 71, 86, 87, 102, 103, 118,
119, 134, 135, 150, 151, 166, 167, 182, 183, 198, 199, 214, 215, 230, 231,
246, 7, 7, 8, 23, 24, 39, 40, 55, 56, 71, 72, 87, 88, 103,
104, 119, 120, 135, 136, 151, 152, 167, 168, 183, 184, 199, 200, 215, 216,
231, 232, 247, 8, 8, 9, 24, 25, 40, 41, 56, 57, 72, 73, 88,
89, 104, 105, 120, 121, 136, 137, 152, 153, 168, 169, 184, 185, 200, 201,
216, 217, 232, 233, 248, 9, 9, 10, 25, 26, 41, 42, 57, 58, 73,
74, 89, 90, 105, 106, 121, 122, 137, 138, 153, 154, 169, 170, 185, 186,
201, 202, 217, 218, 233, 234, 249, 10, 10, 11, 26, 27, 42, 43, 58,
59, 74, 75, 90, 91, 106, 107, 122, 123, 138, 139, 154, 155, 170, 171,
186, 187, 202, 203, 218, 219, 234, 235, 250, 11, 11, 12, 27, 28, 43,
44, 59, 60, 75, 76, 91, 92, 107, 108, 123, 124, 139, 140, 155, 156,
171, 172, 187, 188, 203, 204, 219, 220, 235, 236, 251, 12, 12, 13, 28,
29, 44, 45, 60, 61, 76, 77, 92, 93, 108, 109, 124, 125, 140, 141,
156, 157, 172, 173, 188, 189, 204, 205, 220, 221, 236, 237, 252, 13, 13,
14, 29, 30, 45, 46, 61, 62, 77, 78, 93, 94, 109, 110, 125, 126,
141, 142, 157, 158, 173, 174, 189, 190, 205, 206, 221, 222, 237, 238, 253,
14, 14, 15, 30, 31, 46, 47, 62, 63, 78, 79, 94, 95, 110, 111,
126, 127, 142, 143, 158, 159, 174, 175, 190, 191, 206, 207, 222, 223, 238,
239, 254, 0, 0,
};
DECLARE_ALIGNED(16, static const int16_t,
mrow_scan_16x16_neighbors[257 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6,
6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13,
14, 14, 0, 0, 1, 16, 2, 17, 3, 18, 4, 19, 5, 20, 6,
21, 7, 22, 8, 23, 9, 24, 10, 25, 11, 26, 12, 27, 13, 28,
14, 29, 15, 30, 16, 16, 17, 32, 18, 33, 19, 34, 20, 35, 21,
36, 22, 37, 23, 38, 24, 39, 25, 40, 26, 41, 27, 42, 28, 43,
29, 44, 30, 45, 31, 46, 32, 32, 33, 48, 34, 49, 35, 50, 36,
51, 37, 52, 38, 53, 39, 54, 40, 55, 41, 56, 42, 57, 43, 58,
44, 59, 45, 60, 46, 61, 47, 62, 48, 48, 49, 64, 50, 65, 51,
66, 52, 67, 53, 68, 54, 69, 55, 70, 56, 71, 57, 72, 58, 73,
59, 74, 60, 75, 61, 76, 62, 77, 63, 78, 64, 64, 65, 80, 66,
81, 67, 82, 68, 83, 69, 84, 70, 85, 71, 86, 72, 87, 73, 88,
74, 89, 75, 90, 76, 91, 77, 92, 78, 93, 79, 94, 80, 80, 81,
96, 82, 97, 83, 98, 84, 99, 85, 100, 86, 101, 87, 102, 88, 103,
89, 104, 90, 105, 91, 106, 92, 107, 93, 108, 94, 109, 95, 110, 96,
96, 97, 112, 98, 113, 99, 114, 100, 115, 101, 116, 102, 117, 103, 118,
104, 119, 105, 120, 106, 121, 107, 122, 108, 123, 109, 124, 110, 125, 111,
126, 112, 112, 113, 128, 114, 129, 115, 130, 116, 131, 117, 132, 118, 133,
119, 134, 120, 135, 121, 136, 122, 137, 123, 138, 124, 139, 125, 140, 126,
141, 127, 142, 128, 128, 129, 144, 130, 145, 131, 146, 132, 147, 133, 148,
134, 149, 135, 150, 136, 151, 137, 152, 138, 153, 139, 154, 140, 155, 141,
156, 142, 157, 143, 158, 144, 144, 145, 160, 146, 161, 147, 162, 148, 163,
149, 164, 150, 165, 151, 166, 152, 167, 153, 168, 154, 169, 155, 170, 156,
171, 157, 172, 158, 173, 159, 174, 160, 160, 161, 176, 162, 177, 163, 178,
164, 179, 165, 180, 166, 181, 167, 182, 168, 183, 169, 184, 170, 185, 171,
186, 172, 187, 173, 188, 174, 189, 175, 190, 176, 176, 177, 192, 178, 193,
179, 194, 180, 195, 181, 196, 182, 197, 183, 198, 184, 199, 185, 200, 186,
201, 187, 202, 188, 203, 189, 204, 190, 205, 191, 206, 192, 192, 193, 208,
194, 209, 195, 210, 196, 211, 197, 212, 198, 213, 199, 214, 200, 215, 201,
216, 202, 217, 203, 218, 204, 219, 205, 220, 206, 221, 207, 222, 208, 208,
209, 224, 210, 225, 211, 226, 212, 227, 213, 228, 214, 229, 215, 230, 216,
231, 217, 232, 218, 233, 219, 234, 220, 235, 221, 236, 222, 237, 223, 238,
224, 224, 225, 240, 226, 241, 227, 242, 228, 243, 229, 244, 230, 245, 231,
246, 232, 247, 233, 248, 234, 249, 235, 250, 236, 251, 237, 252, 238, 253,
239, 254, 0, 0,
};
DECLARE_ALIGNED(16, static const int16_t,
col_scan_16x16_neighbors[257 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 16, 16, 32, 32, 16, 0, 48, 48, 1, 16, 64,
64, 17, 32, 80, 80, 33, 48, 17, 1, 49, 64, 96, 96, 2, 17,
65, 80, 18, 33, 112, 112, 34, 49, 81, 96, 18, 2, 50, 65, 128,
128, 3, 18, 97, 112, 19, 34, 66, 81, 144, 144, 82, 97, 35, 50,
113, 128, 19, 3, 51, 66, 160, 160, 4, 19, 98, 113, 129, 144, 67,
82, 20, 35, 83, 98, 114, 129, 36, 51, 176, 176, 20, 4, 145, 160,
52, 67, 99, 114, 5, 20, 130, 145, 68, 83, 192, 192, 161, 176, 21,
36, 115, 130, 84, 99, 37, 52, 146, 161, 208, 208, 53, 68, 21, 5,
100, 115, 177, 192, 131, 146, 69, 84, 6, 21, 224, 224, 116, 131, 22,
37, 162, 177, 85, 100, 147, 162, 38, 53, 193, 208, 101, 116, 54, 69,
22, 6, 132, 147, 178, 193, 70, 85, 163, 178, 209, 224, 7, 22, 117,
132, 23, 38, 148, 163, 23, 7, 86, 101, 194, 209, 225, 240, 39, 54,
179, 194, 102, 117, 133, 148, 55, 70, 164, 179, 8, 23, 71, 86, 210,
225, 118, 133, 149, 164, 195, 210, 24, 39, 87, 102, 40, 55, 56, 71,
134, 149, 180, 195, 226, 241, 103, 118, 24, 8, 165, 180, 211, 226, 72,
87, 150, 165, 9, 24, 119, 134, 25, 40, 88, 103, 196, 211, 41, 56,
135, 150, 181, 196, 104, 119, 57, 72, 227, 242, 166, 181, 120, 135, 151,
166, 197, 212, 73, 88, 25, 9, 212, 227, 89, 104, 136, 151, 182, 197,
10, 25, 26, 41, 105, 120, 167, 182, 228, 243, 152, 167, 42, 57, 121,
136, 213, 228, 58, 73, 198, 213, 74, 89, 137, 152, 183, 198, 168, 183,
26, 10, 90, 105, 229, 244, 11, 26, 106, 121, 214, 229, 153, 168, 27,
42, 199, 214, 43, 58, 184, 199, 122, 137, 169, 184, 230, 245, 59, 74,
27, 11, 75, 90, 138, 153, 200, 215, 215, 230, 91, 106, 12, 27, 28,
43, 185, 200, 107, 122, 154, 169, 44, 59, 231, 246, 216, 231, 60, 75,
123, 138, 28, 12, 76, 91, 201, 216, 170, 185, 232, 247, 139, 154, 92,
107, 13, 28, 108, 123, 29, 44, 186, 201, 217, 232, 155, 170, 45, 60,
29, 13, 61, 76, 124, 139, 14, 14, 233, 248, 77, 92, 14, 29, 171,
186, 140, 155, 202, 217, 30, 45, 93, 108, 109, 124, 46, 61, 156, 171,
62, 77, 187, 202, 15, 30, 125, 140, 218, 233, 78, 93, 31, 46, 172,
187, 47, 62, 141, 156, 94, 109, 234, 249, 203, 218, 63, 78, 110, 125,
188, 203, 157, 172, 126, 141, 79, 94, 173, 188, 95, 110, 219, 234, 142,
157, 204, 219, 235, 250, 111, 126, 158, 173, 127, 142, 189, 204, 220, 235,
143, 158, 174, 189, 205, 220, 236, 251, 159, 174, 190, 205, 221, 236, 175,
190, 237, 252, 206, 221, 222, 237, 191, 206, 238, 253, 207, 222, 223, 238,
239, 254, 0, 0,
};
DECLARE_ALIGNED(16, static const int16_t,
row_scan_16x16_neighbors[257 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 1, 1, 0, 1, 2, 2, 1, 16, 3, 3, 2,
17, 16, 17, 4, 4, 17, 32, 3, 18, 5, 5, 18, 33, 32, 33,
4, 19, 33, 48, 6, 6, 19, 34, 5, 20, 34, 49, 48, 49, 7,
7, 20, 35, 49, 64, 6, 21, 35, 50, 21, 36, 64, 65, 8, 8,
50, 65, 36, 51, 7, 22, 22, 37, 65, 80, 51, 66, 9, 9, 37,
52, 8, 23, 66, 81, 52, 67, 80, 81, 23, 38, 10, 10, 38, 53,
67, 82, 81, 96, 53, 68, 9, 24, 82, 97, 68, 83, 24, 39, 96,
97, 39, 54, 11, 11, 54, 69, 83, 98, 97, 112, 69, 84, 10, 25,
25, 40, 40, 55, 98, 113, 84, 99, 12, 12, 55, 70, 112, 113, 70,
85, 11, 26, 99, 114, 85, 100, 113, 128, 26, 41, 41, 56, 56, 71,
100, 115, 13, 13, 71, 86, 114, 129, 86, 101, 128, 129, 57, 72, 115,
130, 101, 116, 12, 27, 42, 57, 14, 14, 72, 87, 27, 42, 129, 144,
87, 102, 116, 131, 130, 145, 102, 117, 58, 73, 144, 145, 73, 88, 117,
132, 88, 103, 13, 28, 43, 58, 131, 146, 103, 118, 28, 43, 145, 160,
132, 147, 74, 89, 89, 104, 118, 133, 146, 161, 104, 119, 160, 161, 59,
74, 119, 134, 133, 148, 14, 29, 44, 59, 147, 162, 161, 176, 29, 44,
105, 120, 75, 90, 90, 105, 148, 163, 162, 177, 134, 149, 176, 177, 120,
135, 149, 164, 163, 178, 15, 30, 135, 150, 177, 192, 60, 75, 106, 121,
45, 60, 121, 136, 178, 193, 91, 106, 136, 151, 164, 179, 192, 193, 30,
45, 150, 165, 151, 166, 179, 194, 76, 91, 165, 180, 122, 137, 193, 208,
107, 122, 137, 152, 208, 209, 180, 195, 61, 76, 152, 167, 194, 209, 166,
181, 224, 224, 92, 107, 181, 196, 46, 61, 138, 153, 209, 224, 167, 182,
153, 168, 195, 210, 31, 46, 123, 138, 77, 92, 168, 183, 210, 225, 196,
211, 225, 240, 182, 197, 154, 169, 108, 123, 139, 154, 183, 198, 62, 77,
197, 212, 169, 184, 93, 108, 211, 226, 184, 199, 47, 62, 212, 227, 226,
241, 124, 139, 198, 213, 155, 170, 170, 185, 140, 155, 213, 228, 227, 242,
109, 124, 78, 93, 185, 200, 228, 243, 199, 214, 200, 215, 214, 229, 125,
140, 171, 186, 186, 201, 63, 78, 156, 171, 94, 109, 141, 156, 229, 244,
201, 216, 215, 230, 79, 94, 230, 245, 216, 231, 110, 125, 187, 202, 231,
246, 217, 232, 157, 172, 202, 217, 126, 141, 95, 110, 142, 157, 172, 187,
232, 247, 111, 126, 218, 233, 203, 218, 233, 248, 173, 188, 188, 203, 127,
142, 158, 173, 143, 158, 234, 249, 219, 234, 189, 204, 204, 219, 159, 174,
174, 189, 235, 250, 205, 220, 175, 190, 190, 205, 220, 235, 191, 206, 221,
236, 236, 251, 206, 221, 237, 252, 207, 222, 222, 237, 223, 238, 238, 253,
239, 254, 0, 0,
};
DECLARE_ALIGNED(16, static const int16_t,
default_scan_16x16_neighbors[257 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 16, 0, 16, 16, 1, 16, 17, 1, 32, 32, 17,
32, 2, 17, 18, 2, 48, 48, 18, 33, 33, 48, 3, 18, 49, 64,
64, 65, 34, 49, 19, 3, 19, 34, 50, 65, 4, 19, 65, 80, 80,
81, 35, 50, 20, 4, 20, 35, 66, 81, 81, 96, 51, 66, 96, 97,
5, 20, 36, 51, 82, 97, 21, 36, 67, 82, 97, 112, 21, 5, 52,
67, 112, 113, 37, 52, 6, 21, 83, 98, 98, 113, 68, 83, 22, 6,
113, 128, 22, 37, 53, 68, 84, 99, 99, 114, 128, 129, 114, 129, 69,
84, 38, 53, 7, 22, 23, 7, 129, 144, 23, 38, 54, 69, 100, 115,
85, 100, 115, 130, 144, 145, 130, 145, 39, 54, 70, 85, 8, 23, 55,
70, 116, 131, 101, 116, 145, 160, 24, 39, 24, 8, 86, 101, 131, 146,
160, 161, 146, 161, 71, 86, 40, 55, 9, 24, 117, 132, 102, 117, 161,
176, 132, 147, 56, 71, 87, 102, 25, 40, 147, 162, 25, 9, 176, 177,
162, 177, 72, 87, 41, 56, 118, 133, 133, 148, 103, 118, 10, 25, 148,
163, 57, 72, 88, 103, 177, 192, 26, 41, 163, 178, 192, 193, 26, 10,
119, 134, 73, 88, 149, 164, 104, 119, 134, 149, 42, 57, 178, 193, 164,
179, 11, 26, 58, 73, 193, 208, 89, 104, 135, 150, 120, 135, 27, 42,
74, 89, 208, 209, 150, 165, 179, 194, 165, 180, 105, 120, 194, 209, 43,
58, 27, 11, 136, 151, 90, 105, 151, 166, 180, 195, 59, 74, 121, 136,
209, 224, 195, 210, 224, 225, 166, 181, 106, 121, 75, 90, 12, 27, 181,
196, 28, 12, 210, 225, 152, 167, 167, 182, 137, 152, 28, 43, 196, 211,
122, 137, 91, 106, 225, 240, 44, 59, 13, 28, 107, 122, 182, 197, 168,
183, 211, 226, 153, 168, 226, 241, 60, 75, 197, 212, 138, 153, 29, 44,
76, 91, 29, 13, 183, 198, 123, 138, 45, 60, 212, 227, 198, 213, 154,
169, 169, 184, 227, 242, 92, 107, 61, 76, 139, 154, 14, 29, 30, 14,
184, 199, 213, 228, 108, 123, 199, 214, 228, 243, 77, 92, 30, 45, 170,
185, 155, 170, 185, 200, 93, 108, 124, 139, 214, 229, 46, 61, 200, 215,
229, 244, 15, 30, 109, 124, 62, 77, 140, 155, 215, 230, 31, 46, 171,
186, 186, 201, 201, 216, 78, 93, 230, 245, 125, 140, 47, 62, 216, 231,
156, 171, 94, 109, 231, 246, 141, 156, 63, 78, 202, 217, 187, 202, 110,
125, 217, 232, 172, 187, 232, 247, 79, 94, 157, 172, 126, 141, 203, 218,
95, 110, 233, 248, 218, 233, 142, 157, 111, 126, 173, 188, 188, 203, 234,
249, 219, 234, 127, 142, 158, 173, 204, 219, 189, 204, 143, 158, 235, 250,
174, 189, 205, 220, 159, 174, 220, 235, 221, 236, 175, 190, 190, 205, 236,
251, 206, 221, 237, 252, 191, 206, 222, 237, 207, 222, 238, 253, 223, 238,
239, 254, 0, 0,
};
DECLARE_ALIGNED(16, static const int16_t,
mcol_scan_32x32_neighbors[1025 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 32, 32, 64, 64, 96, 96, 128, 128, 160, 160,
192, 192, 224, 224, 256, 256, 288, 288, 320, 320, 352, 352, 384, 384,
416, 416, 448, 448, 480, 480, 512, 512, 544, 544, 576, 576, 608, 608,
640, 640, 672, 672, 704, 704, 736, 736, 768, 768, 800, 800, 832, 832,
864, 864, 896, 896, 928, 928, 960, 960, 0, 0, 1, 32, 33, 64,
65, 96, 97, 128, 129, 160, 161, 192, 193, 224, 225, 256, 257, 288,
289, 320, 321, 352, 353, 384, 385, 416, 417, 448, 449, 480, 481, 512,
513, 544, 545, 576, 577, 608, 609, 640, 641, 672, 673, 704, 705, 736,
737, 768, 769, 800, 801, 832, 833, 864, 865, 896, 897, 928, 929, 960,
961, 992, 1, 1, 2, 33, 34, 65, 66, 97, 98, 129, 130, 161,
162, 193, 194, 225, 226, 257, 258, 289, 290, 321, 322, 353, 354, 385,
386, 417, 418, 449, 450, 481, 482, 513, 514, 545, 546, 577, 578, 609,
610, 641, 642, 673, 674, 705, 706, 737, 738, 769, 770, 801, 802, 833,
834, 865, 866, 897, 898, 929, 930, 961, 962, 993, 2, 2, 3, 34,
35, 66, 67, 98, 99, 130, 131, 162, 163, 194, 195, 226, 227, 258,
259, 290, 291, 322, 323, 354, 355, 386, 387, 418, 419, 450, 451, 482,
483, 514, 515, 546, 547, 578, 579, 610, 611, 642, 643, 674, 675, 706,
707, 738, 739, 770, 771, 802, 803, 834, 835, 866, 867, 898, 899, 930,
931, 962, 963, 994, 3, 3, 4, 35, 36, 67, 68, 99, 100, 131,
132, 163, 164, 195, 196, 227, 228, 259, 260, 291, 292, 323, 324, 355,
356, 387, 388, 419, 420, 451, 452, 483, 484, 515, 516, 547, 548, 579,
580, 611, 612, 643, 644, 675, 676, 707, 708, 739, 740, 771, 772, 803,
804, 835, 836, 867, 868, 899, 900, 931, 932, 963, 964, 995, 4, 4,
5, 36, 37, 68, 69, 100, 101, 132, 133, 164, 165, 196, 197, 228,
229, 260, 261, 292, 293, 324, 325, 356, 357, 388, 389, 420, 421, 452,
453, 484, 485, 516, 517, 548, 549, 580, 581, 612, 613, 644, 645, 676,
677, 708, 709, 740, 741, 772, 773, 804, 805, 836, 837, 868, 869, 900,
901, 932, 933, 964, 965, 996, 5, 5, 6, 37, 38, 69, 70, 101,
102, 133, 134, 165, 166, 197, 198, 229, 230, 261, 262, 293, 294, 325,
326, 357, 358, 389, 390, 421, 422, 453, 454, 485, 486, 517, 518, 549,
550, 581, 582, 613, 614, 645, 646, 677, 678, 709, 710, 741, 742, 773,
774, 805, 806, 837, 838, 869, 870, 901, 902, 933, 934, 965, 966, 997,
6, 6, 7, 38, 39, 70, 71, 102, 103, 134, 135, 166, 167, 198,
199, 230, 231, 262, 263, 294, 295, 326, 327, 358, 359, 390, 391, 422,
423, 454, 455, 486, 487, 518, 519, 550, 551, 582, 583, 614, 615, 646,
647, 678, 679, 710, 711, 742, 743, 774, 775, 806, 807, 838, 839, 870,
871, 902, 903, 934, 935, 966, 967, 998, 7, 7, 8, 39, 40, 71,
72, 103, 104, 135, 136, 167, 168, 199, 200, 231, 232, 263, 264, 295,
296, 327, 328, 359, 360, 391, 392, 423, 424, 455, 456, 487, 488, 519,
520, 551, 552, 583, 584, 615, 616, 647, 648, 679, 680, 711, 712, 743,
744, 775, 776, 807, 808, 839, 840, 871, 872, 903, 904, 935, 936, 967,
968, 999, 8, 8, 9, 40, 41, 72, 73, 104, 105, 136, 137, 168,
169, 200, 201, 232, 233, 264, 265, 296, 297, 328, 329, 360, 361, 392,
393, 424, 425, 456, 457, 488, 489, 520, 521, 552, 553, 584, 585, 616,
617, 648, 649, 680, 681, 712, 713, 744, 745, 776, 777, 808, 809, 840,
841, 872, 873, 904, 905, 936, 937, 968, 969, 1000, 9, 9, 10, 41,
42, 73, 74, 105, 106, 137, 138, 169, 170, 201, 202, 233, 234, 265,
266, 297, 298, 329, 330, 361, 362, 393, 394, 425, 426, 457, 458, 489,
490, 521, 522, 553, 554, 585, 586, 617, 618, 649, 650, 681, 682, 713,
714, 745, 746, 777, 778, 809, 810, 841, 842, 873, 874, 905, 906, 937,
938, 969, 970, 1001, 10, 10, 11, 42, 43, 74, 75, 106, 107, 138,
139, 170, 171, 202, 203, 234, 235, 266, 267, 298, 299, 330, 331, 362,
363, 394, 395, 426, 427, 458, 459, 490, 491, 522, 523, 554, 555, 586,
587, 618, 619, 650, 651, 682, 683, 714, 715, 746, 747, 778, 779, 810,
811, 842, 843, 874, 875, 906, 907, 938, 939, 970, 971, 1002, 11, 11,
12, 43, 44, 75, 76, 107, 108, 139, 140, 171, 172, 203, 204, 235,
236, 267, 268, 299, 300, 331, 332, 363, 364, 395, 396, 427, 428, 459,
460, 491, 492, 523, 524, 555, 556, 587, 588, 619, 620, 651, 652, 683,
684, 715, 716, 747, 748, 779, 780, 811, 812, 843, 844, 875, 876, 907,
908, 939, 940, 971, 972, 1003, 12, 12, 13, 44, 45, 76, 77, 108,
109, 140, 141, 172, 173, 204, 205, 236, 237, 268, 269, 300, 301, 332,
333, 364, 365, 396, 397, 428, 429, 460, 461, 492, 493, 524, 525, 556,
557, 588, 589, 620, 621, 652, 653, 684, 685, 716, 717, 748, 749, 780,
781, 812, 813, 844, 845, 876, 877, 908, 909, 940, 941, 972, 973, 1004,
13, 13, 14, 45, 46, 77, 78, 109, 110, 141, 142, 173, 174, 205,
206, 237, 238, 269, 270, 301, 302, 333, 334, 365, 366, 397, 398, 429,
430, 461, 462, 493, 494, 525, 526, 557, 558, 589, 590, 621, 622, 653,
654, 685, 686, 717, 718, 749, 750, 781, 782, 813, 814, 845, 846, 877,
878, 909, 910, 941, 942, 973, 974, 1005, 14, 14, 15, 46, 47, 78,
79, 110, 111, 142, 143, 174, 175, 206, 207, 238, 239, 270, 271, 302,
303, 334, 335, 366, 367, 398, 399, 430, 431, 462, 463, 494, 495, 526,
527, 558, 559, 590, 591, 622, 623, 654, 655, 686, 687, 718, 719, 750,
751, 782, 783, 814, 815, 846, 847, 878, 879, 910, 911, 942, 943, 974,
975, 1006, 15, 15, 16, 47, 48, 79, 80, 111, 112, 143, 144, 175,
176, 207, 208, 239, 240, 271, 272, 303, 304, 335, 336, 367, 368, 399,
400, 431, 432, 463, 464, 495, 496, 527, 528, 559, 560, 591, 592, 623,
624, 655, 656, 687, 688, 719, 720, 751, 752, 783, 784, 815, 816, 847,
848, 879, 880, 911, 912, 943, 944, 975, 976, 1007, 16, 16, 17, 48,
49, 80, 81, 112, 113, 144, 145, 176, 177, 208, 209, 240, 241, 272,
273, 304, 305, 336, 337, 368, 369, 400, 401, 432, 433, 464, 465, 496,
497, 528, 529, 560, 561, 592, 593, 624, 625, 656, 657, 688, 689, 720,
721, 752, 753, 784, 785, 816, 817, 848, 849, 880, 881, 912, 913, 944,
945, 976, 977, 1008, 17, 17, 18, 49, 50, 81, 82, 113, 114, 145,
146, 177, 178, 209, 210, 241, 242, 273, 274, 305, 306, 337, 338, 369,
370, 401, 402, 433, 434, 465, 466, 497, 498, 529, 530, 561, 562, 593,
594, 625, 626, 657, 658, 689, 690, 721, 722, 753, 754, 785, 786, 817,
818, 849, 850, 881, 882, 913, 914, 945, 946, 977, 978, 1009, 18, 18,
19, 50, 51, 82, 83, 114, 115, 146, 147, 178, 179, 210, 211, 242,
243, 274, 275, 306, 307, 338, 339, 370, 371, 402, 403, 434, 435, 466,
467, 498, 499, 530, 531, 562, 563, 594, 595, 626, 627, 658, 659, 690,
691, 722, 723, 754, 755, 786, 787, 818, 819, 850, 851, 882, 883, 914,
915, 946, 947, 978, 979, 1010, 19, 19, 20, 51, 52, 83, 84, 115,
116, 147, 148, 179, 180, 211, 212, 243, 244, 275, 276, 307, 308, 339,
340, 371, 372, 403, 404, 435, 436, 467, 468, 499, 500, 531, 532, 563,
564, 595, 596, 627, 628, 659, 660, 691, 692, 723, 724, 755, 756, 787,
788, 819, 820, 851, 852, 883, 884, 915, 916, 947, 948, 979, 980, 1011,
20, 20, 21, 52, 53, 84, 85, 116, 117, 148, 149, 180, 181, 212,
213, 244, 245, 276, 277, 308, 309, 340, 341, 372, 373, 404, 405, 436,
437, 468, 469, 500, 501, 532, 533, 564, 565, 596, 597, 628, 629, 660,
661, 692, 693, 724, 725, 756, 757, 788, 789, 820, 821, 852, 853, 884,
885, 916, 917, 948, 949, 980, 981, 1012, 21, 21, 22, 53, 54, 85,
86, 117, 118, 149, 150, 181, 182, 213, 214, 245, 246, 277, 278, 309,
310, 341, 342, 373, 374, 405, 406, 437, 438, 469, 470, 501, 502, 533,
534, 565, 566, 597, 598, 629, 630, 661, 662, 693, 694, 725, 726, 757,
758, 789, 790, 821, 822, 853, 854, 885, 886, 917, 918, 949, 950, 981,
982, 1013, 22, 22, 23, 54, 55, 86, 87, 118, 119, 150, 151, 182,
183, 214, 215, 246, 247, 278, 279, 310, 311, 342, 343, 374, 375, 406,
407, 438, 439, 470, 471, 502, 503, 534, 535, 566, 567, 598, 599, 630,
631, 662, 663, 694, 695, 726, 727, 758, 759, 790, 791, 822, 823, 854,
855, 886, 887, 918, 919, 950, 951, 982, 983, 1014, 23, 23, 24, 55,
56, 87, 88, 119, 120, 151, 152, 183, 184, 215, 216, 247, 248, 279,
280, 311, 312, 343, 344, 375, 376, 407, 408, 439, 440, 471, 472, 503,
504, 535, 536, 567, 568, 599, 600, 631, 632, 663, 664, 695, 696, 727,
728, 759, 760, 791, 792, 823, 824, 855, 856, 887, 888, 919, 920, 951,
952, 983, 984, 1015, 24, 24, 25, 56, 57, 88, 89, 120, 121, 152,
153, 184, 185, 216, 217, 248, 249, 280, 281, 312, 313, 344, 345, 376,
377, 408, 409, 440, 441, 472, 473, 504, 505, 536, 537, 568, 569, 600,
601, 632, 633, 664, 665, 696, 697, 728, 729, 760, 761, 792, 793, 824,
825, 856, 857, 888, 889, 920, 921, 952, 953, 984, 985, 1016, 25, 25,
26, 57, 58, 89, 90, 121, 122, 153, 154, 185, 186, 217, 218, 249,
250, 281, 282, 313, 314, 345, 346, 377, 378, 409, 410, 441, 442, 473,
474, 505, 506, 537, 538, 569, 570, 601, 602, 633, 634, 665, 666, 697,
698, 729, 730, 761, 762, 793, 794, 825, 826, 857, 858, 889, 890, 921,
922, 953, 954, 985, 986, 1017, 26, 26, 27, 58, 59, 90, 91, 122,
123, 154, 155, 186, 187, 218, 219, 250, 251, 282, 283, 314, 315, 346,
347, 378, 379, 410, 411, 442, 443, 474, 475, 506, 507, 538, 539, 570,
571, 602, 603, 634, 635, 666, 667, 698, 699, 730, 731, 762, 763, 794,
795, 826, 827, 858, 859, 890, 891, 922, 923, 954, 955, 986, 987, 1018,
27, 27, 28, 59, 60, 91, 92, 123, 124, 155, 156, 187, 188, 219,
220, 251, 252, 283, 284, 315, 316, 347, 348, 379, 380, 411, 412, 443,
444, 475, 476, 507, 508, 539, 540, 571, 572, 603, 604, 635, 636, 667,
668, 699, 700, 731, 732, 763, 764, 795, 796, 827, 828, 859, 860, 891,
892, 923, 924, 955, 956, 987, 988, 1019, 28, 28, 29, 60, 61, 92,
93, 124, 125, 156, 157, 188, 189, 220, 221, 252, 253, 284, 285, 316,
317, 348, 349, 380, 381, 412, 413, 444, 445, 476, 477, 508, 509, 540,
541, 572, 573, 604, 605, 636, 637, 668, 669, 700, 701, 732, 733, 764,
765, 796, 797, 828, 829, 860, 861, 892, 893, 924, 925, 956, 957, 988,
989, 1020, 29, 29, 30, 61, 62, 93, 94, 125, 126, 157, 158, 189,
190, 221, 222, 253, 254, 285, 286, 317, 318, 349, 350, 381, 382, 413,
414, 445, 446, 477, 478, 509, 510, 541, 542, 573, 574, 605, 606, 637,
638, 669, 670, 701, 702, 733, 734, 765, 766, 797, 798, 829, 830, 861,
862, 893, 894, 925, 926, 957, 958, 989, 990, 1021, 30, 30, 31, 62,
63, 94, 95, 126, 127, 158, 159, 190, 191, 222, 223, 254, 255, 286,
287, 318, 319, 350, 351, 382, 383, 414, 415, 446, 447, 478, 479, 510,
511, 542, 543, 574, 575, 606, 607, 638, 639, 670, 671, 702, 703, 734,
735, 766, 767, 798, 799, 830, 831, 862, 863, 894, 895, 926, 927, 958,
959, 990, 991, 1022, 0, 0,
};
DECLARE_ALIGNED(16, static const int16_t,
mrow_scan_32x32_neighbors[1025 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5,
6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12,
13, 13, 14, 14, 15, 15, 16, 16, 17, 17, 18, 18, 19, 19,
20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26,
27, 27, 28, 28, 29, 29, 30, 30, 0, 0, 1, 32, 2, 33,
3, 34, 4, 35, 5, 36, 6, 37, 7, 38, 8, 39, 9, 40,
10, 41, 11, 42, 12, 43, 13, 44, 14, 45, 15, 46, 16, 47,
17, 48, 18, 49, 19, 50, 20, 51, 21, 52, 22, 53, 23, 54,
24, 55, 25, 56, 26, 57, 27, 58, 28, 59, 29, 60, 30, 61,
31, 62, 32, 32, 33, 64, 34, 65, 35, 66, 36, 67, 37, 68,
38, 69, 39, 70, 40, 71, 41, 72, 42, 73, 43, 74, 44, 75,
45, 76, 46, 77, 47, 78, 48, 79, 49, 80, 50, 81, 51, 82,
52, 83, 53, 84, 54, 85, 55, 86, 56, 87, 57, 88, 58, 89,
59, 90, 60, 91, 61, 92, 62, 93, 63, 94, 64, 64, 65, 96,
66, 97, 67, 98, 68, 99, 69, 100, 70, 101, 71, 102, 72, 103,
73, 104, 74, 105, 75, 106, 76, 107, 77, 108, 78, 109, 79, 110,
80, 111, 81, 112, 82, 113, 83, 114, 84, 115, 85, 116, 86, 117,
87, 118, 88, 119, 89, 120, 90, 121, 91, 122, 92, 123, 93, 124,
94, 125, 95, 126, 96, 96, 97, 128, 98, 129, 99, 130, 100, 131,
101, 132, 102, 133, 103, 134, 104, 135, 105, 136, 106, 137, 107, 138,
108, 139, 109, 140, 110, 141, 111, 142, 112, 143, 113, 144, 114, 145,
115, 146, 116, 147, 117, 148, 118, 149, 119, 150, 120, 151, 121, 152,
122, 153, 123, 154, 124, 155, 125, 156, 126, 157, 127, 158, 128, 128,
129, 160, 130, 161, 131, 162, 132, 163, 133, 164, 134, 165, 135, 166,
136, 167, 137, 168, 138, 169, 139, 170, 140, 171, 141, 172, 142, 173,
143, 174, 144, 175, 145, 176, 146, 177, 147, 178, 148, 179, 149, 180,
150, 181, 151, 182, 152, 183, 153, 184, 154, 185, 155, 186, 156, 187,
157, 188, 158, 189, 159, 190, 160, 160, 161, 192, 162, 193, 163, 194,
164, 195, 165, 196, 166, 197, 167, 198, 168, 199, 169, 200, 170, 201,
171, 202, 172, 203, 173, 204, 174, 205, 175, 206, 176, 207, 177, 208,
178, 209, 179, 210, 180, 211, 181, 212, 182, 213, 183, 214, 184, 215,
185, 216, 186, 217, 187, 218, 188, 219, 189, 220, 190, 221, 191, 222,
192, 192, 193, 224, 194, 225, 195, 226, 196, 227, 197, 228, 198, 229,
199, 230, 200, 231, 201, 232, 202, 233, 203, 234, 204, 235, 205, 236,
206, 237, 207, 238, 208, 239, 209, 240, 210, 241, 211, 242, 212, 243,
213, 244, 214, 245, 215, 246, 216, 247, 217, 248, 218, 249, 219, 250,
220, 251, 221, 252, 222, 253, 223, 254, 224, 224, 225, 256, 226, 257,
227, 258, 228, 259, 229, 260, 230, 261, 231, 262, 232, 263, 233, 264,
234, 265, 235, 266, 236, 267, 237, 268, 238, 269, 239, 270, 240, 271,
241, 272, 242, 273, 243, 274, 244, 275, 245, 276, 246, 277, 247, 278,
248, 279, 249, 280, 250, 281, 251, 282, 252, 283, 253, 284, 254, 285,
255, 286, 256, 256, 257, 288, 258, 289, 259, 290, 260, 291, 261, 292,
262, 293, 263, 294, 264, 295, 265, 296, 266, 297, 267, 298, 268, 299,
269, 300, 270, 301, 271, 302, 272, 303, 273, 304, 274, 305, 275, 306,
276, 307, 277, 308, 278, 309, 279, 310, 280, 311, 281, 312, 282, 313,
283, 314, 284, 315, 285, 316, 286, 317, 287, 318, 288, 288, 289, 320,
290, 321, 291, 322, 292, 323, 293, 324, 294, 325, 295, 326, 296, 327,
297, 328, 298, 329, 299, 330, 300, 331, 301, 332, 302, 333, 303, 334,
304, 335, 305, 336, 306, 337, 307, 338, 308, 339, 309, 340, 310, 341,
311, 342, 312, 343, 313, 344, 314, 345, 315, 346, 316, 347, 317, 348,
318, 349, 319, 350, 320, 320, 321, 352, 322, 353, 323, 354, 324, 355,
325, 356, 326, 357, 327, 358, 328, 359, 329, 360, 330, 361, 331, 362,
332, 363, 333, 364, 334, 365, 335, 366, 336, 367, 337, 368, 338, 369,
339, 370, 340, 371, 341, 372, 342, 373, 343, 374, 344, 375, 345, 376,
346, 377, 347, 378, 348, 379, 349, 380, 350, 381, 351, 382, 352, 352,
353, 384, 354, 385, 355, 386, 356, 387, 357, 388, 358, 389, 359, 390,
360, 391, 361, 392, 362, 393, 363, 394, 364, 395, 365, 396, 366, 397,
367, 398, 368, 399, 369, 400, 370, 401, 371, 402, 372, 403, 373, 404,
374, 405, 375, 406, 376, 407, 377, 408, 378, 409, 379, 410, 380, 411,
381, 412, 382, 413, 383, 414, 384, 384, 385, 416, 386, 417, 387, 418,
388, 419, 389, 420, 390, 421, 391, 422, 392, 423, 393, 424, 394, 425,
395, 426, 396, 427, 397, 428, 398, 429, 399, 430, 400, 431, 401, 432,
402, 433, 403, 434, 404, 435, 405, 436, 406, 437, 407, 438, 408, 439,
409, 440, 410, 441, 411, 442, 412, 443, 413, 444, 414, 445, 415, 446,
416, 416, 417, 448, 418, 449, 419, 450, 420, 451, 421, 452, 422, 453,
423, 454, 424, 455, 425, 456, 426, 457, 427, 458, 428, 459, 429, 460,
430, 461, 431, 462, 432, 463, 433, 464, 434, 465, 435, 466, 436, 467,
437, 468, 438, 469, 439, 470, 440, 471, 441, 472, 442, 473, 443, 474,
444, 475, 445, 476, 446, 477, 447, 478, 448, 448, 449, 480, 450, 481,
451, 482, 452, 483, 453, 484, 454, 485, 455, 486, 456, 487, 457, 488,
458, 489, 459, 490, 460, 491, 461, 492, 462, 493, 463, 494, 464, 495,
465, 496, 466, 497, 467, 498, 468, 499, 469, 500, 470, 501, 471, 502,
472, 503, 473, 504, 474, 505, 475, 506, 476, 507, 477, 508, 478, 509,
479, 510, 480, 480, 481, 512, 482, 513, 483, 514, 484, 515, 485, 516,
486, 517, 487, 518, 488, 519, 489, 520, 490, 521, 491, 522, 492, 523,
493, 524, 494, 525, 495, 526, 496, 527, 497, 528, 498, 529, 499, 530,
500, 531, 501, 532, 502, 533, 503, 534, 504, 535, 505, 536, 506, 537,
507, 538, 508, 539, 509, 540, 510, 541, 511, 542, 512, 512, 513, 544,
514, 545, 515, 546, 516, 547, 517, 548, 518, 549, 519, 550, 520, 551,
521, 552, 522, 553, 523, 554, 524, 555, 525, 556, 526, 557, 527, 558,
528, 559, 529, 560, 530, 561, 531, 562, 532, 563, 533, 564, 534, 565,
535, 566, 536, 567, 537, 568, 538, 569, 539, 570, 540, 571, 541, 572,
542, 573, 543, 574, 544, 544, 545, 576, 546, 577, 547, 578, 548, 579,
549, 580, 550, 581, 551, 582, 552, 583, 553, 584, 554, 585, 555, 586,
556, 587, 557, 588, 558, 589, 559, 590, 560, 591, 561, 592, 562, 593,
563, 594, 564, 595, 565, 596, 566, 597, 567, 598, 568, 599, 569, 600,
570, 601, 571, 602, 572, 603, 573, 604, 574, 605, 575, 606, 576, 576,
577, 608, 578, 609, 579, 610, 580, 611, 581, 612, 582, 613, 583, 614,
584, 615, 585, 616, 586, 617, 587, 618, 588, 619, 589, 620, 590, 621,
591, 622, 592, 623, 593, 624, 594, 625, 595, 626, 596, 627, 597, 628,
598, 629, 599, 630, 600, 631, 601, 632, 602, 633, 603, 634, 604, 635,
605, 636, 606, 637, 607, 638, 608, 608, 609, 640, 610, 641, 611, 642,
612, 643, 613, 644, 614, 645, 615, 646, 616, 647, 617, 648, 618, 649,
619, 650, 620, 651, 621, 652, 622, 653, 623, 654, 624, 655, 625, 656,
626, 657, 627, 658, 628, 659, 629, 660, 630, 661, 631, 662, 632, 663,
633, 664, 634, 665, 635, 666, 636, 667, 637, 668, 638, 669, 639, 670,
640, 640, 641, 672, 642, 673, 643, 674, 644, 675, 645, 676, 646, 677,
647, 678, 648, 679, 649, 680, 650, 681, 651, 682, 652, 683, 653, 684,
654, 685, 655, 686, 656, 687, 657, 688, 658, 689, 659, 690, 660, 691,
661, 692, 662, 693, 663, 694, 664, 695, 665, 696, 666, 697, 667, 698,
668, 699, 669, 700, 670, 701, 671, 702, 672, 672, 673, 704, 674, 705,
675, 706, 676, 707, 677, 708, 678, 709, 679, 710, 680, 711, 681, 712,
682, 713, 683, 714, 684, 715, 685, 716, 686, 717, 687, 718, 688, 719,
689, 720, 690, 721, 691, 722, 692, 723, 693, 724, 694, 725, 695, 726,
696, 727, 697, 728, 698, 729, 699, 730, 700, 731, 701, 732, 702, 733,
703, 734, 704, 704, 705, 736, 706, 737, 707, 738, 708, 739, 709, 740,
710, 741, 711, 742, 712, 743, 713, 744, 714, 745, 715, 746, 716, 747,
717, 748, 718, 749, 719, 750, 720, 751, 721, 752, 722, 753, 723, 754,
724, 755, 725, 756, 726, 757, 727, 758, 728, 759, 729, 760, 730, 761,
731, 762, 732, 763, 733, 764, 734, 765, 735, 766, 736, 736, 737, 768,
738, 769, 739, 770, 740, 771, 741, 772, 742, 773, 743, 774, 744, 775,
745, 776, 746, 777, 747, 778, 748, 779, 749, 780, 750, 781, 751, 782,
752, 783, 753, 784, 754, 785, 755, 786, 756, 787, 757, 788, 758, 789,
759, 790, 760, 791, 761, 792, 762, 793, 763, 794, 764, 795, 765, 796,
766, 797, 767, 798, 768, 768, 769, 800, 770, 801, 771, 802, 772, 803,
773, 804, 774, 805, 775, 806, 776, 807, 777, 808, 778, 809, 779, 810,
780, 811, 781, 812, 782, 813, 783, 814, 784, 815, 785, 816, 786, 817,
787, 818, 788, 819, 789, 820, 790, 821, 791, 822, 792, 823, 793, 824,
794, 825, 795, 826, 796, 827, 797, 828, 798, 829, 799, 830, 800, 800,
801, 832, 802, 833, 803, 834, 804, 835, 805, 836, 806, 837, 807, 838,
808, 839, 809, 840, 810, 841, 811, 842, 812, 843, 813, 844, 814, 845,
815, 846, 816, 847, 817, 848, 818, 849, 819, 850, 820, 851, 821, 852,
822, 853, 823, 854, 824, 855, 825, 856, 826, 857, 827, 858, 828, 859,
829, 860, 830, 861, 831, 862, 832, 832, 833, 864, 834, 865, 835, 866,
836, 867, 837, 868, 838, 869, 839, 870, 840, 871, 841, 872, 842, 873,
843, 874, 844, 875, 845, 876, 846, 877, 847, 878, 848, 879, 849, 880,
850, 881, 851, 882, 852, 883, 853, 884, 854, 885, 855, 886, 856, 887,
857, 888, 858, 889, 859, 890, 860, 891, 861, 892, 862, 893, 863, 894,
864, 864, 865, 896, 866, 897, 867, 898, 868, 899, 869, 900, 870, 901,
871, 902, 872, 903, 873, 904, 874, 905, 875, 906, 876, 907, 877, 908,
878, 909, 879, 910, 880, 911, 881, 912, 882, 913, 883, 914, 884, 915,
885, 916, 886, 917, 887, 918, 888, 919, 889, 920, 890, 921, 891, 922,
892, 923, 893, 924, 894, 925, 895, 926, 896, 896, 897, 928, 898, 929,
899, 930, 900, 931, 901, 932, 902, 933, 903, 934, 904, 935, 905, 936,
906, 937, 907, 938, 908, 939, 909, 940, 910, 941, 911, 942, 912, 943,
913, 944, 914, 945, 915, 946, 916, 947, 917, 948, 918, 949, 919, 950,
920, 951, 921, 952, 922, 953, 923, 954, 924, 955, 925, 956, 926, 957,
927, 958, 928, 928, 929, 960, 930, 961, 931, 962, 932, 963, 933, 964,
934, 965, 935, 966, 936, 967, 937, 968, 938, 969, 939, 970, 940, 971,
941, 972, 942, 973, 943, 974, 944, 975, 945, 976, 946, 977, 947, 978,
948, 979, 949, 980, 950, 981, 951, 982, 952, 983, 953, 984, 954, 985,
955, 986, 956, 987, 957, 988, 958, 989, 959, 990, 960, 960, 961, 992,
962, 993, 963, 994, 964, 995, 965, 996, 966, 997, 967, 998, 968, 999,
969, 1000, 970, 1001, 971, 1002, 972, 1003, 973, 1004, 974, 1005, 975, 1006,
976, 1007, 977, 1008, 978, 1009, 979, 1010, 980, 1011, 981, 1012, 982, 1013,
983, 1014, 984, 1015, 985, 1016, 986, 1017, 987, 1018, 988, 1019, 989, 1020,
990, 1021, 991, 1022, 0, 0,
};
DECLARE_ALIGNED(16, static const int16_t,
default_scan_32x32_neighbors[1025 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 32, 0, 32, 32, 1, 32, 33, 1, 64, 64,
33, 64, 2, 33, 96, 96, 34, 2, 65, 96, 34, 65, 128, 128,
97, 128, 3, 34, 66, 97, 35, 3, 35, 66, 98, 129, 129, 160,
160, 161, 4, 35, 67, 98, 192, 192, 36, 4, 130, 161, 161, 192,
36, 67, 99, 130, 5, 36, 68, 99, 193, 224, 162, 193, 224, 225,
131, 162, 37, 68, 100, 131, 37, 5, 194, 225, 225, 256, 256, 257,
163, 194, 69, 100, 132, 163, 6, 37, 226, 257, 38, 6, 195, 226,
257, 288, 101, 132, 288, 289, 38, 69, 164, 195, 133, 164, 258, 289,
227, 258, 196, 227, 7, 38, 289, 320, 70, 101, 320, 321, 39, 7,
165, 196, 39, 70, 102, 133, 290, 321, 259, 290, 228, 259, 321, 352,
352, 353, 197, 228, 134, 165, 71, 102, 8, 39, 322, 353, 291, 322,
260, 291, 103, 134, 353, 384, 166, 197, 229, 260, 40, 71, 40, 8,
384, 385, 135, 166, 354, 385, 323, 354, 198, 229, 292, 323, 72, 103,
261, 292, 9, 40, 385, 416, 167, 198, 104, 135, 230, 261, 355, 386,
416, 417, 293, 324, 324, 355, 41, 9, 41, 72, 386, 417, 199, 230,
136, 167, 417, 448, 262, 293, 356, 387, 73, 104, 387, 418, 231, 262,
10, 41, 168, 199, 325, 356, 418, 449, 105, 136, 448, 449, 42, 73,
294, 325, 200, 231, 42, 10, 357, 388, 137, 168, 263, 294, 388, 419,
74, 105, 419, 450, 449, 480, 326, 357, 232, 263, 295, 326, 169, 200,
11, 42, 106, 137, 480, 481, 450, 481, 358, 389, 264, 295, 201, 232,
138, 169, 389, 420, 43, 74, 420, 451, 327, 358, 43, 11, 481, 512,
233, 264, 451, 482, 296, 327, 75, 106, 170, 201, 482, 513, 512, 513,
390, 421, 359, 390, 421, 452, 107, 138, 12, 43, 202, 233, 452, 483,
265, 296, 328, 359, 139, 170, 44, 75, 483, 514, 513, 544, 234, 265,
297, 328, 422, 453, 44, 12, 391, 422, 171, 202, 76, 107, 514, 545,
453, 484, 544, 545, 266, 297, 203, 234, 108, 139, 329, 360, 298, 329,
140, 171, 515, 546, 13, 44, 423, 454, 235, 266, 545, 576, 454, 485,
45, 76, 172, 203, 330, 361, 576, 577, 45, 13, 267, 298, 546, 577,
77, 108, 204, 235, 455, 486, 577, 608, 299, 330, 109, 140, 547, 578,
14, 45, 46, 14, 141, 172, 578, 609, 331, 362, 46, 77, 173, 204,
15, 15, 78, 109, 205, 236, 579, 610, 110, 141, 15, 46, 142, 173,
47, 78, 174, 205, 16, 16, 79, 110, 206, 237, 16, 47, 111, 142,
48, 79, 143, 174, 80, 111, 175, 206, 17, 48, 49, 17, 207, 238,
49, 80, 81, 112, 18, 18, 18, 49, 50, 81, 82, 113, 19, 50,
51, 82, 83, 114, 608, 609, 484, 515, 360, 391, 236, 267, 112, 143,
51, 19, 640, 640, 609, 640, 516, 547, 485, 516, 392, 423, 361, 392,
268, 299, 237, 268, 144, 175, 113, 144, 20, 51, 52, 20, 672, 672,
641, 672, 610, 641, 548, 579, 517, 548, 486, 517, 424, 455, 393, 424,
362, 393, 300, 331, 269, 300, 238, 269, 176, 207, 145, 176, 114, 145,
52, 83, 21, 52, 53, 21, 704, 704, 673, 704, 642, 673, 611, 642,
580, 611, 549, 580, 518, 549, 487, 518, 456, 487, 425, 456, 394, 425,
363, 394, 332, 363, 301, 332, 270, 301, 239, 270, 208, 239, 177, 208,
146, 177, 115, 146, 84, 115, 53, 84, 22, 53, 54, 22, 705, 736,
674, 705, 643, 674, 581, 612, 550, 581, 519, 550, 457, 488, 426, 457,
395, 426, 333, 364, 302, 333, 271, 302, 209, 240, 178, 209, 147, 178,
85, 116, 54, 85, 23, 54, 706, 737, 675, 706, 582, 613, 551, 582,
458, 489, 427, 458, 334, 365, 303, 334, 210, 241, 179, 210, 86, 117,
55, 86, 707, 738, 583, 614, 459, 490, 335, 366, 211, 242, 87, 118,
736, 737, 612, 643, 488, 519, 364, 395, 240, 271, 116, 147, 55, 23,
768, 768, 737, 768, 644, 675, 613, 644, 520, 551, 489, 520, 396, 427,
365, 396, 272, 303, 241, 272, 148, 179, 117, 148, 24, 55, 56, 24,
800, 800, 769, 800, 738, 769, 676, 707, 645, 676, 614, 645, 552, 583,
521, 552, 490, 521, 428, 459, 397, 428, 366, 397, 304, 335, 273, 304,
242, 273, 180, 211, 149, 180, 118, 149, 56, 87, 25, 56, 57, 25,
832, 832, 801, 832, 770, 801, 739, 770, 708, 739, 677, 708, 646, 677,
615, 646, 584, 615, 553, 584, 522, 553, 491, 522, 460, 491, 429, 460,
398, 429, 367, 398, 336, 367, 305, 336, 274, 305, 243, 274, 212, 243,
181, 212, 150, 181, 119, 150, 88, 119, 57, 88, 26, 57, 58, 26,
833, 864, 802, 833, 771, 802, 709, 740, 678, 709, 647, 678, 585, 616,
554, 585, 523, 554, 461, 492, 430, 461, 399, 430, 337, 368, 306, 337,
275, 306, 213, 244, 182, 213, 151, 182, 89, 120, 58, 89, 27, 58,
834, 865, 803, 834, 710, 741, 679, 710, 586, 617, 555, 586, 462, 493,
431, 462, 338, 369, 307, 338, 214, 245, 183, 214, 90, 121, 59, 90,
835, 866, 711, 742, 587, 618, 463, 494, 339, 370, 215, 246, 91, 122,
864, 865, 740, 771, 616, 647, 492, 523, 368, 399, 244, 275, 120, 151,
59, 27, 896, 896, 865, 896, 772, 803, 741, 772, 648, 679, 617, 648,
524, 555, 493, 524, 400, 431, 369, 400, 276, 307, 245, 276, 152, 183,
121, 152, 28, 59, 60, 28, 928, 928, 897, 928, 866, 897, 804, 835,
773, 804, 742, 773, 680, 711, 649, 680, 618, 649, 556, 587, 525, 556,
494, 525, 432, 463, 401, 432, 370, 401, 308, 339, 277, 308, 246, 277,
184, 215, 153, 184, 122, 153, 60, 91, 29, 60, 61, 29, 960, 960,
929, 960, 898, 929, 867, 898, 836, 867, 805, 836, 774, 805, 743, 774,
712, 743, 681, 712, 650, 681, 619, 650, 588, 619, 557, 588, 526, 557,
495, 526, 464, 495, 433, 464, 402, 433, 371, 402, 340, 371, 309, 340,
278, 309, 247, 278, 216, 247, 185, 216, 154, 185, 123, 154, 92, 123,
61, 92, 30, 61, 62, 30, 961, 992, 930, 961, 899, 930, 837, 868,
806, 837, 775, 806, 713, 744, 682, 713, 651, 682, 589, 620, 558, 589,
527, 558, 465, 496, 434, 465, 403, 434, 341, 372, 310, 341, 279, 310,
217, 248, 186, 217, 155, 186, 93, 124, 62, 93, 31, 62, 962, 993,
931, 962, 838, 869, 807, 838, 714, 745, 683, 714, 590, 621, 559, 590,
466, 497, 435, 466, 342, 373, 311, 342, 218, 249, 187, 218, 94, 125,
63, 94, 963, 994, 839, 870, 715, 746, 591, 622, 467, 498, 343, 374,
219, 250, 95, 126, 868, 899, 744, 775, 620, 651, 496, 527, 372, 403,
248, 279, 124, 155, 900, 931, 869, 900, 776, 807, 745, 776, 652, 683,
621, 652, 528, 559, 497, 528, 404, 435, 373, 404, 280, 311, 249, 280,
156, 187, 125, 156, 932, 963, 901, 932, 870, 901, 808, 839, 777, 808,
746, 777, 684, 715, 653, 684, 622, 653, 560, 591, 529, 560, 498, 529,
436, 467, 405, 436, 374, 405, 312, 343, 281, 312, 250, 281, 188, 219,
157, 188, 126, 157, 964, 995, 933, 964, 902, 933, 871, 902, 840, 871,
809, 840, 778, 809, 747, 778, 716, 747, 685, 716, 654, 685, 623, 654,
592, 623, 561, 592, 530, 561, 499, 530, 468, 499, 437, 468, 406, 437,
375, 406, 344, 375, 313, 344, 282, 313, 251, 282, 220, 251, 189, 220,
158, 189, 127, 158, 965, 996, 934, 965, 903, 934, 841, 872, 810, 841,
779, 810, 717, 748, 686, 717, 655, 686, 593, 624, 562, 593, 531, 562,
469, 500, 438, 469, 407, 438, 345, 376, 314, 345, 283, 314, 221, 252,
190, 221, 159, 190, 966, 997, 935, 966, 842, 873, 811, 842, 718, 749,
687, 718, 594, 625, 563, 594, 470, 501, 439, 470, 346, 377, 315, 346,
222, 253, 191, 222, 967, 998, 843, 874, 719, 750, 595, 626, 471, 502,
347, 378, 223, 254, 872, 903, 748, 779, 624, 655, 500, 531, 376, 407,
252, 283, 904, 935, 873, 904, 780, 811, 749, 780, 656, 687, 625, 656,
532, 563, 501, 532, 408, 439, 377, 408, 284, 315, 253, 284, 936, 967,
905, 936, 874, 905, 812, 843, 781, 812, 750, 781, 688, 719, 657, 688,
626, 657, 564, 595, 533, 564, 502, 533, 440, 471, 409, 440, 378, 409,
316, 347, 285, 316, 254, 285, 968, 999, 937, 968, 906, 937, 875, 906,
844, 875, 813, 844, 782, 813, 751, 782, 720, 751, 689, 720, 658, 689,
627, 658, 596, 627, 565, 596, 534, 565, 503, 534, 472, 503, 441, 472,
410, 441, 379, 410, 348, 379, 317, 348, 286, 317, 255, 286, 969, 1000,
938, 969, 907, 938, 845, 876, 814, 845, 783, 814, 721, 752, 690, 721,
659, 690, 597, 628, 566, 597, 535, 566, 473, 504, 442, 473, 411, 442,
349, 380, 318, 349, 287, 318, 970, 1001, 939, 970, 846, 877, 815, 846,
722, 753, 691, 722, 598, 629, 567, 598, 474, 505, 443, 474, 350, 381,
319, 350, 971, 1002, 847, 878, 723, 754, 599, 630, 475, 506, 351, 382,
876, 907, 752, 783, 628, 659, 504, 535, 380, 411, 908, 939, 877, 908,
784, 815, 753, 784, 660, 691, 629, 660, 536, 567, 505, 536, 412, 443,
381, 412, 940, 971, 909, 940, 878, 909, 816, 847, 785, 816, 754, 785,
692, 723, 661, 692, 630, 661, 568, 599, 537, 568, 506, 537, 444, 475,
413, 444, 382, 413, 972, 1003, 941, 972, 910, 941, 879, 910, 848, 879,
817, 848, 786, 817, 755, 786, 724, 755, 693, 724, 662, 693, 631, 662,
600, 631, 569, 600, 538, 569, 507, 538, 476, 507, 445, 476, 414, 445,
383, 414, 973, 1004, 942, 973, 911, 942, 849, 880, 818, 849, 787, 818,
725, 756, 694, 725, 663, 694, 601, 632, 570, 601, 539, 570, 477, 508,
446, 477, 415, 446, 974, 1005, 943, 974, 850, 881, 819, 850, 726, 757,
695, 726, 602, 633, 571, 602, 478, 509, 447, 478, 975, 1006, 851, 882,
727, 758, 603, 634, 479, 510, 880, 911, 756, 787, 632, 663, 508, 539,
912, 943, 881, 912, 788, 819, 757, 788, 664, 695, 633, 664, 540, 571,
509, 540, 944, 975, 913, 944, 882, 913, 820, 851, 789, 820, 758, 789,
696, 727, 665, 696, 634, 665, 572, 603, 541, 572, 510, 541, 976, 1007,
945, 976, 914, 945, 883, 914, 852, 883, 821, 852, 790, 821, 759, 790,
728, 759, 697, 728, 666, 697, 635, 666, 604, 635, 573, 604, 542, 573,
511, 542, 977, 1008, 946, 977, 915, 946, 853, 884, 822, 853, 791, 822,
729, 760, 698, 729, 667, 698, 605, 636, 574, 605, 543, 574, 978, 1009,
947, 978, 854, 885, 823, 854, 730, 761, 699, 730, 606, 637, 575, 606,
979, 1010, 855, 886, 731, 762, 607, 638, 884, 915, 760, 791, 636, 667,
916, 947, 885, 916, 792, 823, 761, 792, 668, 699, 637, 668, 948, 979,
917, 948, 886, 917, 824, 855, 793, 824, 762, 793, 700, 731, 669, 700,
638, 669, 980, 1011, 949, 980, 918, 949, 887, 918, 856, 887, 825, 856,
794, 825, 763, 794, 732, 763, 701, 732, 670, 701, 639, 670, 981, 1012,
950, 981, 919, 950, 857, 888, 826, 857, 795, 826, 733, 764, 702, 733,
671, 702, 982, 1013, 951, 982, 858, 889, 827, 858, 734, 765, 703, 734,
983, 1014, 859, 890, 735, 766, 888, 919, 764, 795, 920, 951, 889, 920,
796, 827, 765, 796, 952, 983, 921, 952, 890, 921, 828, 859, 797, 828,
766, 797, 984, 1015, 953, 984, 922, 953, 891, 922, 860, 891, 829, 860,
798, 829, 767, 798, 985, 1016, 954, 985, 923, 954, 861, 892, 830, 861,
799, 830, 986, 1017, 955, 986, 862, 893, 831, 862, 987, 1018, 863, 894,
892, 923, 924, 955, 893, 924, 956, 987, 925, 956, 894, 925, 988, 1019,
957, 988, 926, 957, 895, 926, 989, 1020, 958, 989, 927, 958, 990, 1021,
959, 990, 991, 1022, 0, 0,
};
DECLARE_ALIGNED(16, static const int16_t,
v2_scan_32x32_neighbors[1025 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 0, 0, 1, 32, 1, 1, 32, 32, 2, 33,
33, 64, 34, 65, 2, 2, 64, 64, 3, 34, 65, 96, 35, 66,
66, 97, 3, 3, 96, 96, 4, 35, 97, 128, 67, 98, 36, 67,
98, 129, 4, 4, 68, 99, 99, 130, 128, 128, 5, 36, 129, 160,
37, 68, 130, 161, 100, 131, 69, 100, 131, 162, 5, 5, 160, 160,
6, 37, 161, 192, 38, 69, 162, 193, 101, 132, 132, 163, 70, 101,
163, 194, 6, 6, 192, 192, 7, 38, 133, 164, 193, 224, 102, 133,
164, 195, 39, 70, 194, 225, 71, 102, 195, 226, 134, 165, 165, 196,
7, 7, 224, 224, 8, 39, 103, 134, 196, 227, 225, 256, 40, 71,
226, 257, 166, 197, 72, 103, 227, 258, 135, 166, 197, 228, 104, 135,
228, 259, 8, 8, 256, 256, 9, 40, 257, 288, 41, 72, 167, 198,
198, 229, 258, 289, 136, 167, 229, 260, 73, 104, 259, 290, 105, 136,
260, 291, 199, 230, 9, 9, 168, 199, 230, 261, 288, 288, 10, 41,
289, 320, 42, 73, 290, 321, 137, 168, 261, 292, 74, 105, 291, 322,
200, 231, 231, 262, 106, 137, 292, 323, 169, 200, 262, 293, 10, 10,
320, 320, 11, 42, 321, 352, 43, 74, 138, 169, 293, 324, 322, 353,
232, 263, 75, 106, 201, 232, 263, 294, 323, 354, 170, 201, 294, 325,
107, 138, 324, 355, 11, 11, 352, 352, 12, 43, 233, 264, 264, 295,
353, 384, 139, 170, 325, 356, 44, 75, 354, 385, 202, 233, 295, 326,
76, 107, 355, 386, 171, 202, 326, 357, 108, 139, 356, 387, 265, 296,
234, 265, 296, 327, 12, 12, 140, 171, 357, 388, 384, 384, 13, 44,
203, 234, 327, 358, 385, 416, 45, 76, 386, 417, 77, 108, 387, 418,
172, 203, 358, 389, 266, 297, 297, 328, 109, 140, 235, 266, 328, 359,
388, 419, 204, 235, 359, 390, 141, 172, 389, 420, 13, 13, 416, 416,
14, 45, 417, 448, 46, 77, 298, 329, 418, 449, 267, 298, 329, 360,
78, 109, 173, 204, 390, 421, 419, 450, 236, 267, 360, 391, 110, 141,
420, 451, 205, 236, 391, 422, 142, 173, 299, 330, 330, 361, 421, 452,
14, 14, 268, 299, 361, 392, 448, 448, 15, 46, 449, 480, 47, 78,
450, 481, 174, 205, 422, 453, 237, 268, 392, 423, 79, 110, 451, 482,
111, 142, 452, 483, 331, 362, 300, 331, 362, 393, 206, 237, 423, 454,
143, 174, 269, 300, 393, 424, 453, 484, 480, 480, 481, 512, 238, 269,
424, 455, 482, 513, 175, 206, 454, 485, 332, 363, 363, 394, 483, 514,
301, 332, 394, 425, 484, 515, 207, 238, 455, 486, 270, 301, 425, 456,
485, 516, 364, 395, 239, 270, 456, 487, 512, 512, 333, 364, 395, 426,
513, 544, 486, 517, 514, 545, 302, 333, 426, 457, 515, 546, 487, 518,
516, 547, 271, 302, 457, 488, 365, 396, 396, 427, 517, 548, 334, 365,
427, 458, 488, 519, 544, 544, 303, 334, 458, 489, 518, 549, 545, 576,
546, 577, 547, 578, 489, 520, 397, 428, 519, 550, 366, 397, 428, 459,
548, 579, 335, 366, 459, 490, 549, 580, 520, 551, 490, 521, 550, 581,
576, 576, 577, 608, 398, 429, 429, 460, 578, 609, 367, 398, 460, 491,
521, 552, 579, 610, 551, 582, 491, 522, 580, 611, 581, 612, 552, 583,
522, 553, 430, 461, 399, 430, 461, 492, 582, 613, 492, 523, 608, 608,
609, 640, 610, 641, 553, 584, 611, 642, 523, 554, 583, 614, 612, 643,
431, 462, 462, 493, 554, 585, 493, 524, 584, 615, 613, 644, 524, 555,
614, 645, 640, 640, 585, 616, 641, 672, 555, 586, 642, 673, 615, 646,
463, 494, 643, 674, 494, 525, 644, 675, 525, 556, 586, 617, 616, 647,
645, 676, 556, 587, 646, 677, 495, 526, 617, 648, 587, 618, 672, 672,
526, 557, 673, 704, 674, 705, 647, 678, 557, 588, 675, 706, 618, 649,
676, 707, 588, 619, 648, 679, 677, 708, 527, 558, 558, 589, 678, 709,
619, 650, 649, 680, 704, 704, 589, 620, 705, 736, 679, 710, 706, 737,
707, 738, 650, 681, 620, 651, 708, 739, 680, 711, 559, 590, 709, 740,
590, 621, 651, 682, 681, 712, 710, 741, 621, 652, 736, 736, 737, 768,
711, 742, 738, 769, 682, 713, 652, 683, 739, 770, 591, 622, 740, 771,
712, 743, 622, 653, 741, 772, 683, 714, 653, 684, 713, 744, 742, 773,
623, 654, 743, 774, 768, 768, 769, 800, 684, 715, 714, 745, 770, 801,
771, 802, 654, 685, 744, 775, 772, 803, 715, 746, 773, 804, 685, 716,
745, 776, 774, 805, 655, 686, 716, 747, 775, 806, 746, 777, 800, 800,
801, 832, 686, 717, 802, 833, 803, 834, 776, 807, 804, 835, 747, 778,
717, 748, 805, 836, 777, 808, 687, 718, 806, 837, 748, 779, 718, 749,
778, 809, 807, 838, 832, 832, 833, 864, 834, 865, 835, 866, 808, 839,
749, 780, 836, 867, 779, 810, 719, 750, 837, 868, 809, 840, 838, 869,
780, 811, 750, 781, 810, 841, 839, 870, 864, 864, 865, 896, 866, 897,
840, 871, 867, 898, 781, 812, 811, 842, 868, 899, 751, 782, 869, 900,
841, 872, 812, 843, 870, 901, 782, 813, 842, 873, 871, 902, 896, 896,
897, 928, 813, 844, 898, 929, 872, 903, 783, 814, 843, 874, 899, 930,
900, 931, 873, 904, 901, 932, 814, 845, 844, 875, 902, 933, 874, 905,
903, 934, 845, 876, 928, 928, 815, 846, 929, 960, 930, 961, 875, 906,
904, 935, 931, 962, 932, 963, 905, 936, 846, 877, 933, 964, 876, 907,
934, 965, 906, 937, 935, 966, 877, 908, 847, 878, 960, 960, 907, 938,
961, 992, 936, 967, 962, 993, 963, 994, 964, 995, 878, 909, 937, 968,
908, 939, 965, 996, 966, 997, 938, 969, 879, 910, 909, 940, 967, 998,
939, 970, 968, 999, 910, 941, 969, 1000, 940, 971, 970, 1001, 911, 942,
941, 972, 971, 1002, 942, 973, 972, 1003, 943, 974, 973, 1004, 974, 1005,
975, 1006, 15, 15, 16, 47, 48, 79, 80, 111, 112, 143, 144, 175,
16, 16, 17, 48, 176, 207, 49, 80, 81, 112, 113, 144, 208, 239,
145, 176, 240, 271, 17, 17, 18, 49, 177, 208, 50, 81, 82, 113,
272, 303, 209, 240, 114, 145, 146, 177, 241, 272, 304, 335, 178, 209,
18, 18, 19, 50, 51, 82, 83, 114, 273, 304, 210, 241, 115, 146,
336, 367, 147, 178, 242, 273, 305, 336, 179, 210, 19, 19, 368, 399,
20, 51, 52, 83, 274, 305, 84, 115, 211, 242, 337, 368, 116, 147,
306, 337, 148, 179, 243, 274, 400, 431, 369, 400, 180, 211, 20, 20,
21, 52, 275, 306, 53, 84, 338, 369, 212, 243, 85, 116, 432, 463,
117, 148, 401, 432, 307, 338, 244, 275, 149, 180, 370, 401, 181, 212,
276, 307, 464, 495, 339, 370, 21, 21, 22, 53, 433, 464, 54, 85,
213, 244, 86, 117, 402, 433, 118, 149, 308, 339, 245, 276, 371, 402,
150, 181, 496, 527, 465, 496, 182, 213, 434, 465, 340, 371, 277, 308,
22, 22, 23, 54, 403, 434, 55, 86, 214, 245, 87, 118, 309, 340,
372, 403, 119, 150, 497, 528, 528, 559, 246, 277, 466, 497, 151, 182,
435, 466, 341, 372, 183, 214, 278, 309, 404, 435, 23, 23, 24, 55,
215, 246, 529, 560, 56, 87, 498, 529, 560, 591, 310, 341, 88, 119,
373, 404, 467, 498, 120, 151, 247, 278, 436, 467, 152, 183, 342, 373,
279, 310, 405, 436, 184, 215, 530, 561, 561, 592, 499, 530, 592, 623,
24, 24, 216, 247, 468, 499, 25, 56, 374, 405, 57, 88, 311, 342,
89, 120, 437, 468, 248, 279, 121, 152, 562, 593, 153, 184, 343, 374,
531, 562, 593, 624, 406, 437, 500, 531, 624, 655, 280, 311, 185, 216,
469, 500, 375, 406, 217, 248, 25, 25, 312, 343, 26, 57, 58, 89,
438, 469, 90, 121, 563, 594, 594, 625, 249, 280, 532, 563, 625, 656,
122, 153, 344, 375, 501, 532, 656, 687, 407, 438, 154, 185, 281, 312,
470, 501, 186, 217, 376, 407, 595, 626, 564, 595, 626, 657, 218, 249,
313, 344, 439, 470, 26, 26, 27, 58, 533, 564, 657, 688, 59, 90,
91, 122, 250, 281, 502, 533, 688, 719, 123, 154, 408, 439, 345, 376,
155, 186, 471, 502, 282, 313, 596, 627, 627, 658, 187, 218, 565, 596,
658, 689, 377, 408, 440, 471, 534, 565, 689, 720, 314, 345, 219, 250,
27, 27, 28, 59, 503, 534, 720, 751, 60, 91, 92, 123, 251, 282,
409, 440, 346, 377, 124, 155, 628, 659, 472, 503, 597, 628, 659, 690,
566, 597, 690, 721, 156, 187, 283, 314, 535, 566, 721, 752, 188, 219,
378, 409, 441, 472, 315, 346, 504, 535, 752, 783, 220, 251, 28, 28,
629, 660, 660, 691, 29, 60, 61, 92, 410, 441, 598, 629, 691, 722,
252, 283, 93, 124, 347, 378, 473, 504, 567, 598, 722, 753, 125, 156,
284, 315, 536, 567, 753, 784, 157, 188, 442, 473, 379, 410, 189, 220,
505, 536, 784, 815, 661, 692, 316, 347, 630, 661, 692, 723, 221, 252,
599, 630, 723, 754, 411, 442, 29, 29, 568, 599, 754, 785, 30, 61,
474, 505, 62, 93, 253, 284, 348, 379, 94, 125, 537, 568, 785, 816,
126, 157, 285, 316, 158, 189, 443, 474, 662, 693, 693, 724, 380, 411,
631, 662, 724, 755, 506, 537, 816, 847, 190, 221, 600, 631, 755, 786,
317, 348, 222, 253, 569, 600, 786, 817, 412, 443, 475, 506, 30, 30,
31, 62, 349, 380, 254, 285, 63, 94, 538, 569, 817, 848, 694, 725,
95, 126, 663, 694, 725, 756, 632, 663, 756, 787, 127, 158, 444, 475,
286, 317, 381, 412, 507, 538, 848, 879, 159, 190, 601, 632, 787, 818,
191, 222, 318, 349, 570, 601, 818, 849, 476, 507, 223, 254, 413, 444,
695, 726, 726, 757, 664, 695, 757, 788, 539, 570, 849, 880, 350, 381,
255, 286, 633, 664, 788, 819, 445, 476, 602, 633, 819, 850, 508, 539,
880, 911, 287, 318, 382, 413, 571, 602, 850, 881, 727, 758, 696, 727,
758, 789, 319, 350, 477, 508, 665, 696, 789, 820, 414, 445, 540, 571,
881, 912, 634, 665, 820, 851, 351, 382, 603, 634, 851, 882, 446, 477,
509, 540, 912, 943, 383, 414, 728, 759, 759, 790, 572, 603, 882, 913,
697, 728, 790, 821, 666, 697, 821, 852, 478, 509, 635, 666, 852, 883,
415, 446, 541, 572, 913, 944, 604, 635, 883, 914, 760, 791, 729, 760,
791, 822, 510, 541, 944, 975, 447, 478, 698, 729, 822, 853, 573, 604,
914, 945, 667, 698, 853, 884, 636, 667, 884, 915, 479, 510, 542, 573,
945, 976, 761, 792, 792, 823, 605, 636, 915, 946, 730, 761, 823, 854,
699, 730, 854, 885, 511, 542, 976, 1007, 574, 605, 946, 977, 668, 699,
885, 916, 637, 668, 916, 947, 543, 574, 793, 824, 977, 1008, 762, 793,
824, 855, 731, 762, 855, 886, 606, 637, 947, 978, 700, 731, 886, 917,
669, 700, 917, 948, 575, 606, 978, 1009, 638, 669, 948, 979, 794, 825,
825, 856, 763, 794, 856, 887, 732, 763, 887, 918, 607, 638, 979, 1010,
701, 732, 918, 949, 670, 701, 949, 980, 826, 857, 795, 826, 857, 888,
764, 795, 888, 919, 639, 670, 980, 1011, 733, 764, 919, 950, 702, 733,
950, 981, 671, 702, 981, 1012, 827, 858, 858, 889, 796, 827, 889, 920,
765, 796, 920, 951, 734, 765, 951, 982, 703, 734, 982, 1013, 859, 890,
828, 859, 890, 921, 797, 828, 921, 952, 766, 797, 952, 983, 735, 766,
983, 1014, 860, 891, 891, 922, 829, 860, 922, 953, 798, 829, 953, 984,
767, 798, 984, 1015, 892, 923, 861, 892, 923, 954, 830, 861, 954, 985,
799, 830, 985, 1016, 893, 924, 924, 955, 862, 893, 955, 986, 831, 862,
986, 1017, 925, 956, 894, 925, 956, 987, 863, 894, 987, 1018, 926, 957,
957, 988, 895, 926, 988, 1019, 958, 989, 927, 958, 989, 1020, 959, 990,
990, 1021, 991, 1022, 0, 0,
};
DECLARE_ALIGNED(16, static const int16_t,
h2_scan_32x32_neighbors[1025 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 0, 0, 1, 32, 1, 1, 32, 32, 2, 33,
33, 64, 34, 65, 2, 2, 64, 64, 3, 34, 65, 96, 35, 66,
66, 97, 3, 3, 96, 96, 4, 35, 97, 128, 67, 98, 36, 67,
98, 129, 4, 4, 68, 99, 99, 130, 128, 128, 5, 36, 129, 160,
37, 68, 130, 161, 100, 131, 69, 100, 131, 162, 5, 5, 160, 160,
6, 37, 161, 192, 38, 69, 162, 193, 101, 132, 132, 163, 70, 101,
163, 194, 6, 6, 192, 192, 7, 38, 133, 164, 193, 224, 102, 133,
164, 195, 39, 70, 194, 225, 71, 102, 195, 226, 134, 165, 165, 196,
7, 7, 224, 224, 8, 39, 103, 134, 196, 227, 225, 256, 40, 71,
226, 257, 166, 197, 72, 103, 227, 258, 135, 166, 197, 228, 104, 135,
228, 259, 8, 8, 256, 256, 9, 40, 257, 288, 41, 72, 167, 198,
198, 229, 258, 289, 136, 167, 229, 260, 73, 104, 259, 290, 105, 136,
260, 291, 199, 230, 9, 9, 168, 199, 230, 261, 288, 288, 10, 41,
289, 320, 42, 73, 290, 321, 137, 168, 261, 292, 74, 105, 291, 322,
200, 231, 231, 262, 106, 137, 292, 323, 169, 200, 262, 293, 10, 10,
320, 320, 11, 42, 321, 352, 43, 74, 138, 169, 293, 324, 322, 353,
232, 263, 75, 106, 201, 232, 263, 294, 323, 354, 170, 201, 294, 325,
107, 138, 324, 355, 11, 11, 352, 352, 12, 43, 233, 264, 264, 295,
353, 384, 139, 170, 325, 356, 44, 75, 354, 385, 202, 233, 295, 326,
76, 107, 355, 386, 171, 202, 326, 357, 108, 139, 356, 387, 265, 296,
234, 265, 296, 327, 12, 12, 140, 171, 357, 388, 384, 384, 13, 44,
203, 234, 327, 358, 385, 416, 45, 76, 386, 417, 77, 108, 387, 418,
172, 203, 358, 389, 266, 297, 297, 328, 109, 140, 235, 266, 328, 359,
388, 419, 204, 235, 359, 390, 141, 172, 389, 420, 13, 13, 416, 416,
14, 45, 417, 448, 46, 77, 298, 329, 418, 449, 267, 298, 329, 360,
78, 109, 173, 204, 390, 421, 419, 450, 236, 267, 360, 391, 110, 141,
420, 451, 205, 236, 391, 422, 142, 173, 299, 330, 330, 361, 421, 452,
14, 14, 268, 299, 361, 392, 448, 448, 15, 46, 449, 480, 47, 78,
450, 481, 174, 205, 422, 453, 237, 268, 392, 423, 79, 110, 451, 482,
111, 142, 452, 483, 331, 362, 300, 331, 362, 393, 206, 237, 423, 454,
143, 174, 269, 300, 393, 424, 453, 484, 15, 15, 16, 47, 48, 79,
238, 269, 424, 455, 175, 206, 454, 485, 80, 111, 332, 363, 363, 394,
301, 332, 394, 425, 112, 143, 207, 238, 455, 486, 270, 301, 425, 456,
144, 175, 364, 395, 16, 16, 239, 270, 456, 487, 17, 48, 333, 364,
395, 426, 176, 207, 49, 80, 302, 333, 426, 457, 81, 112, 113, 144,
208, 239, 271, 302, 457, 488, 365, 396, 396, 427, 145, 176, 334, 365,
427, 458, 240, 271, 17, 17, 18, 49, 177, 208, 303, 334, 458, 489,
50, 81, 82, 113, 272, 303, 209, 240, 397, 428, 114, 145, 366, 397,
428, 459, 335, 366, 459, 490, 146, 177, 241, 272, 304, 335, 178, 209,
18, 18, 19, 50, 51, 82, 398, 429, 429, 460, 367, 398, 460, 491,
83, 114, 273, 304, 210, 241, 115, 146, 336, 367, 147, 178, 242, 273,
305, 336, 430, 461, 399, 430, 461, 492, 179, 210, 19, 19, 368, 399,
20, 51, 52, 83, 274, 305, 84, 115, 211, 242, 337, 368, 116, 147,
431, 462, 462, 493, 306, 337, 148, 179, 243, 274, 400, 431, 369, 400,
180, 211, 20, 20, 21, 52, 275, 306, 53, 84, 338, 369, 212, 243,
85, 116, 463, 494, 432, 463, 117, 148, 401, 432, 307, 338, 244, 275,
149, 180, 370, 401, 181, 212, 276, 307, 464, 495, 339, 370, 21, 21,
22, 53, 433, 464, 54, 85, 213, 244, 86, 117, 402, 433, 118, 149,
308, 339, 245, 276, 371, 402, 150, 181, 465, 496, 182, 213, 434, 465,
340, 371, 277, 308, 22, 22, 23, 54, 403, 434, 55, 86, 214, 245,
87, 118, 309, 340, 372, 403, 119, 150, 246, 277, 466, 497, 151, 182,
435, 466, 341, 372, 183, 214, 278, 309, 404, 435, 23, 23, 24, 55,
215, 246, 56, 87, 310, 341, 88, 119, 373, 404, 467, 498, 120, 151,
247, 278, 436, 467, 152, 183, 342, 373, 279, 310, 405, 436, 184, 215,
24, 24, 216, 247, 468, 499, 25, 56, 374, 405, 57, 88, 311, 342,
89, 120, 437, 468, 248, 279, 121, 152, 153, 184, 343, 374, 406, 437,
280, 311, 185, 216, 469, 500, 375, 406, 217, 248, 25, 25, 312, 343,
26, 57, 58, 89, 438, 469, 90, 121, 249, 280, 122, 153, 344, 375,
407, 438, 154, 185, 281, 312, 470, 501, 186, 217, 376, 407, 218, 249,
313, 344, 439, 470, 26, 26, 27, 58, 59, 90, 91, 122, 250, 281,
123, 154, 408, 439, 345, 376, 155, 186, 471, 502, 282, 313, 187, 218,
377, 408, 440, 471, 314, 345, 219, 250, 27, 27, 28, 59, 60, 91,
92, 123, 251, 282, 409, 440, 346, 377, 124, 155, 472, 503, 156, 187,
283, 314, 188, 219, 378, 409, 441, 472, 315, 346, 220, 251, 28, 28,
29, 60, 61, 92, 410, 441, 252, 283, 93, 124, 347, 378, 473, 504,
125, 156, 284, 315, 157, 188, 442, 473, 379, 410, 189, 220, 316, 347,
221, 252, 411, 442, 29, 29, 30, 61, 474, 505, 62, 93, 253, 284,
348, 379, 94, 125, 126, 157, 285, 316, 158, 189, 443, 474, 380, 411,
190, 221, 317, 348, 222, 253, 412, 443, 475, 506, 30, 30, 31, 62,
349, 380, 254, 285, 63, 94, 95, 126, 127, 158, 444, 475, 286, 317,
381, 412, 159, 190, 191, 222, 318, 349, 476, 507, 223, 254, 413, 444,
350, 381, 255, 286, 445, 476, 287, 318, 382, 413, 319, 350, 477, 508,
414, 445, 351, 382, 446, 477, 383, 414, 478, 509, 415, 446, 447, 478,
479, 510, 480, 480, 481, 512, 482, 513, 483, 514, 484, 515, 485, 516,
512, 512, 513, 544, 486, 517, 514, 545, 515, 546, 487, 518, 516, 547,
517, 548, 488, 519, 544, 544, 518, 549, 545, 576, 546, 577, 547, 578,
489, 520, 519, 550, 548, 579, 549, 580, 520, 551, 490, 521, 550, 581,
576, 576, 577, 608, 578, 609, 521, 552, 579, 610, 551, 582, 491, 522,
580, 611, 581, 612, 552, 583, 522, 553, 582, 613, 492, 523, 608, 608,
609, 640, 610, 641, 553, 584, 611, 642, 523, 554, 583, 614, 612, 643,
554, 585, 493, 524, 584, 615, 613, 644, 524, 555, 614, 645, 640, 640,
585, 616, 641, 672, 555, 586, 642, 673, 615, 646, 643, 674, 494, 525,
644, 675, 525, 556, 586, 617, 616, 647, 645, 676, 556, 587, 646, 677,
495, 526, 617, 648, 587, 618, 672, 672, 526, 557, 673, 704, 674, 705,
647, 678, 557, 588, 675, 706, 618, 649, 676, 707, 588, 619, 648, 679,
677, 708, 496, 527, 527, 558, 558, 589, 678, 709, 619, 650, 649, 680,
704, 704, 589, 620, 705, 736, 679, 710, 706, 737, 707, 738, 650, 681,
620, 651, 497, 528, 528, 559, 708, 739, 680, 711, 559, 590, 709, 740,
590, 621, 651, 682, 681, 712, 710, 741, 621, 652, 736, 736, 737, 768,
529, 560, 711, 742, 498, 529, 560, 591, 738, 769, 682, 713, 652, 683,
739, 770, 591, 622, 740, 771, 712, 743, 622, 653, 741, 772, 683, 714,
653, 684, 713, 744, 742, 773, 530, 561, 561, 592, 499, 530, 592, 623,
623, 654, 743, 774, 768, 768, 769, 800, 684, 715, 714, 745, 770, 801,
771, 802, 654, 685, 744, 775, 772, 803, 562, 593, 531, 562, 593, 624,
715, 746, 773, 804, 685, 716, 500, 531, 624, 655, 745, 776, 774, 805,
655, 686, 716, 747, 775, 806, 746, 777, 800, 800, 801, 832, 686, 717,
802, 833, 563, 594, 594, 625, 803, 834, 532, 563, 625, 656, 776, 807,
804, 835, 501, 532, 656, 687, 747, 778, 717, 748, 805, 836, 777, 808,
687, 718, 806, 837, 748, 779, 595, 626, 564, 595, 626, 657, 718, 749,
778, 809, 807, 838, 832, 832, 533, 564, 657, 688, 833, 864, 834, 865,
835, 866, 502, 533, 688, 719, 808, 839, 749, 780, 836, 867, 779, 810,
719, 750, 837, 868, 809, 840, 596, 627, 627, 658, 565, 596, 658, 689,
838, 869, 780, 811, 750, 781, 534, 565, 689, 720, 810, 841, 839, 870,
864, 864, 503, 534, 720, 751, 865, 896, 866, 897, 840, 871, 867, 898,
781, 812, 811, 842, 628, 659, 868, 899, 751, 782, 597, 628, 659, 690,
566, 597, 690, 721, 869, 900, 841, 872, 535, 566, 721, 752, 812, 843,
870, 901, 782, 813, 842, 873, 504, 535, 752, 783, 871, 902, 629, 660,
660, 691, 896, 896, 897, 928, 598, 629, 691, 722, 813, 844, 898, 929,
872, 903, 783, 814, 843, 874, 899, 930, 567, 598, 722, 753, 900, 931,
536, 567, 753, 784, 873, 904, 901, 932, 814, 845, 844, 875, 902, 933,
505, 536, 784, 815, 661, 692, 630, 661, 692, 723, 874, 905, 599, 630,
723, 754, 903, 934, 845, 876, 568, 599, 754, 785, 928, 928, 815, 846,
929, 960, 930, 961, 875, 906, 904, 935, 931, 962, 537, 568, 785, 816,
932, 963, 905, 936, 662, 693, 693, 724, 846, 877, 933, 964, 876, 907,
631, 662, 724, 755, 506, 537, 816, 847, 934, 965, 600, 631, 755, 786,
906, 937, 569, 600, 786, 817, 935, 966, 877, 908, 847, 878, 960, 960,
907, 938, 961, 992, 936, 967, 538, 569, 817, 848, 962, 993, 694, 725,
663, 694, 725, 756, 963, 994, 632, 663, 756, 787, 964, 995, 878, 909,
937, 968, 507, 538, 848, 879, 908, 939, 601, 632, 787, 818, 965, 996,
966, 997, 570, 601, 818, 849, 938, 969, 879, 910, 909, 940, 967, 998,
695, 726, 726, 757, 664, 695, 757, 788, 539, 570, 849, 880, 939, 970,
633, 664, 788, 819, 968, 999, 602, 633, 819, 850, 910, 941, 508, 539,
880, 911, 969, 1000, 940, 971, 571, 602, 850, 881, 727, 758, 696, 727,
758, 789, 970, 1001, 665, 696, 789, 820, 911, 942, 941, 972, 540, 571,
881, 912, 634, 665, 820, 851, 971, 1002, 603, 634, 851, 882, 942, 973,
509, 540, 912, 943, 728, 759, 759, 790, 972, 1003, 572, 603, 882, 913,
697, 728, 790, 821, 666, 697, 821, 852, 943, 974, 635, 666, 852, 883,
541, 572, 913, 944, 973, 1004, 604, 635, 883, 914, 760, 791, 729, 760,
791, 822, 510, 541, 944, 975, 974, 1005, 698, 729, 822, 853, 573, 604,
914, 945, 667, 698, 853, 884, 636, 667, 884, 915, 975, 1006, 542, 573,
945, 976, 761, 792, 792, 823, 605, 636, 915, 946, 730, 761, 823, 854,
699, 730, 854, 885, 511, 542, 976, 1007, 574, 605, 946, 977, 668, 699,
885, 916, 637, 668, 916, 947, 543, 574, 793, 824, 977, 1008, 762, 793,
824, 855, 731, 762, 855, 886, 606, 637, 947, 978, 700, 731, 886, 917,
669, 700, 917, 948, 575, 606, 978, 1009, 638, 669, 948, 979, 794, 825,
825, 856, 763, 794, 856, 887, 732, 763, 887, 918, 607, 638, 979, 1010,
701, 732, 918, 949, 670, 701, 949, 980, 826, 857, 795, 826, 857, 888,
764, 795, 888, 919, 639, 670, 980, 1011, 733, 764, 919, 950, 702, 733,
950, 981, 671, 702, 981, 1012, 827, 858, 858, 889, 796, 827, 889, 920,
765, 796, 920, 951, 734, 765, 951, 982, 703, 734, 982, 1013, 859, 890,
828, 859, 890, 921, 797, 828, 921, 952, 766, 797, 952, 983, 735, 766,
983, 1014, 860, 891, 891, 922, 829, 860, 922, 953, 798, 829, 953, 984,
767, 798, 984, 1015, 892, 923, 861, 892, 923, 954, 830, 861, 954, 985,
799, 830, 985, 1016, 893, 924, 924, 955, 862, 893, 955, 986, 831, 862,
986, 1017, 925, 956, 894, 925, 956, 987, 863, 894, 987, 1018, 926, 957,
957, 988, 895, 926, 988, 1019, 958, 989, 927, 958, 989, 1020, 959, 990,
990, 1021, 991, 1022, 0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
qtr_scan_32x32_neighbors[1025 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 0, 0, 1, 32, 1, 1, 32, 32, 2, 33,
33, 64, 34, 65, 2, 2, 64, 64, 3, 34, 65, 96, 35, 66,
66, 97, 3, 3, 96, 96, 4, 35, 97, 128, 67, 98, 36, 67,
98, 129, 4, 4, 68, 99, 99, 130, 128, 128, 5, 36, 129, 160,
37, 68, 130, 161, 100, 131, 69, 100, 131, 162, 5, 5, 160, 160,
6, 37, 161, 192, 38, 69, 162, 193, 101, 132, 132, 163, 70, 101,
163, 194, 6, 6, 192, 192, 7, 38, 133, 164, 193, 224, 102, 133,
164, 195, 39, 70, 194, 225, 71, 102, 195, 226, 134, 165, 165, 196,
7, 7, 224, 224, 8, 39, 103, 134, 196, 227, 225, 256, 40, 71,
226, 257, 166, 197, 72, 103, 227, 258, 135, 166, 197, 228, 104, 135,
228, 259, 8, 8, 256, 256, 9, 40, 257, 288, 41, 72, 167, 198,
198, 229, 258, 289, 136, 167, 229, 260, 73, 104, 259, 290, 105, 136,
260, 291, 199, 230, 9, 9, 168, 199, 230, 261, 288, 288, 10, 41,
289, 320, 42, 73, 290, 321, 137, 168, 261, 292, 74, 105, 291, 322,
200, 231, 231, 262, 106, 137, 292, 323, 169, 200, 262, 293, 10, 10,
320, 320, 11, 42, 321, 352, 43, 74, 138, 169, 293, 324, 322, 353,
232, 263, 75, 106, 201, 232, 263, 294, 323, 354, 170, 201, 294, 325,
107, 138, 324, 355, 11, 11, 352, 352, 12, 43, 233, 264, 264, 295,
353, 384, 139, 170, 325, 356, 44, 75, 354, 385, 202, 233, 295, 326,
76, 107, 355, 386, 171, 202, 326, 357, 108, 139, 356, 387, 265, 296,
234, 265, 296, 327, 12, 12, 140, 171, 357, 388, 384, 384, 13, 44,
203, 234, 327, 358, 385, 416, 45, 76, 386, 417, 77, 108, 387, 418,
172, 203, 358, 389, 266, 297, 297, 328, 109, 140, 235, 266, 328, 359,
388, 419, 204, 235, 359, 390, 141, 172, 389, 420, 13, 13, 416, 416,
14, 45, 417, 448, 46, 77, 298, 329, 418, 449, 267, 298, 329, 360,
78, 109, 173, 204, 390, 421, 419, 450, 236, 267, 360, 391, 110, 141,
420, 451, 205, 236, 391, 422, 142, 173, 299, 330, 330, 361, 421, 452,
14, 14, 268, 299, 361, 392, 448, 448, 15, 46, 449, 480, 47, 78,
450, 481, 174, 205, 422, 453, 237, 268, 392, 423, 79, 110, 451, 482,
111, 142, 452, 483, 331, 362, 300, 331, 362, 393, 206, 237, 423, 454,
143, 174, 269, 300, 393, 424, 453, 484, 238, 269, 424, 455, 175, 206,
454, 485, 332, 363, 363, 394, 301, 332, 394, 425, 207, 238, 455, 486,
270, 301, 425, 456, 364, 395, 239, 270, 456, 487, 333, 364, 395, 426,
302, 333, 426, 457, 271, 302, 457, 488, 365, 396, 396, 427, 334, 365,
427, 458, 303, 334, 458, 489, 397, 428, 366, 397, 428, 459, 335, 366,
459, 490, 398, 429, 429, 460, 367, 398, 460, 491, 430, 461, 399, 430,
461, 492, 431, 462, 462, 493, 463, 494, 15, 15, 480, 480, 16, 47,
481, 512, 48, 79, 482, 513, 80, 111, 483, 514, 112, 143, 484, 515,
144, 175, 485, 516, 16, 16, 512, 512, 17, 48, 513, 544, 176, 207,
486, 517, 49, 80, 514, 545, 81, 112, 515, 546, 113, 144, 208, 239,
487, 518, 516, 547, 145, 176, 517, 548, 240, 271, 488, 519, 17, 17,
544, 544, 18, 49, 177, 208, 518, 549, 545, 576, 50, 81, 546, 577,
82, 113, 547, 578, 272, 303, 489, 520, 209, 240, 519, 550, 114, 145,
548, 579, 146, 177, 549, 580, 241, 272, 520, 551, 304, 335, 490, 521,
178, 209, 550, 581, 18, 18, 576, 576, 19, 50, 577, 608, 51, 82,
578, 609, 83, 114, 273, 304, 521, 552, 579, 610, 210, 241, 551, 582,
115, 146, 336, 367, 491, 522, 580, 611, 147, 178, 581, 612, 242, 273,
552, 583, 305, 336, 522, 553, 179, 210, 582, 613, 19, 19, 368, 399,
492, 523, 608, 608, 20, 51, 609, 640, 52, 83, 610, 641, 274, 305,
553, 584, 84, 115, 611, 642, 211, 242, 337, 368, 523, 554, 583, 614,
116, 147, 612, 643, 306, 337, 554, 585, 148, 179, 243, 274, 400, 431,
493, 524, 584, 615, 613, 644, 369, 400, 524, 555, 180, 211, 614, 645,
20, 20, 640, 640, 21, 52, 275, 306, 585, 616, 641, 672, 53, 84,
338, 369, 555, 586, 642, 673, 212, 243, 615, 646, 85, 116, 643, 674,
432, 463, 494, 525, 117, 148, 644, 675, 401, 432, 525, 556, 307, 338,
586, 617, 244, 275, 616, 647, 149, 180, 645, 676, 370, 401, 556, 587,
181, 212, 646, 677, 276, 307, 464, 495, 495, 526, 617, 648, 339, 370,
587, 618, 21, 21, 672, 672, 22, 53, 433, 464, 526, 557, 673, 704,
54, 85, 674, 705, 213, 244, 647, 678, 86, 117, 402, 433, 557, 588,
675, 706, 118, 149, 308, 339, 618, 649, 676, 707, 245, 276, 371, 402,
588, 619, 648, 679, 150, 181, 677, 708, 496, 527, 465, 496, 527, 558,
182, 213, 434, 465, 558, 589, 678, 709, 340, 371, 619, 650, 277, 308,
649, 680, 22, 22, 704, 704, 23, 54, 403, 434, 589, 620, 705, 736,
55, 86, 214, 245, 679, 710, 706, 737, 87, 118, 707, 738, 309, 340,
650, 681, 372, 403, 620, 651, 119, 150, 497, 528, 528, 559, 708, 739,
246, 277, 680, 711, 466, 497, 559, 590, 151, 182, 709, 740, 435, 466,
590, 621, 341, 372, 651, 682, 183, 214, 278, 309, 681, 712, 710, 741,
404, 435, 621, 652, 23, 23, 736, 736, 24, 55, 737, 768, 215, 246,
529, 560, 711, 742, 56, 87, 498, 529, 560, 591, 738, 769, 310, 341,
682, 713, 88, 119, 373, 404, 652, 683, 739, 770, 467, 498, 591, 622,
120, 151, 740, 771, 247, 278, 712, 743, 436, 467, 622, 653, 152, 183,
741, 772, 342, 373, 683, 714, 279, 310, 405, 436, 653, 684, 713, 744,
184, 215, 742, 773, 530, 561, 561, 592, 499, 530, 592, 623, 24, 24,
216, 247, 468, 499, 623, 654, 743, 774, 768, 768, 25, 56, 769, 800,
374, 405, 684, 715, 57, 88, 311, 342, 714, 745, 770, 801, 89, 120,
771, 802, 437, 468, 654, 685, 248, 279, 744, 775, 121, 152, 772, 803,
562, 593, 153, 184, 343, 374, 531, 562, 593, 624, 715, 746, 773, 804,
406, 437, 685, 716, 500, 531, 624, 655, 280, 311, 745, 776, 185, 216,
774, 805, 469, 500, 655, 686, 375, 406, 716, 747, 217, 248, 775, 806,
25, 25, 312, 343, 746, 777, 800, 800, 26, 57, 801, 832, 58, 89,
438, 469, 686, 717, 802, 833, 90, 121, 563, 594, 594, 625, 803, 834,
249, 280, 532, 563, 625, 656, 776, 807, 122, 153, 804, 835, 344, 375,
501, 532, 656, 687, 747, 778, 407, 438, 717, 748, 154, 185, 805, 836,
281, 312, 777, 808, 470, 501, 687, 718, 186, 217, 806, 837, 376, 407,
748, 779, 595, 626, 564, 595, 626, 657, 218, 249, 313, 344, 439, 470,
718, 749, 778, 809, 807, 838, 26, 26, 832, 832, 27, 58, 533, 564,
657, 688, 833, 864, 59, 90, 834, 865, 91, 122, 835, 866, 250, 281,
502, 533, 688, 719, 808, 839, 123, 154, 408, 439, 749, 780, 836, 867,
345, 376, 779, 810, 155, 186, 471, 502, 719, 750, 837, 868, 282, 313,
809, 840, 596, 627, 627, 658, 187, 218, 565, 596, 658, 689, 838, 869,
377, 408, 780, 811, 440, 471, 750, 781, 534, 565, 689, 720, 314, 345,
810, 841, 219, 250, 839, 870, 27, 27, 864, 864, 28, 59, 503, 534,
720, 751, 865, 896, 60, 91, 866, 897, 92, 123, 251, 282, 840, 871,
867, 898, 409, 440, 781, 812, 346, 377, 811, 842, 124, 155, 628, 659,
868, 899, 472, 503, 751, 782, 597, 628, 659, 690, 566, 597, 690, 721,
156, 187, 869, 900, 283, 314, 841, 872, 535, 566, 721, 752, 188, 219,
378, 409, 812, 843, 870, 901, 441, 472, 782, 813, 315, 346, 842, 873,
504, 535, 752, 783, 220, 251, 871, 902, 28, 28, 629, 660, 660, 691,
896, 896, 29, 60, 897, 928, 61, 92, 410, 441, 598, 629, 691, 722,
813, 844, 898, 929, 252, 283, 872, 903, 93, 124, 347, 378, 473, 504,
783, 814, 843, 874, 899, 930, 567, 598, 722, 753, 125, 156, 900, 931,
284, 315, 536, 567, 753, 784, 873, 904, 157, 188, 901, 932, 442, 473,
814, 845, 379, 410, 844, 875, 189, 220, 902, 933, 505, 536, 784, 815,
661, 692, 316, 347, 630, 661, 692, 723, 874, 905, 221, 252, 599, 630,
723, 754, 903, 934, 411, 442, 845, 876, 29, 29, 568, 599, 754, 785,
928, 928, 30, 61, 474, 505, 815, 846, 929, 960, 62, 93, 930, 961,
253, 284, 348, 379, 875, 906, 904, 935, 94, 125, 931, 962, 537, 568,
785, 816, 126, 157, 932, 963, 285, 316, 905, 936, 158, 189, 443, 474,
662, 693, 693, 724, 846, 877, 933, 964, 380, 411, 876, 907, 631, 662,
724, 755, 506, 537, 816, 847, 190, 221, 934, 965, 600, 631, 755, 786,
317, 348, 906, 937, 222, 253, 569, 600, 786, 817, 935, 966, 412, 443,
877, 908, 475, 506, 847, 878, 30, 30, 960, 960, 31, 62, 349, 380,
907, 938, 961, 992, 254, 285, 936, 967, 63, 94, 538, 569, 817, 848,
962, 993, 694, 725, 95, 126, 663, 694, 725, 756, 963, 994, 632, 663,
756, 787, 127, 158, 964, 995, 444, 475, 878, 909, 286, 317, 937, 968,
381, 412, 507, 538, 848, 879, 908, 939, 159, 190, 601, 632, 787, 818,
965, 996, 191, 222, 966, 997, 318, 349, 570, 601, 818, 849, 938, 969,
476, 507, 879, 910, 223, 254, 413, 444, 909, 940, 967, 998, 695, 726,
726, 757, 664, 695, 757, 788, 539, 570, 849, 880, 350, 381, 939, 970,
255, 286, 633, 664, 788, 819, 968, 999, 445, 476, 602, 633, 819, 850,
910, 941, 508, 539, 880, 911, 287, 318, 969, 1000, 382, 413, 940, 971,
571, 602, 850, 881, 727, 758, 696, 727, 758, 789, 319, 350, 970, 1001,
477, 508, 665, 696, 789, 820, 911, 942, 414, 445, 941, 972, 540, 571,
881, 912, 634, 665, 820, 851, 351, 382, 971, 1002, 603, 634, 851, 882,
446, 477, 942, 973, 509, 540, 912, 943, 383, 414, 728, 759, 759, 790,
972, 1003, 572, 603, 882, 913, 697, 728, 790, 821, 666, 697, 821, 852,
478, 509, 943, 974, 635, 666, 852, 883, 415, 446, 541, 572, 913, 944,
973, 1004, 604, 635, 883, 914, 760, 791, 729, 760, 791, 822, 510, 541,
944, 975, 447, 478, 974, 1005, 698, 729, 822, 853, 573, 604, 914, 945,
667, 698, 853, 884, 636, 667, 884, 915, 479, 510, 975, 1006, 542, 573,
945, 976, 761, 792, 792, 823, 605, 636, 915, 946, 730, 761, 823, 854,
699, 730, 854, 885, 511, 542, 976, 1007, 574, 605, 946, 977, 668, 699,
885, 916, 637, 668, 916, 947, 543, 574, 793, 824, 977, 1008, 762, 793,
824, 855, 731, 762, 855, 886, 606, 637, 947, 978, 700, 731, 886, 917,
669, 700, 917, 948, 575, 606, 978, 1009, 638, 669, 948, 979, 794, 825,
825, 856, 763, 794, 856, 887, 732, 763, 887, 918, 607, 638, 979, 1010,
701, 732, 918, 949, 670, 701, 949, 980, 826, 857, 795, 826, 857, 888,
764, 795, 888, 919, 639, 670, 980, 1011, 733, 764, 919, 950, 702, 733,
950, 981, 671, 702, 981, 1012, 827, 858, 858, 889, 796, 827, 889, 920,
765, 796, 920, 951, 734, 765, 951, 982, 703, 734, 982, 1013, 859, 890,
828, 859, 890, 921, 797, 828, 921, 952, 766, 797, 952, 983, 735, 766,
983, 1014, 860, 891, 891, 922, 829, 860, 922, 953, 798, 829, 953, 984,
767, 798, 984, 1015, 892, 923, 861, 892, 923, 954, 830, 861, 954, 985,
799, 830, 985, 1016, 893, 924, 924, 955, 862, 893, 955, 986, 831, 862,
986, 1017, 925, 956, 894, 925, 956, 987, 863, 894, 987, 1018, 926, 957,
957, 988, 895, 926, 988, 1019, 958, 989, 927, 958, 989, 1020, 959, 990,
990, 1021, 991, 1022, 0, 0
};
#if CONFIG_TX64X64
DECLARE_ALIGNED(16, static const int16_t,
default_scan_32x64_neighbors[2049 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 0, 0, 1, 1, 1, 32, 32, 32, 2,
2, 2, 33, 33, 64, 64, 64, 3, 3, 3, 34, 34, 65,
65, 96, 96, 96, 4, 4, 4, 35, 35, 66, 66, 97, 97,
128, 128, 128, 5, 5, 5, 36, 36, 67, 67, 98, 98, 129,
129, 160, 160, 160, 6, 6, 6, 37, 37, 68, 68, 99, 99,
130, 130, 161, 161, 192, 192, 192, 7, 7, 7, 38, 38, 69,
69, 100, 100, 131, 131, 162, 162, 193, 193, 224, 224, 224, 8,
8, 8, 39, 39, 70, 70, 101, 101, 132, 132, 163, 163, 194,
194, 225, 225, 256, 256, 256, 9, 9, 9, 40, 40, 71, 71,
102, 102, 133, 133, 164, 164, 195, 195, 226, 226, 257, 257, 288,
288, 288, 10, 10, 10, 41, 41, 72, 72, 103, 103, 134, 134,
165, 165, 196, 196, 227, 227, 258, 258, 289, 289, 320, 320, 320,
11, 11, 11, 42, 42, 73, 73, 104, 104, 135, 135, 166, 166,
197, 197, 228, 228, 259, 259, 290, 290, 321, 321, 352, 352, 352,
12, 12, 12, 43, 43, 74, 74, 105, 105, 136, 136, 167, 167,
198, 198, 229, 229, 260, 260, 291, 291, 322, 322, 353, 353, 384,
384, 384, 13, 13, 13, 44, 44, 75, 75, 106, 106, 137, 137,
168, 168, 199, 199, 230, 230, 261, 261, 292, 292, 323, 323, 354,
354, 385, 385, 416, 416, 416, 14, 14, 14, 45, 45, 76, 76,
107, 107, 138, 138, 169, 169, 200, 200, 231, 231, 262, 262, 293,
293, 324, 324, 355, 355, 386, 386, 417, 417, 448, 448, 448, 15,
15, 15, 46, 46, 77, 77, 108, 108, 139, 139, 170, 170, 201,
201, 232, 232, 263, 263, 294, 294, 325, 325, 356, 356, 387, 387,
418, 418, 449, 449, 480, 480, 480, 16, 16, 16, 47, 47, 78,
78, 109, 109, 140, 140, 171, 171, 202, 202, 233, 233, 264, 264,
295, 295, 326, 326, 357, 357, 388, 388, 419, 419, 450, 450, 481,
481, 512, 512, 512, 17, 17, 17, 48, 48, 79, 79, 110, 110,
141, 141, 172, 172, 203, 203, 234, 234, 265, 265, 296, 296, 327,
327, 358, 358, 389, 389, 420, 420, 451, 451, 482, 482, 513, 513,
544, 544, 544, 18, 18, 18, 49, 49, 80, 80, 111, 111, 142,
142, 173, 173, 204, 204, 235, 235, 266, 266, 297, 297, 328, 328,
359, 359, 390, 390, 421, 421, 452, 452, 483, 483, 514, 514, 545,
545, 576, 576, 576, 19, 19, 19, 50, 50, 81, 81, 112, 112,
143, 143, 174, 174, 205, 205, 236, 236, 267, 267, 298, 298, 329,
329, 360, 360, 391, 391, 422, 422, 453, 453, 484, 484, 515, 515,
546, 546, 577, 577, 608, 608, 608, 20, 20, 20, 51, 51, 82,
82, 113, 113, 144, 144, 175, 175, 206, 206, 237, 237, 268, 268,
299, 299, 330, 330, 361, 361, 392, 392, 423, 423, 454, 454, 485,
485, 516, 516, 547, 547, 578, 578, 609, 609, 640, 640, 640, 21,
21, 21, 52, 52, 83, 83, 114, 114, 145, 145, 176, 176, 207,
207, 238, 238, 269, 269, 300, 300, 331, 331, 362, 362, 393, 393,
424, 424, 455, 455, 486, 486, 517, 517, 548, 548, 579, 579, 610,
610, 641, 641, 672, 672, 672, 22, 22, 22, 53, 53, 84, 84,
115, 115, 146, 146, 177, 177, 208, 208, 239, 239, 270, 270, 301,
301, 332, 332, 363, 363, 394, 394, 425, 425, 456, 456, 487, 487,
518, 518, 549, 549, 580, 580, 611, 611, 642, 642, 673, 673, 704,
704, 704, 23, 23, 23, 54, 54, 85, 85, 116, 116, 147, 147,
178, 178, 209, 209, 240, 240, 271, 271, 302, 302, 333, 333, 364,
364, 395, 395, 426, 426, 457, 457, 488, 488, 519, 519, 550, 550,
581, 581, 612, 612, 643, 643, 674, 674, 705, 705, 736, 736, 736,
24, 24, 24, 55, 55, 86, 86, 117, 117, 148, 148, 179, 179,
210, 210, 241, 241, 272, 272, 303, 303, 334, 334, 365, 365, 396,
396, 427, 427, 458, 458, 489, 489, 520, 520, 551, 551, 582, 582,
613, 613, 644, 644, 675, 675, 706, 706, 737, 737, 768, 768, 768,
25, 25, 25, 56, 56, 87, 87, 118, 118, 149, 149, 180, 180,
211, 211, 242, 242, 273, 273, 304, 304, 335, 335, 366, 366, 397,
397, 428, 428, 459, 459, 490, 490, 521, 521, 552, 552, 583, 583,
614, 614, 645, 645, 676, 676, 707, 707, 738, 738, 769, 769, 800,
800, 800, 26, 26, 26, 57, 57, 88, 88, 119, 119, 150, 150,
181, 181, 212, 212, 243, 243, 274, 274, 305, 305, 336, 336, 367,
367, 398, 398, 429, 429, 460, 460, 491, 491, 522, 522, 553, 553,
584, 584, 615, 615, 646, 646, 677, 677, 708, 708, 739, 739, 770,
770, 801, 801, 832, 832, 832, 27, 27, 27, 58, 58, 89, 89,
120, 120, 151, 151, 182, 182, 213, 213, 244, 244, 275, 275, 306,
306, 337, 337, 368, 368, 399, 399, 430, 430, 461, 461, 492, 492,
523, 523, 554, 554, 585, 585, 616, 616, 647, 647, 678, 678, 709,
709, 740, 740, 771, 771, 802, 802, 833, 833, 864, 864, 864, 28,
28, 28, 59, 59, 90, 90, 121, 121, 152, 152, 183, 183, 214,
214, 245, 245, 276, 276, 307, 307, 338, 338, 369, 369, 400, 400,
431, 431, 462, 462, 493, 493, 524, 524, 555, 555, 586, 586, 617,
617, 648, 648, 679, 679, 710, 710, 741, 741, 772, 772, 803, 803,
834, 834, 865, 865, 896, 896, 896, 29, 29, 29, 60, 60, 91,
91, 122, 122, 153, 153, 184, 184, 215, 215, 246, 246, 277, 277,
308, 308, 339, 339, 370, 370, 401, 401, 432, 432, 463, 463, 494,
494, 525, 525, 556, 556, 587, 587, 618, 618, 649, 649, 680, 680,
711, 711, 742, 742, 773, 773, 804, 804, 835, 835, 866, 866, 897,
897, 928, 928, 928, 30, 30, 30, 61, 61, 92, 92, 123, 123,
154, 154, 185, 185, 216, 216, 247, 247, 278, 278, 309, 309, 340,
340, 371, 371, 402, 402, 433, 433, 464, 464, 495, 495, 526, 526,
557, 557, 588, 588, 619, 619, 650, 650, 681, 681, 712, 712, 743,
743, 774, 774, 805, 805, 836, 836, 867, 867, 898, 898, 929, 929,
960, 960, 960, 31, 62, 62, 93, 93, 124, 124, 155, 155, 186,
186, 217, 217, 248, 248, 279, 279, 310, 310, 341, 341, 372, 372,
403, 403, 434, 434, 465, 465, 496, 496, 527, 527, 558, 558, 589,
589, 620, 620, 651, 651, 682, 682, 713, 713, 744, 744, 775, 775,
806, 806, 837, 837, 868, 868, 899, 899, 930, 930, 961, 961, 992,
63, 94, 94, 125, 125, 156, 156, 187, 187, 218, 218, 249, 249,
280, 280, 311, 311, 342, 342, 373, 373, 404, 404, 435, 435, 466,
466, 497, 497, 528, 528, 559, 559, 590, 590, 621, 621, 652, 652,
683, 683, 714, 714, 745, 745, 776, 776, 807, 807, 838, 838, 869,
869, 900, 900, 931, 931, 962, 962, 993, 95, 126, 126, 157, 157,
188, 188, 219, 219, 250, 250, 281, 281, 312, 312, 343, 343, 374,
374, 405, 405, 436, 436, 467, 467, 498, 498, 529, 529, 560, 560,
591, 591, 622, 622, 653, 653, 684, 684, 715, 715, 746, 746, 777,
777, 808, 808, 839, 839, 870, 870, 901, 901, 932, 932, 963, 963,
994, 127, 158, 158, 189, 189, 220, 220, 251, 251, 282, 282, 313,
313, 344, 344, 375, 375, 406, 406, 437, 437, 468, 468, 499, 499,
530, 530, 561, 561, 592, 592, 623, 623, 654, 654, 685, 685, 716,
716, 747, 747, 778, 778, 809, 809, 840, 840, 871, 871, 902, 902,
933, 933, 964, 964, 995, 159, 190, 190, 221, 221, 252, 252, 283,
283, 314, 314, 345, 345, 376, 376, 407, 407, 438, 438, 469, 469,
500, 500, 531, 531, 562, 562, 593, 593, 624, 624, 655, 655, 686,
686, 717, 717, 748, 748, 779, 779, 810, 810, 841, 841, 872, 872,
903, 903, 934, 934, 965, 965, 996, 191, 222, 222, 253, 253, 284,
284, 315, 315, 346, 346, 377, 377, 408, 408, 439, 439, 470, 470,
501, 501, 532, 532, 563, 563, 594, 594, 625, 625, 656, 656, 687,
687, 718, 718, 749, 749, 780, 780, 811, 811, 842, 842, 873, 873,
904, 904, 935, 935, 966, 966, 997, 223, 254, 254, 285, 285, 316,
316, 347, 347, 378, 378, 409, 409, 440, 440, 471, 471, 502, 502,
533, 533, 564, 564, 595, 595, 626, 626, 657, 657, 688, 688, 719,
719, 750, 750, 781, 781, 812, 812, 843, 843, 874, 874, 905, 905,
936, 936, 967, 967, 998, 255, 286, 286, 317, 317, 348, 348, 379,
379, 410, 410, 441, 441, 472, 472, 503, 503, 534, 534, 565, 565,
596, 596, 627, 627, 658, 658, 689, 689, 720, 720, 751, 751, 782,
782, 813, 813, 844, 844, 875, 875, 906, 906, 937, 937, 968, 968,
999, 287, 318, 318, 349, 349, 380, 380, 411, 411, 442, 442, 473,
473, 504, 504, 535, 535, 566, 566, 597, 597, 628, 628, 659, 659,
690, 690, 721, 721, 752, 752, 783, 783, 814, 814, 845, 845, 876,
876, 907, 907, 938, 938, 969, 969, 1000, 319, 350, 350, 381, 381,
412, 412, 443, 443, 474, 474, 505, 505, 536, 536, 567, 567, 598,
598, 629, 629, 660, 660, 691, 691, 722, 722, 753, 753, 784, 784,
815, 815, 846, 846, 877, 877, 908, 908, 939, 939, 970, 970, 1001,
351, 382, 382, 413, 413, 444, 444, 475, 475, 506, 506, 537, 537,
568, 568, 599, 599, 630, 630, 661, 661, 692, 692, 723, 723, 754,
754, 785, 785, 816, 816, 847, 847, 878, 878, 909, 909, 940, 940,
971, 971, 1002, 383, 414, 414, 445, 445, 476, 476, 507, 507, 538,
538, 569, 569, 600, 600, 631, 631, 662, 662, 693, 693, 724, 724,
755, 755, 786, 786, 817, 817, 848, 848, 879, 879, 910, 910, 941,
941, 972, 972, 1003, 415, 446, 446, 477, 477, 508, 508, 539, 539,
570, 570, 601, 601, 632, 632, 663, 663, 694, 694, 725, 725, 756,
756, 787, 787, 818, 818, 849, 849, 880, 880, 911, 911, 942, 942,
973, 973, 1004, 447, 478, 478, 509, 509, 540, 540, 571, 571, 602,
602, 633, 633, 664, 664, 695, 695, 726, 726, 757, 757, 788, 788,
819, 819, 850, 850, 881, 881, 912, 912, 943, 943, 974, 974, 1005,
479, 510, 510, 541, 541, 572, 572, 603, 603, 634, 634, 665, 665,
696, 696, 727, 727, 758, 758, 789, 789, 820, 820, 851, 851, 882,
882, 913, 913, 944, 944, 975, 975, 1006, 511, 542, 542, 573, 573,
604, 604, 635, 635, 666, 666, 697, 697, 728, 728, 759, 759, 790,
790, 821, 821, 852, 852, 883, 883, 914, 914, 945, 945, 976, 976,
1007, 543, 574, 574, 605, 605, 636, 636, 667, 667, 698, 698, 729,
729, 760, 760, 791, 791, 822, 822, 853, 853, 884, 884, 915, 915,
946, 946, 977, 977, 1008, 575, 606, 606, 637, 637, 668, 668, 699,
699, 730, 730, 761, 761, 792, 792, 823, 823, 854, 854, 885, 885,
916, 916, 947, 947, 978, 978, 1009, 607, 638, 638, 669, 669, 700,
700, 731, 731, 762, 762, 793, 793, 824, 824, 855, 855, 886, 886,
917, 917, 948, 948, 979, 979, 1010, 639, 670, 670, 701, 701, 732,
732, 763, 763, 794, 794, 825, 825, 856, 856, 887, 887, 918, 918,
949, 949, 980, 980, 1011, 671, 702, 702, 733, 733, 764, 764, 795,
795, 826, 826, 857, 857, 888, 888, 919, 919, 950, 950, 981, 981,
1012, 703, 734, 734, 765, 765, 796, 796, 827, 827, 858, 858, 889,
889, 920, 920, 951, 951, 982, 982, 1013, 735, 766, 766, 797, 797,
828, 828, 859, 859, 890, 890, 921, 921, 952, 952, 983, 983, 1014,
767, 798, 798, 829, 829, 860, 860, 891, 891, 922, 922, 953, 953,
984, 984, 1015, 799, 830, 830, 861, 861, 892, 892, 923, 923, 954,
954, 985, 985, 1016, 831, 862, 862, 893, 893, 924, 924, 955, 955,
986, 986, 1017, 863, 894, 894, 925, 925, 956, 956, 987, 987, 1018,
895, 926, 926, 957, 957, 988, 988, 1019, 927, 958, 958, 989, 989,
1020, 959, 990, 990, 1021, 991, 1022, 992, 992, 993, 1024, 1024, 1024,
994, 1025, 1025, 1056, 1056, 1056, 995, 1026, 1026, 1057, 1057, 1088, 1088,
1088, 996, 1027, 1027, 1058, 1058, 1089, 1089, 1120, 1120, 1120, 997, 1028,
1028, 1059, 1059, 1090, 1090, 1121, 1121, 1152, 1152, 1152, 998, 1029, 1029,
1060, 1060, 1091, 1091, 1122, 1122, 1153, 1153, 1184, 1184, 1184, 999, 1030,
1030, 1061, 1061, 1092, 1092, 1123, 1123, 1154, 1154, 1185, 1185, 1216, 1216,
1216, 1000, 1031, 1031, 1062, 1062, 1093, 1093, 1124, 1124, 1155, 1155, 1186,
1186, 1217, 1217, 1248, 1248, 1248, 1001, 1032, 1032, 1063, 1063, 1094, 1094,
1125, 1125, 1156, 1156, 1187, 1187, 1218, 1218, 1249, 1249, 1280, 1280, 1280,
1002, 1033, 1033, 1064, 1064, 1095, 1095, 1126, 1126, 1157, 1157, 1188, 1188,
1219, 1219, 1250, 1250, 1281, 1281, 1312, 1312, 1312, 1003, 1034, 1034, 1065,
1065, 1096, 1096, 1127, 1127, 1158, 1158, 1189, 1189, 1220, 1220, 1251, 1251,
1282, 1282, 1313, 1313, 1344, 1344, 1344, 1004, 1035, 1035, 1066, 1066, 1097,
1097, 1128, 1128, 1159, 1159, 1190, 1190, 1221, 1221, 1252, 1252, 1283, 1283,
1314, 1314, 1345, 1345, 1376, 1376, 1376, 1005, 1036, 1036, 1067, 1067, 1098,
1098, 1129, 1129, 1160, 1160, 1191, 1191, 1222, 1222, 1253, 1253, 1284, 1284,
1315, 1315, 1346, 1346, 1377, 1377, 1408, 1408, 1408, 1006, 1037, 1037, 1068,
1068, 1099, 1099, 1130, 1130, 1161, 1161, 1192, 1192, 1223, 1223, 1254, 1254,
1285, 1285, 1316, 1316, 1347, 1347, 1378, 1378, 1409, 1409, 1440, 1440, 1440,
1007, 1038, 1038, 1069, 1069, 1100, 1100, 1131, 1131, 1162, 1162, 1193, 1193,
1224, 1224, 1255, 1255, 1286, 1286, 1317, 1317, 1348, 1348, 1379, 1379, 1410,
1410, 1441, 1441, 1472, 1472, 1472, 1008, 1039, 1039, 1070, 1070, 1101, 1101,
1132, 1132, 1163, 1163, 1194, 1194, 1225, 1225, 1256, 1256, 1287, 1287, 1318,
1318, 1349, 1349, 1380, 1380, 1411, 1411, 1442, 1442, 1473, 1473, 1504, 1504,
1504, 1009, 1040, 1040, 1071, 1071, 1102, 1102, 1133, 1133, 1164, 1164, 1195,
1195, 1226, 1226, 1257, 1257, 1288, 1288, 1319, 1319, 1350, 1350, 1381, 1381,
1412, 1412, 1443, 1443, 1474, 1474, 1505, 1505, 1536, 1536, 1536, 1010, 1041,
1041, 1072, 1072, 1103, 1103, 1134, 1134, 1165, 1165, 1196, 1196, 1227, 1227,
1258, 1258, 1289, 1289, 1320, 1320, 1351, 1351, 1382, 1382, 1413, 1413, 1444,
1444, 1475, 1475, 1506, 1506, 1537, 1537, 1568, 1568, 1568, 1011, 1042, 1042,
1073, 1073, 1104, 1104, 1135, 1135, 1166, 1166, 1197, 1197, 1228, 1228, 1259,
1259, 1290, 1290, 1321, 1321, 1352, 1352, 1383, 1383, 1414, 1414, 1445, 1445,
1476, 1476, 1507, 1507, 1538, 1538, 1569, 1569, 1600, 1600, 1600, 1012, 1043,
1043, 1074, 1074, 1105, 1105, 1136, 1136, 1167, 1167, 1198, 1198, 1229, 1229,
1260, 1260, 1291, 1291, 1322, 1322, 1353, 1353, 1384, 1384, 1415, 1415, 1446,
1446, 1477, 1477, 1508, 1508, 1539, 1539, 1570, 1570, 1601, 1601, 1632, 1632,
1632, 1013, 1044, 1044, 1075, 1075, 1106, 1106, 1137, 1137, 1168, 1168, 1199,
1199, 1230, 1230, 1261, 1261, 1292, 1292, 1323, 1323, 1354, 1354, 1385, 1385,
1416, 1416, 1447, 1447, 1478, 1478, 1509, 1509, 1540, 1540, 1571, 1571, 1602,
1602, 1633, 1633, 1664, 1664, 1664, 1014, 1045, 1045, 1076, 1076, 1107, 1107,
1138, 1138, 1169, 1169, 1200, 1200, 1231, 1231, 1262, 1262, 1293, 1293, 1324,
1324, 1355, 1355, 1386, 1386, 1417, 1417, 1448, 1448, 1479, 1479, 1510, 1510,
1541, 1541, 1572, 1572, 1603, 1603, 1634, 1634, 1665, 1665, 1696, 1696, 1696,
1015, 1046, 1046, 1077, 1077, 1108, 1108, 1139, 1139, 1170, 1170, 1201, 1201,
1232, 1232, 1263, 1263, 1294, 1294, 1325, 1325, 1356, 1356, 1387, 1387, 1418,
1418, 1449, 1449, 1480, 1480, 1511, 1511, 1542, 1542, 1573, 1573, 1604, 1604,
1635, 1635, 1666, 1666, 1697, 1697, 1728, 1728, 1728, 1016, 1047, 1047, 1078,
1078, 1109, 1109, 1140, 1140, 1171, 1171, 1202, 1202, 1233, 1233, 1264, 1264,
1295, 1295, 1326, 1326, 1357, 1357, 1388, 1388, 1419, 1419, 1450, 1450, 1481,
1481, 1512, 1512, 1543, 1543, 1574, 1574, 1605, 1605, 1636, 1636, 1667, 1667,
1698, 1698, 1729, 1729, 1760, 1760, 1760, 1017, 1048, 1048, 1079, 1079, 1110,
1110, 1141, 1141, 1172, 1172, 1203, 1203, 1234, 1234, 1265, 1265, 1296, 1296,
1327, 1327, 1358, 1358, 1389, 1389, 1420, 1420, 1451, 1451, 1482, 1482, 1513,
1513, 1544, 1544, 1575, 1575, 1606, 1606, 1637, 1637, 1668, 1668, 1699, 1699,
1730, 1730, 1761, 1761, 1792, 1792, 1792, 1018, 1049, 1049, 1080, 1080, 1111,
1111, 1142, 1142, 1173, 1173, 1204, 1204, 1235, 1235, 1266, 1266, 1297, 1297,
1328, 1328, 1359, 1359, 1390, 1390, 1421, 1421, 1452, 1452, 1483, 1483, 1514,
1514, 1545, 1545, 1576, 1576, 1607, 1607, 1638, 1638, 1669, 1669, 1700, 1700,
1731, 1731, 1762, 1762, 1793, 1793, 1824, 1824, 1824, 1019, 1050, 1050, 1081,
1081, 1112, 1112, 1143, 1143, 1174, 1174, 1205, 1205, 1236, 1236, 1267, 1267,
1298, 1298, 1329, 1329, 1360, 1360, 1391, 1391, 1422, 1422, 1453, 1453, 1484,
1484, 1515, 1515, 1546, 1546, 1577, 1577, 1608, 1608, 1639, 1639, 1670, 1670,
1701, 1701, 1732, 1732, 1763, 1763, 1794, 1794, 1825, 1825, 1856, 1856, 1856,
1020, 1051, 1051, 1082, 1082, 1113, 1113, 1144, 1144, 1175, 1175, 1206, 1206,
1237, 1237, 1268, 1268, 1299, 1299, 1330, 1330, 1361, 1361, 1392, 1392, 1423,
1423, 1454, 1454, 1485, 1485, 1516, 1516, 1547, 1547, 1578, 1578, 1609, 1609,
1640, 1640, 1671, 1671, 1702, 1702, 1733, 1733, 1764, 1764, 1795, 1795, 1826,
1826, 1857, 1857, 1888, 1888, 1888, 1021, 1052, 1052, 1083, 1083, 1114, 1114,
1145, 1145, 1176, 1176, 1207, 1207, 1238, 1238, 1269, 1269, 1300, 1300, 1331,
1331, 1362, 1362, 1393, 1393, 1424, 1424, 1455, 1455, 1486, 1486, 1517, 1517,
1548, 1548, 1579, 1579, 1610, 1610, 1641, 1641, 1672, 1672, 1703, 1703, 1734,
1734, 1765, 1765, 1796, 1796, 1827, 1827, 1858, 1858, 1889, 1889, 1920, 1920,
1920, 1022, 1053, 1053, 1084, 1084, 1115, 1115, 1146, 1146, 1177, 1177, 1208,
1208, 1239, 1239, 1270, 1270, 1301, 1301, 1332, 1332, 1363, 1363, 1394, 1394,
1425, 1425, 1456, 1456, 1487, 1487, 1518, 1518, 1549, 1549, 1580, 1580, 1611,
1611, 1642, 1642, 1673, 1673, 1704, 1704, 1735, 1735, 1766, 1766, 1797, 1797,
1828, 1828, 1859, 1859, 1890, 1890, 1921, 1921, 1952, 1952, 1952, 1023, 1054,
1054, 1085, 1085, 1116, 1116, 1147, 1147, 1178, 1178, 1209, 1209, 1240, 1240,
1271, 1271, 1302, 1302, 1333, 1333, 1364, 1364, 1395, 1395, 1426, 1426, 1457,
1457, 1488, 1488, 1519, 1519, 1550, 1550, 1581, 1581, 1612, 1612, 1643, 1643,
1674, 1674, 1705, 1705, 1736, 1736, 1767, 1767, 1798, 1798, 1829, 1829, 1860,
1860, 1891, 1891, 1922, 1922, 1953, 1953, 1984, 1984, 1984, 1055, 1086, 1086,
1117, 1117, 1148, 1148, 1179, 1179, 1210, 1210, 1241, 1241, 1272, 1272, 1303,
1303, 1334, 1334, 1365, 1365, 1396, 1396, 1427, 1427, 1458, 1458, 1489, 1489,
1520, 1520, 1551, 1551, 1582, 1582, 1613, 1613, 1644, 1644, 1675, 1675, 1706,
1706, 1737, 1737, 1768, 1768, 1799, 1799, 1830, 1830, 1861, 1861, 1892, 1892,
1923, 1923, 1954, 1954, 1985, 1985, 2016, 1087, 1118, 1118, 1149, 1149, 1180,
1180, 1211, 1211, 1242, 1242, 1273, 1273, 1304, 1304, 1335, 1335, 1366, 1366,
1397, 1397, 1428, 1428, 1459, 1459, 1490, 1490, 1521, 1521, 1552, 1552, 1583,
1583, 1614, 1614, 1645, 1645, 1676, 1676, 1707, 1707, 1738, 1738, 1769, 1769,
1800, 1800, 1831, 1831, 1862, 1862, 1893, 1893, 1924, 1924, 1955, 1955, 1986,
1986, 2017, 1119, 1150, 1150, 1181, 1181, 1212, 1212, 1243, 1243, 1274, 1274,
1305, 1305, 1336, 1336, 1367, 1367, 1398, 1398, 1429, 1429, 1460, 1460, 1491,
1491, 1522, 1522, 1553, 1553, 1584, 1584, 1615, 1615, 1646, 1646, 1677, 1677,
1708, 1708, 1739, 1739, 1770, 1770, 1801, 1801, 1832, 1832, 1863, 1863, 1894,
1894, 1925, 1925, 1956, 1956, 1987, 1987, 2018, 1151, 1182, 1182, 1213, 1213,
1244, 1244, 1275, 1275, 1306, 1306, 1337, 1337, 1368, 1368, 1399, 1399, 1430,
1430, 1461, 1461, 1492, 1492, 1523, 1523, 1554, 1554, 1585, 1585, 1616, 1616,
1647, 1647, 1678, 1678, 1709, 1709, 1740, 1740, 1771, 1771, 1802, 1802, 1833,
1833, 1864, 1864, 1895, 1895, 1926, 1926, 1957, 1957, 1988, 1988, 2019, 1183,
1214, 1214, 1245, 1245, 1276, 1276, 1307, 1307, 1338, 1338, 1369, 1369, 1400,
1400, 1431, 1431, 1462, 1462, 1493, 1493, 1524, 1524, 1555, 1555, 1586, 1586,
1617, 1617, 1648, 1648, 1679, 1679, 1710, 1710, 1741, 1741, 1772, 1772, 1803,
1803, 1834, 1834, 1865, 1865, 1896, 1896, 1927, 1927, 1958, 1958, 1989, 1989,
2020, 1215, 1246, 1246, 1277, 1277, 1308, 1308, 1339, 1339, 1370, 1370, 1401,
1401, 1432, 1432, 1463, 1463, 1494, 1494, 1525, 1525, 1556, 1556, 1587, 1587,
1618, 1618, 1649, 1649, 1680, 1680, 1711, 1711, 1742, 1742, 1773, 1773, 1804,
1804, 1835, 1835, 1866, 1866, 1897, 1897, 1928, 1928, 1959, 1959, 1990, 1990,
2021, 1247, 1278, 1278, 1309, 1309, 1340, 1340, 1371, 1371, 1402, 1402, 1433,
1433, 1464, 1464, 1495, 1495, 1526, 1526, 1557, 1557, 1588, 1588, 1619, 1619,
1650, 1650, 1681, 1681, 1712, 1712, 1743, 1743, 1774, 1774, 1805, 1805, 1836,
1836, 1867, 1867, 1898, 1898, 1929, 1929, 1960, 1960, 1991, 1991, 2022, 1279,
1310, 1310, 1341, 1341, 1372, 1372, 1403, 1403, 1434, 1434, 1465, 1465, 1496,
1496, 1527, 1527, 1558, 1558, 1589, 1589, 1620, 1620, 1651, 1651, 1682, 1682,
1713, 1713, 1744, 1744, 1775, 1775, 1806, 1806, 1837, 1837, 1868, 1868, 1899,
1899, 1930, 1930, 1961, 1961, 1992, 1992, 2023, 1311, 1342, 1342, 1373, 1373,
1404, 1404, 1435, 1435, 1466, 1466, 1497, 1497, 1528, 1528, 1559, 1559, 1590,
1590, 1621, 1621, 1652, 1652, 1683, 1683, 1714, 1714, 1745, 1745, 1776, 1776,
1807, 1807, 1838, 1838, 1869, 1869, 1900, 1900, 1931, 1931, 1962, 1962, 1993,
1993, 2024, 1343, 1374, 1374, 1405, 1405, 1436, 1436, 1467, 1467, 1498, 1498,
1529, 1529, 1560, 1560, 1591, 1591, 1622, 1622, 1653, 1653, 1684, 1684, 1715,
1715, 1746, 1746, 1777, 1777, 1808, 1808, 1839, 1839, 1870, 1870, 1901, 1901,
1932, 1932, 1963, 1963, 1994, 1994, 2025, 1375, 1406, 1406, 1437, 1437, 1468,
1468, 1499, 1499, 1530, 1530, 1561, 1561, 1592, 1592, 1623, 1623, 1654, 1654,
1685, 1685, 1716, 1716, 1747, 1747, 1778, 1778, 1809, 1809, 1840, 1840, 1871,
1871, 1902, 1902, 1933, 1933, 1964, 1964, 1995, 1995, 2026, 1407, 1438, 1438,
1469, 1469, 1500, 1500, 1531, 1531, 1562, 1562, 1593, 1593, 1624, 1624, 1655,
1655, 1686, 1686, 1717, 1717, 1748, 1748, 1779, 1779, 1810, 1810, 1841, 1841,
1872, 1872, 1903, 1903, 1934, 1934, 1965, 1965, 1996, 1996, 2027, 1439, 1470,
1470, 1501, 1501, 1532, 1532, 1563, 1563, 1594, 1594, 1625, 1625, 1656, 1656,
1687, 1687, 1718, 1718, 1749, 1749, 1780, 1780, 1811, 1811, 1842, 1842, 1873,
1873, 1904, 1904, 1935, 1935, 1966, 1966, 1997, 1997, 2028, 1471, 1502, 1502,
1533, 1533, 1564, 1564, 1595, 1595, 1626, 1626, 1657, 1657, 1688, 1688, 1719,
1719, 1750, 1750, 1781, 1781, 1812, 1812, 1843, 1843, 1874, 1874, 1905, 1905,
1936, 1936, 1967, 1967, 1998, 1998, 2029, 1503, 1534, 1534, 1565, 1565, 1596,
1596, 1627, 1627, 1658, 1658, 1689, 1689, 1720, 1720, 1751, 1751, 1782, 1782,
1813, 1813, 1844, 1844, 1875, 1875, 1906, 1906, 1937, 1937, 1968, 1968, 1999,
1999, 2030, 1535, 1566, 1566, 1597, 1597, 1628, 1628, 1659, 1659, 1690, 1690,
1721, 1721, 1752, 1752, 1783, 1783, 1814, 1814, 1845, 1845, 1876, 1876, 1907,
1907, 1938, 1938, 1969, 1969, 2000, 2000, 2031, 1567, 1598, 1598, 1629, 1629,
1660, 1660, 1691, 1691, 1722, 1722, 1753, 1753, 1784, 1784, 1815, 1815, 1846,
1846, 1877, 1877, 1908, 1908, 1939, 1939, 1970, 1970, 2001, 2001, 2032, 1599,
1630, 1630, 1661, 1661, 1692, 1692, 1723, 1723, 1754, 1754, 1785, 1785, 1816,
1816, 1847, 1847, 1878, 1878, 1909, 1909, 1940, 1940, 1971, 1971, 2002, 2002,
2033, 1631, 1662, 1662, 1693, 1693, 1724, 1724, 1755, 1755, 1786, 1786, 1817,
1817, 1848, 1848, 1879, 1879, 1910, 1910, 1941, 1941, 1972, 1972, 2003, 2003,
2034, 1663, 1694, 1694, 1725, 1725, 1756, 1756, 1787, 1787, 1818, 1818, 1849,
1849, 1880, 1880, 1911, 1911, 1942, 1942, 1973, 1973, 2004, 2004, 2035, 1695,
1726, 1726, 1757, 1757, 1788, 1788, 1819, 1819, 1850, 1850, 1881, 1881, 1912,
1912, 1943, 1943, 1974, 1974, 2005, 2005, 2036, 1727, 1758, 1758, 1789, 1789,
1820, 1820, 1851, 1851, 1882, 1882, 1913, 1913, 1944, 1944, 1975, 1975, 2006,
2006, 2037, 1759, 1790, 1790, 1821, 1821, 1852, 1852, 1883, 1883, 1914, 1914,
1945, 1945, 1976, 1976, 2007, 2007, 2038, 1791, 1822, 1822, 1853, 1853, 1884,
1884, 1915, 1915, 1946, 1946, 1977, 1977, 2008, 2008, 2039, 1823, 1854, 1854,
1885, 1885, 1916, 1916, 1947, 1947, 1978, 1978, 2009, 2009, 2040, 1855, 1886,
1886, 1917, 1917, 1948, 1948, 1979, 1979, 2010, 2010, 2041, 1887, 1918, 1918,
1949, 1949, 1980, 1980, 2011, 2011, 2042, 1919, 1950, 1950, 1981, 1981, 2012,
2012, 2043, 1951, 1982, 1982, 2013, 2013, 2044, 1983, 2014, 2014, 2045, 2015,
2046, 0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
default_scan_64x32_neighbors[2049 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 0, 0, 1, 1, 1, 64, 64, 64, 2,
2, 2, 65, 65, 128, 128, 128, 3, 3, 3, 66, 66, 129,
129, 192, 192, 192, 4, 4, 4, 67, 67, 130, 130, 193, 193,
256, 256, 256, 5, 5, 5, 68, 68, 131, 131, 194, 194, 257,
257, 320, 320, 320, 6, 6, 6, 69, 69, 132, 132, 195, 195,
258, 258, 321, 321, 384, 384, 384, 7, 7, 7, 70, 70, 133,
133, 196, 196, 259, 259, 322, 322, 385, 385, 448, 448, 448, 8,
8, 8, 71, 71, 134, 134, 197, 197, 260, 260, 323, 323, 386,
386, 449, 449, 512, 512, 512, 9, 9, 9, 72, 72, 135, 135,
198, 198, 261, 261, 324, 324, 387, 387, 450, 450, 513, 513, 576,
576, 576, 10, 10, 10, 73, 73, 136, 136, 199, 199, 262, 262,
325, 325, 388, 388, 451, 451, 514, 514, 577, 577, 640, 640, 640,
11, 11, 11, 74, 74, 137, 137, 200, 200, 263, 263, 326, 326,
389, 389, 452, 452, 515, 515, 578, 578, 641, 641, 704, 704, 704,
12, 12, 12, 75, 75, 138, 138, 201, 201, 264, 264, 327, 327,
390, 390, 453, 453, 516, 516, 579, 579, 642, 642, 705, 705, 768,
768, 768, 13, 13, 13, 76, 76, 139, 139, 202, 202, 265, 265,
328, 328, 391, 391, 454, 454, 517, 517, 580, 580, 643, 643, 706,
706, 769, 769, 832, 832, 832, 14, 14, 14, 77, 77, 140, 140,
203, 203, 266, 266, 329, 329, 392, 392, 455, 455, 518, 518, 581,
581, 644, 644, 707, 707, 770, 770, 833, 833, 896, 896, 896, 15,
15, 15, 78, 78, 141, 141, 204, 204, 267, 267, 330, 330, 393,
393, 456, 456, 519, 519, 582, 582, 645, 645, 708, 708, 771, 771,
834, 834, 897, 897, 960, 960, 960, 16, 16, 16, 79, 79, 142,
142, 205, 205, 268, 268, 331, 331, 394, 394, 457, 457, 520, 520,
583, 583, 646, 646, 709, 709, 772, 772, 835, 835, 898, 898, 961,
961, 1024, 1024, 1024, 17, 17, 17, 80, 80, 143, 143, 206, 206,
269, 269, 332, 332, 395, 395, 458, 458, 521, 521, 584, 584, 647,
647, 710, 710, 773, 773, 836, 836, 899, 899, 962, 962, 1025, 1025,
1088, 1088, 1088, 18, 18, 18, 81, 81, 144, 144, 207, 207, 270,
270, 333, 333, 396, 396, 459, 459, 522, 522, 585, 585, 648, 648,
711, 711, 774, 774, 837, 837, 900, 900, 963, 963, 1026, 1026, 1089,
1089, 1152, 1152, 1152, 19, 19, 19, 82, 82, 145, 145, 208, 208,
271, 271, 334, 334, 397, 397, 460, 460, 523, 523, 586, 586, 649,
649, 712, 712, 775, 775, 838, 838, 901, 901, 964, 964, 1027, 1027,
1090, 1090, 1153, 1153, 1216, 1216, 1216, 20, 20, 20, 83, 83, 146,
146, 209, 209, 272, 272, 335, 335, 398, 398, 461, 461, 524, 524,
587, 587, 650, 650, 713, 713, 776, 776, 839, 839, 902, 902, 965,
965, 1028, 1028, 1091, 1091, 1154, 1154, 1217, 1217, 1280, 1280, 1280, 21,
21, 21, 84, 84, 147, 147, 210, 210, 273, 273, 336, 336, 399,
399, 462, 462, 525, 525, 588, 588, 651, 651, 714, 714, 777, 777,
840, 840, 903, 903, 966, 966, 1029, 1029, 1092, 1092, 1155, 1155, 1218,
1218, 1281, 1281, 1344, 1344, 1344, 22, 22, 22, 85, 85, 148, 148,
211, 211, 274, 274, 337, 337, 400, 400, 463, 463, 526, 526, 589,
589, 652, 652, 715, 715, 778, 778, 841, 841, 904, 904, 967, 967,
1030, 1030, 1093, 1093, 1156, 1156, 1219, 1219, 1282, 1282, 1345, 1345, 1408,
1408, 1408, 23, 23, 23, 86, 86, 149, 149, 212, 212, 275, 275,
338, 338, 401, 401, 464, 464, 527, 527, 590, 590, 653, 653, 716,
716, 779, 779, 842, 842, 905, 905, 968, 968, 1031, 1031, 1094, 1094,
1157, 1157, 1220, 1220, 1283, 1283, 1346, 1346, 1409, 1409, 1472, 1472, 1472,
24, 24, 24, 87, 87, 150, 150, 213, 213, 276, 276, 339, 339,
402, 402, 465, 465, 528, 528, 591, 591, 654, 654, 717, 717, 780,
780, 843, 843, 906, 906, 969, 969, 1032, 1032, 1095, 1095, 1158, 1158,
1221, 1221, 1284, 1284, 1347, 1347, 1410, 1410, 1473, 1473, 1536, 1536, 1536,
25, 25, 25, 88, 88, 151, 151, 214, 214, 277, 277, 340, 340,
403, 403, 466, 466, 529, 529, 592, 592, 655, 655, 718, 718, 781,
781, 844, 844, 907, 907, 970, 970, 1033, 1033, 1096, 1096, 1159, 1159,
1222, 1222, 1285, 1285, 1348, 1348, 1411, 1411, 1474, 1474, 1537, 1537, 1600,
1600, 1600, 26, 26, 26, 89, 89, 152, 152, 215, 215, 278, 278,
341, 341, 404, 404, 467, 467, 530, 530, 593, 593, 656, 656, 719,
719, 782, 782, 845, 845, 908, 908, 971, 971, 1034, 1034, 1097, 1097,
1160, 1160, 1223, 1223, 1286, 1286, 1349, 1349, 1412, 1412, 1475, 1475, 1538,
1538, 1601, 1601, 1664, 1664, 1664, 27, 27, 27, 90, 90, 153, 153,
216, 216, 279, 279, 342, 342, 405, 405, 468, 468, 531, 531, 594,
594, 657, 657, 720, 720, 783, 783, 846, 846, 909, 909, 972, 972,
1035, 1035, 1098, 1098, 1161, 1161, 1224, 1224, 1287, 1287, 1350, 1350, 1413,
1413, 1476, 1476, 1539, 1539, 1602, 1602, 1665, 1665, 1728, 1728, 1728, 28,
28, 28, 91, 91, 154, 154, 217, 217, 280, 280, 343, 343, 406,
406, 469, 469, 532, 532, 595, 595, 658, 658, 721, 721, 784, 784,
847, 847, 910, 910, 973, 973, 1036, 1036, 1099, 1099, 1162, 1162, 1225,
1225, 1288, 1288, 1351, 1351, 1414, 1414, 1477, 1477, 1540, 1540, 1603, 1603,
1666, 1666, 1729, 1729, 1792, 1792, 1792, 29, 29, 29, 92, 92, 155,
155, 218, 218, 281, 281, 344, 344, 407, 407, 470, 470, 533, 533,
596, 596, 659, 659, 722, 722, 785, 785, 848, 848, 911, 911, 974,
974, 1037, 1037, 1100, 1100, 1163, 1163, 1226, 1226, 1289, 1289, 1352, 1352,
1415, 1415, 1478, 1478, 1541, 1541, 1604, 1604, 1667, 1667, 1730, 1730, 1793,
1793, 1856, 1856, 1856, 30, 30, 30, 93, 93, 156, 156, 219, 219,
282, 282, 345, 345, 408, 408, 471, 471, 534, 534, 597, 597, 660,
660, 723, 723, 786, 786, 849, 849, 912, 912, 975, 975, 1038, 1038,
1101, 1101, 1164, 1164, 1227, 1227, 1290, 1290, 1353, 1353, 1416, 1416, 1479,
1479, 1542, 1542, 1605, 1605, 1668, 1668, 1731, 1731, 1794, 1794, 1857, 1857,
1920, 1920, 1920, 31, 94, 94, 157, 157, 220, 220, 283, 283, 346,
346, 409, 409, 472, 472, 535, 535, 598, 598, 661, 661, 724, 724,
787, 787, 850, 850, 913, 913, 976, 976, 1039, 1039, 1102, 1102, 1165,
1165, 1228, 1228, 1291, 1291, 1354, 1354, 1417, 1417, 1480, 1480, 1543, 1543,
1606, 1606, 1669, 1669, 1732, 1732, 1795, 1795, 1858, 1858, 1921, 1921, 1984,
95, 158, 158, 221, 221, 284, 284, 347, 347, 410, 410, 473, 473,
536, 536, 599, 599, 662, 662, 725, 725, 788, 788, 851, 851, 914,
914, 977, 977, 1040, 1040, 1103, 1103, 1166, 1166, 1229, 1229, 1292, 1292,
1355, 1355, 1418, 1418, 1481, 1481, 1544, 1544, 1607, 1607, 1670, 1670, 1733,
1733, 1796, 1796, 1859, 1859, 1922, 1922, 1985, 159, 222, 222, 285, 285,
348, 348, 411, 411, 474, 474, 537, 537, 600, 600, 663, 663, 726,
726, 789, 789, 852, 852, 915, 915, 978, 978, 1041, 1041, 1104, 1104,
1167, 1167, 1230, 1230, 1293, 1293, 1356, 1356, 1419, 1419, 1482, 1482, 1545,
1545, 1608, 1608, 1671, 1671, 1734, 1734, 1797, 1797, 1860, 1860, 1923, 1923,
1986, 223, 286, 286, 349, 349, 412, 412, 475, 475, 538, 538, 601,
601, 664, 664, 727, 727, 790, 790, 853, 853, 916, 916, 979, 979,
1042, 1042, 1105, 1105, 1168, 1168, 1231, 1231, 1294, 1294, 1357, 1357, 1420,
1420, 1483, 1483, 1546, 1546, 1609, 1609, 1672, 1672, 1735, 1735, 1798, 1798,
1861, 1861, 1924, 1924, 1987, 287, 350, 350, 413, 413, 476, 476, 539,
539, 602, 602, 665, 665, 728, 728, 791, 791, 854, 854, 917, 917,
980, 980, 1043, 1043, 1106, 1106, 1169, 1169, 1232, 1232, 1295, 1295, 1358,
1358, 1421, 1421, 1484, 1484, 1547, 1547, 1610, 1610, 1673, 1673, 1736, 1736,
1799, 1799, 1862, 1862, 1925, 1925, 1988, 351, 414, 414, 477, 477, 540,
540, 603, 603, 666, 666, 729, 729, 792, 792, 855, 855, 918, 918,
981, 981, 1044, 1044, 1107, 1107, 1170, 1170, 1233, 1233, 1296, 1296, 1359,
1359, 1422, 1422, 1485, 1485, 1548, 1548, 1611, 1611, 1674, 1674, 1737, 1737,
1800, 1800, 1863, 1863, 1926, 1926, 1989, 415, 478, 478, 541, 541, 604,
604, 667, 667, 730, 730, 793, 793, 856, 856, 919, 919, 982, 982,
1045, 1045, 1108, 1108, 1171, 1171, 1234, 1234, 1297, 1297, 1360, 1360, 1423,
1423, 1486, 1486, 1549, 1549, 1612, 1612, 1675, 1675, 1738, 1738, 1801, 1801,
1864, 1864, 1927, 1927, 1990, 479, 542, 542, 605, 605, 668, 668, 731,
731, 794, 794, 857, 857, 920, 920, 983, 983, 1046, 1046, 1109, 1109,
1172, 1172, 1235, 1235, 1298, 1298, 1361, 1361, 1424, 1424, 1487, 1487, 1550,
1550, 1613, 1613, 1676, 1676, 1739, 1739, 1802, 1802, 1865, 1865, 1928, 1928,
1991, 543, 606, 606, 669, 669, 732, 732, 795, 795, 858, 858, 921,
921, 984, 984, 1047, 1047, 1110, 1110, 1173, 1173, 1236, 1236, 1299, 1299,
1362, 1362, 1425, 1425, 1488, 1488, 1551, 1551, 1614, 1614, 1677, 1677, 1740,
1740, 1803, 1803, 1866, 1866, 1929, 1929, 1992, 607, 670, 670, 733, 733,
796, 796, 859, 859, 922, 922, 985, 985, 1048, 1048, 1111, 1111, 1174,
1174, 1237, 1237, 1300, 1300, 1363, 1363, 1426, 1426, 1489, 1489, 1552, 1552,
1615, 1615, 1678, 1678, 1741, 1741, 1804, 1804, 1867, 1867, 1930, 1930, 1993,
671, 734, 734, 797, 797, 860, 860, 923, 923, 986, 986, 1049, 1049,
1112, 1112, 1175, 1175, 1238, 1238, 1301, 1301, 1364, 1364, 1427, 1427, 1490,
1490, 1553, 1553, 1616, 1616, 1679, 1679, 1742, 1742, 1805, 1805, 1868, 1868,
1931, 1931, 1994, 735, 798, 798, 861, 861, 924, 924, 987, 987, 1050,
1050, 1113, 1113, 1176, 1176, 1239, 1239, 1302, 1302, 1365, 1365, 1428, 1428,
1491, 1491, 1554, 1554, 1617, 1617, 1680, 1680, 1743, 1743, 1806, 1806, 1869,
1869, 1932, 1932, 1995, 799, 862, 862, 925, 925, 988, 988, 1051, 1051,
1114, 1114, 1177, 1177, 1240, 1240, 1303, 1303, 1366, 1366, 1429, 1429, 1492,
1492, 1555, 1555, 1618, 1618, 1681, 1681, 1744, 1744, 1807, 1807, 1870, 1870,
1933, 1933, 1996, 863, 926, 926, 989, 989, 1052, 1052, 1115, 1115, 1178,
1178, 1241, 1241, 1304, 1304, 1367, 1367, 1430, 1430, 1493, 1493, 1556, 1556,
1619, 1619, 1682, 1682, 1745, 1745, 1808, 1808, 1871, 1871, 1934, 1934, 1997,
927, 990, 990, 1053, 1053, 1116, 1116, 1179, 1179, 1242, 1242, 1305, 1305,
1368, 1368, 1431, 1431, 1494, 1494, 1557, 1557, 1620, 1620, 1683, 1683, 1746,
1746, 1809, 1809, 1872, 1872, 1935, 1935, 1998, 991, 1054, 1054, 1117, 1117,
1180, 1180, 1243, 1243, 1306, 1306, 1369, 1369, 1432, 1432, 1495, 1495, 1558,
1558, 1621, 1621, 1684, 1684, 1747, 1747, 1810, 1810, 1873, 1873, 1936, 1936,
1999, 1055, 1118, 1118, 1181, 1181, 1244, 1244, 1307, 1307, 1370, 1370, 1433,
1433, 1496, 1496, 1559, 1559, 1622, 1622, 1685, 1685, 1748, 1748, 1811, 1811,
1874, 1874, 1937, 1937, 2000, 1119, 1182, 1182, 1245, 1245, 1308, 1308, 1371,
1371, 1434, 1434, 1497, 1497, 1560, 1560, 1623, 1623, 1686, 1686, 1749, 1749,
1812, 1812, 1875, 1875, 1938, 1938, 2001, 1183, 1246, 1246, 1309, 1309, 1372,
1372, 1435, 1435, 1498, 1498, 1561, 1561, 1624, 1624, 1687, 1687, 1750, 1750,
1813, 1813, 1876, 1876, 1939, 1939, 2002, 1247, 1310, 1310, 1373, 1373, 1436,
1436, 1499, 1499, 1562, 1562, 1625, 1625, 1688, 1688, 1751, 1751, 1814, 1814,
1877, 1877, 1940, 1940, 2003, 1311, 1374, 1374, 1437, 1437, 1500, 1500, 1563,
1563, 1626, 1626, 1689, 1689, 1752, 1752, 1815, 1815, 1878, 1878, 1941, 1941,
2004, 1375, 1438, 1438, 1501, 1501, 1564, 1564, 1627, 1627, 1690, 1690, 1753,
1753, 1816, 1816, 1879, 1879, 1942, 1942, 2005, 1439, 1502, 1502, 1565, 1565,
1628, 1628, 1691, 1691, 1754, 1754, 1817, 1817, 1880, 1880, 1943, 1943, 2006,
1503, 1566, 1566, 1629, 1629, 1692, 1692, 1755, 1755, 1818, 1818, 1881, 1881,
1944, 1944, 2007, 1567, 1630, 1630, 1693, 1693, 1756, 1756, 1819, 1819, 1882,
1882, 1945, 1945, 2008, 1631, 1694, 1694, 1757, 1757, 1820, 1820, 1883, 1883,
1946, 1946, 2009, 1695, 1758, 1758, 1821, 1821, 1884, 1884, 1947, 1947, 2010,
1759, 1822, 1822, 1885, 1885, 1948, 1948, 2011, 1823, 1886, 1886, 1949, 1949,
2012, 1887, 1950, 1950, 2013, 1951, 2014, 31, 31, 32, 32, 32, 95,
33, 33, 33, 96, 96, 159, 34, 34, 34, 97, 97, 160, 160,
223, 35, 35, 35, 98, 98, 161, 161, 224, 224, 287, 36, 36,
36, 99, 99, 162, 162, 225, 225, 288, 288, 351, 37, 37, 37,
100, 100, 163, 163, 226, 226, 289, 289, 352, 352, 415, 38, 38,
38, 101, 101, 164, 164, 227, 227, 290, 290, 353, 353, 416, 416,
479, 39, 39, 39, 102, 102, 165, 165, 228, 228, 291, 291, 354,
354, 417, 417, 480, 480, 543, 40, 40, 40, 103, 103, 166, 166,
229, 229, 292, 292, 355, 355, 418, 418, 481, 481, 544, 544, 607,
41, 41, 41, 104, 104, 167, 167, 230, 230, 293, 293, 356, 356,
419, 419, 482, 482, 545, 545, 608, 608, 671, 42, 42, 42, 105,
105, 168, 168, 231, 231, 294, 294, 357, 357, 420, 420, 483, 483,
546, 546, 609, 609, 672, 672, 735, 43, 43, 43, 106, 106, 169,
169, 232, 232, 295, 295, 358, 358, 421, 421, 484, 484, 547, 547,
610, 610, 673, 673, 736, 736, 799, 44, 44, 44, 107, 107, 170,
170, 233, 233, 296, 296, 359, 359, 422, 422, 485, 485, 548, 548,
611, 611, 674, 674, 737, 737, 800, 800, 863, 45, 45, 45, 108,
108, 171, 171, 234, 234, 297, 297, 360, 360, 423, 423, 486, 486,
549, 549, 612, 612, 675, 675, 738, 738, 801, 801, 864, 864, 927,
46, 46, 46, 109, 109, 172, 172, 235, 235, 298, 298, 361, 361,
424, 424, 487, 487, 550, 550, 613, 613, 676, 676, 739, 739, 802,
802, 865, 865, 928, 928, 991, 47, 47, 47, 110, 110, 173, 173,
236, 236, 299, 299, 362, 362, 425, 425, 488, 488, 551, 551, 614,
614, 677, 677, 740, 740, 803, 803, 866, 866, 929, 929, 992, 992,
1055, 48, 48, 48, 111, 111, 174, 174, 237, 237, 300, 300, 363,
363, 426, 426, 489, 489, 552, 552, 615, 615, 678, 678, 741, 741,
804, 804, 867, 867, 930, 930, 993, 993, 1056, 1056, 1119, 49, 49,
49, 112, 112, 175, 175, 238, 238, 301, 301, 364, 364, 427, 427,
490, 490, 553, 553, 616, 616, 679, 679, 742, 742, 805, 805, 868,
868, 931, 931, 994, 994, 1057, 1057, 1120, 1120, 1183, 50, 50, 50,
113, 113, 176, 176, 239, 239, 302, 302, 365, 365, 428, 428, 491,
491, 554, 554, 617, 617, 680, 680, 743, 743, 806, 806, 869, 869,
932, 932, 995, 995, 1058, 1058, 1121, 1121, 1184, 1184, 1247, 51, 51,
51, 114, 114, 177, 177, 240, 240, 303, 303, 366, 366, 429, 429,
492, 492, 555, 555, 618, 618, 681, 681, 744, 744, 807, 807, 870,
870, 933, 933, 996, 996, 1059, 1059, 1122, 1122, 1185, 1185, 1248, 1248,
1311, 52, 52, 52, 115, 115, 178, 178, 241, 241, 304, 304, 367,
367, 430, 430, 493, 493, 556, 556, 619, 619, 682, 682, 745, 745,
808, 808, 871, 871, 934, 934, 997, 997, 1060, 1060, 1123, 1123, 1186,
1186, 1249, 1249, 1312, 1312, 1375, 53, 53, 53, 116, 116, 179, 179,
242, 242, 305, 305, 368, 368, 431, 431, 494, 494, 557, 557, 620,
620, 683, 683, 746, 746, 809, 809, 872, 872, 935, 935, 998, 998,
1061, 1061, 1124, 1124, 1187, 1187, 1250, 1250, 1313, 1313, 1376, 1376, 1439,
54, 54, 54, 117, 117, 180, 180, 243, 243, 306, 306, 369, 369,
432, 432, 495, 495, 558, 558, 621, 621, 684, 684, 747, 747, 810,
810, 873, 873, 936, 936, 999, 999, 1062, 1062, 1125, 1125, 1188, 1188,
1251, 1251, 1314, 1314, 1377, 1377, 1440, 1440, 1503, 55, 55, 55, 118,
118, 181, 181, 244, 244, 307, 307, 370, 370, 433, 433, 496, 496,
559, 559, 622, 622, 685, 685, 748, 748, 811, 811, 874, 874, 937,
937, 1000, 1000, 1063, 1063, 1126, 1126, 1189, 1189, 1252, 1252, 1315, 1315,
1378, 1378, 1441, 1441, 1504, 1504, 1567, 56, 56, 56, 119, 119, 182,
182, 245, 245, 308, 308, 371, 371, 434, 434, 497, 497, 560, 560,
623, 623, 686, 686, 749, 749, 812, 812, 875, 875, 938, 938, 1001,
1001, 1064, 1064, 1127, 1127, 1190, 1190, 1253, 1253, 1316, 1316, 1379, 1379,
1442, 1442, 1505, 1505, 1568, 1568, 1631, 57, 57, 57, 120, 120, 183,
183, 246, 246, 309, 309, 372, 372, 435, 435, 498, 498, 561, 561,
624, 624, 687, 687, 750, 750, 813, 813, 876, 876, 939, 939, 1002,
1002, 1065, 1065, 1128, 1128, 1191, 1191, 1254, 1254, 1317, 1317, 1380, 1380,
1443, 1443, 1506, 1506, 1569, 1569, 1632, 1632, 1695, 58, 58, 58, 121,
121, 184, 184, 247, 247, 310, 310, 373, 373, 436, 436, 499, 499,
562, 562, 625, 625, 688, 688, 751, 751, 814, 814, 877, 877, 940,
940, 1003, 1003, 1066, 1066, 1129, 1129, 1192, 1192, 1255, 1255, 1318, 1318,
1381, 1381, 1444, 1444, 1507, 1507, 1570, 1570, 1633, 1633, 1696, 1696, 1759,
59, 59, 59, 122, 122, 185, 185, 248, 248, 311, 311, 374, 374,
437, 437, 500, 500, 563, 563, 626, 626, 689, 689, 752, 752, 815,
815, 878, 878, 941, 941, 1004, 1004, 1067, 1067, 1130, 1130, 1193, 1193,
1256, 1256, 1319, 1319, 1382, 1382, 1445, 1445, 1508, 1508, 1571, 1571, 1634,
1634, 1697, 1697, 1760, 1760, 1823, 60, 60, 60, 123, 123, 186, 186,
249, 249, 312, 312, 375, 375, 438, 438, 501, 501, 564, 564, 627,
627, 690, 690, 753, 753, 816, 816, 879, 879, 942, 942, 1005, 1005,
1068, 1068, 1131, 1131, 1194, 1194, 1257, 1257, 1320, 1320, 1383, 1383, 1446,
1446, 1509, 1509, 1572, 1572, 1635, 1635, 1698, 1698, 1761, 1761, 1824, 1824,
1887, 61, 61, 61, 124, 124, 187, 187, 250, 250, 313, 313, 376,
376, 439, 439, 502, 502, 565, 565, 628, 628, 691, 691, 754, 754,
817, 817, 880, 880, 943, 943, 1006, 1006, 1069, 1069, 1132, 1132, 1195,
1195, 1258, 1258, 1321, 1321, 1384, 1384, 1447, 1447, 1510, 1510, 1573, 1573,
1636, 1636, 1699, 1699, 1762, 1762, 1825, 1825, 1888, 1888, 1951, 62, 62,
62, 125, 125, 188, 188, 251, 251, 314, 314, 377, 377, 440, 440,
503, 503, 566, 566, 629, 629, 692, 692, 755, 755, 818, 818, 881,
881, 944, 944, 1007, 1007, 1070, 1070, 1133, 1133, 1196, 1196, 1259, 1259,
1322, 1322, 1385, 1385, 1448, 1448, 1511, 1511, 1574, 1574, 1637, 1637, 1700,
1700, 1763, 1763, 1826, 1826, 1889, 1889, 1952, 1952, 2015, 63, 126, 126,
189, 189, 252, 252, 315, 315, 378, 378, 441, 441, 504, 504, 567,
567, 630, 630, 693, 693, 756, 756, 819, 819, 882, 882, 945, 945,
1008, 1008, 1071, 1071, 1134, 1134, 1197, 1197, 1260, 1260, 1323, 1323, 1386,
1386, 1449, 1449, 1512, 1512, 1575, 1575, 1638, 1638, 1701, 1701, 1764, 1764,
1827, 1827, 1890, 1890, 1953, 1953, 2016, 127, 190, 190, 253, 253, 316,
316, 379, 379, 442, 442, 505, 505, 568, 568, 631, 631, 694, 694,
757, 757, 820, 820, 883, 883, 946, 946, 1009, 1009, 1072, 1072, 1135,
1135, 1198, 1198, 1261, 1261, 1324, 1324, 1387, 1387, 1450, 1450, 1513, 1513,
1576, 1576, 1639, 1639, 1702, 1702, 1765, 1765, 1828, 1828, 1891, 1891, 1954,
1954, 2017, 191, 254, 254, 317, 317, 380, 380, 443, 443, 506, 506,
569, 569, 632, 632, 695, 695, 758, 758, 821, 821, 884, 884, 947,
947, 1010, 1010, 1073, 1073, 1136, 1136, 1199, 1199, 1262, 1262, 1325, 1325,
1388, 1388, 1451, 1451, 1514, 1514, 1577, 1577, 1640, 1640, 1703, 1703, 1766,
1766, 1829, 1829, 1892, 1892, 1955, 1955, 2018, 255, 318, 318, 381, 381,
444, 444, 507, 507, 570, 570, 633, 633, 696, 696, 759, 759, 822,
822, 885, 885, 948, 948, 1011, 1011, 1074, 1074, 1137, 1137, 1200, 1200,
1263, 1263, 1326, 1326, 1389, 1389, 1452, 1452, 1515, 1515, 1578, 1578, 1641,
1641, 1704, 1704, 1767, 1767, 1830, 1830, 1893, 1893, 1956, 1956, 2019, 319,
382, 382, 445, 445, 508, 508, 571, 571, 634, 634, 697, 697, 760,
760, 823, 823, 886, 886, 949, 949, 1012, 1012, 1075, 1075, 1138, 1138,
1201, 1201, 1264, 1264, 1327, 1327, 1390, 1390, 1453, 1453, 1516, 1516, 1579,
1579, 1642, 1642, 1705, 1705, 1768, 1768, 1831, 1831, 1894, 1894, 1957, 1957,
2020, 383, 446, 446, 509, 509, 572, 572, 635, 635, 698, 698, 761,
761, 824, 824, 887, 887, 950, 950, 1013, 1013, 1076, 1076, 1139, 1139,
1202, 1202, 1265, 1265, 1328, 1328, 1391, 1391, 1454, 1454, 1517, 1517, 1580,
1580, 1643, 1643, 1706, 1706, 1769, 1769, 1832, 1832, 1895, 1895, 1958, 1958,
2021, 447, 510, 510, 573, 573, 636, 636, 699, 699, 762, 762, 825,
825, 888, 888, 951, 951, 1014, 1014, 1077, 1077, 1140, 1140, 1203, 1203,
1266, 1266, 1329, 1329, 1392, 1392, 1455, 1455, 1518, 1518, 1581, 1581, 1644,
1644, 1707, 1707, 1770, 1770, 1833, 1833, 1896, 1896, 1959, 1959, 2022, 511,
574, 574, 637, 637, 700, 700, 763, 763, 826, 826, 889, 889, 952,
952, 1015, 1015, 1078, 1078, 1141, 1141, 1204, 1204, 1267, 1267, 1330, 1330,
1393, 1393, 1456, 1456, 1519, 1519, 1582, 1582, 1645, 1645, 1708, 1708, 1771,
1771, 1834, 1834, 1897, 1897, 1960, 1960, 2023, 575, 638, 638, 701, 701,
764, 764, 827, 827, 890, 890, 953, 953, 1016, 1016, 1079, 1079, 1142,
1142, 1205, 1205, 1268, 1268, 1331, 1331, 1394, 1394, 1457, 1457, 1520, 1520,
1583, 1583, 1646, 1646, 1709, 1709, 1772, 1772, 1835, 1835, 1898, 1898, 1961,
1961, 2024, 639, 702, 702, 765, 765, 828, 828, 891, 891, 954, 954,
1017, 1017, 1080, 1080, 1143, 1143, 1206, 1206, 1269, 1269, 1332, 1332, 1395,
1395, 1458, 1458, 1521, 1521, 1584, 1584, 1647, 1647, 1710, 1710, 1773, 1773,
1836, 1836, 1899, 1899, 1962, 1962, 2025, 703, 766, 766, 829, 829, 892,
892, 955, 955, 1018, 1018, 1081, 1081, 1144, 1144, 1207, 1207, 1270, 1270,
1333, 1333, 1396, 1396, 1459, 1459, 1522, 1522, 1585, 1585, 1648, 1648, 1711,
1711, 1774, 1774, 1837, 1837, 1900, 1900, 1963, 1963, 2026, 767, 830, 830,
893, 893, 956, 956, 1019, 1019, 1082, 1082, 1145, 1145, 1208, 1208, 1271,
1271, 1334, 1334, 1397, 1397, 1460, 1460, 1523, 1523, 1586, 1586, 1649, 1649,
1712, 1712, 1775, 1775, 1838, 1838, 1901, 1901, 1964, 1964, 2027, 831, 894,
894, 957, 957, 1020, 1020, 1083, 1083, 1146, 1146, 1209, 1209, 1272, 1272,
1335, 1335, 1398, 1398, 1461, 1461, 1524, 1524, 1587, 1587, 1650, 1650, 1713,
1713, 1776, 1776, 1839, 1839, 1902, 1902, 1965, 1965, 2028, 895, 958, 958,
1021, 1021, 1084, 1084, 1147, 1147, 1210, 1210, 1273, 1273, 1336, 1336, 1399,
1399, 1462, 1462, 1525, 1525, 1588, 1588, 1651, 1651, 1714, 1714, 1777, 1777,
1840, 1840, 1903, 1903, 1966, 1966, 2029, 959, 1022, 1022, 1085, 1085, 1148,
1148, 1211, 1211, 1274, 1274, 1337, 1337, 1400, 1400, 1463, 1463, 1526, 1526,
1589, 1589, 1652, 1652, 1715, 1715, 1778, 1778, 1841, 1841, 1904, 1904, 1967,
1967, 2030, 1023, 1086, 1086, 1149, 1149, 1212, 1212, 1275, 1275, 1338, 1338,
1401, 1401, 1464, 1464, 1527, 1527, 1590, 1590, 1653, 1653, 1716, 1716, 1779,
1779, 1842, 1842, 1905, 1905, 1968, 1968, 2031, 1087, 1150, 1150, 1213, 1213,
1276, 1276, 1339, 1339, 1402, 1402, 1465, 1465, 1528, 1528, 1591, 1591, 1654,
1654, 1717, 1717, 1780, 1780, 1843, 1843, 1906, 1906, 1969, 1969, 2032, 1151,
1214, 1214, 1277, 1277, 1340, 1340, 1403, 1403, 1466, 1466, 1529, 1529, 1592,
1592, 1655, 1655, 1718, 1718, 1781, 1781, 1844, 1844, 1907, 1907, 1970, 1970,
2033, 1215, 1278, 1278, 1341, 1341, 1404, 1404, 1467, 1467, 1530, 1530, 1593,
1593, 1656, 1656, 1719, 1719, 1782, 1782, 1845, 1845, 1908, 1908, 1971, 1971,
2034, 1279, 1342, 1342, 1405, 1405, 1468, 1468, 1531, 1531, 1594, 1594, 1657,
1657, 1720, 1720, 1783, 1783, 1846, 1846, 1909, 1909, 1972, 1972, 2035, 1343,
1406, 1406, 1469, 1469, 1532, 1532, 1595, 1595, 1658, 1658, 1721, 1721, 1784,
1784, 1847, 1847, 1910, 1910, 1973, 1973, 2036, 1407, 1470, 1470, 1533, 1533,
1596, 1596, 1659, 1659, 1722, 1722, 1785, 1785, 1848, 1848, 1911, 1911, 1974,
1974, 2037, 1471, 1534, 1534, 1597, 1597, 1660, 1660, 1723, 1723, 1786, 1786,
1849, 1849, 1912, 1912, 1975, 1975, 2038, 1535, 1598, 1598, 1661, 1661, 1724,
1724, 1787, 1787, 1850, 1850, 1913, 1913, 1976, 1976, 2039, 1599, 1662, 1662,
1725, 1725, 1788, 1788, 1851, 1851, 1914, 1914, 1977, 1977, 2040, 1663, 1726,
1726, 1789, 1789, 1852, 1852, 1915, 1915, 1978, 1978, 2041, 1727, 1790, 1790,
1853, 1853, 1916, 1916, 1979, 1979, 2042, 1791, 1854, 1854, 1917, 1917, 1980,
1980, 2043, 1855, 1918, 1918, 1981, 1981, 2044, 1919, 1982, 1982, 2045, 1983,
2046, 0, 0
};
DECLARE_ALIGNED(16, static const int16_t,
default_scan_64x64_neighbors[4097 * MAX_NEIGHBORS]) = {
0, 0, 0, 0, 0, 0, 1, 1, 1, 64, 64, 64, 2,
2, 2, 65, 65, 128, 128, 128, 3, 3, 3, 66, 66, 129,
129, 192, 192, 192, 4, 4, 4, 67, 67, 130, 130, 193, 193,
256, 256, 256, 5, 5, 5, 68, 68, 131, 131, 194, 194, 257,
257, 320, 320, 320, 6, 6, 6, 69, 69, 132, 132, 195, 195,
258, 258, 321, 321, 384, 384, 384, 7, 7, 7, 70, 70, 133,
133, 196, 196, 259, 259, 322, 322, 385, 385, 448, 448, 448, 8,
8, 8, 71, 71, 134, 134, 197, 197, 260, 260, 323, 323, 386,
386, 449, 449, 512, 512, 512, 9, 9, 9, 72, 72, 135, 135,
198, 198, 261, 261, 324, 324, 387, 387, 450, 450, 513, 513, 576,
576, 576, 10, 10, 10, 73, 73, 136, 136, 199, 199, 262, 262,
325, 325, 388, 388, 451, 451, 514, 514, 577, 577, 640, 640, 640,
11, 11, 11, 74, 74, 137, 137, 200, 200, 263, 263, 326, 326,
389, 389, 452, 452, 515, 515, 578, 578, 641, 641, 704, 704, 704,
12, 12, 12, 75, 75, 138, 138, 201, 201, 264, 264, 327, 327,
390, 390, 453, 453, 516, 516, 579, 579, 642, 642, 705, 705, 768,
768, 768, 13, 13, 13, 76, 76, 139, 139, 202, 202, 265, 265,
328, 328, 391, 391, 454, 454, 517, 517, 580, 580, 643, 643, 706,
706, 769, 769, 832, 832, 832, 14, 14, 14, 77, 77, 140, 140,
203, 203, 266, 266, 329, 329, 392, 392, 455, 455, 518, 518, 581,
581, 644, 644, 707, 707, 770, 770, 833, 833, 896, 896, 896, 15,
15, 15, 78, 78, 141, 141, 204, 204, 267, 267, 330, 330, 393,
393, 456, 456, 519, 519, 582, 582, 645, 645, 708, 708, 771, 771,
834, 834, 897, 897, 960, 960, 960, 16, 16, 16, 79, 79, 142,
142, 205, 205, 268, 268, 331, 331, 394, 394, 457, 457, 520, 520,
583, 583, 646, 646, 709, 709, 772, 772, 835, 835, 898, 898, 961,
961, 1024, 1024, 1024, 17, 17, 17, 80, 80, 143, 143, 206, 206,
269, 269, 332, 332, 395, 395, 458, 458, 521, 521, 584, 584, 647,
647, 710, 710, 773, 773, 836, 836, 899, 899, 962, 962, 1025, 1025,
1088, 1088, 1088, 18, 18, 18, 81, 81, 144, 144, 207, 207, 270,
270, 333, 333, 396, 396, 459, 459, 522, 522, 585, 585, 648, 648,
711, 711, 774, 774, 837, 837, 900, 900, 963, 963, 1026, 1026, 1089,
1089, 1152, 1152, 1152, 19, 19, 19, 82, 82, 145, 145, 208, 208,
271, 271, 334, 334, 397, 397, 460, 460, 523, 523, 586, 586, 649,
649, 712, 712, 775, 775, 838, 838, 901, 901, 964, 964, 1027, 1027,
1090, 1090, 1153, 1153, 1216, 1216, 1216, 20, 20, 20, 83, 83, 146,
146, 209, 209, 272, 272, 335, 335, 398, 398, 461, 461, 524, 524,
587, 587, 650, 650, 713, 713, 776, 776, 839, 839, 902, 902, 965,
965, 1028, 1028, 1091, 1091, 1154, 1154, 1217, 1217, 1280, 1280, 1280, 21,
21, 21, 84, 84, 147, 147, 210, 210, 273, 273, 336, 336, 399,
399, 462, 462, 525, 525, 588, 588, 651, 651, 714, 714, 777, 777,
840, 840, 903, 903, 966, 966, 1029, 1029, 1092, 1092, 1155, 1155, 1218,
1218, 1281, 1281, 1344, 1344, 1344, 22, 22, 22, 85, 85, 148, 148,
211, 211, 274, 274, 337, 337, 400, 400, 463, 463, 526, 526, 589,
589, 652, 652, 715, 715, 778, 778, 841, 841, 904, 904, 967, 967,
1030, 1030, 1093, 1093, 1156, 1156, 1219, 1219, 1282, 1282, 1345, 1345, 1408,
1408, 1408, 23, 23, 23, 86, 86, 149, 149, 212, 212, 275, 275,
338, 338, 401, 401, 464, 464, 527, 527, 590, 590, 653, 653, 716,
716, 779, 779, 842, 842, 905, 905, 968, 968, 1031, 1031, 1094, 1094,
1157, 1157, 1220, 1220, 1283, 1283, 1346, 1346, 1409, 1409, 1472, 1472, 1472,
24, 24, 24, 87, 87, 150, 150, 213, 213, 276, 276, 339, 339,
402, 402, 465, 465, 528, 528, 591, 591, 654, 654, 717, 717, 780,
780, 843, 843, 906, 906, 969, 969, 1032, 1032, 1095, 1095, 1158, 1158,
1221, 1221, 1284, 1284, 1347, 1347, 1410, 1410, 1473, 1473, 1536, 1536, 1536,
25, 25, 25, 88, 88, 151, 151, 214, 214, 277, 277, 340, 340,
403, 403, 466, 466, 529, 529, 592, 592, 655, 655, 718, 718, 781,
781, 844, 844, 907, 907, 970, 970, 1033, 1033, 1096, 1096, 1159, 1159,
1222, 1222, 1285, 1285, 1348, 1348, 1411, 1411, 1474, 1474, 1537, 1537, 1600,
1600, 1600, 26, 26, 26, 89, 89, 152, 152, 215, 215, 278, 278,
341, 341, 404, 404, 467, 467, 530, 530, 593, 593, 656, 656, 719,
719, 782, 782, 845, 845, 908, 908, 971, 971, 1034, 1034, 1097, 1097,
1160, 1160, 1223, 1223, 1286, 1286, 1349, 1349, 1412, 1412, 1475, 1475, 1538,
1538, 1601, 1601, 1664, 1664, 1664, 27, 27, 27, 90, 90, 153, 153,
216, 216, 279, 279, 342, 342, 405, 405, 468, 468, 531, 531, 594,
594, 657, 657, 720, 720, 783, 783, 846, 846, 909, 909, 972, 972,
1035, 1035, 1098, 1098, 1161, 1161, 1224, 1224, 1287, 1287, 1350, 1350, 1413,
1413, 1476, 1476, 1539, 1539, 1602, 1602, 1665, 1665, 1728, 1728, 1728, 28,
28, 28, 91, 91, 154, 154, 217, 217, 280, 280, 343, 343, 406,
406, 469, 469, 532, 532, 595, 595, 658, 658, 721, 721, 784, 784,
847, 847, 910, 910, 973, 973, 1036, 1036, 1099, 1099, 1162, 1162, 1225,
1225, 1288, 1288, 1351, 1351, 1414, 1414, 1477, 1477, 1540, 1540, 1603, 1603,
1666, 1666, 1729, 1729, 1792, 1792, 1792, 29, 29, 29, 92, 92, 155,
155, 218, 218, 281, 281, 344, 344, 407, 407, 470, 470, 533, 533,
596, 596, 659, 659, 722, 722, 785, 785, 848, 848, 911, 911, 974,
974, 1037, 1037, 1100, 1100, 1163, 1163, 1226, 1226, 1289, 1289, 1352, 1352,
1415, 1415, 1478, 1478, 1541, 1541, 1604, 1604, 1667, 1667, 1730, 1730, 1793,
1793, 1856, 1856, 1856, 30, 30, 30, 93, 93, 156, 156, 219, 219,
282, 282, 345, 345, 408, 408, 471, 471, 534, 534, 597, 597, 660,
660, 723, 723, 786, 786, 849, 849, 912, 912, 975, 975, 1038, 1038,
1101, 1101, 1164, 1164, 1227, 1227, 1290, 1290, 1353, 1353, 1416, 1416, 1479,
1479, 1542, 1542, 1605, 1605, 1668, 1668, 1731, 1731, 1794, 1794, 1857, 1857,
1920, 1920, 1920, 31, 94, 94, 157, 157, 220, 220, 283, 283, 346,
346, 409, 409, 472, 472, 535, 535, 598, 598, 661, 661, 724, 724,
787, 787, 850, 850, 913, 913, 976, 976, 1039, 1039, 1102, 1102, 1165,
1165, 1228, 1228, 1291, 1291, 1354, 1354, 1417, 1417, 1480, 1480, 1543, 1543,
1606, 1606, 1669, 1669, 1732, 1732, 1795, 1795, 1858, 1858, 1921, 1921, 1984,
95, 158, 158, 221, 221, 284, 284, 347, 347, 410, 410, 473, 473,
536, 536, 599, 599, 662, 662, 725, 725, 788, 788, 851, 851, 914,
914, 977, 977, 1040, 1040, 1103, 1103, 1166, 1166, 1229, 1229, 1292, 1292,
1355, 1355, 1418, 1418, 1481, 1481, 1544, 1544, 1607, 1607, 1670, 1670, 1733,
1733, 1796, 1796, 1859, 1859, 1922, 1922, 1985, 159, 222, 222, 285, 285,
348, 348, 411, 411, 474, 474, 537, 537, 600, 600, 663, 663, 726,
726, 789, 789, 852, 852, 915, 915, 978, 978, 1041, 1041, 1104, 1104,
1167, 1167, 1230, 1230, 1293, 1293, 1356, 1356, 1419, 1419, 1482, 1482, 1545,
1545, 1608, 1608, 1671, 1671, 1734, 1734, 1797, 1797, 1860, 1860, 1923, 1923,
1986, 223, 286, 286, 349, 349, 412, 412, 475, 475, 538, 538, 601,
601, 664, 664, 727, 727, 790, 790, 853, 853, 916, 916, 979, 979,
1042, 1042, 1105, 1105, 1168, 1168, 1231, 1231, 1294, 1294, 1357, 1357, 1420,
1420, 1483, 1483, 1546, 1546, 1609, 1609, 1672, 1672, 1735, 1735, 1798, 1798,
1861, 1861, 1924, 1924, 1987, 287, 350, 350, 413, 413, 476, 476, 539,
539, 602, 602, 665, 665, 728, 728, 791, 791, 854, 854, 917, 917,
980, 980, 1043, 1043, 1106, 1106, 1169, 1169, 1232, 1232, 1295, 1295, 1358,
1358, 1421, 1421, 1484, 1484, 1547, 1547, 1610, 1610, 1673, 1673, 1736, 1736,
1799, 1799, 1862, 1862, 1925, 1925, 1988, 351, 414, 414, 477, 477, 540,
540, 603, 603, 666, 666, 729, 729, 792, 792, 855, 855, 918, 918,
981, 981, 1044, 1044, 1107, 1107, 1170, 1170, 1233, 1233, 1296, 1296, 1359,
1359, 1422, 1422, 1485, 1485, 1548, 1548, 1611, 1611, 1674, 1674, 1737, 1737,
1800, 1800, 1863, 1863, 1926, 1926, 1989, 415, 478, 478, 541, 541, 604,
604, 667, 667, 730, 730, 793, 793, 856, 856, 919, 919, 982, 982,
1045, 1045, 1108, 1108, 1171, 1171, 1234, 1234, 1297, 1297, 1360, 1360, 1423,
1423, 1486, 1486, 1549, 1549, 1612, 1612, 1675, 1675, 1738, 1738, 1801, 1801,
1864, 1864, 1927, 1927, 1990, 479, 542, 542, 605, 605, 668, 668, 731,
731, 794, 794, 857, 857, 920, 920, 983, 983, 1046, 1046, 1109, 1109,
1172, 1172, 1235, 1235, 1298, 1298, 1361, 1361, 1424, 1424, 1487, 1487, 1550,
1550, 1613, 1613, 1676, 1676, 1739, 1739, 1802, 1802, 1865, 1865, 1928, 1928,
1991, 543, 606, 606, 669, 669, 732, 732, 795, 795, 858, 858, 921,
921, 984, 984, 1047, 1047, 1110, 1110, 1173, 1173, 1236, 1236, 1299, 1299,
1362, 1362, 1425, 1425, 1488, 1488, 1551, 1551, 1614, 1614, 1677, 1677, 1740,
1740, 1803, 1803, 1866, 1866, 1929, 1929, 1992, 607, 670, 670, 733, 733,
796, 796, 859, 859, 922, 922, 985, 985, 1048, 1048, 1111, 1111, 1174,
1174, 1237, 1237, 1300, 1300, 1363, 1363, 1426, 1426, 1489, 1489, 1552, 1552,
1615, 1615, 1678, 1678, 1741, 1741, 1804, 1804, 1867, 1867, 1930, 1930, 1993,
671, 734, 734, 797, 797, 860, 860, 923, 923, 986, 986, 1049, 1049,
1112, 1112, 1175, 1175, 1238, 1238, 1301, 1301, 1364, 1364, 1427, 1427, 1490,
1490, 1553, 1553, 1616, 1616, 1679, 1679, 1742, 1742, 1805, 1805, 1868, 1868,
1931, 1931, 1994, 735, 798, 798, 861, 861, 924, 924, 987, 987, 1050,
1050, 1113, 1113, 1176, 1176, 1239, 1239, 1302, 1302, 1365, 1365, 1428, 1428,
1491, 1491, 1554, 1554, 1617, 1617, 1680, 1680, 1743, 1743, 1806, 1806, 1869,
1869, 1932, 1932, 1995, 799, 862, 862, 925, 925, 988, 988, 1051, 1051,
1114, 1114, 1177, 1177, 1240, 1240, 1303, 1303, 1366, 1366, 1429, 1429, 1492,
1492, 1555, 1555, 1618, 1618, 1681, 1681, 1744, 1744, 1807, 1807, 1870, 1870,
1933, 1933, 1996, 863, 926, 926, 989, 989, 1052, 1052, 1115, 1115, 1178,
1178, 1241, 1241, 1304, 1304, 1367, 1367, 1430, 1430, 1493, 1493, 1556, 1556,
1619, 1619, 1682, 1682, 1745, 1745, 1808, 1808, 1871, 1871, 1934, 1934, 1997,
927, 990, 990, 1053, 1053, 1116, 1116, 1179, 1179, 1242, 1242, 1305, 1305,
1368, 1368, 1431, 1431, 1494, 1494, 1557, 1557, 1620, 1620, 1683, 1683, 1746,
1746, 1809, 1809, 1872, 1872, 1935, 1935, 1998, 991, 1054, 1054, 1117, 1117,
1180, 1180, 1243, 1243, 1306, 1306, 1369, 1369, 1432, 1432, 1495, 1495, 1558,
1558, 1621, 1621, 1684, 1684, 1747, 1747, 1810, 1810, 1873, 1873, 1936, 1936,
1999, 1055, 1118, 1118, 1181, 1181, 1244, 1244, 1307, 1307, 1370, 1370, 1433,
1433, 1496, 1496, 1559, 1559, 1622, 1622, 1685, 1685, 1748, 1748, 1811, 1811,
1874, 1874, 1937, 1937, 2000, 1119, 1182, 1182, 1245, 1245, 1308, 1308, 1371,
1371, 1434, 1434, 1497, 1497, 1560, 1560, 1623, 1623, 1686, 1686, 1749, 1749,
1812, 1812, 1875, 1875, 1938, 1938, 2001, 1183, 1246, 1246, 1309, 1309, 1372,
1372, 1435, 1435, 1498, 1498, 1561, 1561, 1624, 1624, 1687, 1687, 1750, 1750,
1813, 1813, 1876, 1876, 1939, 1939, 2002, 1247, 1310, 1310, 1373, 1373, 1436,
1436, 1499, 1499, 1562, 1562, 1625, 1625, 1688, 1688, 1751, 1751, 1814, 1814,
1877, 1877, 1940, 1940, 2003, 1311, 1374, 1374, 1437, 1437, 1500, 1500, 1563,
1563, 1626, 1626, 1689, 1689, 1752, 1752, 1815, 1815, 1878, 1878, 1941, 1941,
2004, 1375, 1438, 1438, 1501, 1501, 1564, 1564, 1627, 1627, 1690, 1690, 1753,
1753, 1816, 1816, 1879, 1879, 1942, 1942, 2005, 1439, 1502, 1502, 1565, 1565,
1628, 1628, 1691, 1691, 1754, 1754, 1817, 1817, 1880, 1880, 1943, 1943, 2006,
1503, 1566, 1566, 1629, 1629, 1692, 1692, 1755, 1755, 1818, 1818, 1881, 1881,
1944, 1944, 2007, 1567, 1630, 1630, 1693, 1693, 1756, 1756, 1819, 1819, 1882,
1882, 1945, 1945, 2008, 1631, 1694, 1694, 1757, 1757, 1820, 1820, 1883, 1883,
1946, 1946, 2009, 1695, 1758, 1758, 1821, 1821, 1884, 1884, 1947, 1947, 2010,
1759, 1822, 1822, 1885, 1885, 1948, 1948, 2011, 1823, 1886, 1886, 1949, 1949,
2012, 1887, 1950, 1950, 2013, 1951, 2014, 31, 31, 1984, 1984, 32, 32,
32, 95, 1985, 2048, 2048, 2048, 33, 33, 33, 96, 96, 159, 1986,
2049, 2049, 2112, 2112, 2112, 34, 34, 34, 97, 97, 160, 160, 223,
1987, 2050, 2050, 2113, 2113, 2176, 2176, 2176, 35, 35, 35, 98, 98,
161, 161, 224, 224, 287, 1988, 2051, 2051, 2114, 2114, 2177, 2177, 2240,
2240, 2240, 36, 36, 36, 99, 99, 162, 162, 225, 225, 288, 288,
351, 1989, 2052, 2052, 2115, 2115, 2178, 2178, 2241, 2241, 2304, 2304, 2304,
37, 37, 37, 100, 100, 163, 163, 226, 226, 289, 289, 352, 352,
415, 1990, 2053, 2053, 2116, 2116, 2179, 2179, 2242, 2242, 2305, 2305, 2368,
2368, 2368, 38, 38, 38, 101, 101, 164, 164, 227, 227, 290, 290,
353, 353, 416, 416, 479, 1991, 2054, 2054, 2117, 2117, 2180, 2180, 2243,
2243, 2306, 2306, 2369, 2369, 2432, 2432, 2432, 39, 39, 39, 102, 102,
165, 165, 228, 228, 291, 291, 354, 354, 417, 417, 480, 480, 543,
1992, 2055, 2055, 2118, 2118, 2181, 2181, 2244, 2244, 2307, 2307, 2370, 2370,
2433, 2433, 2496, 2496, 2496, 40, 40, 40, 103, 103, 166, 166, 229,
229, 292, 292, 355, 355, 418, 418, 481, 481, 544, 544, 607, 1993,
2056, 2056, 2119, 2119, 2182, 2182, 2245, 2245, 2308, 2308, 2371, 2371, 2434,
2434, 2497, 2497, 2560, 2560, 2560, 41, 41, 41, 104, 104, 167, 167,
230, 230, 293, 293, 356, 356, 419, 419, 482, 482, 545, 545, 608,
608, 671, 1994, 2057, 2057, 2120, 2120, 2183, 2183, 2246, 2246, 2309, 2309,
2372, 2372, 2435, 2435, 2498, 2498, 2561, 2561, 2624, 2624, 2624, 42, 42,
42, 105, 105, 168, 168, 231, 231, 294, 294, 357, 357, 420, 420,
483, 483, 546, 546, 609, 609, 672, 672, 735, 1995, 2058, 2058, 2121,
2121, 2184, 2184, 2247, 2247, 2310, 2310, 2373, 2373, 2436, 2436, 2499, 2499,
2562, 2562, 2625, 2625, 2688, 2688, 2688, 43, 43, 43, 106, 106, 169,
169, 232, 232, 295, 295, 358, 358, 421, 421, 484, 484, 547, 547,
610, 610, 673, 673, 736, 736, 799, 1996, 2059, 2059, 2122, 2122, 2185,
2185, 2248, 2248, 2311, 2311, 2374, 2374, 2437, 2437, 2500, 2500, 2563, 2563,
2626, 2626, 2689, 2689, 2752, 2752, 2752, 44, 44, 44, 107, 107, 170,
170, 233, 233, 296, 296, 359, 359, 422, 422, 485, 485, 548, 548,
611, 611, 674, 674, 737, 737, 800, 800, 863, 1997, 2060, 2060, 2123,
2123, 2186, 2186, 2249, 2249, 2312, 2312, 2375, 2375, 2438, 2438, 2501, 2501,
2564, 2564, 2627, 2627, 2690, 2690, 2753, 2753, 2816, 2816, 2816, 45, 45,
45, 108, 108, 171, 171, 234, 234, 297, 297, 360, 360, 423, 423,
486, 486, 549, 549, 612, 612, 675, 675, 738, 738, 801, 801, 864,
864, 927, 1998, 2061, 2061, 2124, 2124, 2187, 2187, 2250, 2250, 2313, 2313,
2376, 2376, 2439, 2439, 2502, 2502, 2565, 2565, 2628, 2628, 2691, 2691, 2754,
2754, 2817, 2817, 2880, 2880, 2880, 46, 46, 46, 109, 109, 172, 172,
235, 235, 298, 298, 361, 361, 424, 424, 487, 487, 550, 550, 613,
613, 676, 676, 739, 739, 802, 802, 865, 865, 928, 928, 991, 1999,
2062, 2062, 2125, 2125, 2188, 2188, 2251, 2251, 2314, 2314, 2377, 2377, 2440,
2440, 2503, 2503, 2566, 2566, 2629, 2629, 2692, 2692, 2755, 2755, 2818, 2818,
2881, 2881, 2944, 2944, 2944, 47, 47, 47, 110, 110, 173, 173, 236,
236, 299, 299, 362, 362, 425, 425, 488, 488, 551, 551, 614, 614,
677, 677, 740, 740, 803, 803, 866, 866, 929, 929, 992, 992, 1055,
2000, 2063, 2063, 2126, 2126, 2189, 2189, 2252, 2252, 2315, 2315, 2378, 2378,
2441, 2441, 2504, 2504, 2567, 2567, 2630, 2630, 2693, 2693, 2756, 2756, 2819,
2819, 2882, 2882, 2945, 2945, 3008, 3008, 3008, 48, 48, 48, 111, 111,
174, 174, 237, 237, 300, 300, 363, 363, 426, 426, 489, 489, 552,
552, 615, 615, 678, 678, 741, 741, 804, 804, 867, 867, 930, 930,
993, 993, 1056, 1056, 1119, 2001, 2064, 2064, 2127, 2127, 2190, 2190, 2253,
2253, 2316, 2316, 2379, 2379, 2442, 2442, 2505, 2505, 2568, 2568, 2631, 2631,
2694, 2694, 2757, 2757, 2820, 2820, 2883, 2883, 2946, 2946, 3009, 3009, 3072,
3072, 3072, 49, 49, 49, 112, 112, 175, 175, 238, 238, 301, 301,
364, 364, 427, 427, 490, 490, 553, 553, 616, 616, 679, 679, 742,
742, 805, 805, 868, 868, 931, 931, 994, 994, 1057, 1057, 1120, 1120,
1183, 2002, 2065, 2065, 2128, 2128, 2191, 2191, 2254, 2254, 2317, 2317, 2380,
2380, 2443, 2443, 2506, 2506, 2569, 2569, 2632, 2632, 2695, 2695, 2758, 2758,
2821, 2821, 2884, 2884, 2947, 2947, 3010, 3010, 3073, 3073, 3136, 3136, 3136,
50, 50, 50, 113, 113, 176, 176, 239, 239, 302, 302, 365, 365,
428, 428, 491, 491, 554, 554, 617, 617, 680, 680, 743, 743, 806,
806, 869, 869, 932, 932, 995, 995, 1058, 1058, 1121, 1121, 1184, 1184,
1247, 2003, 2066, 2066, 2129, 2129, 2192, 2192, 2255, 2255, 2318, 2318, 2381,
2381, 2444, 2444, 2507, 2507, 2570, 2570, 2633, 2633, 2696, 2696, 2759, 2759,
2822, 2822, 2885, 2885, 2948, 2948, 3011, 3011, 3074, 3074, 3137, 3137, 3200,
3200, 3200, 51, 51, 51, 114, 114, 177, 177, 240, 240, 303, 303,
366, 366, 429, 429, 492, 492, 555, 555, 618, 618, 681, 681, 744,
744, 807, 807, 870, 870, 933, 933, 996, 996, 1059, 1059, 1122, 1122,
1185, 1185, 1248, 1248, 1311, 2004, 2067, 2067, 2130, 2130, 2193, 2193, 2256,
2256, 2319, 2319, 2382, 2382, 2445, 2445, 2508, 2508, 2571, 2571, 2634, 2634,
2697, 2697, 2760, 2760, 2823, 2823, 2886, 2886, 2949, 2949, 3012, 3012, 3075,
3075, 3138, 3138, 3201, 3201, 3264, 3264, 3264, 52, 52, 52, 115, 115,
178, 178, 241, 241, 304, 304, 367, 367, 430, 430, 493, 493, 556,
556, 619, 619, 682, 682, 745, 745, 808, 808, 871, 871, 934, 934,
997, 997, 1060, 1060, 1123, 1123, 1186, 1186, 1249, 1249, 1312, 1312, 1375,
2005, 2068, 2068, 2131, 2131, 2194, 2194, 2257, 2257, 2320, 2320, 2383, 2383,
2446, 2446, 2509, 2509, 2572, 2572, 2635, 2635, 2698, 2698, 2761, 2761, 2824,
2824, 2887, 2887, 2950, 2950, 3013, 3013, 3076, 3076, 3139, 3139, 3202, 3202,
3265, 3265, 3328, 3328, 3328, 53, 53, 53, 116, 116, 179, 179, 242,
242, 305, 305, 368, 368, 431, 431, 494, 494, 557, 557, 620, 620,
683, 683, 746, 746, 809, 809, 872, 872, 935, 935, 998, 998, 1061,
1061, 1124, 1124, 1187, 1187, 1250, 1250, 1313, 1313, 1376, 1376, 1439, 2006,
2069, 2069, 2132, 2132, 2195, 2195, 2258, 2258, 2321, 2321, 2384, 2384, 2447,
2447, 2510, 2510, 2573, 2573, 2636, 2636, 2699, 2699, 2762, 2762, 2825, 2825,
2888, 2888, 2951, 2951, 3014, 3014, 3077, 3077, 3140, 3140, 3203, 3203, 3266,
3266, 3329, 3329, 3392, 3392, 3392, 54, 54, 54, 117, 117, 180, 180,
243, 243, 306, 306, 369, 369, 432, 432, 495, 495, 558, 558, 621,
621, 684, 684, 747, 747, 810, 810, 873, 873, 936, 936, 999, 999,
1062, 1062, 1125, 1125, 1188, 1188, 1251, 1251, 1314, 1314, 1377, 1377, 1440,
1440, 1503, 2007, 2070, 2070, 2133, 2133, 2196, 2196, 2259, 2259, 2322, 2322,
2385, 2385, 2448, 2448, 2511, 2511, 2574, 2574, 2637, 2637, 2700, 2700, 2763,
2763, 2826, 2826, 2889, 2889, 2952, 2952, 3015, 3015, 3078, 3078, 3141, 3141,
3204, 3204, 3267, 3267, 3330, 3330, 3393, 3393, 3456, 3456, 3456, 55, 55,
55, 118, 118, 181, 181, 244, 244, 307, 307, 370, 370, 433, 433,
496, 496, 559, 559, 622, 622, 685, 685, 748, 748, 811, 811, 874,
874, 937, 937, 1000, 1000, 1063, 1063, 1126, 1126, 1189, 1189, 1252, 1252,
1315, 1315, 1378, 1378, 1441, 1441, 1504, 1504, 1567, 2008, 2071, 2071, 2134,
2134, 2197, 2197, 2260, 2260, 2323, 2323, 2386, 2386, 2449, 2449, 2512, 2512,
2575, 2575, 2638, 2638, 2701, 2701, 2764, 2764, 2827, 2827, 2890, 2890, 2953,
2953, 3016, 3016, 3079, 3079, 3142, 3142, 3205, 3205, 3268, 3268, 3331, 3331,
3394, 3394, 3457, 3457, 3520, 3520, 3520, 56, 56, 56, 119, 119, 182,
182, 245, 245, 308, 308, 371, 371, 434, 434, 497, 497, 560, 560,
623, 623, 686, 686, 749, 749, 812, 812, 875, 875, 938, 938, 1001,
1001, 1064, 1064, 1127, 1127, 1190, 1190, 1253, 1253, 1316, 1316, 1379, 1379,
1442, 1442, 1505, 1505, 1568, 1568, 1631, 2009, 2072, 2072, 2135, 2135, 2198,
2198, 2261, 2261, 2324, 2324, 2387, 2387, 2450, 2450, 2513, 2513, 2576, 2576,
2639, 2639, 2702, 2702, 2765, 2765, 2828, 2828, 2891, 2891, 2954, 2954, 3017,
3017, 3080, 3080, 3143, 3143, 3206, 3206, 3269, 3269, 3332, 3332, 3395, 3395,
3458, 3458, 3521, 3521, 3584, 3584, 3584, 57, 57, 57, 120, 120, 183,
183, 246, 246, 309, 309, 372, 372, 435, 435, 498, 498, 561, 561,
624, 624, 687, 687, 750, 750, 813, 813, 876, 876, 939, 939, 1002,
1002, 1065, 1065, 1128, 1128, 1191, 1191, 1254, 1254, 1317, 1317, 1380, 1380,
1443, 1443, 1506, 1506, 1569, 1569, 1632, 1632, 1695, 2010, 2073, 2073, 2136,
2136, 2199, 2199, 2262, 2262, 2325, 2325, 2388, 2388, 2451, 2451, 2514, 2514,
2577, 2577, 2640, 2640, 2703, 2703, 2766, 2766, 2829, 2829, 2892, 2892, 2955,
2955, 3018, 3018, 3081, 3081, 3144, 3144, 3207, 3207, 3270, 3270, 3333, 3333,
3396, 3396, 3459, 3459, 3522, 3522, 3585, 3585, 3648, 3648, 3648, 58, 58,
58, 121, 121, 184, 184, 247, 247, 310, 310, 373, 373, 436, 436,
499, 499, 562, 562, 625, 625, 688, 688, 751, 751, 814, 814, 877,
877, 940, 940, 1003, 1003, 1066, 1066, 1129, 1129, 1192, 1192, 1255, 1255,
1318, 1318, 1381, 1381, 1444, 1444, 1507, 1507, 1570, 1570, 1633, 1633, 1696,
1696, 1759, 2011, 2074, 2074, 2137, 2137, 2200, 2200, 2263, 2263, 2326, 2326,
2389, 2389, 2452, 2452, 2515, 2515, 2578, 2578, 2641, 2641, 2704, 2704, 2767,
2767, 2830, 2830, 2893, 2893, 2956, 2956, 3019, 3019, 3082, 3082, 3145, 3145,
3208, 3208, 3271, 3271, 3334, 3334, 3397, 3397, 3460, 3460, 3523, 3523, 3586,
3586, 3649, 3649, 3712, 3712, 3712, 59, 59, 59, 122, 122, 185, 185,
248, 248, 311, 311, 374, 374, 437, 437, 500, 500, 563, 563, 626,
626, 689, 689, 752, 752, 815, 815, 878, 878, 941, 941, 1004, 1004,
1067, 1067, 1130, 1130, 1193, 1193, 1256, 1256, 1319, 1319, 1382, 1382, 1445,
1445, 1508, 1508, 1571, 1571, 1634, 1634, 1697, 1697, 1760, 1760, 1823, 2012,
2075, 2075, 2138, 2138, 2201, 2201, 2264, 2264, 2327, 2327, 2390, 2390, 2453,
2453, 2516, 2516, 2579, 2579, 2642, 2642, 2705, 2705, 2768, 2768, 2831, 2831,
2894, 2894, 2957, 2957, 3020, 3020, 3083, 3083, 3146, 3146, 3209, 3209, 3272,
3272, 3335, 3335, 3398, 3398, 3461, 3461, 3524, 3524, 3587, 3587, 3650, 3650,
3713, 3713, 3776, 3776, 3776, 60, 60, 60, 123, 123, 186, 186, 249,
249, 312, 312, 375, 375, 438, 438, 501, 501, 564, 564, 627, 627,
690, 690, 753, 753, 816, 816, 879, 879, 942, 942, 1005, 1005, 1068,
1068, 1131, 1131, 1194, 1194, 1257, 1257, 1320, 1320, 1383, 1383, 1446, 1446,
1509, 1509, 1572, 1572, 1635, 1635, 1698, 1698, 1761, 1761, 1824, 1824, 1887,
2013, 2076, 2076, 2139, 2139, 2202, 2202, 2265, 2265, 2328, 2328, 2391, 2391,
2454, 2454, 2517, 2517, 2580, 2580, 2643, 2643, 2706, 2706, 2769, 2769, 2832,
2832, 2895, 2895, 2958, 2958, 3021, 3021, 3084, 3084, 3147, 3147, 3210, 3210,
3273, 3273, 3336, 3336, 3399, 3399, 3462, 3462, 3525, 3525, 3588, 3588, 3651,
3651, 3714, 3714, 3777, 3777, 3840, 3840, 3840, 61, 61, 61, 124, 124,
187, 187, 250, 250, 313, 313, 376, 376, 439, 439, 502, 502, 565,
565, 628, 628, 691, 691, 754, 754, 817, 817, 880, 880, 943, 943,
1006, 1006, 1069, 1069, 1132, 1132, 1195, 1195, 1258, 1258, 1321, 1321, 1384,
1384, 1447, 1447, 1510, 1510, 1573, 1573, 1636, 1636, 1699, 1699, 1762, 1762,
1825, 1825, 1888, 1888, 1951, 2014, 2077, 2077, 2140, 2140, 2203, 2203, 2266,
2266, 2329, 2329, 2392, 2392, 2455, 2455, 2518, 2518, 2581, 2581, 2644, 2644,
2707, 2707, 2770, 2770, 2833, 2833, 2896, 2896, 2959, 2959, 3022, 3022, 3085,
3085, 3148, 3148, 3211, 3211, 3274, 3274, 3337, 3337, 3400, 3400, 3463, 3463,
3526, 3526, 3589, 3589, 3652, 3652, 3715, 3715, 3778, 3778, 3841, 3841, 3904,
3904, 3904, 62, 62, 62, 125, 125, 188, 188, 251, 251, 314, 314,
377, 377, 440, 440, 503, 503, 566, 566, 629, 629, 692, 692, 755,
755, 818, 818, 881, 881, 944, 944, 1007, 1007, 1070, 1070, 1133, 1133,
1196, 1196, 1259, 1259, 1322, 1322, 1385, 1385, 1448, 1448, 1511, 1511, 1574,
1574, 1637, 1637, 1700, 1700, 1763, 1763, 1826, 1826, 1889, 1889, 1952, 1952,
2015, 2015, 2078, 2078, 2141, 2141, 2204, 2204, 2267, 2267, 2330, 2330, 2393,
2393, 2456, 2456, 2519, 2519, 2582, 2582, 2645, 2645, 2708, 2708, 2771, 2771,
2834, 2834, 2897, 2897, 2960, 2960, 3023, 3023, 3086, 3086, 3149, 3149, 3212,
3212, 3275, 3275, 3338, 3338, 3401, 3401, 3464, 3464, 3527, 3527, 3590, 3590,
3653, 3653, 3716, 3716, 3779, 3779, 3842, 3842, 3905, 3905, 3968, 3968, 3968,
63, 126, 126, 189, 189, 252, 252, 315, 315, 378, 378, 441, 441,
504, 504, 567, 567, 630, 630, 693, 693, 756, 756, 819, 819, 882,
882, 945, 945, 1008, 1008, 1071, 1071, 1134, 1134, 1197, 1197, 1260, 1260,
1323, 1323, 1386, 1386, 1449, 1449, 1512, 1512, 1575, 1575, 1638, 1638, 1701,
1701, 1764, 1764, 1827, 1827, 1890, 1890, 1953, 1953, 2016, 2016, 2079, 2079,
2142, 2142, 2205, 2205, 2268, 2268, 2331, 2331, 2394, 2394, 2457, 2457, 2520,
2520, 2583, 2583, 2646, 2646, 2709, 2709, 2772, 2772, 2835, 2835, 2898, 2898,
2961, 2961, 3024, 3024, 3087, 3087, 3150, 3150, 3213, 3213, 3276, 3276, 3339,
3339, 3402, 3402, 3465, 3465, 3528, 3528, 3591, 3591, 3654, 3654, 3717, 3717,
3780, 3780, 3843, 3843, 3906, 3906, 3969, 3969, 4032, 127, 190, 190, 253,
253, 316, 316, 379, 379, 442, 442, 505, 505, 568, 568, 631, 631,
694, 694, 757, 757, 820, 820, 883, 883, 946, 946, 1009, 1009, 1072,
1072, 1135, 1135, 1198, 1198, 1261, 1261, 1324, 1324, 1387, 1387, 1450, 1450,
1513, 1513, 1576, 1576, 1639, 1639, 1702, 1702, 1765, 1765, 1828, 1828, 1891,
1891, 1954, 1954, 2017, 2017, 2080, 2080, 2143, 2143, 2206, 2206, 2269, 2269,
2332, 2332, 2395, 2395, 2458, 2458, 2521, 2521, 2584, 2584, 2647, 2647, 2710,
2710, 2773, 2773, 2836, 2836, 2899, 2899, 2962, 2962, 3025, 3025, 3088, 3088,
3151, 3151, 3214, 3214, 3277, 3277, 3340, 3340, 3403, 3403, 3466, 3466, 3529,
3529, 3592, 3592, 3655, 3655, 3718, 3718, 3781, 3781, 3844, 3844, 3907, 3907,
3970, 3970, 4033, 191, 254, 254, 317, 317, 380, 380, 443, 443, 506,
506, 569, 569, 632, 632, 695, 695, 758, 758, 821, 821, 884, 884,
947, 947, 1010, 1010, 1073, 1073, 1136, 1136, 1199, 1199, 1262, 1262, 1325,
1325, 1388, 1388, 1451, 1451, 1514, 1514, 1577, 1577, 1640, 1640, 1703, 1703,
1766, 1766, 1829, 1829, 1892, 1892, 1955, 1955, 2018, 2018, 2081, 2081, 2144,
2144, 2207, 2207, 2270, 2270, 2333, 2333, 2396, 2396, 2459, 2459, 2522, 2522,
2585, 2585, 2648, 2648, 2711, 2711, 2774, 2774, 2837, 2837, 2900, 2900, 2963,
2963, 3026, 3026, 3089, 3089, 3152, 3152, 3215, 3215, 3278, 3278, 3341, 3341,
3404, 3404, 3467, 3467, 3530, 3530, 3593, 3593, 3656, 3656, 3719, 3719, 3782,
3782, 3845, 3845, 3908, 3908, 3971, 3971, 4034, 255, 318, 318, 381, 381,
444, 444, 507, 507, 570, 570, 633, 633, 696, 696, 759, 759, 822,
822, 885, 885, 948, 948, 1011, 1011, 1074, 1074, 1137, 1137, 1200, 1200,
1263, 1263, 1326, 1326, 1389, 1389, 1452, 1452, 1515, 1515, 1578, 1578, 1641,
1641, 1704, 1704, 1767, 1767, 1830, 1830, 1893, 1893, 1956, 1956, 2019, 2019,
2082, 2082, 2145, 2145, 2208, 2208, 2271, 2271, 2334, 2334, 2397, 2397, 2460,
2460, 2523, 2523, 2586, 2586, 2649, 2649, 2712, 2712, 2775, 2775, 2838, 2838,
2901, 2901, 2964, 2964, 3027, 3027, 3090, 3090, 3153, 3153, 3216, 3216, 3279,
3279, 3342, 3342, 3405, 3405, 3468, 3468, 3531, 3531, 3594, 3594, 3657, 3657,
3720, 3720, 3783, 3783, 3846, 3846, 3909, 3909, 3972, 3972, 4035, 319, 382,
382, 445, 445, 508, 508, 571, 571, 634, 634, 697, 697, 760, 760,
823, 823, 886, 886, 949, 949, 1012, 1012, 1075, 1075, 1138, 1138, 1201,
1201, 1264, 1264, 1327, 1327, 1390, 1390, 1453, 1453, 1516, 1516, 1579, 1579,
1642, 1642, 1705, 1705, 1768, 1768, 1831, 1831, 1894, 1894, 1957, 1957, 2020,
2020, 2083, 2083, 2146, 2146, 2209, 2209, 2272, 2272, 2335, 2335, 2398, 2398,
2461, 2461, 2524, 2524, 2587, 2587, 2650, 2650, 2713, 2713, 2776, 2776, 2839,
2839, 2902, 2902, 2965, 2965, 3028, 3028, 3091, 3091, 3154, 3154, 3217, 3217,
3280, 3280, 3343, 3343, 3406, 3406, 3469, 3469, 3532, 3532, 3595, 3595, 3658,
3658, 3721, 3721, 3784, 3784, 3847, 3847, 3910, 3910, 3973, 3973, 4036, 383,
446, 446, 509, 509, 572, 572, 635, 635, 698, 698, 761, 761, 824,
824, 887, 887, 950, 950, 1013, 1013, 1076, 1076, 1139, 1139, 1202, 1202,
1265, 1265, 1328, 1328, 1391, 1391, 1454, 1454, 1517, 1517, 1580, 1580, 1643,
1643, 1706, 1706, 1769, 1769, 1832, 1832, 1895, 1895, 1958, 1958, 2021, 2021,
2084, 2084, 2147, 2147, 2210, 2210, 2273, 2273, 2336, 2336, 2399, 2399, 2462,
2462, 2525, 2525, 2588, 2588, 2651, 2651, 2714, 2714, 2777, 2777, 2840, 2840,
2903, 2903, 2966, 2966, 3029, 3029, 3092, 3092, 3155, 3155, 3218, 3218, 3281,
3281, 3344, 3344, 3407, 3407, 3470, 3470, 3533, 3533, 3596, 3596, 3659, 3659,
3722, 3722, 3785, 3785, 3848, 3848, 3911, 3911, 3974, 3974, 4037, 447, 510,
510, 573, 573, 636, 636, 699, 699, 762, 762, 825, 825, 888, 888,
951, 951, 1014, 1014, 1077, 1077, 1140, 1140, 1203, 1203, 1266, 1266, 1329,
1329, 1392, 1392, 1455, 1455, 1518, 1518, 1581, 1581, 1644, 1644, 1707, 1707,
1770, 1770, 1833, 1833, 1896, 1896, 1959, 1959, 2022, 2022, 2085, 2085, 2148,
2148, 2211, 2211, 2274, 2274, 2337, 2337, 2400, 2400, 2463, 2463, 2526, 2526,
2589, 2589, 2652, 2652, 2715, 2715, 2778, 2778, 2841, 2841, 2904, 2904, 2967,
2967, 3030, 3030, 3093, 3093, 3156, 3156, 3219, 3219, 3282, 3282, 3345, 3345,
3408, 3408, 3471, 3471, 3534, 3534, 3597, 3597, 3660, 3660, 3723, 3723, 3786,
3786, 3849, 3849, 3912, 3912, 3975, 3975, 4038, 511, 574, 574, 637, 637,
700, 700, 763, 763, 826, 826, 889, 889, 952, 952, 1015, 1015, 1078,
1078, 1141, 1141, 1204, 1204, 1267, 1267, 1330, 1330, 1393, 1393, 1456, 1456,
1519, 1519, 1582, 1582, 1645, 1645, 1708, 1708, 1771, 1771, 1834, 1834, 1897,
1897, 1960, 1960, 2023, 2023, 2086, 2086, 2149, 2149, 2212, 2212, 2275, 2275,
2338, 2338, 2401, 2401, 2464, 2464, 2527, 2527, 2590, 2590, 2653, 2653, 2716,
2716, 2779, 2779, 2842, 2842, 2905, 2905, 2968, 2968, 3031, 3031, 3094, 3094,
3157, 3157, 3220, 3220, 3283, 3283, 3346, 3346, 3409, 3409, 3472, 3472, 3535,
3535, 3598, 3598, 3661, 3661, 3724, 3724, 3787, 3787, 3850, 3850, 3913, 3913,
3976, 3976, 4039, 575, 638, 638, 701, 701, 764, 764, 827, 827, 890,
890, 953, 953, 1016, 1016, 1079, 1079, 1142, 1142, 1205, 1205, 1268, 1268,
1331, 1331, 1394, 1394, 1457, 1457, 1520, 1520, 1583, 1583, 1646, 1646, 1709,
1709, 1772, 1772, 1835, 1835, 1898, 1898, 1961, 1961, 2024, 2024, 2087, 2087,
2150, 2150, 2213, 2213, 2276, 2276, 2339, 2339, 2402, 2402, 2465, 2465, 2528,
2528, 2591, 2591, 2654, 2654, 2717, 2717, 2780, 2780, 2843, 2843, 2906, 2906,
2969, 2969, 3032, 3032, 3095, 3095, 3158, 3158, 3221, 3221, 3284, 3284, 3347,
3347, 3410, 3410, 3473, 3473, 3536, 3536, 3599, 3599, 3662, 3662, 3725, 3725,
3788, 3788, 3851, 3851, 3914, 3914, 3977, 3977, 4040, 639, 702, 702, 765,
765, 828, 828, 891, 891, 954, 954, 1017, 1017, 1080, 1080, 1143, 1143,
1206, 1206, 1269, 1269, 1332, 1332, 1395, 1395, 1458, 1458, 1521, 1521, 1584,
1584, 1647, 1647, 1710, 1710, 1773, 1773, 1836, 1836, 1899, 1899, 1962, 1962,
2025, 2025, 2088, 2088, 2151, 2151, 2214, 2214, 2277, 2277, 2340, 2340, 2403,
2403, 2466, 2466, 2529, 2529, 2592, 2592, 2655, 2655, 2718, 2718, 2781, 2781,
2844, 2844, 2907, 2907, 2970, 2970, 3033, 3033, 3096, 3096, 3159, 3159, 3222,
3222, 3285, 3285, 3348, 3348, 3411, 3411, 3474, 3474, 3537, 3537, 3600, 3600,
3663, 3663, 3726, 3726, 3789, 3789, 3852, 3852, 3915, 3915, 3978, 3978, 4041,
703, 766, 766, 829, 829, 892, 892, 955, 955, 1018, 1018, 1081, 1081,
1144, 1144, 1207, 1207, 1270, 1270, 1333, 1333, 1396, 1396, 1459, 1459, 1522,
1522, 1585, 1585, 1648, 1648, 1711, 1711, 1774, 1774, 1837, 1837, 1900, 1900,
1963, 1963, 2026, 2026, 2089, 2089, 2152, 2152, 2215, 2215, 2278, 2278, 2341,
2341, 2404, 2404, 2467, 2467, 2530, 2530, 2593, 2593, 2656, 2656, 2719, 2719,
2782, 2782, 2845, 2845, 2908, 2908, 2971, 2971, 3034, 3034, 3097, 3097, 3160,
3160, 3223, 3223, 3286, 3286, 3349, 3349, 3412, 3412, 3475, 3475, 3538, 3538,
3601, 3601, 3664, 3664, 3727, 3727, 3790, 3790, 3853, 3853, 3916, 3916, 3979,
3979, 4042, 767, 830, 830, 893, 893, 956, 956, 1019, 1019, 1082, 1082,
1145, 1145, 1208, 1208, 1271, 1271, 1334, 1334, 1397, 1397, 1460, 1460, 1523,
1523, 1586, 1586, 1649, 1649, 1712, 1712, 1775, 1775, 1838, 1838, 1901, 1901,
1964, 1964, 2027, 2027, 2090, 2090, 2153, 2153, 2216, 2216, 2279, 2279, 2342,
2342, 2405, 2405, 2468, 2468, 2531, 2531, 2594, 2594, 2657, 2657, 2720, 2720,
2783, 2783, 2846, 2846, 2909, 2909, 2972, 2972, 3035, 3035, 3098, 3098, 3161,
3161, 3224, 3224, 3287, 3287, 3350, 3350, 3413, 3413, 3476, 3476, 3539, 3539,
3602, 3602, 3665, 3665, 3728, 3728, 3791, 3791, 3854, 3854, 3917, 3917, 3980,
3980, 4043, 831, 894, 894, 957, 957, 1020, 1020, 1083, 1083, 1146, 1146,
1209, 1209, 1272, 1272, 1335, 1335, 1398, 1398, 1461, 1461, 1524, 1524, 1587,
1587, 1650, 1650, 1713, 1713, 1776, 1776, 1839, 1839, 1902, 1902, 1965, 1965,
2028, 2028, 2091, 2091, 2154, 2154, 2217, 2217, 2280, 2280, 2343, 2343, 2406,
2406, 2469, 2469, 2532, 2532, 2595, 2595, 2658, 2658, 2721, 2721, 2784, 2784,
2847, 2847, 2910, 2910, 2973, 2973, 3036, 3036, 3099, 3099, 3162, 3162, 3225,
3225, 3288, 3288, 3351, 3351, 3414, 3414, 3477, 3477, 3540, 3540, 3603, 3603,
3666, 3666, 3729, 3729, 3792, 3792, 3855, 3855, 3918, 3918, 3981, 3981, 4044,
895, 958, 958, 1021, 1021, 1084, 1084, 1147, 1147, 1210, 1210, 1273, 1273,
1336, 1336, 1399, 1399, 1462, 1462, 1525, 1525, 1588, 1588, 1651, 1651, 1714,
1714, 1777, 1777, 1840, 1840, 1903, 1903, 1966, 1966, 2029, 2029, 2092, 2092,
2155, 2155, 2218, 2218, 2281, 2281, 2344, 2344, 2407, 2407, 2470, 2470, 2533,
2533, 2596, 2596, 2659, 2659, 2722, 2722, 2785, 2785, 2848, 2848, 2911, 2911,
2974, 2974, 3037, 3037, 3100, 3100, 3163, 3163, 3226, 3226, 3289, 3289, 3352,
3352, 3415, 3415, 3478, 3478, 3541, 3541, 3604, 3604, 3667, 3667, 3730, 3730,
3793, 3793, 3856, 3856, 3919, 3919, 3982, 3982, 4045, 959, 1022, 1022, 1085,
1085, 1148, 1148, 1211, 1211, 1274, 1274, 1337, 1337, 1400, 1400, 1463, 1463,
1526, 1526, 1589, 1589, 1652, 1652, 1715, 1715, 1778, 1778, 1841, 1841, 1904,
1904, 1967, 1967, 2030, 2030, 2093, 2093, 2156, 2156, 2219, 2219, 2282, 2282,
2345, 2345, 2408, 2408, 2471, 2471, 2534, 2534, 2597, 2597, 2660, 2660, 2723,
2723, 2786, 2786, 2849, 2849, 2912, 2912, 2975, 2975, 3038, 3038, 3101, 3101,
3164, 3164, 3227, 3227, 3290, 3290, 3353, 3353, 3416, 3416, 3479, 3479, 3542,
3542, 3605, 3605, 3668, 3668, 3731, 3731, 3794, 3794, 3857, 3857, 3920, 3920,
3983, 3983, 4046, 1023, 1086, 1086, 1149, 1149, 1212, 1212, 1275, 1275, 1338,
1338, 1401, 1401, 1464, 1464, 1527, 1527, 1590, 1590, 1653, 1653, 1716, 1716,
1779, 1779, 1842, 1842, 1905, 1905, 1968, 1968, 2031, 2031, 2094, 2094, 2157,
2157, 2220, 2220, 2283, 2283, 2346, 2346, 2409, 2409, 2472, 2472, 2535, 2535,
2598, 2598, 2661, 2661, 2724, 2724, 2787, 2787, 2850, 2850, 2913, 2913, 2976,
2976, 3039, 3039, 3102, 3102, 3165, 3165, 3228, 3228, 3291, 3291, 3354, 3354,
3417, 3417, 3480, 3480, 3543, 3543, 3606, 3606, 3669, 3669, 3732, 3732, 3795,
3795, 3858, 3858, 3921, 3921, 3984, 3984, 4047, 1087, 1150, 1150, 1213, 1213,
1276, 1276, 1339, 1339, 1402, 1402, 1465, 1465, 1528, 1528, 1591, 1591, 1654,
1654, 1717, 1717, 1780, 1780, 1843, 1843, 1906, 1906, 1969, 1969, 2032, 2032,
2095, 2095, 2158, 2158, 2221, 2221, 2284, 2284, 2347, 2347, 2410, 2410, 2473,
2473, 2536, 2536, 2599, 2599, 2662, 2662, 2725, 2725, 2788, 2788, 2851, 2851,
2914, 2914, 2977, 2977, 3040, 3040, 3103, 3103, 3166, 3166, 3229, 3229, 3292,
3292, 3355, 3355, 3418, 3418, 3481, 3481, 3544, 3544, 3607, 3607, 3670, 3670,
3733, 3733, 3796, 3796, 3859, 3859, 3922, 3922, 3985, 3985, 4048, 1151, 1214,
1214, 1277, 1277, 1340, 1340, 1403, 1403, 1466, 1466, 1529, 1529, 1592, 1592,
1655, 1655, 1718, 1718, 1781, 1781, 1844, 1844, 1907, 1907, 1970, 1970, 2033,
2033, 2096, 2096, 2159, 2159, 2222, 2222, 2285, 2285, 2348, 2348, 2411, 2411,
2474, 2474, 2537, 2537, 2600, 2600, 2663, 2663, 2726, 2726, 2789, 2789, 2852,
2852, 2915, 2915, 2978, 2978, 3041, 3041, 3104, 3104, 3167, 3167, 3230, 3230,
3293, 3293, 3356, 3356, 3419, 3419, 3482, 3482, 3545, 3545, 3608, 3608, 3671,
3671, 3734, 3734, 3797, 3797, 3860, 3860, 3923, 3923, 3986, 3986, 4049, 1215,
1278, 1278, 1341, 1341, 1404, 1404, 1467, 1467, 1530, 1530, 1593, 1593, 1656,
1656, 1719, 1719, 1782, 1782, 1845, 1845, 1908, 1908, 1971, 1971, 2034, 2034,
2097, 2097, 2160, 2160, 2223, 2223, 2286, 2286, 2349, 2349, 2412, 2412, 2475,
2475, 2538, 2538, 2601, 2601, 2664, 2664, 2727, 2727, 2790, 2790, 2853, 2853,
2916, 2916, 2979, 2979, 3042, 3042, 3105, 3105, 3168, 3168, 3231, 3231, 3294,
3294, 3357, 3357, 3420, 3420, 3483, 3483, 3546, 3546, 3609, 3609, 3672, 3672,
3735, 3735, 3798, 3798, 3861, 3861, 3924, 3924, 3987, 3987, 4050, 1279, 1342,
1342, 1405, 1405, 1468, 1468, 1531, 1531, 1594, 1594, 1657, 1657, 1720, 1720,
1783, 1783, 1846, 1846, 1909, 1909, 1972, 1972, 2035, 2035, 2098, 2098, 2161,
2161, 2224, 2224, 2287, 2287, 2350, 2350, 2413, 2413, 2476, 2476, 2539, 2539,
2602, 2602, 2665, 2665, 2728, 2728, 2791, 2791, 2854, 2854, 2917, 2917, 2980,
2980, 3043, 3043, 3106, 3106, 3169, 3169, 3232, 3232, 3295, 3295, 3358, 3358,
3421, 3421, 3484, 3484, 3547, 3547, 3610, 3610, 3673, 3673, 3736, 3736, 3799,
3799, 3862, 3862, 3925, 3925, 3988, 3988, 4051, 1343, 1406, 1406, 1469, 1469,
1532, 1532, 1595, 1595, 1658, 1658, 1721, 1721, 1784, 1784, 1847, 1847, 1910,
1910, 1973, 1973, 2036, 2036, 2099, 2099, 2162, 2162, 2225, 2225, 2288, 2288,
2351, 2351, 2414, 2414, 2477, 2477, 2540, 2540, 2603, 2603, 2666, 2666, 2729,
2729, 2792, 2792, 2855, 2855, 2918, 2918, 2981, 2981, 3044, 3044, 3107, 3107,
3170, 3170, 3233, 3233, 3296, 3296, 3359, 3359, 3422, 3422, 3485, 3485, 3548,
3548, 3611, 3611, 3674, 3674, 3737, 3737, 3800, 3800, 3863, 3863, 3926, 3926,
3989, 3989, 4052, 1407, 1470, 1470, 1533, 1533, 1596, 1596, 1659, 1659, 1722,
1722, 1785, 1785, 1848, 1848, 1911, 1911, 1974, 1974, 2037, 2037, 2100, 2100,
2163, 2163, 2226, 2226, 2289, 2289, 2352, 2352, 2415, 2415, 2478, 2478, 2541,
2541, 2604, 2604, 2667, 2667, 2730, 2730, 2793, 2793, 2856, 2856, 2919, 2919,
2982, 2982, 3045, 3045, 3108, 3108, 3171, 3171, 3234, 3234, 3297, 3297, 3360,
3360, 3423, 3423, 3486, 3486, 3549, 3549, 3612, 3612, 3675, 3675, 3738, 3738,
3801, 3801, 3864, 3864, 3927, 3927, 3990, 3990, 4053, 1471, 1534, 1534, 1597,
1597, 1660, 1660, 1723, 1723, 1786, 1786, 1849, 1849, 1912, 1912, 1975, 1975,
2038, 2038, 2101, 2101, 2164, 2164, 2227, 2227, 2290, 2290, 2353, 2353, 2416,
2416, 2479, 2479, 2542, 2542, 2605, 2605, 2668, 2668, 2731, 2731, 2794, 2794,
2857, 2857, 2920, 2920, 2983, 2983, 3046, 3046, 3109, 3109, 3172, 3172, 3235,
3235, 3298, 3298, 3361, 3361, 3424, 3424, 3487, 3487, 3550, 3550, 3613, 3613,
3676, 3676, 3739, 3739, 3802, 3802, 3865, 3865, 3928, 3928, 3991, 3991, 4054,
1535, 1598, 1598, 1661, 1661, 1724, 1724, 1787, 1787, 1850, 1850, 1913, 1913,
1976, 1976, 2039, 2039, 2102, 2102, 2165, 2165, 2228, 2228, 2291, 2291, 2354,
2354, 2417, 2417, 2480, 2480, 2543, 2543, 2606, 2606, 2669, 2669, 2732, 2732,
2795, 2795, 2858, 2858, 2921, 2921, 2984, 2984, 3047, 3047, 3110, 3110, 3173,
3173, 3236, 3236, 3299, 3299, 3362, 3362, 3425, 3425, 3488, 3488, 3551, 3551,
3614, 3614, 3677, 3677, 3740, 3740, 3803, 3803, 3866, 3866, 3929, 3929, 3992,
3992, 4055, 1599, 1662, 1662, 1725, 1725, 1788, 1788, 1851, 1851, 1914, 1914,
1977, 1977, 2040, 2040, 2103, 2103, 2166, 2166, 2229, 2229, 2292, 2292, 2355,
2355, 2418, 2418, 2481, 2481, 2544, 2544, 2607, 2607, 2670, 2670, 2733, 2733,
2796, 2796, 2859, 2859, 2922, 2922, 2985, 2985, 3048, 3048, 3111, 3111, 3174,
3174, 3237, 3237, 3300, 3300, 3363, 3363, 3426, 3426, 3489, 3489, 3552, 3552,
3615, 3615, 3678, 3678, 3741, 3741, 3804, 3804, 3867, 3867, 3930, 3930, 3993,
3993, 4056, 1663, 1726, 1726, 1789, 1789, 1852, 1852, 1915, 1915, 1978, 1978,
2041, 2041, 2104, 2104, 2167, 2167, 2230, 2230, 2293, 2293, 2356, 2356, 2419,
2419, 2482, 2482, 2545, 2545, 2608, 2608, 2671, 2671, 2734, 2734, 2797, 2797,
2860, 2860, 2923, 2923, 2986, 2986, 3049, 3049, 3112, 3112, 3175, 3175, 3238,
3238, 3301, 3301, 3364, 3364, 3427, 3427, 3490, 3490, 3553, 3553, 3616, 3616,
3679, 3679, 3742, 3742, 3805, 3805, 3868, 3868, 3931, 3931, 3994, 3994, 4057,
1727, 1790, 1790, 1853, 1853, 1916, 1916, 1979, 1979, 2042, 2042, 2105, 2105,
2168, 2168, 2231, 2231, 2294, 2294, 2357, 2357, 2420, 2420, 2483, 2483, 2546,
2546, 2609, 2609, 2672, 2672, 2735, 2735, 2798, 2798, 2861, 2861, 2924, 2924,
2987, 2987, 3050, 3050, 3113, 3113, 3176, 3176, 3239, 3239, 3302, 3302, 3365,
3365, 3428, 3428, 3491, 3491, 3554, 3554, 3617, 3617, 3680, 3680, 3743, 3743,
3806, 3806, 3869, 3869, 3932, 3932, 3995, 3995, 4058, 1791, 1854, 1854, 1917,
1917, 1980, 1980, 2043, 2043, 2106, 2106, 2169, 2169, 2232, 2232, 2295, 2295,
2358, 2358, 2421, 2421, 2484, 2484, 2547, 2547, 2610, 2610, 2673, 2673, 2736,
2736, 2799, 2799, 2862, 2862, 2925, 2925, 2988, 2988, 3051, 3051, 3114, 3114,
3177, 3177, 3240, 3240, 3303, 3303, 3366, 3366, 3429, 3429, 3492, 3492, 3555,
3555, 3618, 3618, 3681, 3681, 3744, 3744, 3807, 3807, 3870, 3870, 3933, 3933,
3996, 3996, 4059, 1855, 1918, 1918, 1981, 1981, 2044, 2044, 2107, 2107, 2170,
2170, 2233, 2233, 2296, 2296, 2359, 2359, 2422, 2422, 2485, 2485, 2548, 2548,
2611, 2611, 2674, 2674, 2737, 2737, 2800, 2800, 2863, 2863, 2926, 2926, 2989,
2989, 3052, 3052, 3115, 3115, 3178, 3178, 3241, 3241, 3304, 3304, 3367, 3367,
3430, 3430, 3493, 3493, 3556, 3556, 3619, 3619, 3682, 3682, 3745, 3745, 3808,
3808, 3871, 3871, 3934, 3934, 3997, 3997, 4060, 1919, 1982, 1982, 2045, 2045,
2108, 2108, 2171, 2171, 2234, 2234, 2297, 2297, 2360, 2360, 2423, 2423, 2486,
2486, 2549, 2549, 2612, 2612, 2675, 2675, 2738, 2738, 2801, 2801, 2864, 2864,
2927, 2927, 2990, 2990, 3053, 3053, 3116, 3116, 3179, 3179, 3242, 3242, 3305,
3305, 3368, 3368, 3431, 3431, 3494, 3494, 3557, 3557, 3620, 3620, 3683, 3683,
3746, 3746, 3809, 3809, 3872, 3872, 3935, 3935, 3998, 3998, 4061, 1983, 2046,
2046, 2109, 2109, 2172, 2172, 2235, 2235, 2298, 2298, 2361, 2361, 2424, 2424,
2487, 2487, 2550, 2550, 2613, 2613, 2676, 2676, 2739, 2739, 2802, 2802, 2865,
2865, 2928, 2928, 2991, 2991, 3054, 3054, 3117, 3117, 3180, 3180, 3243, 3243,
3306, 3306, 3369, 3369, 3432, 3432, 3495, 3495, 3558, 3558, 3621, 3621, 3684,
3684, 3747, 3747, 3810, 3810, 3873, 3873, 3936, 3936, 3999, 3999, 4062, 2047,
2110, 2110, 2173, 2173, 2236, 2236, 2299, 2299, 2362, 2362, 2425, 2425, 2488,
2488, 2551, 2551, 2614, 2614, 2677, 2677, 2740, 2740, 2803, 2803, 2866, 2866,
2929, 2929, 2992, 2992, 3055, 3055, 3118, 3118, 3181, 3181, 3244, 3244, 3307,
3307, 3370, 3370, 3433, 3433, 3496, 3496, 3559, 3559, 3622, 3622, 3685, 3685,
3748, 3748, 3811, 3811, 3874, 3874, 3937, 3937, 4000, 4000, 4063, 2111, 2174,
2174, 2237, 2237, 2300, 2300, 2363, 2363, 2426, 2426, 2489, 2489, 2552, 2552,
2615, 2615, 2678, 2678, 2741, 2741, 2804, 2804, 2867, 2867, 2930, 2930, 2993,
2993, 3056, 3056, 3119, 3119, 3182, 3182, 3245, 3245, 3308, 3308, 3371, 3371,
3434, 3434, 3497, 3497, 3560, 3560, 3623, 3623, 3686, 3686, 3749, 3749, 3812,
3812, 3875, 3875, 3938, 3938, 4001, 4001, 4064, 2175, 2238, 2238, 2301, 2301,
2364, 2364, 2427, 2427, 2490, 2490, 2553, 2553, 2616, 2616, 2679, 2679, 2742,
2742, 2805, 2805, 2868, 2868, 2931, 2931, 2994, 2994, 3057, 3057, 3120, 3120,
3183, 3183, 3246, 3246, 3309, 3309, 3372, 3372, 3435, 3435, 3498, 3498, 3561,
3561, 3624, 3624, 3687, 3687, 3750, 3750, 3813, 3813, 3876, 3876, 3939, 3939,
4002, 4002, 4065, 2239, 2302, 2302, 2365, 2365, 2428, 2428, 2491, 2491, 2554,
2554, 2617, 2617, 2680, 2680, 2743, 2743, 2806, 2806, 2869, 2869, 2932, 2932,
2995, 2995, 3058, 3058, 3121, 3121, 3184, 3184, 3247, 3247, 3310, 3310, 3373,
3373, 3436, 3436, 3499, 3499, 3562, 3562, 3625, 3625, 3688, 3688, 3751, 3751,
3814, 3814, 3877, 3877, 3940, 3940, 4003, 4003, 4066, 2303, 2366, 2366, 2429,
2429, 2492, 2492, 2555, 2555, 2618, 2618, 2681, 2681, 2744, 2744, 2807, 2807,
2870, 2870, 2933, 2933, 2996, 2996, 3059, 3059, 3122, 3122, 3185, 3185, 3248,
3248, 3311, 3311, 3374, 3374, 3437, 3437, 3500, 3500, 3563, 3563, 3626, 3626,
3689, 3689, 3752, 3752, 3815, 3815, 3878, 3878, 3941, 3941, 4004, 4004, 4067,
2367, 2430, 2430, 2493, 2493, 2556, 2556, 2619, 2619, 2682, 2682, 2745, 2745,
2808, 2808, 2871, 2871, 2934, 2934, 2997, 2997, 3060, 3060, 3123, 3123, 3186,
3186, 3249, 3249, 3312, 3312, 3375, 3375, 3438, 3438, 3501, 3501, 3564, 3564,
3627, 3627, 3690, 3690, 3753, 3753, 3816, 3816, 3879, 3879, 3942, 3942, 4005,
4005, 4068, 2431, 2494, 2494, 2557, 2557, 2620, 2620, 2683, 2683, 2746, 2746,
2809, 2809, 2872, 2872, 2935, 2935, 2998, 2998, 3061, 3061, 3124, 3124, 3187,
3187, 3250, 3250, 3313, 3313, 3376, 3376, 3439, 3439, 3502, 3502, 3565, 3565,
3628, 3628, 3691, 3691, 3754, 3754, 3817, 3817, 3880, 3880, 3943, 3943, 4006,
4006, 4069, 2495, 2558, 2558, 2621, 2621, 2684, 2684, 2747, 2747, 2810, 2810,
2873, 2873, 2936, 2936, 2999, 2999, 3062, 3062, 3125, 3125, 3188, 3188, 3251,
3251, 3314, 3314, 3377, 3377, 3440, 3440, 3503, 3503, 3566, 3566, 3629, 3629,
3692, 3692, 3755, 3755, 3818, 3818, 3881, 3881, 3944, 3944, 4007, 4007, 4070,
2559, 2622, 2622, 2685, 2685, 2748, 2748, 2811, 2811, 2874, 2874, 2937, 2937,
3000, 3000, 3063, 3063, 3126, 3126, 3189, 3189, 3252, 3252, 3315, 3315, 3378,
3378, 3441, 3441, 3504, 3504, 3567, 3567, 3630, 3630, 3693, 3693, 3756, 3756,
3819, 3819, 3882, 3882, 3945, 3945, 4008, 4008, 4071, 2623, 2686, 2686, 2749,
2749, 2812, 2812, 2875, 2875, 2938, 2938, 3001, 3001, 3064, 3064, 3127, 3127,
3190, 3190, 3253, 3253, 3316, 3316, 3379, 3379, 3442, 3442, 3505, 3505, 3568,
3568, 3631, 3631, 3694, 3694, 3757, 3757, 3820, 3820, 3883, 3883, 3946, 3946,
4009, 4009, 4072, 2687, 2750, 2750, 2813, 2813, 2876, 2876, 2939, 2939, 3002,
3002, 3065, 3065, 3128, 3128, 3191, 3191, 3254, 3254, 3317, 3317, 3380, 3380,
3443, 3443, 3506, 3506, 3569, 3569, 3632, 3632, 3695, 3695, 3758, 3758, 3821,
3821, 3884, 3884, 3947, 3947, 4010, 4010, 4073, 2751, 2814, 2814, 2877, 2877,
2940, 2940, 3003, 3003, 3066, 3066, 3129, 3129, 3192, 3192, 3255, 3255, 3318,
3318, 3381, 3381, 3444, 3444, 3507, 3507, 3570, 3570, 3633, 3633, 3696, 3696,
3759, 3759, 3822, 3822, 3885, 3885, 3948, 3948, 4011, 4011, 4074, 2815, 2878,
2878, 2941, 2941, 3004, 3004, 3067, 3067, 3130, 3130, 3193, 3193, 3256, 3256,
3319, 3319, 3382, 3382, 3445, 3445, 3508, 3508, 3571, 3571, 3634, 3634, 3697,
3697, 3760, 3760, 3823, 3823, 3886, 3886, 3949, 3949, 4012, 4012, 4075, 2879,
2942, 2942, 3005, 3005, 3068, 3068, 3131, 3131, 3194, 3194, 3257, 3257, 3320,
3320, 3383, 3383, 3446, 3446, 3509, 3509, 3572, 3572, 3635, 3635, 3698, 3698,
3761, 3761, 3824, 3824, 3887, 3887, 3950, 3950, 4013, 4013, 4076, 2943, 3006,
3006, 3069, 3069, 3132, 3132, 3195, 3195, 3258, 3258, 3321, 3321, 3384, 3384,
3447, 3447, 3510, 3510, 3573, 3573, 3636, 3636, 3699, 3699, 3762, 3762, 3825,
3825, 3888, 3888, 3951, 3951, 4014, 4014, 4077, 3007, 3070, 3070, 3133, 3133,
3196, 3196, 3259, 3259, 3322, 3322, 3385, 3385, 3448, 3448, 3511, 3511, 3574,
3574, 3637, 3637, 3700, 3700, 3763, 3763, 3826, 3826, 3889, 3889, 3952, 3952,
4015, 4015, 4078, 3071, 3134, 3134, 3197, 3197, 3260, 3260, 3323, 3323, 3386,
3386, 3449, 3449, 3512, 3512, 3575, 3575, 3638, 3638, 3701, 3701, 3764, 3764,
3827, 3827, 3890, 3890, 3953, 3953, 4016, 4016, 4079, 3135, 3198, 3198, 3261,
3261, 3324, 3324, 3387, 3387, 3450, 3450, 3513, 3513, 3576, 3576, 3639, 3639,
3702, 3702, 3765, 3765, 3828, 3828, 3891, 3891, 3954, 3954, 4017, 4017, 4080,
3199, 3262, 3262, 3325, 3325, 3388, 3388, 3451, 3451, 3514, 3514, 3577, 3577,
3640, 3640, 3703, 3703, 3766, 3766, 3829, 3829, 3892, 3892, 3955, 3955, 4018,
4018, 4081, 3263, 3326, 3326, 3389, 3389, 3452, 3452, 3515, 3515, 3578, 3578,
3641, 3641, 3704, 3704, 3767, 3767, 3830, 3830, 3893, 3893, 3956, 3956, 4019,
4019, 4082, 3327, 3390, 3390, 3453, 3453, 3516, 3516, 3579, 3579, 3642, 3642,
3705, 3705, 3768, 3768, 3831, 3831, 3894, 3894, 3957, 3957, 4020, 4020, 4083,
3391, 3454, 3454, 3517, 3517, 3580, 3580, 3643, 3643, 3706, 3706, 3769, 3769,
3832, 3832, 3895, 3895, 3958, 3958, 4021, 4021, 4084, 3455, 3518, 3518, 3581,
3581, 3644, 3644, 3707, 3707, 3770, 3770, 3833, 3833, 3896, 3896, 3959, 3959,
4022, 4022, 4085, 3519, 3582, 3582, 3645, 3645, 3708, 3708, 3771, 3771, 3834,
3834, 3897, 3897, 3960, 3960, 4023, 4023, 4086, 3583, 3646, 3646, 3709, 3709,
3772, 3772, 3835, 3835, 3898, 3898, 3961, 3961, 4024, 4024, 4087, 3647, 3710,
3710, 3773, 3773, 3836, 3836, 3899, 3899, 3962, 3962, 4025, 4025, 4088, 3711,
3774, 3774, 3837, 3837, 3900, 3900, 3963, 3963, 4026, 4026, 4089, 3775, 3838,
3838, 3901, 3901, 3964, 3964, 4027, 4027, 4090, 3839, 3902, 3902, 3965, 3965,
4028, 4028, 4091, 3903, 3966, 3966, 4029, 4029, 4092, 3967, 4030, 4030, 4093,
4031, 4094, 0, 0
};
#endif // CONFIG_TX64X64
DECLARE_ALIGNED(16, static const int16_t, av1_default_iscan_4x4[16]) = {
0, 2, 5, 8, 1, 3, 9, 12, 4, 7, 11, 14, 6, 10, 13, 15,
};
DECLARE_ALIGNED(16, static const int16_t, av1_mcol_iscan_4x4[16]) = {
0, 4, 8, 12, 1, 5, 9, 13, 2, 6, 10, 14, 3, 7, 11, 15,
};
DECLARE_ALIGNED(16, static const int16_t, av1_mrow_iscan_4x4[16]) = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
};
DECLARE_ALIGNED(16, static const int16_t, av1_col_iscan_4x4[16]) = {
0, 3, 7, 11, 1, 5, 9, 12, 2, 6, 10, 14, 4, 8, 13, 15,
};
DECLARE_ALIGNED(16, static const int16_t, av1_row_iscan_4x4[16]) = {
0, 1, 3, 5, 2, 4, 6, 9, 7, 8, 11, 13, 10, 12, 14, 15,
};
DECLARE_ALIGNED(16, static const int16_t, av1_default_iscan_4x8[32]) = {
0, 1, 4, 9, 2, 3, 6, 11, 5, 7, 8, 13, 10, 12, 14, 17,
15, 16, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
};
DECLARE_ALIGNED(16, static const int16_t, av1_mcol_iscan_4x8[32]) = {
0, 8, 16, 24, 1, 9, 17, 25, 2, 10, 18, 26, 3, 11, 19, 27,
4, 12, 20, 28, 5, 13, 21, 29, 6, 14, 22, 30, 7, 15, 23, 31,
};
DECLARE_ALIGNED(16, static const int16_t, av1_mrow_iscan_4x8[32]) = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
};
DECLARE_ALIGNED(16, static const int16_t, av1_default_iscan_8x4[32]) = {
0, 1, 4, 9, 15, 19, 24, 28, 2, 3, 6, 11, 16, 21, 25, 29,
5, 7, 8, 13, 18, 22, 26, 30, 10, 12, 14, 17, 20, 23, 27, 31,
};
DECLARE_ALIGNED(16, static const int16_t, av1_mcol_iscan_8x4[32]) = {
0, 4, 8, 12, 16, 20, 24, 28, 1, 5, 9, 13, 17, 21, 25, 29,
2, 6, 10, 14, 18, 22, 26, 30, 3, 7, 11, 15, 19, 23, 27, 31,
};
DECLARE_ALIGNED(16, static const int16_t, av1_mrow_iscan_8x4[32]) = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
};
DECLARE_ALIGNED(16, static const int16_t, av1_default_iscan_4x16[64]) = {
0, 1, 4, 9, 2, 3, 6, 11, 5, 7, 8, 13, 10, 12, 14, 17,
15, 16, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
};
DECLARE_ALIGNED(16, static const int16_t, av1_default_iscan_16x4[64]) = {
0, 1, 4, 9, 15, 19, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60,
2, 3, 6, 11, 16, 21, 25, 29, 33, 37, 41, 45, 49, 53, 57, 61,
5, 7, 8, 13, 18, 22, 26, 30, 34, 38, 42, 46, 50, 54, 58, 62,
10, 12, 14, 17, 20, 23, 27, 31, 35, 39, 43, 47, 51, 55, 59, 63,
};
DECLARE_ALIGNED(16, static const int16_t, av1_mrow_iscan_4x16[64]) = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
};
DECLARE_ALIGNED(16, static const int16_t, av1_mrow_iscan_16x4[64]) = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
};
DECLARE_ALIGNED(16, static const int16_t, av1_mcol_iscan_4x16[64]) = {
0, 16, 32, 48, 1, 17, 33, 49, 2, 18, 34, 50, 3, 19, 35, 51,
4, 20, 36, 52, 5, 21, 37, 53, 6, 22, 38, 54, 7, 23, 39, 55,
8, 24, 40, 56, 9, 25, 41, 57, 10, 26, 42, 58, 11, 27, 43, 59,
12, 28, 44, 60, 13, 29, 45, 61, 14, 30, 46, 62, 15, 31, 47, 63,
};
DECLARE_ALIGNED(16, static const int16_t, av1_mcol_iscan_16x4[64]) = {
0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60,
1, 5, 9, 13, 17, 21, 25, 29, 33, 37, 41, 45, 49, 53, 57, 61,
2, 6, 10, 14, 18, 22, 26, 30, 34, 38, 42, 46, 50, 54, 58, 62,
3, 7, 11, 15, 19, 23, 27, 31, 35, 39, 43, 47, 51, 55, 59, 63,
};
DECLARE_ALIGNED(16, static const int16_t, av1_default_iscan_8x32[256]) = {
0, 1, 3, 6, 10, 15, 21, 28, 2, 4, 7, 11, 16, 22, 29,
36, 5, 8, 12, 17, 23, 30, 37, 44, 9, 13, 18, 24, 31, 38,
45, 52, 14, 19, 25, 32, 39, 46, 53, 60, 20, 26, 33, 40, 47,
54, 61, 68, 27, 34, 41, 48, 55, 62, 69, 76, 35, 42, 49, 56,
63, 70, 77, 84, 43, 50, 57, 64, 71, 78, 85, 92, 51, 58, 65,
72, 79, 86, 93, 100, 59, 66, 73, 80, 87, 94, 101, 108, 67, 74,
81, 88, 95, 102, 109, 116, 75, 82, 89, 96, 103, 110, 117, 124, 83,
90, 97, 104, 111, 118, 125, 132, 91, 98, 105, 112, 119, 126, 133, 140,
99, 106, 113, 120, 127, 134, 141, 148, 107, 114, 121, 128, 135, 142, 149,
156, 115, 122, 129, 136, 143, 150, 157, 164, 123, 130, 137, 144, 151, 158,
165, 172, 131, 138, 145, 152, 159, 166, 173, 180, 139, 146, 153, 160, 167,
174, 181, 188, 147, 154, 161, 168, 175, 182, 189, 196, 155, 162, 169, 176,
183, 190, 197, 204, 163, 170, 177, 184, 191, 198, 205, 212, 171, 178, 185,
192, 199, 206, 213, 220, 179, 186, 193, 200, 207, 214, 221, 228, 187, 194,
201, 208, 215, 222, 229, 235, 195, 202, 209, 216, 223, 230, 236, 241, 203,
210, 217, 224, 231, 237, 242, 246, 211, 218, 225, 232, 238, 243, 247, 250,
219, 226, 233, 239, 244, 248, 251, 253, 227, 234, 240, 245, 249, 252, 254,
};
DECLARE_ALIGNED(16, static const int16_t, av1_default_iscan_32x8[256]) = {
0, 1, 3, 6, 10, 15, 21, 28, 36, 44, 52, 60, 68, 76, 84,
92, 100, 108, 116, 124, 132, 140, 148, 156, 164, 172, 180, 188, 196, 204,
212, 220, 2, 4, 7, 11, 16, 22, 29, 37, 45, 53, 61, 69, 77,
85, 93, 101, 109, 117, 125, 133, 141, 149, 157, 165, 173, 181, 189, 197,
205, 213, 221, 228, 5, 8, 12, 17, 23, 30, 38, 46, 54, 62, 70,
78, 86, 94, 102, 110, 118, 126, 134, 142, 150, 158, 166, 174, 182, 190,
198, 206, 214, 222, 229, 235, 9, 13, 18, 24, 31, 39, 47, 55, 63,
71, 79, 87, 95, 103, 111, 119, 127, 135, 143, 151, 159, 167, 175, 183,
191, 199, 207, 215, 223, 230, 236, 241, 14, 19, 25, 32, 40, 48, 56,
64, 72, 80, 88, 96, 104, 112, 120, 128, 136, 144, 152, 160, 168, 176,
184, 192, 200, 208, 216, 224, 231, 237, 242, 246, 20, 26, 33, 41, 49,
57, 65, 73, 81, 89, 97, 105, 113, 121, 129, 137, 145, 153, 161, 169,
177, 185, 193, 201, 209, 217, 225, 232, 238, 243, 247, 250, 27, 34, 42,
50, 58, 66, 74, 82, 90, 98, 106, 114, 122, 130, 138, 146, 154, 162,
170, 178, 186, 194, 202, 210, 218, 226, 233, 239, 244, 248, 251, 253, 35,
43, 51, 59, 67, 75, 83, 91, 99, 107, 115, 123, 131, 139, 147, 155,
163, 171, 179, 187, 195, 203, 211, 219, 227, 234, 240, 245, 249, 252, 254,
255,
};
DECLARE_ALIGNED(16, static const int16_t, av1_mrow_iscan_8x32[256]) = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119,
120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179,
180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209,
210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224,
225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239,
240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254,
255,
};
DECLARE_ALIGNED(16, static const int16_t, av1_mrow_iscan_32x8[256]) = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119,
120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179,
180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209,
210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224,
225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239,
240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254,
255,
};
DECLARE_ALIGNED(16, static const int16_t, av1_mcol_iscan_8x32[256]) = {
0, 32, 64, 96, 128, 160, 192, 224, 1, 33, 65, 97, 129, 161, 193, 225,
2, 34, 66, 98, 130, 162, 194, 226, 3, 35, 67, 99, 131, 163, 195, 227,
4, 36, 68, 100, 132, 164, 196, 228, 5, 37, 69, 101, 133, 165, 197, 229,
6, 38, 70, 102, 134, 166, 198, 230, 7, 39, 71, 103, 135, 167, 199, 231,
8, 40, 72, 104, 136, 168, 200, 232, 9, 41, 73, 105, 137, 169, 201, 233,
10, 42, 74, 106, 138, 170, 202, 234, 11, 43, 75, 107, 139, 171, 203, 235,
12, 44, 76, 108, 140, 172, 204, 236, 13, 45, 77, 109, 141, 173, 205, 237,
14, 46, 78, 110, 142, 174, 206, 238, 15, 47, 79, 111, 143, 175, 207, 239,
16, 48, 80, 112, 144, 176, 208, 240, 17, 49, 81, 113, 145, 177, 209, 241,
18, 50, 82, 114, 146, 178, 210, 242, 19, 51, 83, 115, 147, 179, 211, 243,
20, 52, 84, 116, 148, 180, 212, 244, 21, 53, 85, 117, 149, 181, 213, 245,
22, 54, 86, 118, 150, 182, 214, 246, 23, 55, 87, 119, 151, 183, 215, 247,
24, 56, 88, 120, 152, 184, 216, 248, 25, 57, 89, 121, 153, 185, 217, 249,
26, 58, 90, 122, 154, 186, 218, 250, 27, 59, 91, 123, 155, 187, 219, 251,
28, 60, 92, 124, 156, 188, 220, 252, 29, 61, 93, 125, 157, 189, 221, 253,
30, 62, 94, 126, 158, 190, 222, 254, 31, 63, 95, 127, 159, 191, 223, 255,
};
DECLARE_ALIGNED(16, static const int16_t, av1_mcol_iscan_32x8[256]) = {
0, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 104, 112,
120, 128, 136, 144, 152, 160, 168, 176, 184, 192, 200, 208, 216, 224, 232,
240, 248, 1, 9, 17, 25, 33, 41, 49, 57, 65, 73, 81, 89, 97,
105, 113, 121, 129, 137, 145, 153, 161, 169, 177, 185, 193, 201, 209, 217,
225, 233, 241, 249, 2, 10, 18, 26, 34, 42, 50, 58, 66, 74, 82,
90, 98, 106, 114, 122, 130, 138, 146, 154, 162, 170, 178, 186, 194, 202,
210, 218, 226, 234, 242, 250, 3, 11, 19, 27, 35, 43, 51, 59, 67,
75, 83, 91, 99, 107, 115, 123, 131, 139, 147, 155, 163, 171, 179, 187,
195, 203, 211, 219, 227, 235, 243, 251, 4, 12, 20, 28, 36, 44, 52,
60, 68, 76, 84, 92, 100, 108, 116, 124, 132, 140, 148, 156, 164, 172,
180, 188, 196, 204, 212, 220, 228, 236, 244, 252, 5, 13, 21, 29, 37,
45, 53, 61, 69, 77, 85, 93, 101, 109, 117, 125, 133, 141, 149, 157,
165, 173, 181, 189, 197, 205, 213, 221, 229, 237, 245, 253, 6, 14, 22,
30, 38, 46, 54, 62, 70, 78, 86, 94, 102, 110, 118, 126, 134, 142,
150, 158, 166, 174, 182, 190, 198, 206, 214, 222, 230, 238, 246, 254, 7,
15, 23, 31, 39, 47, 55, 63, 71, 79, 87, 95, 103, 111, 119, 127,
135, 143, 151, 159, 167, 175, 183, 191, 199, 207, 215, 223, 231, 239, 247,
255,
};
DECLARE_ALIGNED(16, static const int16_t, av1_mcol_iscan_8x8[64]) = {
0, 8, 16, 24, 32, 40, 48, 56, 1, 9, 17, 25, 33, 41, 49, 57,
2, 10, 18, 26, 34, 42, 50, 58, 3, 11, 19, 27, 35, 43, 51, 59,
4, 12, 20, 28, 36, 44, 52, 60, 5, 13, 21, 29, 37, 45, 53, 61,
6, 14, 22, 30, 38, 46, 54, 62, 7, 15, 23, 31, 39, 47, 55, 63,
};
DECLARE_ALIGNED(16, static const int16_t, av1_mrow_iscan_8x8[64]) = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
};
DECLARE_ALIGNED(16, static const int16_t, av1_col_iscan_8x8[64]) = {
0, 3, 8, 15, 22, 32, 40, 47, 1, 5, 11, 18, 26, 34, 44, 51,
2, 7, 13, 20, 28, 38, 46, 54, 4, 10, 16, 24, 31, 41, 50, 56,
6, 12, 21, 27, 35, 43, 52, 58, 9, 17, 25, 33, 39, 48, 55, 60,
14, 23, 30, 37, 45, 53, 59, 62, 19, 29, 36, 42, 49, 57, 61, 63,
};
DECLARE_ALIGNED(16, static const int16_t, av1_row_iscan_8x8[64]) = {
0, 1, 2, 5, 8, 12, 19, 24, 3, 4, 7, 10, 15, 20, 30, 39,
6, 9, 13, 16, 21, 27, 37, 46, 11, 14, 17, 23, 28, 34, 44, 52,
18, 22, 25, 31, 35, 41, 50, 57, 26, 29, 33, 38, 43, 49, 55, 59,
32, 36, 42, 47, 51, 54, 60, 61, 40, 45, 48, 53, 56, 58, 62, 63,
};
DECLARE_ALIGNED(16, static const int16_t, av1_default_iscan_8x8[64]) = {
0, 2, 5, 9, 14, 22, 31, 37, 1, 4, 8, 13, 19, 26, 38, 44,
3, 6, 10, 17, 24, 30, 42, 49, 7, 11, 15, 21, 29, 36, 47, 53,
12, 16, 20, 27, 34, 43, 52, 57, 18, 23, 28, 35, 41, 48, 56, 60,
25, 32, 39, 45, 50, 55, 59, 62, 33, 40, 46, 51, 54, 58, 61, 63,
};
DECLARE_ALIGNED(16, static const int16_t, av1_default_iscan_8x16[128]) = {
0, 1, 3, 6, 10, 15, 21, 28, 2, 4, 7, 11, 16, 22, 29, 36,
5, 8, 12, 17, 23, 30, 37, 44, 9, 13, 18, 24, 31, 38, 45, 52,
14, 19, 25, 32, 39, 46, 53, 60, 20, 26, 33, 40, 47, 54, 61, 68,
27, 34, 41, 48, 55, 62, 69, 76, 35, 42, 49, 56, 63, 70, 77, 84,
43, 50, 57, 64, 71, 78, 85, 92, 51, 58, 65, 72, 79, 86, 93, 100,
59, 66, 73, 80, 87, 94, 101, 107, 67, 74, 81, 88, 95, 102, 108, 113,
75, 82, 89, 96, 103, 109, 114, 118, 83, 90, 97, 104, 110, 115, 119, 122,
91, 98, 105, 111, 116, 120, 123, 125, 99, 106, 112, 117, 121, 124, 126, 127,
};
DECLARE_ALIGNED(16, static const int16_t, av1_default_iscan_16x8[128]) = {
0, 1, 3, 6, 10, 15, 21, 28, 36, 44, 52, 60, 68, 76, 84, 92,
2, 4, 7, 11, 16, 22, 29, 37, 45, 53, 61, 69, 77, 85, 93, 100,
5, 8, 12, 17, 23, 30, 38, 46, 54, 62, 70, 78, 86, 94, 101, 107,
9, 13, 18, 24, 31, 39, 47, 55, 63, 71, 79, 87, 95, 102, 108, 113,
14, 19, 25, 32, 40, 48, 56, 64, 72, 80, 88, 96, 103, 109, 114, 118,
20, 26, 33, 41, 49, 57, 65, 73, 81, 89, 97, 104, 110, 115, 119, 122,
27, 34, 42, 50, 58, 66, 74, 82, 90, 98, 105, 111, 116, 120, 123, 125,
35, 43, 51, 59, 67, 75, 83, 91, 99, 106, 112, 117, 121, 124, 126, 127,
};
DECLARE_ALIGNED(16, static const int16_t, av1_mcol_iscan_8x16[128]) = {
0, 16, 32, 48, 64, 80, 96, 112, 1, 17, 33, 49, 65, 81, 97, 113,
2, 18, 34, 50, 66, 82, 98, 114, 3, 19, 35, 51, 67, 83, 99, 115,
4, 20, 36, 52, 68, 84, 100, 116, 5, 21, 37, 53, 69, 85, 101, 117,
6, 22, 38, 54, 70, 86, 102, 118, 7, 23, 39, 55, 71, 87, 103, 119,
8, 24, 40, 56, 72, 88, 104, 120, 9, 25, 41, 57, 73, 89, 105, 121,
10, 26, 42, 58, 74, 90, 106, 122, 11, 27, 43, 59, 75, 91, 107, 123,
12, 28, 44, 60, 76, 92, 108, 124, 13, 29, 45, 61, 77, 93, 109, 125,
14, 30, 46, 62, 78, 94, 110, 126, 15, 31, 47, 63, 79, 95, 111, 127,
};
DECLARE_ALIGNED(16, static const int16_t, av1_mcol_iscan_16x8[128]) = {
0, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 104, 112, 120,
1, 9, 17, 25, 33, 41, 49, 57, 65, 73, 81, 89, 97, 105, 113, 121,
2, 10, 18, 26, 34, 42, 50, 58, 66, 74, 82, 90, 98, 106, 114, 122,
3, 11, 19, 27, 35, 43, 51, 59, 67, 75, 83, 91, 99, 107, 115, 123,
4, 12, 20, 28, 36, 44, 52, 60, 68, 76, 84, 92, 100, 108, 116, 124,
5, 13, 21, 29, 37, 45, 53, 61, 69, 77, 85, 93, 101, 109, 117, 125,
6, 14, 22, 30, 38, 46, 54, 62, 70, 78, 86, 94, 102, 110, 118, 126,
7, 15, 23, 31, 39, 47, 55, 63, 71, 79, 87, 95, 103, 111, 119, 127,
};
DECLARE_ALIGNED(16, static const int16_t, av1_mrow_iscan_8x16[128]) = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119,
120, 121, 122, 123, 124, 125, 126, 127,
};
DECLARE_ALIGNED(16, static const int16_t, av1_mrow_iscan_16x8[128]) = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119,
120, 121, 122, 123, 124, 125, 126, 127,
};
DECLARE_ALIGNED(16, static const int16_t, av1_default_iscan_16x32[512]) = {
0, 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, 78, 91, 105,
120, 2, 4, 7, 11, 16, 22, 29, 37, 46, 56, 67, 79, 92, 106,
121, 136, 5, 8, 12, 17, 23, 30, 38, 47, 57, 68, 80, 93, 107,
122, 137, 152, 9, 13, 18, 24, 31, 39, 48, 58, 69, 81, 94, 108,
123, 138, 153, 168, 14, 19, 25, 32, 40, 49, 59, 70, 82, 95, 109,
124, 139, 154, 169, 184, 20, 26, 33, 41, 50, 60, 71, 83, 96, 110,
125, 140, 155, 170, 185, 200, 27, 34, 42, 51, 61, 72, 84, 97, 111,
126, 141, 156, 171, 186, 201, 216, 35, 43, 52, 62, 73, 85, 98, 112,
127, 142, 157, 172, 187, 202, 217, 232, 44, 53, 63, 74, 86, 99, 113,
128, 143, 158, 173, 188, 203, 218, 233, 248, 54, 64, 75, 87, 100, 114,
129, 144, 159, 174, 189, 204, 219, 234, 249, 264, 65, 76, 88, 101, 115,
130, 145, 160, 175, 190, 205, 220, 235, 250, 265, 280, 77, 89, 102, 116,
131, 146, 161, 176, 191, 206, 221, 236, 251, 266, 281, 296, 90, 103, 117,
132, 147, 162, 177, 192, 207, 222, 237, 252, 267, 282, 297, 312, 104, 118,
133, 148, 163, 178, 193, 208, 223, 238, 253, 268, 283, 298, 313, 328, 119,
134, 149, 164, 179, 194, 209, 224, 239, 254, 269, 284, 299, 314, 329, 344,
135, 150, 165, 180, 195, 210, 225, 240, 255, 270, 285, 300, 315, 330, 345,
360, 151, 166, 181, 196, 211, 226, 241, 256, 271, 286, 301, 316, 331, 346,
361, 376, 167, 182, 197, 212, 227, 242, 257, 272, 287, 302, 317, 332, 347,
362, 377, 392, 183, 198, 213, 228, 243, 258, 273, 288, 303, 318, 333, 348,
363, 378, 393, 407, 199, 214, 229, 244, 259, 274, 289, 304, 319, 334, 349,
364, 379, 394, 408, 421, 215, 230, 245, 260, 275, 290, 305, 320, 335, 350,
365, 380, 395, 409, 422, 434, 231, 246, 261, 276, 291, 306, 321, 336, 351,
366, 381, 396, 410, 423, 435, 446, 247, 262, 277, 292, 307, 322, 337, 352,
367, 382, 397, 411, 424, 436, 447, 457, 263, 278, 293, 308, 323, 338, 353,
368, 383, 398, 412, 425, 437, 448, 458, 467, 279, 294, 309, 324, 339, 354,
369, 384, 399, 413, 426, 438, 449, 459, 468, 476, 295, 310, 325, 340, 355,
370, 385, 400, 414, 427, 439, 450, 460, 469, 477, 484, 311, 326, 341, 356,
371, 386, 401, 415, 428, 440, 451, 461, 470, 478, 485, 491, 327, 342, 357,
372, 387, 402, 416, 429, 441, 452, 462, 471, 479, 486, 492, 497, 343, 358,
373, 388, 403, 417, 430, 442, 453, 463, 472, 480, 487, 493, 498, 502, 359,
374, 389, 404, 418, 431, 443, 454, 464, 473, 481, 488, 494, 499, 503, 506,
375, 390, 405, 419, 432, 444, 455, 465, 474, 482, 489, 495, 500, 504, 507,
509, 391, 406, 420, 433, 445, 456, 466, 475, 483, 490, 496, 501, 505, 508,
510, 511,
};
DECLARE_ALIGNED(16, static const int16_t, av1_default_iscan_32x16[512]) = {
0, 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, 78, 91, 105,
120, 136, 152, 168, 184, 200, 216, 232, 248, 264, 280, 296, 312, 328, 344,
360, 376, 2, 4, 7, 11, 16, 22, 29, 37, 46, 56, 67, 79, 92,
106, 121, 137, 153, 169, 185, 201, 217, 233, 249, 265, 281, 297, 313, 329,
345, 361, 377, 392, 5, 8, 12, 17, 23, 30, 38, 47, 57, 68, 80,
93, 107, 122, 138, 154, 170, 186, 202, 218, 234, 250, 266, 282, 298, 314,
330, 346, 362, 378, 393, 407, 9, 13, 18, 24, 31, 39, 48, 58, 69,
81, 94, 108, 123, 139, 155, 171, 187, 203, 219, 235, 251, 267, 283, 299,
315, 331, 347, 363, 379, 394, 408, 421, 14, 19, 25, 32, 40, 49, 59,
70, 82, 95, 109, 124, 140, 156, 172, 188, 204, 220, 236, 252, 268, 284,
300, 316, 332, 348, 364, 380, 395, 409, 422, 434, 20, 26, 33, 41, 50,
60, 71, 83, 96, 110, 125, 141, 157, 173, 189, 205, 221, 237, 253, 269,
285, 301, 317, 333, 349, 365, 381, 396, 410, 423, 435, 446, 27, 34, 42,
51, 61, 72, 84, 97, 111, 126, 142, 158, 174, 190, 206, 222, 238, 254,
270, 286, 302, 318, 334, 350, 366, 382, 397, 411, 424, 436, 447, 457, 35,
43, 52, 62, 73, 85, 98, 112, 127, 143, 159, 175, 191, 207, 223, 239,
255, 271, 287, 303, 319, 335, 351, 367, 383, 398, 412, 425, 437, 448, 458,
467, 44, 53, 63, 74, 86, 99, 113, 128, 144, 160, 176, 192, 208, 224,
240, 256, 272, 288, 304, 320, 336, 352, 368, 384, 399, 413, 426, 438, 449,
459, 468, 476, 54, 64, 75, 87, 100, 114, 129, 145, 161, 177, 193, 209,
225, 241, 257, 273, 289, 305, 321, 337, 353, 369, 385, 400, 414, 427, 439,
450, 460, 469, 477, 484, 65, 76, 88, 101, 115, 130, 146, 162, 178, 194,
210, 226, 242, 258, 274, 290, 306, 322, 338, 354, 370, 386, 401, 415, 428,
440, 451, 461, 470, 478, 485, 491, 77, 89, 102, 116, 131, 147, 163, 179,
195, 211, 227, 243, 259, 275, 291, 307, 323, 339, 355, 371, 387, 402, 416,
429, 441, 452, 462, 471, 479, 486, 492, 497, 90, 103, 117, 132, 148, 164,
180, 196, 212, 228, 244, 260, 276, 292, 308, 324, 340, 356, 372, 388, 403,
417, 430, 442, 453, 463, 472, 480, 487, 493, 498, 502, 104, 118, 133, 149,
165, 181, 197, 213, 229, 245, 261, 277, 293, 309, 325, 341, 357, 373, 389,
404, 418, 431, 443, 454, 464, 473, 481, 488, 494, 499, 503, 506, 119, 134,
150, 166, 182, 198, 214, 230, 246, 262, 278, 294, 310, 326, 342, 358, 374,
390, 405, 419, 432, 444, 455, 465, 474, 482, 489, 495, 500, 504, 507, 509,
135, 151, 167, 183, 199, 215, 231, 247, 263, 279, 295, 311, 327, 343, 359,
375, 391, 406, 420, 433, 445, 456, 466, 475, 483, 490, 496, 501, 505, 508,
510, 511,
};
DECLARE_ALIGNED(16, static const int16_t, av1_mcol_iscan_16x32[512]) = {
0, 32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448, 480,
1, 33, 65, 97, 129, 161, 193, 225, 257, 289, 321, 353, 385, 417, 449, 481,
2, 34, 66, 98, 130, 162, 194, 226, 258, 290, 322, 354, 386, 418, 450, 482,
3, 35, 67, 99, 131, 163, 195, 227, 259, 291, 323, 355, 387, 419, 451, 483,
4, 36, 68, 100, 132, 164, 196, 228, 260, 292, 324, 356, 388, 420, 452, 484,
5, 37, 69, 101, 133, 165, 197, 229, 261, 293, 325, 357, 389, 421, 453, 485,
6, 38, 70, 102, 134, 166, 198, 230, 262, 294, 326, 358, 390, 422, 454, 486,
7, 39, 71, 103, 135, 167, 199, 231, 263, 295, 327, 359, 391, 423, 455, 487,
8, 40, 72, 104, 136, 168, 200, 232, 264, 296, 328, 360, 392, 424, 456, 488,
9, 41, 73, 105, 137, 169, 201, 233, 265, 297, 329, 361, 393, 425, 457, 489,
10, 42, 74, 106, 138, 170, 202, 234, 266, 298, 330, 362, 394, 426, 458, 490,
11, 43, 75, 107, 139, 171, 203, 235, 267, 299, 331, 363, 395, 427, 459, 491,
12, 44, 76, 108, 140, 172, 204, 236, 268, 300, 332, 364, 396, 428, 460, 492,
13, 45, 77, 109, 141, 173, 205, 237, 269, 301, 333, 365, 397, 429, 461, 493,
14, 46, 78, 110, 142, 174, 206, 238, 270, 302, 334, 366, 398, 430, 462, 494,
15, 47, 79, 111, 143, 175, 207, 239, 271, 303, 335, 367, 399, 431, 463, 495,
16, 48, 80, 112, 144, 176, 208, 240, 272, 304, 336, 368, 400, 432, 464, 496,
17, 49, 81, 113, 145, 177, 209, 241, 273, 305, 337, 369, 401, 433, 465, 497,
18, 50, 82, 114, 146, 178, 210, 242, 274, 306, 338, 370, 402, 434, 466, 498,
19, 51, 83, 115, 147, 179, 211, 243, 275, 307, 339, 371, 403, 435, 467, 499,
20, 52, 84, 116, 148, 180, 212, 244, 276, 308, 340, 372, 404, 436, 468, 500,
21, 53, 85, 117, 149, 181, 213, 245, 277, 309, 341, 373, 405, 437, 469, 501,
22, 54, 86, 118, 150, 182, 214, 246, 278, 310, 342, 374, 406, 438, 470, 502,
23, 55, 87, 119, 151, 183, 215, 247, 279, 311, 343, 375, 407, 439, 471, 503,
24, 56, 88, 120, 152, 184, 216, 248, 280, 312, 344, 376, 408, 440, 472, 504,
25, 57, 89, 121, 153, 185, 217, 249, 281, 313, 345, 377, 409, 441, 473, 505,
26, 58, 90, 122, 154, 186, 218, 250, 282, 314, 346, 378, 410, 442, 474, 506,
27, 59, 91, 123, 155, 187, 219, 251, 283, 315, 347, 379, 411, 443, 475, 507,
28, 60, 92, 124, 156, 188, 220, 252, 284, 316, 348, 380, 412, 444, 476, 508,
29, 61, 93, 125, 157, 189, 221, 253, 285, 317, 349, 381, 413, 445, 477, 509,
30, 62, 94, 126, 158, 190, 222, 254, 286, 318, 350, 382, 414, 446, 478, 510,
31, 63, 95, 127, 159, 191, 223, 255, 287, 319, 351, 383, 415, 447, 479, 511,
};
DECLARE_ALIGNED(16, static const int16_t, av1_mcol_iscan_32x16[512]) = {
0, 16, 32, 48, 64, 80, 96, 112, 128, 144, 160, 176, 192, 208, 224,
240, 256, 272, 288, 304, 320, 336, 352, 368, 384, 400, 416, 432, 448, 464,
480, 496, 1, 17, 33, 49, 65, 81, 97, 113, 129, 145, 161, 177, 193,
209, 225, 241, 257, 273, 289, 305, 321, 337, 353, 369, 385, 401, 417, 433,
449, 465, 481, 497, 2, 18, 34, 50, 66, 82, 98, 114, 130, 146, 162,
178, 194, 210, 226, 242, 258, 274, 290, 306, 322, 338, 354, 370, 386, 402,
418, 434, 450, 466, 482, 498, 3, 19, 35, 51, 67, 83, 99, 115, 131,
147, 163, 179, 195, 211, 227, 243, 259, 275, 291, 307, 323, 339, 355, 371,
387, 403, 419, 435, 451, 467, 483, 499, 4, 20, 36, 52, 68, 84, 100,
116, 132, 148, 164, 180, 196, 212, 228, 244, 260, 276, 292, 308, 324, 340,
356, 372, 388, 404, 420, 436, 452, 468, 484, 500, 5, 21, 37, 53, 69,
85, 101, 117, 133, 149, 165, 181, 197, 213, 229, 245, 261, 277, 293, 309,
325, 341, 357, 373, 389, 405, 421, 437, 453, 469, 485, 501, 6, 22, 38,
54, 70, 86, 102, 118, 134, 150, 166, 182, 198, 214, 230, 246, 262, 278,
294, 310, 326, 342, 358, 374, 390, 406, 422, 438, 454, 470, 486, 502, 7,
23, 39, 55, 71, 87, 103, 119, 135, 151, 167, 183, 199, 215, 231, 247,
263, 279, 295, 311, 327, 343, 359, 375, 391, 407, 423, 439, 455, 471, 487,
503, 8, 24, 40, 56, 72, 88, 104, 120, 136, 152, 168, 184, 200, 216,
232, 248, 264, 280, 296, 312, 328, 344, 360, 376, 392, 408, 424, 440, 456,
472, 488, 504, 9, 25, 41, 57, 73, 89, 105, 121, 137, 153, 169, 185,
201, 217, 233, 249, 265, 281, 297, 313, 329, 345, 361, 377, 393, 409, 425,
441, 457, 473, 489, 505, 10, 26, 42, 58, 74, 90, 106, 122, 138, 154,
170, 186, 202, 218, 234, 250, 266, 282, 298, 314, 330, 346, 362, 378, 394,
410, 426, 442, 458, 474, 490, 506, 11, 27, 43, 59, 75, 91, 107, 123,
139, 155, 171, 187, 203, 219, 235, 251, 267, 283, 299, 315, 331, 347, 363,
379, 395, 411, 427, 443, 459, 475, 491, 507, 12, 28, 44, 60, 76, 92,
108, 124, 140, 156, 172, 188, 204, 220, 236, 252, 268, 284, 300, 316, 332,
348, 364, 380, 396, 412, 428, 444, 460, 476, 492, 508, 13, 29, 45, 61,
77, 93, 109, 125, 141, 157, 173, 189, 205, 221, 237, 253, 269, 285, 301,
317, 333, 349, 365, 381, 397, 413, 429, 445, 461, 477, 493, 509, 14, 30,
46, 62, 78, 94, 110, 126, 142, 158, 174, 190, 206, 222, 238, 254, 270,
286, 302, 318, 334, 350, 366, 382, 398, 414, 430, 446, 462, 478, 494, 510,
15, 31, 47, 63, 79, 95, 111, 127, 143, 159, 175, 191, 207, 223, 239,
255, 271, 287, 303, 319, 335, 351, 367, 383, 399, 415, 431, 447, 463, 479,
495, 511,
};
DECLARE_ALIGNED(16, static const int16_t, av1_mrow_iscan_16x32[512]) = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119,
120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179,
180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209,
210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224,
225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239,
240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254,
255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269,
270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299,
300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329,
330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344,
345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359,
360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374,
375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389,
390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419,
420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434,
435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449,
450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464,
465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479,
480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494,
495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509,
510, 511,
};
DECLARE_ALIGNED(16, static const int16_t, av1_mrow_iscan_32x16[512]) = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119,
120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179,
180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209,
210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224,
225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239,
240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254,
255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269,
270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299,
300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329,
330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344,
345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359,
360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374,
375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389,
390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419,
420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434,
435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449,
450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464,
465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479,
480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494,
495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509,
510, 511,
};
DECLARE_ALIGNED(16, static const int16_t, av1_mcol_iscan_16x16[256]) = {
0, 16, 32, 48, 64, 80, 96, 112, 128, 144, 160, 176, 192, 208, 224, 240,
1, 17, 33, 49, 65, 81, 97, 113, 129, 145, 161, 177, 193, 209, 225, 241,
2, 18, 34, 50, 66, 82, 98, 114, 130, 146, 162, 178, 194, 210, 226, 242,
3, 19, 35, 51, 67, 83, 99, 115, 131, 147, 163, 179, 195, 211, 227, 243,
4, 20, 36, 52, 68, 84, 100, 116, 132, 148, 164, 180, 196, 212, 228, 244,
5, 21, 37, 53, 69, 85, 101, 117, 133, 149, 165, 181, 197, 213, 229, 245,
6, 22, 38, 54, 70, 86, 102, 118, 134, 150, 166, 182, 198, 214, 230, 246,
7, 23, 39, 55, 71, 87, 103, 119, 135, 151, 167, 183, 199, 215, 231, 247,
8, 24, 40, 56, 72, 88, 104, 120, 136, 152, 168, 184, 200, 216, 232, 248,
9, 25, 41, 57, 73, 89, 105, 121, 137, 153, 169, 185, 201, 217, 233, 249,
10, 26, 42, 58, 74, 90, 106, 122, 138, 154, 170, 186, 202, 218, 234, 250,
11, 27, 43, 59, 75, 91, 107, 123, 139, 155, 171, 187, 203, 219, 235, 251,
12, 28, 44, 60, 76, 92, 108, 124, 140, 156, 172, 188, 204, 220, 236, 252,
13, 29, 45, 61, 77, 93, 109, 125, 141, 157, 173, 189, 205, 221, 237, 253,
14, 30, 46, 62, 78, 94, 110, 126, 142, 158, 174, 190, 206, 222, 238, 254,
15, 31, 47, 63, 79, 95, 111, 127, 143, 159, 175, 191, 207, 223, 239, 255,
};
DECLARE_ALIGNED(16, static const int16_t, av1_mrow_iscan_16x16[256]) = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119,
120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179,
180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209,
210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224,
225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239,
240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254,
255,
};
DECLARE_ALIGNED(16, static const int16_t, av1_col_iscan_16x16[256]) = {
0, 4, 11, 20, 31, 43, 59, 75, 85, 109, 130, 150, 165, 181, 195, 198,
1, 6, 14, 23, 34, 47, 64, 81, 95, 114, 135, 153, 171, 188, 201, 212,
2, 8, 16, 25, 38, 52, 67, 83, 101, 116, 136, 157, 172, 190, 205, 216,
3, 10, 18, 29, 41, 55, 71, 89, 103, 119, 141, 159, 176, 194, 208, 218,
5, 12, 21, 32, 45, 58, 74, 93, 104, 123, 144, 164, 179, 196, 210, 223,
7, 15, 26, 37, 49, 63, 78, 96, 112, 129, 146, 166, 182, 200, 215, 228,
9, 19, 28, 39, 54, 69, 86, 102, 117, 132, 151, 170, 187, 206, 220, 230,
13, 24, 35, 46, 60, 73, 91, 108, 122, 137, 154, 174, 189, 207, 224, 235,
17, 30, 40, 53, 66, 82, 98, 115, 126, 142, 161, 180, 197, 213, 227, 237,
22, 36, 48, 62, 76, 92, 105, 120, 133, 147, 167, 186, 203, 219, 232, 240,
27, 44, 56, 70, 84, 99, 113, 127, 140, 156, 175, 193, 209, 226, 236, 244,
33, 51, 68, 79, 94, 110, 125, 138, 149, 162, 184, 202, 217, 229, 241, 247,
42, 61, 77, 90, 106, 121, 134, 148, 160, 173, 191, 211, 225, 238, 245, 251,
50, 72, 87, 100, 118, 128, 145, 158, 168, 183, 204, 222, 233, 242, 249, 253,
57, 80, 97, 111, 131, 143, 155, 169, 178, 192, 214, 231, 239, 246, 250, 254,
65, 88, 107, 124, 139, 152, 163, 177, 185, 199, 221, 234, 243, 248, 252, 255,
};
DECLARE_ALIGNED(16, static const int16_t, av1_row_iscan_16x16[256]) = {
0, 1, 2, 4, 6, 9, 12, 17, 22, 29, 36, 43, 54, 64, 76,
86, 3, 5, 7, 11, 15, 19, 25, 32, 38, 48, 59, 68, 84, 99,
115, 130, 8, 10, 13, 18, 23, 27, 33, 42, 51, 60, 72, 88, 103,
119, 142, 167, 14, 16, 20, 26, 31, 37, 44, 53, 61, 73, 85, 100,
116, 135, 161, 185, 21, 24, 30, 35, 40, 47, 55, 65, 74, 81, 94,
112, 133, 154, 179, 205, 28, 34, 39, 45, 50, 58, 67, 77, 87, 96,
106, 121, 146, 169, 196, 212, 41, 46, 49, 56, 63, 70, 79, 90, 98,
107, 122, 138, 159, 182, 207, 222, 52, 57, 62, 69, 75, 83, 93, 102,
110, 120, 134, 150, 176, 195, 215, 226, 66, 71, 78, 82, 91, 97, 108,
113, 127, 136, 148, 168, 188, 202, 221, 232, 80, 89, 92, 101, 105, 114,
125, 131, 139, 151, 162, 177, 192, 208, 223, 234, 95, 104, 109, 117, 123,
128, 143, 144, 155, 165, 175, 190, 206, 219, 233, 239, 111, 118, 124, 129,
140, 147, 157, 164, 170, 181, 191, 203, 224, 230, 240, 243, 126, 132, 137,
145, 153, 160, 174, 178, 184, 197, 204, 216, 231, 237, 244, 246, 141, 149,
156, 166, 172, 180, 189, 199, 200, 210, 220, 228, 238, 242, 249, 251, 152,
163, 171, 183, 186, 193, 201, 211, 214, 218, 227, 236, 245, 247, 252, 253,
158, 173, 187, 194, 198, 209, 213, 217, 225, 229, 235, 241, 248, 250, 254,
255,
};
DECLARE_ALIGNED(16, static const int16_t, av1_default_iscan_16x16[256]) = {
0, 2, 5, 9, 17, 24, 36, 44, 55, 72, 88, 104, 128, 143, 166,
179, 1, 4, 8, 13, 20, 30, 40, 54, 66, 79, 96, 113, 141, 154,
178, 196, 3, 7, 11, 18, 25, 33, 46, 57, 71, 86, 101, 119, 148,
164, 186, 201, 6, 12, 16, 23, 31, 39, 53, 64, 78, 92, 110, 127,
153, 169, 193, 208, 10, 14, 19, 28, 37, 47, 58, 67, 84, 98, 114,
133, 161, 176, 198, 214, 15, 21, 26, 34, 43, 52, 65, 77, 91, 106,
120, 140, 165, 185, 205, 221, 22, 27, 32, 41, 48, 60, 73, 85, 99,
116, 130, 151, 175, 190, 211, 225, 29, 35, 42, 49, 59, 69, 81, 95,
108, 125, 139, 155, 182, 197, 217, 229, 38, 45, 51, 61, 68, 80, 93,
105, 118, 134, 150, 168, 191, 207, 223, 234, 50, 56, 63, 74, 83, 94,
109, 117, 129, 147, 163, 177, 199, 213, 228, 238, 62, 70, 76, 87, 97,
107, 122, 131, 145, 159, 172, 188, 210, 222, 235, 242, 75, 82, 90, 102,
112, 124, 138, 146, 157, 173, 187, 202, 219, 230, 240, 245, 89, 100, 111,
123, 132, 142, 156, 167, 180, 189, 203, 216, 231, 237, 246, 250, 103, 115,
126, 136, 149, 162, 171, 183, 194, 204, 215, 224, 236, 241, 248, 252, 121,
135, 144, 158, 170, 181, 192, 200, 209, 218, 227, 233, 243, 244, 251, 254,
137, 152, 160, 174, 184, 195, 206, 212, 220, 226, 232, 239, 247, 249, 253,
255,
};
DECLARE_ALIGNED(16, static const int16_t, av1_mcol_iscan_32x32[1024]) = {
0, 32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416,
448, 480, 512, 544, 576, 608, 640, 672, 704, 736, 768, 800, 832, 864,
896, 928, 960, 992, 1, 33, 65, 97, 129, 161, 193, 225, 257, 289,
321, 353, 385, 417, 449, 481, 513, 545, 577, 609, 641, 673, 705, 737,
769, 801, 833, 865, 897, 929, 961, 993, 2, 34, 66, 98, 130, 162,
194, 226, 258, 290, 322, 354, 386, 418, 450, 482, 514, 546, 578, 610,
642, 674, 706, 738, 770, 802, 834, 866, 898, 930, 962, 994, 3, 35,
67, 99, 131, 163, 195, 227, 259, 291, 323, 355, 387, 419, 451, 483,
515, 547, 579, 611, 643, 675, 707, 739, 771, 803, 835, 867, 899, 931,
963, 995, 4, 36, 68, 100, 132, 164, 196, 228, 260, 292, 324, 356,
388, 420, 452, 484, 516, 548, 580, 612, 644, 676, 708, 740, 772, 804,
836, 868, 900, 932, 964, 996, 5, 37, 69, 101, 133, 165, 197, 229,
261, 293, 325, 357, 389, 421, 453, 485, 517, 549, 581, 613, 645, 677,
709, 741, 773, 805, 837, 869, 901, 933, 965, 997, 6, 38, 70, 102,
134, 166, 198, 230, 262, 294, 326, 358, 390, 422, 454, 486, 518, 550,
582, 614, 646, 678, 710, 742, 774, 806, 838, 870, 902, 934, 966, 998,
7, 39, 71, 103, 135, 167, 199, 231, 263, 295, 327, 359, 391, 423,
455, 487, 519, 551, 583, 615, 647, 679, 711, 743, 775, 807, 839, 871,
903, 935, 967, 999, 8, 40, 72, 104, 136, 168, 200, 232, 264, 296,
328, 360, 392, 424, 456, 488, 520, 552, 584, 616, 648, 680, 712, 744,
776, 808, 840, 872, 904, 936, 968, 1000, 9, 41, 73, 105, 137, 169,
201, 233, 265, 297, 329, 361, 393, 425, 457, 489, 521, 553, 585, 617,
649, 681, 713, 745, 777, 809, 841, 873, 905, 937, 969, 1001, 10, 42,
74, 106, 138, 170, 202, 234, 266, 298, 330, 362, 394, 426, 458, 490,
522, 554, 586, 618, 650, 682, 714, 746, 778, 810, 842, 874, 906, 938,
970, 1002, 11, 43, 75, 107, 139, 171, 203, 235, 267, 299, 331, 363,
395, 427, 459, 491, 523, 555, 587, 619, 651, 683, 715, 747, 779, 811,
843, 875, 907, 939, 971, 1003, 12, 44, 76, 108, 140, 172, 204, 236,
268, 300, 332, 364, 396, 428, 460, 492, 524, 556, 588, 620, 652, 684,
716, 748, 780, 812, 844, 876, 908, 940, 972, 1004, 13, 45, 77, 109,
141, 173, 205, 237, 269, 301, 333, 365, 397, 429, 461, 493, 525, 557,
589, 621, 653, 685, 717, 749, 781, 813, 845, 877, 909, 941, 973, 1005,
14, 46, 78, 110, 142, 174, 206, 238, 270, 302, 334, 366, 398, 430,
462, 494, 526, 558, 590, 622, 654, 686, 718, 750, 782, 814, 846, 878,
910, 942, 974, 1006, 15, 47, 79, 111, 143, 175, 207, 239, 271, 303,
335, 367, 399, 431, 463, 495, 527, 559, 591, 623, 655, 687, 719, 751,
783, 815, 847, 879, 911, 943, 975, 1007, 16, 48, 80, 112, 144, 176,
208, 240, 272, 304, 336, 368, 400, 432, 464, 496, 528, 560, 592, 624,
656, 688, 720, 752, 784, 816, 848, 880, 912, 944, 976, 1008, 17, 49,
81, 113, 145, 177, 209, 241, 273, 305, 337, 369, 401, 433, 465, 497,
529, 561, 593, 625, 657, 689, 721, 753, 785, 817, 849, 881, 913, 945,
977, 1009, 18, 50, 82, 114, 146, 178, 210, 242, 274, 306, 338, 370,
402, 434, 466, 498, 530, 562, 594, 626, 658, 690, 722, 754, 786, 818,
850, 882, 914, 946, 978, 1010, 19, 51, 83, 115, 147, 179, 211, 243,
275, 307, 339, 371, 403, 435, 467, 499, 531, 563, 595, 627, 659, 691,
723, 755, 787, 819, 851, 883, 915, 947, 979, 1011, 20, 52, 84, 116,
148, 180, 212, 244, 276, 308, 340, 372, 404, 436, 468, 500, 532, 564,
596, 628, 660, 692, 724, 756, 788, 820, 852, 884, 916, 948, 980, 1012,
21, 53, 85, 117, 149, 181, 213, 245, 277, 309, 341, 373, 405, 437,
469, 501, 533, 565, 597, 629, 661, 693, 725, 757, 789, 821, 853, 885,
917, 949, 981, 1013, 22, 54, 86, 118, 150, 182, 214, 246, 278, 310,
342, 374, 406, 438, 470, 502, 534, 566, 598, 630, 662, 694, 726, 758,
790, 822, 854, 886, 918, 950, 982, 1014, 23, 55, 87, 119, 151, 183,
215, 247, 279, 311, 343, 375, 407, 439, 471, 503, 535, 567, 599, 631,
663, 695, 727, 759, 791, 823, 855, 887, 919, 951, 983, 1015, 24, 56,
88, 120, 152, 184, 216, 248, 280, 312, 344, 376, 408, 440, 472, 504,
536, 568, 600, 632, 664, 696, 728, 760, 792, 824, 856, 888, 920, 952,
984, 1016, 25, 57, 89, 121, 153, 185, 217, 249, 281, 313, 345, 377,
409, 441, 473, 505, 537, 569, 601, 633, 665, 697, 729, 761, 793, 825,
857, 889, 921, 953, 985, 1017, 26, 58, 90, 122, 154, 186, 218, 250,
282, 314, 346, 378, 410, 442, 474, 506, 538, 570, 602, 634, 666, 698,
730, 762, 794, 826, 858, 890, 922, 954, 986, 1018, 27, 59, 91, 123,
155, 187, 219, 251, 283, 315, 347, 379, 411, 443, 475, 507, 539, 571,
603, 635, 667, 699, 731, 763, 795, 827, 859, 891, 923, 955, 987, 1019,
28, 60, 92, 124, 156, 188, 220, 252, 284, 316, 348, 380, 412, 444,
476, 508, 540, 572, 604, 636, 668, 700, 732, 764, 796, 828, 860, 892,
924, 956, 988, 1020, 29, 61, 93, 125, 157, 189, 221, 253, 285, 317,
349, 381, 413, 445, 477, 509, 541, 573, 605, 637, 669, 701, 733, 765,
797, 829, 861, 893, 925, 957, 989, 1021, 30, 62, 94, 126, 158, 190,
222, 254, 286, 318, 350, 382, 414, 446, 478, 510, 542, 574, 606, 638,
670, 702, 734, 766, 798, 830, 862, 894, 926, 958, 990, 1022, 31, 63,
95, 127, 159, 191, 223, 255, 287, 319, 351, 383, 415, 447, 479, 511,
543, 575, 607, 639, 671, 703, 735, 767, 799, 831, 863, 895, 927, 959,
991, 1023,
};
DECLARE_ALIGNED(16, static const int16_t, av1_mrow_iscan_32x32[1024]) = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38,
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,
52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77,
78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90,
91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103,
104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116,
117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129,
130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142,
143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155,
156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168,
169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181,
182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207,
208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220,
221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233,
234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246,
247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259,
260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272,
273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285,
286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298,
299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311,
312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337,
338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350,
351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363,
364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376,
377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389,
390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402,
403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415,
416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428,
429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441,
442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454,
455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467,
468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480,
481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493,
494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506,
507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519,
520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532,
533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545,
546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558,
559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571,
572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584,
585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597,
598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610,
611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623,
624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636,
637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649,
650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662,
663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675,
676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701,
702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714,
715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727,
728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740,
741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753,
754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766,
767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779,
780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792,
793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805,
806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818,
819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831,
832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844,
845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857,
858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870,
871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883,
884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896,
897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909,
910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922,
923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935,
936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948,
949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961,
962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974,
975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987,
988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000,
1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013,
1014, 1015, 1016, 1017, 1018, 1019, 1020, 1021, 1022, 1023,
};
DECLARE_ALIGNED(16, static const int16_t, av1_default_iscan_32x32[1024]) = {
0, 2, 5, 10, 17, 25, 38, 47, 62, 83, 101, 121, 145,
170, 193, 204, 210, 219, 229, 233, 245, 257, 275, 299, 342, 356,
377, 405, 455, 471, 495, 527, 1, 4, 8, 15, 22, 30, 45,
58, 74, 92, 112, 133, 158, 184, 203, 215, 222, 228, 234, 237,
256, 274, 298, 317, 355, 376, 404, 426, 470, 494, 526, 551, 3,
7, 12, 18, 28, 36, 52, 64, 82, 102, 118, 142, 164, 189,
208, 217, 224, 231, 235, 238, 273, 297, 316, 329, 375, 403, 425,
440, 493, 525, 550, 567, 6, 11, 16, 23, 31, 43, 60, 73,
90, 109, 126, 150, 173, 196, 211, 220, 226, 232, 236, 239, 296,
315, 328, 335, 402, 424, 439, 447, 524, 549, 566, 575, 9, 14,
19, 29, 37, 50, 65, 78, 95, 116, 134, 157, 179, 201, 214,
223, 244, 255, 272, 295, 341, 354, 374, 401, 454, 469, 492, 523,
582, 596, 617, 645, 13, 20, 26, 35, 44, 54, 72, 85, 105,
123, 140, 163, 182, 205, 216, 225, 254, 271, 294, 314, 353, 373,
400, 423, 468, 491, 522, 548, 595, 616, 644, 666, 21, 27, 33,
42, 53, 63, 80, 94, 113, 132, 151, 172, 190, 209, 218, 227,
270, 293, 313, 327, 372, 399, 422, 438, 490, 521, 547, 565, 615,
643, 665, 680, 24, 32, 39, 48, 57, 71, 88, 104, 120, 139,
159, 178, 197, 212, 221, 230, 292, 312, 326, 334, 398, 421, 437,
446, 520, 546, 564, 574, 642, 664, 679, 687, 34, 40, 46, 56,
68, 81, 96, 111, 130, 147, 167, 186, 243, 253, 269, 291, 340,
352, 371, 397, 453, 467, 489, 519, 581, 594, 614, 641, 693, 705,
723, 747, 41, 49, 55, 67, 77, 91, 107, 124, 138, 161, 177,
194, 252, 268, 290, 311, 351, 370, 396, 420, 466, 488, 518, 545,
593, 613, 640, 663, 704, 722, 746, 765, 51, 59, 66, 76, 89,
99, 119, 131, 149, 168, 181, 200, 267, 289, 310, 325, 369, 395,
419, 436, 487, 517, 544, 563, 612, 639, 662, 678, 721, 745, 764,
777, 61, 69, 75, 87, 100, 114, 129, 144, 162, 180, 191, 207,
288, 309, 324, 333, 394, 418, 435, 445, 516, 543, 562, 573, 638,
661, 677, 686, 744, 763, 776, 783, 70, 79, 86, 97, 108, 122,
137, 155, 242, 251, 266, 287, 339, 350, 368, 393, 452, 465, 486,
515, 580, 592, 611, 637, 692, 703, 720, 743, 788, 798, 813, 833,
84, 93, 103, 110, 125, 141, 154, 171, 250, 265, 286, 308, 349,
367, 392, 417, 464, 485, 514, 542, 591, 610, 636, 660, 702, 719,
742, 762, 797, 812, 832, 848, 98, 106, 115, 127, 143, 156, 169,
185, 264, 285, 307, 323, 366, 391, 416, 434, 484, 513, 541, 561,
609, 635, 659, 676, 718, 741, 761, 775, 811, 831, 847, 858, 117,
128, 136, 148, 160, 175, 188, 198, 284, 306, 322, 332, 390, 415,
433, 444, 512, 540, 560, 572, 634, 658, 675, 685, 740, 760, 774,
782, 830, 846, 857, 863, 135, 146, 152, 165, 241, 249, 263, 283,
338, 348, 365, 389, 451, 463, 483, 511, 579, 590, 608, 633, 691,
701, 717, 739, 787, 796, 810, 829, 867, 875, 887, 903, 153, 166,
174, 183, 248, 262, 282, 305, 347, 364, 388, 414, 462, 482, 510,
539, 589, 607, 632, 657, 700, 716, 738, 759, 795, 809, 828, 845,
874, 886, 902, 915, 176, 187, 195, 202, 261, 281, 304, 321, 363,
387, 413, 432, 481, 509, 538, 559, 606, 631, 656, 674, 715, 737,
758, 773, 808, 827, 844, 856, 885, 901, 914, 923, 192, 199, 206,
213, 280, 303, 320, 331, 386, 412, 431, 443, 508, 537, 558, 571,
630, 655, 673, 684, 736, 757, 772, 781, 826, 843, 855, 862, 900,
913, 922, 927, 240, 247, 260, 279, 337, 346, 362, 385, 450, 461,
480, 507, 578, 588, 605, 629, 690, 699, 714, 735, 786, 794, 807,
825, 866, 873, 884, 899, 930, 936, 945, 957, 246, 259, 278, 302,
345, 361, 384, 411, 460, 479, 506, 536, 587, 604, 628, 654, 698,
713, 734, 756, 793, 806, 824, 842, 872, 883, 898, 912, 935, 944,
956, 966, 258, 277, 301, 319, 360, 383, 410, 430, 478, 505, 535,
557, 603, 627, 653, 672, 712, 733, 755, 771, 805, 823, 841, 854,
882, 897, 911, 921, 943, 955, 965, 972, 276, 300, 318, 330, 382,
409, 429, 442, 504, 534, 556, 570, 626, 652, 671, 683, 732, 754,
770, 780, 822, 840, 853, 861, 896, 910, 920, 926, 954, 964, 971,
975, 336, 344, 359, 381, 449, 459, 477, 503, 577, 586, 602, 625,
689, 697, 711, 731, 785, 792, 804, 821, 865, 871, 881, 895, 929,
934, 942, 953, 977, 981, 987, 995, 343, 358, 380, 408, 458, 476,
502, 533, 585, 601, 624, 651, 696, 710, 730, 753, 791, 803, 820,
839, 870, 880, 894, 909, 933, 941, 952, 963, 980, 986, 994, 1001,
357, 379, 407, 428, 475, 501, 532, 555, 600, 623, 650, 670, 709,
729, 752, 769, 802, 819, 838, 852, 879, 893, 908, 919, 940, 951,
962, 970, 985, 993, 1000, 1005, 378, 406, 427, 441, 500, 531, 554,
569, 622, 649, 669, 682, 728, 751, 768, 779, 818, 837, 851, 860,
892, 907, 918, 925, 950, 961, 969, 974, 992, 999, 1004, 1007, 448,
457, 474, 499, 576, 584, 599, 621, 688, 695, 708, 727, 784, 790,
801, 817, 864, 869, 878, 891, 928, 932, 939, 949, 976, 979, 984,
991, 1008, 1010, 1013, 1017, 456, 473, 498, 530, 583, 598, 620, 648,
694, 707, 726, 750, 789, 800, 816, 836, 868, 877, 890, 906, 931,
938, 948, 960, 978, 983, 990, 998, 1009, 1012, 1016, 1020, 472, 497,
529, 553, 597, 619, 647, 668, 706, 725, 749, 767, 799, 815, 835,
850, 876, 889, 905, 917, 937, 947, 959, 968, 982, 989, 997, 1003,
1011, 1015, 1019, 1022, 496, 528, 552, 568, 618, 646, 667, 681, 724,
748, 766, 778, 814, 834, 849, 859, 888, 904, 916, 924, 946, 958,
967, 973, 988, 996, 1002, 1006, 1014, 1018, 1021, 1023,
};
DECLARE_ALIGNED(16, static const int16_t, av1_v2_iscan_32x32[1024]) = {
0, 1, 4, 9, 15, 22, 33, 43, 56, 71, 86, 104, 121,
142, 166, 189, 512, 518, 527, 539, 551, 566, 584, 602, 621, 644,
668, 695, 721, 748, 780, 811, 2, 3, 6, 11, 17, 26, 35,
45, 58, 73, 90, 106, 123, 146, 168, 193, 513, 519, 528, 540,
553, 567, 585, 603, 622, 647, 670, 696, 722, 751, 783, 812, 5,
7, 8, 13, 20, 28, 37, 50, 62, 75, 92, 108, 129, 150,
170, 195, 514, 521, 530, 541, 554, 569, 587, 605, 625, 649, 671,
699, 725, 752, 785, 815, 10, 12, 14, 19, 23, 31, 41, 52,
65, 81, 96, 113, 133, 152, 175, 201, 515, 522, 531, 542, 556,
572, 589, 607, 629, 651, 673, 700, 726, 757, 788, 819, 16, 18,
21, 24, 30, 39, 48, 59, 69, 83, 100, 119, 137, 158, 181,
203, 516, 523, 534, 545, 559, 574, 591, 610, 632, 654, 679, 704,
730, 762, 791, 824, 25, 27, 29, 32, 40, 46, 54, 67, 79,
94, 109, 127, 143, 164, 185, 210, 517, 525, 535, 547, 561, 578,
595, 615, 635, 656, 684, 707, 737, 766, 793, 830, 34, 36, 38,
42, 49, 55, 64, 76, 87, 102, 117, 135, 154, 176, 197, 219,
520, 529, 538, 550, 565, 580, 598, 618, 639, 664, 687, 712, 741,
769, 802, 833, 44, 47, 51, 53, 60, 68, 77, 85, 98, 114,
131, 147, 162, 183, 208, 227, 524, 533, 544, 557, 571, 588, 606,
623, 645, 667, 692, 720, 747, 776, 806, 838, 57, 61, 63, 66,
70, 80, 88, 99, 112, 124, 140, 159, 179, 199, 216, 233, 526,
536, 548, 562, 577, 593, 613, 633, 653, 676, 701, 727, 756, 786,
814, 847, 72, 74, 78, 82, 84, 95, 103, 115, 125, 139, 156,
173, 190, 211, 229, 246, 532, 543, 555, 568, 581, 601, 619, 637,
663, 685, 709, 738, 763, 792, 826, 855, 89, 91, 93, 97, 101,
110, 118, 132, 141, 157, 171, 186, 206, 224, 241, 255, 537, 549,
560, 576, 592, 608, 628, 650, 669, 693, 719, 744, 773, 805, 834,
862, 105, 107, 111, 116, 120, 128, 136, 148, 160, 174, 187, 205,
221, 236, 251, 267, 546, 558, 570, 583, 600, 617, 636, 657, 680,
706, 729, 758, 787, 813, 846, 871, 122, 126, 130, 134, 138, 144,
155, 163, 180, 191, 207, 222, 232, 248, 264, 278, 552, 564, 579,
594, 609, 630, 648, 666, 688, 715, 742, 768, 797, 827, 856, 877,
145, 149, 151, 153, 161, 165, 177, 184, 200, 212, 225, 237, 249,
262, 275, 289, 563, 575, 590, 604, 620, 638, 660, 683, 705, 728,
753, 779, 809, 839, 866, 889, 167, 169, 172, 178, 182, 188, 198,
209, 217, 230, 242, 252, 265, 276, 288, 301, 573, 586, 599, 616,
634, 652, 672, 694, 716, 743, 767, 794, 825, 850, 874, 899, 192,
194, 196, 202, 204, 213, 220, 228, 234, 247, 256, 268, 279, 290,
302, 315, 582, 597, 614, 631, 646, 665, 686, 708, 732, 759, 784,
810, 837, 863, 886, 908, 214, 215, 218, 223, 226, 231, 239, 244,
253, 261, 271, 283, 292, 304, 317, 325, 596, 611, 626, 642, 661,
681, 702, 723, 745, 770, 800, 828, 853, 875, 897, 919, 235, 238,
240, 243, 245, 250, 257, 263, 270, 280, 287, 298, 307, 319, 329,
340, 612, 624, 640, 658, 677, 697, 717, 739, 764, 789, 816, 844,
867, 890, 909, 927, 254, 258, 259, 260, 266, 269, 272, 282, 286,
296, 303, 312, 323, 333, 341, 355, 627, 641, 655, 674, 690, 713,
735, 760, 781, 807, 835, 857, 880, 902, 921, 940, 273, 274, 277,
281, 284, 285, 291, 299, 305, 310, 320, 327, 337, 346, 357, 369,
643, 659, 675, 689, 710, 733, 754, 777, 803, 831, 851, 872, 892,
913, 934, 950, 293, 294, 295, 297, 300, 306, 308, 314, 321, 326,
335, 343, 352, 361, 372, 378, 662, 678, 691, 711, 731, 749, 774,
798, 822, 848, 869, 887, 906, 925, 942, 961, 309, 311, 313, 316,
318, 322, 324, 332, 338, 344, 351, 358, 367, 375, 386, 394, 682,
698, 714, 734, 750, 772, 795, 820, 842, 864, 884, 904, 923, 938,
954, 967, 328, 330, 331, 334, 336, 339, 342, 348, 354, 359, 366,
374, 382, 391, 400, 409, 703, 718, 736, 755, 775, 796, 818, 840,
860, 882, 900, 917, 936, 952, 965, 977, 345, 347, 349, 350, 353,
356, 360, 364, 371, 376, 383, 389, 395, 406, 412, 423, 724, 740,
761, 778, 799, 821, 841, 859, 878, 895, 915, 932, 948, 963, 975,
986, 362, 363, 365, 368, 370, 373, 377, 379, 387, 392, 397, 405,
411, 420, 428, 439, 746, 765, 782, 804, 823, 843, 861, 879, 894,
911, 930, 946, 959, 973, 984, 994, 380, 381, 384, 385, 388, 390,
393, 396, 403, 408, 413, 422, 427, 436, 444, 452, 771, 790, 808,
832, 849, 865, 883, 896, 912, 928, 944, 957, 971, 982, 992, 1001,
398, 399, 401, 402, 404, 407, 410, 414, 419, 425, 429, 437, 442,
449, 458, 465, 801, 817, 836, 852, 870, 885, 901, 916, 931, 945,
956, 969, 980, 990, 999, 1007, 415, 416, 417, 418, 421, 424, 426,
430, 434, 441, 445, 453, 459, 463, 473, 480, 829, 845, 858, 873,
888, 905, 918, 933, 947, 958, 970, 979, 988, 997, 1005, 1012, 431,
432, 433, 435, 438, 440, 443, 446, 451, 456, 461, 468, 475, 479,
488, 494, 854, 868, 881, 893, 907, 924, 937, 949, 960, 972, 981,
989, 996, 1003, 1010, 1016, 447, 448, 450, 454, 455, 457, 460, 462,
469, 472, 477, 482, 490, 495, 499, 503, 876, 891, 903, 914, 926,
939, 953, 964, 974, 983, 991, 998, 1004, 1009, 1014, 1019, 464, 466,
467, 470, 471, 474, 476, 478, 484, 489, 493, 497, 501, 504, 506,
508, 898, 910, 922, 935, 943, 955, 966, 976, 985, 993, 1000, 1006,
1011, 1015, 1018, 1021, 481, 483, 485, 486, 487, 491, 492, 496, 498,
500, 502, 505, 507, 509, 510, 511, 920, 929, 941, 951, 962, 968,
978, 987, 995, 1002, 1008, 1013, 1017, 1020, 1022, 1023,
};
DECLARE_ALIGNED(16, static const int16_t, av1_h2_iscan_32x32[1024]) = {
0, 1, 4, 9, 15, 22, 33, 43, 56, 71, 86, 104, 121,
142, 166, 189, 214, 233, 254, 273, 292, 309, 328, 345, 362, 378,
397, 415, 431, 447, 464, 481, 2, 3, 6, 11, 17, 26, 35,
45, 58, 73, 90, 106, 123, 146, 168, 193, 215, 236, 255, 274,
294, 310, 329, 346, 363, 381, 399, 416, 432, 448, 465, 482, 5,
7, 8, 13, 20, 28, 37, 50, 62, 75, 92, 108, 129, 150,
170, 195, 216, 240, 259, 275, 295, 312, 331, 348, 365, 383, 400,
417, 433, 449, 467, 485, 10, 12, 14, 19, 23, 31, 41, 52,
65, 81, 96, 113, 133, 152, 175, 201, 221, 243, 260, 280, 297,
315, 333, 350, 367, 385, 402, 418, 434, 452, 470, 486, 16, 18,
21, 24, 30, 39, 48, 59, 69, 83, 100, 119, 137, 158, 181,
203, 226, 244, 264, 283, 300, 318, 335, 353, 370, 388, 404, 420,
438, 455, 471, 487, 25, 27, 29, 32, 40, 46, 54, 67, 79,
94, 109, 127, 143, 164, 185, 210, 231, 250, 269, 285, 304, 322,
339, 356, 373, 389, 407, 423, 440, 457, 473, 491, 34, 36, 38,
42, 49, 55, 64, 76, 87, 102, 117, 135, 154, 176, 197, 219,
239, 256, 272, 291, 308, 324, 341, 359, 377, 393, 410, 426, 442,
460, 476, 492, 44, 47, 51, 53, 60, 68, 77, 85, 98, 114,
131, 147, 162, 183, 208, 227, 245, 262, 282, 298, 314, 332, 349,
364, 379, 396, 412, 430, 446, 462, 478, 495, 57, 61, 63, 66,
70, 80, 88, 99, 112, 124, 140, 159, 179, 199, 217, 234, 253,
270, 286, 305, 321, 337, 354, 371, 387, 403, 419, 435, 451, 468,
484, 498, 72, 74, 78, 82, 84, 95, 103, 115, 125, 139, 156,
173, 190, 211, 229, 246, 261, 281, 296, 311, 325, 344, 360, 375,
392, 408, 425, 441, 456, 472, 489, 500, 89, 91, 93, 97, 101,
110, 118, 132, 141, 157, 171, 186, 206, 224, 241, 257, 271, 287,
303, 320, 336, 351, 366, 384, 398, 413, 429, 445, 461, 477, 493,
502, 105, 107, 111, 116, 120, 128, 136, 148, 160, 174, 187, 205,
222, 237, 251, 267, 284, 299, 313, 327, 343, 358, 374, 390, 405,
422, 437, 453, 469, 483, 497, 505, 122, 126, 130, 134, 138, 144,
155, 163, 180, 191, 207, 223, 232, 248, 265, 278, 293, 307, 323,
338, 352, 368, 382, 395, 411, 427, 443, 459, 475, 490, 501, 507,
145, 149, 151, 153, 161, 165, 177, 184, 200, 212, 225, 238, 249,
263, 276, 289, 306, 319, 334, 347, 361, 376, 391, 406, 421, 436,
450, 463, 479, 496, 504, 509, 167, 169, 172, 178, 182, 188, 198,
209, 218, 230, 242, 252, 266, 277, 288, 301, 317, 330, 342, 357,
372, 386, 401, 414, 428, 444, 458, 474, 488, 499, 506, 510, 192,
194, 196, 202, 204, 213, 220, 228, 235, 247, 258, 268, 279, 290,
302, 316, 326, 340, 355, 369, 380, 394, 409, 424, 439, 454, 466,
480, 494, 503, 508, 511, 512, 513, 514, 515, 516, 517, 520, 523,
526, 532, 537, 545, 551, 561, 573, 581, 596, 610, 625, 642, 661,
680, 701, 722, 745, 770, 800, 827, 853, 875, 897, 919, 518, 519,
521, 522, 524, 525, 528, 533, 536, 542, 549, 557, 564, 575, 585,
597, 611, 623, 640, 656, 676, 696, 717, 739, 763, 789, 815, 844,
867, 889, 909, 927, 527, 529, 530, 531, 534, 535, 538, 544, 548,
555, 560, 569, 579, 589, 598, 614, 626, 641, 655, 673, 690, 712,
735, 760, 780, 806, 834, 857, 880, 902, 921, 940, 539, 540, 541,
543, 546, 547, 550, 558, 562, 567, 576, 583, 593, 603, 616, 631,
643, 657, 674, 689, 710, 733, 752, 776, 803, 830, 850, 872, 892,
913, 934, 950, 552, 553, 554, 556, 559, 563, 565, 571, 577, 582,
591, 600, 609, 620, 634, 644, 662, 677, 691, 711, 730, 748, 773,
798, 822, 847, 869, 887, 906, 925, 942, 961, 566, 568, 570, 572,
574, 578, 580, 588, 594, 601, 608, 617, 629, 637, 652, 665, 681,
697, 713, 734, 749, 772, 793, 819, 842, 863, 884, 904, 923, 938,
954, 967, 584, 586, 587, 590, 592, 595, 599, 605, 613, 618, 628,
636, 648, 660, 671, 686, 702, 718, 736, 753, 774, 794, 818, 840,
860, 882, 900, 917, 936, 952, 965, 977, 602, 604, 606, 607, 612,
615, 619, 624, 633, 638, 649, 658, 666, 683, 692, 707, 723, 740,
761, 777, 799, 820, 841, 859, 877, 895, 915, 932, 948, 963, 975,
986, 621, 622, 627, 630, 632, 635, 639, 645, 653, 663, 668, 682,
688, 704, 716, 732, 746, 764, 781, 804, 823, 843, 861, 878, 894,
911, 930, 946, 959, 973, 984, 994, 646, 647, 650, 651, 654, 659,
664, 667, 678, 685, 693, 706, 715, 728, 743, 757, 771, 790, 807,
831, 848, 864, 883, 896, 912, 928, 944, 957, 971, 982, 992, 1001,
669, 670, 672, 675, 679, 684, 687, 694, 703, 709, 719, 729, 741,
754, 767, 783, 801, 816, 835, 851, 870, 885, 901, 916, 931, 945,
956, 969, 980, 990, 999, 1007, 695, 698, 699, 700, 705, 708, 714,
720, 726, 738, 744, 758, 768, 779, 795, 810, 828, 845, 858, 873,
888, 905, 918, 933, 947, 958, 970, 979, 988, 997, 1005, 1012, 721,
724, 725, 727, 731, 737, 742, 747, 756, 765, 775, 786, 797, 809,
825, 837, 854, 868, 881, 893, 907, 924, 937, 949, 960, 972, 981,
989, 996, 1003, 1010, 1016, 750, 751, 755, 759, 762, 766, 769, 778,
787, 792, 805, 812, 829, 838, 852, 865, 876, 890, 903, 914, 926,
939, 953, 964, 974, 983, 991, 998, 1004, 1009, 1014, 1019, 782, 784,
785, 788, 791, 796, 802, 808, 814, 826, 836, 846, 856, 866, 874,
886, 898, 910, 922, 935, 943, 955, 966, 976, 985, 993, 1000, 1006,
1011, 1015, 1018, 1021, 811, 813, 817, 821, 824, 832, 833, 839, 849,
855, 862, 871, 879, 891, 899, 908, 920, 929, 941, 951, 962, 968,
978, 987, 995, 1002, 1008, 1013, 1017, 1020, 1022, 1023,
};
DECLARE_ALIGNED(16, static const int16_t, av1_qtr_iscan_32x32[1024]) = {
0, 1, 4, 9, 15, 22, 33, 43, 56, 71, 86, 104, 121,
142, 166, 189, 256, 268, 286, 310, 334, 364, 400, 435, 471, 510,
553, 598, 640, 683, 732, 780, 2, 3, 6, 11, 17, 26, 35,
45, 58, 73, 90, 106, 123, 146, 168, 193, 258, 270, 288, 312,
338, 366, 402, 437, 473, 516, 557, 600, 642, 687, 736, 782, 5,
7, 8, 13, 20, 28, 37, 50, 62, 75, 92, 108, 129, 150,
170, 195, 260, 274, 292, 314, 340, 370, 406, 441, 478, 520, 559,
604, 646, 689, 740, 788, 10, 12, 14, 19, 23, 31, 41, 52,
65, 81, 96, 113, 133, 152, 175, 201, 262, 276, 294, 316, 344,
376, 410, 445, 484, 524, 563, 606, 648, 697, 746, 793, 16, 18,
21, 24, 30, 39, 48, 59, 69, 83, 100, 119, 137, 158, 181,
203, 264, 278, 300, 322, 350, 380, 414, 451, 490, 530, 571, 612,
656, 705, 750, 799, 25, 27, 29, 32, 40, 46, 54, 67, 79,
94, 109, 127, 143, 164, 185, 210, 266, 282, 302, 326, 354, 388,
422, 459, 496, 533, 579, 618, 665, 711, 754, 809, 34, 36, 38,
42, 49, 55, 64, 76, 87, 102, 117, 135, 154, 176, 197, 216,
272, 289, 308, 332, 362, 392, 427, 465, 504, 545, 585, 626, 671,
717, 766, 813, 44, 47, 51, 53, 60, 68, 77, 85, 98, 114,
131, 147, 162, 183, 208, 222, 279, 298, 320, 346, 374, 408, 442,
475, 511, 551, 592, 638, 681, 726, 772, 821, 57, 61, 63, 66,
70, 80, 88, 99, 112, 124, 140, 159, 179, 199, 214, 227, 284,
304, 328, 355, 386, 418, 455, 492, 528, 567, 608, 649, 695, 742,
786, 833, 72, 74, 78, 82, 84, 95, 103, 115, 125, 139, 156,
173, 190, 211, 224, 233, 296, 317, 342, 367, 394, 433, 466, 500,
543, 581, 622, 667, 707, 752, 803, 843, 89, 91, 93, 97, 101,
110, 118, 132, 141, 157, 171, 186, 206, 220, 231, 239, 306, 330,
352, 384, 415, 447, 482, 521, 554, 593, 636, 677, 722, 770, 815,
852, 105, 107, 111, 116, 120, 128, 136, 148, 160, 174, 187, 205,
218, 229, 237, 244, 323, 347, 371, 398, 431, 463, 498, 534, 573,
616, 654, 698, 743, 783, 831, 864, 122, 126, 130, 134, 138, 144,
155, 163, 180, 191, 207, 219, 226, 235, 242, 248, 335, 360, 390,
419, 449, 485, 518, 549, 587, 630, 672, 715, 760, 805, 845, 872,
145, 149, 151, 153, 161, 165, 177, 184, 200, 212, 221, 230, 236,
241, 246, 251, 356, 382, 411, 438, 469, 501, 539, 577, 613, 652,
690, 730, 776, 822, 858, 886, 167, 169, 172, 178, 182, 188, 198,
209, 215, 225, 232, 238, 243, 247, 250, 253, 378, 403, 428, 461,
494, 526, 560, 594, 632, 675, 713, 755, 801, 837, 868, 897, 192,
194, 196, 202, 204, 213, 217, 223, 228, 234, 240, 245, 249, 252,
254, 255, 395, 425, 457, 488, 512, 547, 583, 619, 659, 699, 737,
778, 819, 854, 882, 907, 257, 259, 261, 263, 265, 267, 273, 280,
285, 297, 307, 324, 336, 357, 379, 396, 424, 452, 479, 508, 541,
574, 609, 643, 679, 719, 764, 806, 841, 870, 895, 919, 269, 271,
275, 277, 281, 283, 290, 299, 305, 318, 331, 348, 361, 383, 404,
426, 453, 476, 506, 535, 568, 601, 634, 669, 708, 748, 789, 829,
860, 887, 909, 927, 287, 291, 293, 295, 301, 303, 309, 321, 329,
343, 353, 372, 391, 412, 429, 458, 480, 507, 532, 564, 590, 627,
663, 703, 733, 773, 816, 847, 876, 901, 921, 940, 311, 313, 315,
319, 325, 327, 333, 349, 358, 368, 385, 399, 420, 439, 462, 489,
509, 536, 565, 589, 624, 661, 691, 727, 768, 810, 838, 866, 890,
913, 934, 950, 337, 339, 341, 345, 351, 359, 363, 375, 387, 397,
416, 432, 450, 470, 495, 513, 542, 569, 591, 625, 657, 684, 723,
762, 797, 834, 862, 884, 905, 925, 942, 961, 365, 369, 373, 377,
381, 389, 393, 409, 421, 434, 448, 464, 486, 502, 527, 548, 575,
602, 628, 662, 685, 721, 756, 794, 827, 855, 880, 903, 923, 938,
954, 967, 401, 405, 407, 413, 417, 423, 430, 443, 456, 467, 483,
499, 519, 540, 561, 584, 610, 635, 664, 692, 724, 757, 792, 825,
850, 878, 899, 917, 936, 952, 965, 977, 436, 440, 444, 446, 454,
460, 468, 477, 493, 503, 522, 537, 550, 578, 595, 620, 644, 670,
704, 728, 763, 795, 826, 849, 873, 893, 915, 932, 948, 963, 975,
986, 472, 474, 481, 487, 491, 497, 505, 514, 529, 544, 555, 576,
588, 614, 633, 660, 680, 709, 734, 769, 798, 828, 851, 874, 892,
911, 930, 946, 959, 973, 984, 994, 515, 517, 523, 525, 531, 538,
546, 552, 570, 582, 596, 617, 631, 653, 676, 700, 720, 749, 774,
811, 835, 856, 879, 894, 912, 928, 944, 957, 971, 982, 992, 1001,
556, 558, 562, 566, 572, 580, 586, 597, 611, 623, 637, 655, 673,
693, 714, 738, 765, 790, 817, 839, 863, 881, 900, 916, 931, 945,
956, 969, 980, 990, 999, 1007, 599, 603, 605, 607, 615, 621, 629,
639, 650, 668, 678, 701, 716, 731, 758, 779, 807, 830, 848, 867,
885, 904, 918, 933, 947, 958, 970, 979, 988, 997, 1005, 1012, 641,
645, 647, 651, 658, 666, 674, 682, 696, 710, 725, 744, 761, 777,
802, 820, 842, 861, 877, 891, 906, 924, 937, 949, 960, 972, 981,
989, 996, 1003, 1010, 1016, 686, 688, 694, 702, 706, 712, 718, 729,
745, 753, 771, 784, 808, 823, 840, 857, 871, 888, 902, 914, 926,
939, 953, 964, 974, 983, 991, 998, 1004, 1009, 1014, 1019, 735, 739,
741, 747, 751, 759, 767, 775, 787, 804, 818, 832, 846, 859, 869,
883, 896, 910, 922, 935, 943, 955, 966, 976, 985, 993, 1000, 1006,
1011, 1015, 1018, 1021, 781, 785, 791, 796, 800, 812, 814, 824, 836,
844, 853, 865, 875, 889, 898, 908, 920, 929, 941, 951, 962, 968,
978, 987, 995, 1002, 1008, 1013, 1017, 1020, 1022, 1023,
};
#if CONFIG_TX64X64
DECLARE_ALIGNED(16, static const int16_t, av1_default_iscan_32x64[2048]) = {
0, 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, 78,
91, 105, 120, 136, 153, 171, 190, 210, 231, 253, 276, 300, 325,
351, 378, 406, 435, 465, 496, 2, 4, 7, 11, 16, 22, 29,
37, 46, 56, 67, 79, 92, 106, 121, 137, 154, 172, 191, 211,
232, 254, 277, 301, 326, 352, 379, 407, 436, 466, 497, 528, 5,
8, 12, 17, 23, 30, 38, 47, 57, 68, 80, 93, 107, 122,
138, 155, 173, 192, 212, 233, 255, 278, 302, 327, 353, 380, 408,
437, 467, 498, 529, 559, 9, 13, 18, 24, 31, 39, 48, 58,
69, 81, 94, 108, 123, 139, 156, 174, 193, 213, 234, 256, 279,
303, 328, 354, 381, 409, 438, 468, 499, 530, 560, 589, 14, 19,
25, 32, 40, 49, 59, 70, 82, 95, 109, 124, 140, 157, 175,
194, 214, 235, 257, 280, 304, 329, 355, 382, 410, 439, 469, 500,
531, 561, 590, 618, 20, 26, 33, 41, 50, 60, 71, 83, 96,
110, 125, 141, 158, 176, 195, 215, 236, 258, 281, 305, 330, 356,
383, 411, 440, 470, 501, 532, 562, 591, 619, 646, 27, 34, 42,
51, 61, 72, 84, 97, 111, 126, 142, 159, 177, 196, 216, 237,
259, 282, 306, 331, 357, 384, 412, 441, 471, 502, 533, 563, 592,
620, 647, 673, 35, 43, 52, 62, 73, 85, 98, 112, 127, 143,
160, 178, 197, 217, 238, 260, 283, 307, 332, 358, 385, 413, 442,
472, 503, 534, 564, 593, 621, 648, 674, 699, 44, 53, 63, 74,
86, 99, 113, 128, 144, 161, 179, 198, 218, 239, 261, 284, 308,
333, 359, 386, 414, 443, 473, 504, 535, 565, 594, 622, 649, 675,
700, 724, 54, 64, 75, 87, 100, 114, 129, 145, 162, 180, 199,
219, 240, 262, 285, 309, 334, 360, 387, 415, 444, 474, 505, 536,
566, 595, 623, 650, 676, 701, 725, 748, 65, 76, 88, 101, 115,
130, 146, 163, 181, 200, 220, 241, 263, 286, 310, 335, 361, 388,
416, 445, 475, 506, 537, 567, 596, 624, 651, 677, 702, 726, 749,
771, 77, 89, 102, 116, 131, 147, 164, 182, 201, 221, 242, 264,
287, 311, 336, 362, 389, 417, 446, 476, 507, 538, 568, 597, 625,
652, 678, 703, 727, 750, 772, 793, 90, 103, 117, 132, 148, 165,
183, 202, 222, 243, 265, 288, 312, 337, 363, 390, 418, 447, 477,
508, 539, 569, 598, 626, 653, 679, 704, 728, 751, 773, 794, 814,
104, 118, 133, 149, 166, 184, 203, 223, 244, 266, 289, 313, 338,
364, 391, 419, 448, 478, 509, 540, 570, 599, 627, 654, 680, 705,
729, 752, 774, 795, 815, 834, 119, 134, 150, 167, 185, 204, 224,
245, 267, 290, 314, 339, 365, 392, 420, 449, 479, 510, 541, 571,
600, 628, 655, 681, 706, 730, 753, 775, 796, 816, 835, 853, 135,
151, 168, 186, 205, 225, 246, 268, 291, 315, 340, 366, 393, 421,
450, 480, 511, 542, 572, 601, 629, 656, 682, 707, 731, 754, 776,
797, 817, 836, 854, 871, 152, 169, 187, 206, 226, 247, 269, 292,
316, 341, 367, 394, 422, 451, 481, 512, 543, 573, 602, 630, 657,
683, 708, 732, 755, 777, 798, 818, 837, 855, 872, 888, 170, 188,
207, 227, 248, 270, 293, 317, 342, 368, 395, 423, 452, 482, 513,
544, 574, 603, 631, 658, 684, 709, 733, 756, 778, 799, 819, 838,
856, 873, 889, 904, 189, 208, 228, 249, 271, 294, 318, 343, 369,
396, 424, 453, 483, 514, 545, 575, 604, 632, 659, 685, 710, 734,
757, 779, 800, 820, 839, 857, 874, 890, 905, 919, 209, 229, 250,
272, 295, 319, 344, 370, 397, 425, 454, 484, 515, 546, 576, 605,
633, 660, 686, 711, 735, 758, 780, 801, 821, 840, 858, 875, 891,
906, 920, 933, 230, 251, 273, 296, 320, 345, 371, 398, 426, 455,
485, 516, 547, 577, 606, 634, 661, 687, 712, 736, 759, 781, 802,
822, 841, 859, 876, 892, 907, 921, 934, 946, 252, 274, 297, 321,
346, 372, 399, 427, 456, 486, 517, 548, 578, 607, 635, 662, 688,
713, 737, 760, 782, 803, 823, 842, 860, 877, 893, 908, 922, 935,
947, 958, 275, 298, 322, 347, 373, 400, 428, 457, 487, 518, 549,
579, 608, 636, 663, 689, 714, 738, 761, 783, 804, 824, 843, 861,
878, 894, 909, 923, 936, 948, 959, 969, 299, 323, 348, 374, 401,
429, 458, 488, 519, 550, 580, 609, 637, 664, 690, 715, 739, 762,
784, 805, 825, 844, 862, 879, 895, 910, 924, 937, 949, 960, 970,
979, 324, 349, 375, 402, 430, 459, 489, 520, 551, 581, 610, 638,
665, 691, 716, 740, 763, 785, 806, 826, 845, 863, 880, 896, 911,
925, 938, 950, 961, 971, 980, 988, 350, 376, 403, 431, 460, 490,
521, 552, 582, 611, 639, 666, 692, 717, 741, 764, 786, 807, 827,
846, 864, 881, 897, 912, 926, 939, 951, 962, 972, 981, 989, 996,
377, 404, 432, 461, 491, 522, 553, 583, 612, 640, 667, 693, 718,
742, 765, 787, 808, 828, 847, 865, 882, 898, 913, 927, 940, 952,
963, 973, 982, 990, 997, 1003, 405, 433, 462, 492, 523, 554, 584,
613, 641, 668, 694, 719, 743, 766, 788, 809, 829, 848, 866, 883,
899, 914, 928, 941, 953, 964, 974, 983, 991, 998, 1004, 1009, 434,
463, 493, 524, 555, 585, 614, 642, 669, 695, 720, 744, 767, 789,
810, 830, 849, 867, 884, 900, 915, 929, 942, 954, 965, 975, 984,
992, 999, 1005, 1010, 1014, 464, 494, 525, 556, 586, 615, 643, 670,
696, 721, 745, 768, 790, 811, 831, 850, 868, 885, 901, 916, 930,
943, 955, 966, 976, 985, 993, 1000, 1006, 1011, 1015, 1018, 495, 526,
557, 587, 616, 644, 671, 697, 722, 746, 769, 791, 812, 832, 851,
869, 886, 902, 917, 931, 944, 956, 967, 977, 986, 994, 1001, 1007,
1012, 1016, 1019, 1021, 527, 558, 588, 617, 645, 672, 698, 723, 747,
770, 792, 813, 833, 852, 870, 887, 903, 918, 932, 945, 957, 968,
978, 987, 995, 1002, 1008, 1013, 1017, 1020, 1022, 1023, 1024, 1025, 1027,
1030, 1034, 1039, 1045, 1052, 1060, 1069, 1079, 1090, 1102, 1115, 1129, 1144,
1160, 1177, 1195, 1214, 1234, 1255, 1277, 1300, 1324, 1349, 1375, 1402, 1430,
1459, 1489, 1520, 1026, 1028, 1031, 1035, 1040, 1046, 1053, 1061, 1070, 1080,
1091, 1103, 1116, 1130, 1145, 1161, 1178, 1196, 1215, 1235, 1256, 1278, 1301,
1325, 1350, 1376, 1403, 1431, 1460, 1490, 1521, 1552, 1029, 1032, 1036, 1041,
1047, 1054, 1062, 1071, 1081, 1092, 1104, 1117, 1131, 1146, 1162, 1179, 1197,
1216, 1236, 1257, 1279, 1302, 1326, 1351, 1377, 1404, 1432, 1461, 1491, 1522,
1553, 1583, 1033, 1037, 1042, 1048, 1055, 1063, 1072, 1082, 1093, 1105, 1118,
1132, 1147, 1163, 1180, 1198, 1217, 1237, 1258, 1280, 1303, 1327, 1352, 1378,
1405, 1433, 1462, 1492, 1523, 1554, 1584, 1613, 1038, 1043, 1049, 1056, 1064,
1073, 1083, 1094, 1106, 1119, 1133, 1148, 1164, 1181, 1199, 1218, 1238, 1259,
1281, 1304, 1328, 1353, 1379, 1406, 1434, 1463, 1493, 1524, 1555, 1585, 1614,
1642, 1044, 1050, 1057, 1065, 1074, 1084, 1095, 1107, 1120, 1134, 1149, 1165,
1182, 1200, 1219, 1239, 1260, 1282, 1305, 1329, 1354, 1380, 1407, 1435, 1464,
1494, 1525, 1556, 1586, 1615, 1643, 1670, 1051, 1058, 1066, 1075, 1085, 1096,
1108, 1121, 1135, 1150, 1166, 1183, 1201, 1220, 1240, 1261, 1283, 1306, 1330,
1355, 1381, 1408, 1436, 1465, 1495, 1526, 1557, 1587, 1616, 1644, 1671, 1697,
1059, 1067, 1076, 1086, 1097, 1109, 1122, 1136, 1151, 1167, 1184, 1202, 1221,
1241, 1262, 1284, 1307, 1331, 1356, 1382, 1409, 1437, 1466, 1496, 1527, 1558,
1588, 1617, 1645, 1672, 1698, 1723, 1068, 1077, 1087, 1098, 1110, 1123, 1137,
1152, 1168, 1185, 1203, 1222, 1242, 1263, 1285, 1308, 1332, 1357, 1383, 1410,
1438, 1467, 1497, 1528, 1559, 1589, 1618, 1646, 1673, 1699, 1724, 1748, 1078,
1088, 1099, 1111, 1124, 1138, 1153, 1169, 1186, 1204, 1223, 1243, 1264, 1286,
1309, 1333, 1358, 1384, 1411, 1439, 1468, 1498, 1529, 1560, 1590, 1619, 1647,
1674, 1700, 1725, 1749, 1772, 1089, 1100, 1112, 1125, 1139, 1154, 1170, 1187,
1205, 1224, 1244, 1265, 1287, 1310, 1334, 1359, 1385, 1412, 1440, 1469, 1499,
1530, 1561, 1591, 1620, 1648, 1675, 1701, 1726, 1750, 1773, 1795, 1101, 1113,
1126, 1140, 1155, 1171, 1188, 1206, 1225, 1245, 1266, 1288, 1311, 1335, 1360,
1386, 1413, 1441, 1470, 1500, 1531, 1562, 1592, 1621, 1649, 1676, 1702, 1727,
1751, 1774, 1796, 1817, 1114, 1127, 1141, 1156, 1172, 1189, 1207, 1226, 1246,
1267, 1289, 1312, 1336, 1361, 1387, 1414, 1442, 1471, 1501, 1532, 1563, 1593,
1622, 1650, 1677, 1703, 1728, 1752, 1775, 1797, 1818, 1838, 1128, 1142, 1157,
1173, 1190, 1208, 1227, 1247, 1268, 1290, 1313, 1337, 1362, 1388, 1415, 1443,
1472, 1502, 1533, 1564, 1594, 1623, 1651, 1678, 1704, 1729, 1753, 1776, 1798,
1819, 1839, 1858, 1143, 1158, 1174, 1191, 1209, 1228, 1248, 1269, 1291, 1314,
1338, 1363, 1389, 1416, 1444, 1473, 1503, 1534, 1565, 1595, 1624, 1652, 1679,
1705, 1730, 1754, 1777, 1799, 1820, 1840, 1859, 1877, 1159, 1175, 1192, 1210,
1229, 1249, 1270, 1292, 1315, 1339, 1364, 1390, 1417, 1445, 1474, 1504, 1535,
1566, 1596, 1625, 1653, 1680, 1706, 1731, 1755, 1778, 1800, 1821, 1841, 1860,
1878, 1895, 1176, 1193, 1211, 1230, 1250, 1271, 1293, 1316, 1340, 1365, 1391,
1418, 1446, 1475, 1505, 1536, 1567, 1597, 1626, 1654, 1681, 1707, 1732, 1756,
1779, 1801, 1822, 1842, 1861, 1879, 1896, 1912, 1194, 1212, 1231, 1251, 1272,
1294, 1317, 1341, 1366, 1392, 1419, 1447, 1476, 1506, 1537, 1568, 1598, 1627,
1655, 1682, 1708, 1733, 1757, 1780, 1802, 1823, 1843, 1862, 1880, 1897, 1913,
1928, 1213, 1232, 1252, 1273, 1295, 1318, 1342, 1367, 1393, 1420, 1448, 1477,
1507, 1538, 1569, 1599, 1628, 1656, 1683, 1709, 1734, 1758, 1781, 1803, 1824,
1844, 1863, 1881, 1898, 1914, 1929, 1943, 1233, 1253, 1274, 1296, 1319, 1343,
1368, 1394, 1421, 1449, 1478, 1508, 1539, 1570, 1600, 1629, 1657, 1684, 1710,
1735, 1759, 1782, 1804, 1825, 1845, 1864, 1882, 1899, 1915, 1930, 1944, 1957,
1254, 1275, 1297, 1320, 1344, 1369, 1395, 1422, 1450, 1479, 1509, 1540, 1571,
1601, 1630, 1658, 1685, 1711, 1736, 1760, 1783, 1805, 1826, 1846, 1865, 1883,
1900, 1916, 1931, 1945, 1958, 1970, 1276, 1298, 1321, 1345, 1370, 1396, 1423,
1451, 1480, 1510, 1541, 1572, 1602, 1631, 1659, 1686, 1712, 1737, 1761, 1784,
1806, 1827, 1847, 1866, 1884, 1901, 1917, 1932, 1946, 1959, 1971, 1982, 1299,
1322, 1346, 1371, 1397, 1424, 1452, 1481, 1511, 1542, 1573, 1603, 1632, 1660,
1687, 1713, 1738, 1762, 1785, 1807, 1828, 1848, 1867, 1885, 1902, 1918, 1933,
1947, 1960, 1972, 1983, 1993, 1323, 1347, 1372, 1398, 1425, 1453, 1482, 1512,
1543, 1574, 1604, 1633, 1661, 1688, 1714, 1739, 1763, 1786, 1808, 1829, 1849,
1868, 1886, 1903, 1919, 1934, 1948, 1961, 1973, 1984, 1994, 2003, 1348, 1373,
1399, 1426, 1454, 1483, 1513, 1544, 1575, 1605, 1634, 1662, 1689, 1715, 1740,
1764, 1787, 1809, 1830, 1850, 1869, 1887, 1904, 1920, 1935, 1949, 1962, 1974,
1985, 1995, 2004, 2012, 1374, 1400, 1427, 1455, 1484, 1514, 1545, 1576, 1606,
1635, 1663, 1690, 1716, 1741, 1765, 1788, 1810, 1831, 1851, 1870, 1888, 1905,
1921, 1936, 1950, 1963, 1975, 1986, 1996, 2005, 2013, 2020, 1401, 1428, 1456,
1485, 1515, 1546, 1577, 1607, 1636, 1664, 1691, 1717, 1742, 1766, 1789, 1811,
1832, 1852, 1871, 1889, 1906, 1922, 1937, 1951, 1964, 1976, 1987, 1997, 2006,
2014, 2021, 2027, 1429, 1457, 1486, 1516, 1547, 1578, 1608, 1637, 1665, 1692,
1718, 1743, 1767, 1790, 1812, 1833, 1853, 1872, 1890, 1907, 1923, 1938, 1952,
1965, 1977, 1988, 1998, 2007, 2015, 2022, 2028, 2033, 1458, 1487, 1517, 1548,
1579, 1609, 1638, 1666, 1693, 1719, 1744, 1768, 1791, 1813, 1834, 1854, 1873,
1891, 1908, 1924, 1939, 1953, 1966, 1978, 1989, 1999, 2008, 2016, 2023, 2029,
2034, 2038, 1488, 1518, 1549, 1580, 1610, 1639, 1667, 1694, 1720, 1745, 1769,
1792, 1814, 1835, 1855, 1874, 1892, 1909, 1925, 1940, 1954, 1967, 1979, 1990,
2000, 2009, 2017, 2024, 2030, 2035, 2039, 2042, 1519, 1550, 1581, 1611, 1640,
1668, 1695, 1721, 1746, 1770, 1793, 1815, 1836, 1856, 1875, 1893, 1910, 1926,
1941, 1955, 1968, 1980, 1991, 2001, 2010, 2018, 2025, 2031, 2036, 2040, 2043,
2045, 1551, 1582, 1612, 1641, 1669, 1696, 1722, 1747, 1771, 1794, 1816, 1837,
1857, 1876, 1894, 1911, 1927, 1942, 1956, 1969, 1981, 1992, 2002, 2011, 2019,
2026, 2032, 2037, 2041, 2044, 2046, 2047,
};
DECLARE_ALIGNED(16, static const int16_t, av1_default_iscan_64x32[2048]) = {
0, 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, 78,
91, 105, 120, 136, 153, 171, 190, 210, 231, 253, 276, 300, 325,
351, 378, 406, 435, 465, 496, 1024, 1025, 1027, 1030, 1034, 1039, 1045,
1052, 1060, 1069, 1079, 1090, 1102, 1115, 1129, 1144, 1160, 1177, 1195, 1214,
1234, 1255, 1277, 1300, 1324, 1349, 1375, 1402, 1430, 1459, 1489, 1520, 2,
4, 7, 11, 16, 22, 29, 37, 46, 56, 67, 79, 92, 106,
121, 137, 154, 172, 191, 211, 232, 254, 277, 301, 326, 352, 379,
407, 436, 466, 497, 528, 1026, 1028, 1031, 1035, 1040, 1046, 1053, 1061,
1070, 1080, 1091, 1103, 1116, 1130, 1145, 1161, 1178, 1196, 1215, 1235, 1256,
1278, 1301, 1325, 1350, 1376, 1403, 1431, 1460, 1490, 1521, 1552, 5, 8,
12, 17, 23, 30, 38, 47, 57, 68, 80, 93, 107, 122, 138,
155, 173, 192, 212, 233, 255, 278, 302, 327, 353, 380, 408, 437,
467, 498, 529, 559, 1029, 1032, 1036, 1041, 1047, 1054, 1062, 1071, 1081,
1092, 1104, 1117, 1131, 1146, 1162, 1179, 1197, 1216, 1236, 1257, 1279, 1302,
1326, 1351, 1377, 1404, 1432, 1461, 1491, 1522, 1553, 1583, 9, 13, 18,
24, 31, 39, 48, 58, 69, 81, 94, 108, 123, 139, 156, 174,
193, 213, 234, 256, 279, 303, 328, 354, 381, 409, 438, 468, 499,
530, 560, 589, 1033, 1037, 1042, 1048, 1055, 1063, 1072, 1082, 1093, 1105,
1118, 1132, 1147, 1163, 1180, 1198, 1217, 1237, 1258, 1280, 1303, 1327, 1352,
1378, 1405, 1433, 1462, 1492, 1523, 1554, 1584, 1613, 14, 19, 25, 32,
40, 49, 59, 70, 82, 95, 109, 124, 140, 157, 175, 194, 214,
235, 257, 280, 304, 329, 355, 382, 410, 439, 469, 500, 531, 561,
590, 618, 1038, 1043, 1049, 1056, 1064, 1073, 1083, 1094, 1106, 1119, 1133,
1148, 1164, 1181, 1199, 1218, 1238, 1259, 1281, 1304, 1328, 1353, 1379, 1406,
1434, 1463, 1493, 1524, 1555, 1585, 1614, 1642, 20, 26, 33, 41, 50,
60, 71, 83, 96, 110, 125, 141, 158, 176, 195, 215, 236, 258,
281, 305, 330, 356, 383, 411, 440, 470, 501, 532, 562, 591, 619,
646, 1044, 1050, 1057, 1065, 1074, 1084, 1095, 1107, 1120, 1134, 1149, 1165,
1182, 1200, 1219, 1239, 1260, 1282, 1305, 1329, 1354, 1380, 1407, 1435, 1464,
1494, 1525, 1556, 1586, 1615, 1643, 1670, 27, 34, 42, 51, 61, 72,
84, 97, 111, 126, 142, 159, 177, 196, 216, 237, 259, 282, 306,
331, 357, 384, 412, 441, 471, 502, 533, 563, 592, 620, 647, 673,
1051, 1058, 1066, 1075, 1085, 1096, 1108, 1121, 1135, 1150, 1166, 1183, 1201,
1220, 1240, 1261, 1283, 1306, 1330, 1355, 1381, 1408, 1436, 1465, 1495, 1526,
1557, 1587, 1616, 1644, 1671, 1697, 35, 43, 52, 62, 73, 85, 98,
112, 127, 143, 160, 178, 197, 217, 238, 260, 283, 307, 332, 358,
385, 413, 442, 472, 503, 534, 564, 593, 621, 648, 674, 699, 1059,
1067, 1076, 1086, 1097, 1109, 1122, 1136, 1151, 1167, 1184, 1202, 1221, 1241,
1262, 1284, 1307, 1331, 1356, 1382, 1409, 1437, 1466, 1496, 1527, 1558, 1588,
1617, 1645, 1672, 1698, 1723, 44, 53, 63, 74, 86, 99, 113, 128,
144, 161, 179, 198, 218, 239, 261, 284, 308, 333, 359, 386, 414,
443, 473, 504, 535, 565, 594, 622, 649, 675, 700, 724, 1068, 1077,
1087, 1098, 1110, 1123, 1137, 1152, 1168, 1185, 1203, 1222, 1242, 1263, 1285,
1308, 1332, 1357, 1383, 1410, 1438, 1467, 1497, 1528, 1559, 1589, 1618, 1646,
1673, 1699, 1724, 1748, 54, 64, 75, 87, 100, 114, 129, 145, 162,
180, 199, 219, 240, 262, 285, 309, 334, 360, 387, 415, 444, 474,
505, 536, 566, 595, 623, 650, 676, 701, 725, 748, 1078, 1088, 1099,
1111, 1124, 1138, 1153, 1169, 1186, 1204, 1223, 1243, 1264, 1286, 1309, 1333,
1358, 1384, 1411, 1439, 1468, 1498, 1529, 1560, 1590, 1619, 1647, 1674, 1700,
1725, 1749, 1772, 65, 76, 88, 101, 115, 130, 146, 163, 181, 200,
220, 241, 263, 286, 310, 335, 361, 388, 416, 445, 475, 506, 537,
567, 596, 624, 651, 677, 702, 726, 749, 771, 1089, 1100, 1112, 1125,
1139, 1154, 1170, 1187, 1205, 1224, 1244, 1265, 1287, 1310, 1334, 1359, 1385,
1412, 1440, 1469, 1499, 1530, 1561, 1591, 1620, 1648, 1675, 1701, 1726, 1750,
1773, 1795, 77, 89, 102, 116, 131, 147, 164, 182, 201, 221, 242,
264, 287, 311, 336, 362, 389, 417, 446, 476, 507, 538, 568, 597,
625, 652, 678, 703, 727, 750, 772, 793, 1101, 1113, 1126, 1140, 1155,
1171, 1188, 1206, 1225, 1245, 1266, 1288, 1311, 1335, 1360, 1386, 1413, 1441,
1470, 1500, 1531, 1562, 1592, 1621, 1649, 1676, 1702, 1727, 1751, 1774, 1796,
1817, 90, 103, 117, 132, 148, 165, 183, 202, 222, 243, 265, 288,
312, 337, 363, 390, 418, 447, 477, 508, 539, 569, 598, 626, 653,
679, 704, 728, 751, 773, 794, 814, 1114, 1127, 1141, 1156, 1172, 1189,
1207, 1226, 1246, 1267, 1289, 1312, 1336, 1361, 1387, 1414, 1442, 1471, 1501,
1532, 1563, 1593, 1622, 1650, 1677, 1703, 1728, 1752, 1775, 1797, 1818, 1838,
104, 118, 133, 149, 166, 184, 203, 223, 244, 266, 289, 313, 338,
364, 391, 419, 448, 478, 509, 540, 570, 599, 627, 654, 680, 705,
729, 752, 774, 795, 815, 834, 1128, 1142, 1157, 1173, 1190, 1208, 1227,
1247, 1268, 1290, 1313, 1337, 1362, 1388, 1415, 1443, 1472, 1502, 1533, 1564,
1594, 1623, 1651, 1678, 1704, 1729, 1753, 1776, 1798, 1819, 1839, 1858, 119,
134, 150, 167, 185, 204, 224, 245, 267, 290, 314, 339, 365, 392,
420, 449, 479, 510, 541, 571, 600, 628, 655, 681, 706, 730, 753,
775, 796, 816, 835, 853, 1143, 1158, 1174, 1191, 1209, 1228, 1248, 1269,
1291, 1314, 1338, 1363, 1389, 1416, 1444, 1473, 1503, 1534, 1565, 1595, 1624,
1652, 1679, 1705, 1730, 1754, 1777, 1799, 1820, 1840, 1859, 1877, 135, 151,
168, 186, 205, 225, 246, 268, 291, 315, 340, 366, 393, 421, 450,
480, 511, 542, 572, 601, 629, 656, 682, 707, 731, 754, 776, 797,
817, 836, 854, 871, 1159, 1175, 1192, 1210, 1229, 1249, 1270, 1292, 1315,
1339, 1364, 1390, 1417, 1445, 1474, 1504, 1535, 1566, 1596, 1625, 1653, 1680,
1706, 1731, 1755, 1778, 1800, 1821, 1841, 1860, 1878, 1895, 152, 169, 187,
206, 226, 247, 269, 292, 316, 341, 367, 394, 422, 451, 481, 512,
543, 573, 602, 630, 657, 683, 708, 732, 755, 777, 798, 818, 837,
855, 872, 888, 1176, 1193, 1211, 1230, 1250, 1271, 1293, 1316, 1340, 1365,
1391, 1418, 1446, 1475, 1505, 1536, 1567, 1597, 1626, 1654, 1681, 1707, 1732,
1756, 1779, 1801, 1822, 1842, 1861, 1879, 1896, 1912, 170, 188, 207, 227,
248, 270, 293, 317, 342, 368, 395, 423, 452, 482, 513, 544, 574,
603, 631, 658, 684, 709, 733, 756, 778, 799, 819, 838, 856, 873,
889, 904, 1194, 1212, 1231, 1251, 1272, 1294, 1317, 1341, 1366, 1392, 1419,
1447, 1476, 1506, 1537, 1568, 1598, 1627, 1655, 1682, 1708, 1733, 1757, 1780,
1802, 1823, 1843, 1862, 1880, 1897, 1913, 1928, 189, 208, 228, 249, 271,
294, 318, 343, 369, 396, 424, 453, 483, 514, 545, 575, 604, 632,
659, 685, 710, 734, 757, 779, 800, 820, 839, 857, 874, 890, 905,
919, 1213, 1232, 1252, 1273, 1295, 1318, 1342, 1367, 1393, 1420, 1448, 1477,
1507, 1538, 1569, 1599, 1628, 1656, 1683, 1709, 1734, 1758, 1781, 1803, 1824,
1844, 1863, 1881, 1898, 1914, 1929, 1943, 209, 229, 250, 272, 295, 319,
344, 370, 397, 425, 454, 484, 515, 546, 576, 605, 633, 660, 686,
711, 735, 758, 780, 801, 821, 840, 858, 875, 891, 906, 920, 933,
1233, 1253, 1274, 1296, 1319, 1343, 1368, 1394, 1421, 1449, 1478, 1508, 1539,
1570, 1600, 1629, 1657, 1684, 1710, 1735, 1759, 1782, 1804, 1825, 1845, 1864,
1882, 1899, 1915, 1930, 1944, 1957, 230, 251, 273, 296, 320, 345, 371,
398, 426, 455, 485, 516, 547, 577, 606, 634, 661, 687, 712, 736,
759, 781, 802, 822, 841, 859, 876, 892, 907, 921, 934, 946, 1254,
1275, 1297, 1320, 1344, 1369, 1395, 1422, 1450, 1479, 1509, 1540, 1571, 1601,
1630, 1658, 1685, 1711, 1736, 1760, 1783, 1805, 1826, 1846, 1865, 1883, 1900,
1916, 1931, 1945, 1958, 1970, 252, 274, 297, 321, 346, 372, 399, 427,
456, 486, 517, 548, 578, 607, 635, 662, 688, 713, 737, 760, 782,
803, 823, 842, 860, 877, 893, 908, 922, 935, 947, 958, 1276, 1298,
1321, 1345, 1370, 1396, 1423, 1451, 1480, 1510, 1541, 1572, 1602, 1631, 1659,
1686, 1712, 1737, 1761, 1784, 1806, 1827, 1847, 1866, 1884, 1901, 1917, 1932,
1946, 1959, 1971, 1982, 275, 298, 322, 347, 373, 400, 428, 457, 487,
518, 549, 579, 608, 636, 663, 689, 714, 738, 761, 783, 804, 824,
843, 861, 878, 894, 909, 923, 936, 948, 959, 969, 1299, 1322, 1346,
1371, 1397, 1424, 1452, 1481, 1511, 1542, 1573, 1603, 1632, 1660, 1687, 1713,
1738, 1762, 1785, 1807, 1828, 1848, 1867, 1885, 1902, 1918, 1933, 1947, 1960,
1972, 1983, 1993, 299, 323, 348, 374, 401, 429, 458, 488, 519, 550,
580, 609, 637, 664, 690, 715, 739, 762, 784, 805, 825, 844, 862,
879, 895, 910, 924, 937, 949, 960, 970, 979, 1323, 1347, 1372, 1398,
1425, 1453, 1482, 1512, 1543, 1574, 1604, 1633, 1661, 1688, 1714, 1739, 1763,
1786, 1808, 1829, 1849, 1868, 1886, 1903, 1919, 1934, 1948, 1961, 1973, 1984,
1994, 2003, 324, 349, 375, 402, 430, 459, 489, 520, 551, 581, 610,
638, 665, 691, 716, 740, 763, 785, 806, 826, 845, 863, 880, 896,
911, 925, 938, 950, 961, 971, 980, 988, 1348, 1373, 1399, 1426, 1454,
1483, 1513, 1544, 1575, 1605, 1634, 1662, 1689, 1715, 1740, 1764, 1787, 1809,
1830, 1850, 1869, 1887, 1904, 1920, 1935, 1949, 1962, 1974, 1985, 1995, 2004,
2012, 350, 376, 403, 431, 460, 490, 521, 552, 582, 611, 639, 666,
692, 717, 741, 764, 786, 807, 827, 846, 864, 881, 897, 912, 926,
939, 951, 962, 972, 981, 989, 996, 1374, 1400, 1427, 1455, 1484, 1514,
1545, 1576, 1606, 1635, 1663, 1690, 1716, 1741, 1765, 1788, 1810, 1831, 1851,
1870, 1888, 1905, 1921, 1936, 1950, 1963, 1975, 1986, 1996, 2005, 2013, 2020,
377, 404, 432, 461, 491, 522, 553, 583, 612, 640, 667, 693, 718,
742, 765, 787, 808, 828, 847, 865, 882, 898, 913, 927, 940, 952,
963, 973, 982, 990, 997, 1003, 1401, 1428, 1456, 1485, 1515, 1546, 1577,
1607, 1636, 1664, 1691, 1717, 1742, 1766, 1789, 1811, 1832, 1852, 1871, 1889,
1906, 1922, 1937, 1951, 1964, 1976, 1987, 1997, 2006, 2014, 2021, 2027, 405,
433, 462, 492, 523, 554, 584, 613, 641, 668, 694, 719, 743, 766,
788, 809, 829, 848, 866, 883, 899, 914, 928, 941, 953, 964, 974,
983, 991, 998, 1004, 1009, 1429, 1457, 1486, 1516, 1547, 1578, 1608, 1637,
1665, 1692, 1718, 1743, 1767, 1790, 1812, 1833, 1853, 1872, 1890, 1907, 1923,
1938, 1952, 1965, 1977, 1988, 1998, 2007, 2015, 2022, 2028, 2033, 434, 463,
493, 524, 555, 585, 614, 642, 669, 695, 720, 744, 767, 789, 810,
830, 849, 867, 884, 900, 915, 929, 942, 954, 965, 975, 984, 992,
999, 1005, 1010, 1014, 1458, 1487, 1517, 1548, 1579, 1609, 1638, 1666, 1693,
1719, 1744, 1768, 1791, 1813, 1834, 1854, 1873, 1891, 1908, 1924, 1939, 1953,
1966, 1978, 1989, 1999, 2008, 2016, 2023, 2029, 2034, 2038, 464, 494, 525,
556, 586, 615, 643, 670, 696, 721, 745, 768, 790, 811, 831, 850,
868, 885, 901, 916, 930, 943, 955, 966, 976, 985, 993, 1000, 1006,
1011, 1015, 1018, 1488, 1518, 1549, 1580, 1610, 1639, 1667, 1694, 1720, 1745,
1769, 1792, 1814, 1835, 1855, 1874, 1892, 1909, 1925, 1940, 1954, 1967, 1979,
1990, 2000, 2009, 2017, 2024, 2030, 2035, 2039, 2042, 495, 526, 557, 587,
616, 644, 671, 697, 722, 746, 769, 791, 812, 832, 851, 869, 886,
902, 917, 931, 944, 956, 967, 977, 986, 994, 1001, 1007, 1012, 1016,
1019, 1021, 1519, 1550, 1581, 1611, 1640, 1668, 1695, 1721, 1746, 1770, 1793,
1815, 1836, 1856, 1875, 1893, 1910, 1926, 1941, 1955, 1968, 1980, 1991, 2001,
2010, 2018, 2025, 2031, 2036, 2040, 2043, 2045, 527, 558, 588, 617, 645,
672, 698, 723, 747, 770, 792, 813, 833, 852, 870, 887, 903, 918,
932, 945, 957, 968, 978, 987, 995, 1002, 1008, 1013, 1017, 1020, 1022,
1023, 1551, 1582, 1612, 1641, 1669, 1696, 1722, 1747, 1771, 1794, 1816, 1837,
1857, 1876, 1894, 1911, 1927, 1942, 1956, 1969, 1981, 1992, 2002, 2011, 2019,
2026, 2032, 2037, 2041, 2044, 2046, 2047,
};
DECLARE_ALIGNED(16, static const int16_t, av1_default_iscan_64x64[4096]) = {
0, 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, 78,
91, 105, 120, 136, 153, 171, 190, 210, 231, 253, 276, 300, 325,
351, 378, 406, 435, 465, 496, 1024, 1026, 1030, 1036, 1044, 1054, 1066,
1080, 1096, 1114, 1134, 1156, 1180, 1206, 1234, 1264, 1296, 1330, 1366, 1404,
1444, 1486, 1530, 1576, 1624, 1674, 1726, 1780, 1836, 1894, 1954, 2016, 2,
4, 7, 11, 16, 22, 29, 37, 46, 56, 67, 79, 92, 106,
121, 137, 154, 172, 191, 211, 232, 254, 277, 301, 326, 352, 379,
407, 436, 466, 497, 528, 1027, 1031, 1037, 1045, 1055, 1067, 1081, 1097,
1115, 1135, 1157, 1181, 1207, 1235, 1265, 1297, 1331, 1367, 1405, 1445, 1487,
1531, 1577, 1625, 1675, 1727, 1781, 1837, 1895, 1955, 2017, 2080, 5, 8,
12, 17, 23, 30, 38, 47, 57, 68, 80, 93, 107, 122, 138,
155, 173, 192, 212, 233, 255, 278, 302, 327, 353, 380, 408, 437,
467, 498, 529, 559, 1032, 1038, 1046, 1056, 1068, 1082, 1098, 1116, 1136,
1158, 1182, 1208, 1236, 1266, 1298, 1332, 1368, 1406, 1446, 1488, 1532, 1578,
1626, 1676, 1728, 1782, 1838, 1896, 1956, 2018, 2081, 2143, 9, 13, 18,
24, 31, 39, 48, 58, 69, 81, 94, 108, 123, 139, 156, 174,
193, 213, 234, 256, 279, 303, 328, 354, 381, 409, 438, 468, 499,
530, 560, 589, 1039, 1047, 1057, 1069, 1083, 1099, 1117, 1137, 1159, 1183,
1209, 1237, 1267, 1299, 1333, 1369, 1407, 1447, 1489, 1533, 1579, 1627, 1677,
1729, 1783, 1839, 1897, 1957, 2019, 2082, 2144, 2205, 14, 19, 25, 32,
40, 49, 59, 70, 82, 95, 109, 124, 140, 157, 175, 194, 214,
235, 257, 280, 304, 329, 355, 382, 410, 439, 469, 500, 531, 561,
590, 618, 1048, 1058, 1070, 1084, 1100, 1118, 1138, 1160, 1184, 1210, 1238,
1268, 1300, 1334, 1370, 1408, 1448, 1490, 1534, 1580, 1628, 1678, 1730, 1784,
1840, 1898, 1958, 2020, 2083, 2145, 2206, 2266, 20, 26, 33, 41, 50,
60, 71, 83, 96, 110, 125, 141, 158, 176, 195, 215, 236, 258,
281, 305, 330, 356, 383, 411, 440, 470, 501, 532, 562, 591, 619,
646, 1059, 1071, 1085, 1101, 1119, 1139, 1161, 1185, 1211, 1239, 1269, 1301,
1335, 1371, 1409, 1449, 1491, 1535, 1581, 1629, 1679, 1731, 1785, 1841, 1899,
1959, 2021, 2084, 2146, 2207, 2267, 2326, 27, 34, 42, 51, 61, 72,
84, 97, 111, 126, 142, 159, 177, 196, 216, 237, 259, 282, 306,
331, 357, 384, 412, 441, 471, 502, 533, 563, 592, 620, 647, 673,
1072, 1086, 1102, 1120, 1140, 1162, 1186, 1212, 1240, 1270, 1302, 1336, 1372,
1410, 1450, 1492, 1536, 1582, 1630, 1680, 1732, 1786, 1842, 1900, 1960, 2022,
2085, 2147, 2208, 2268, 2327, 2385, 35, 43, 52, 62, 73, 85, 98,
112, 127, 143, 160, 178, 197, 217, 238, 260, 283, 307, 332, 358,
385, 413, 442, 472, 503, 534, 564, 593, 621, 648, 674, 699, 1087,
1103, 1121, 1141, 1163, 1187, 1213, 1241, 1271, 1303, 1337, 1373, 1411, 1451,
1493, 1537, 1583, 1631, 1681, 1733, 1787, 1843, 1901, 1961, 2023, 2086, 2148,
2209, 2269, 2328, 2386, 2443, 44, 53, 63, 74, 86, 99, 113, 128,
144, 161, 179, 198, 218, 239, 261, 284, 308, 333, 359, 386, 414,
443, 473, 504, 535, 565, 594, 622, 649, 675, 700, 724, 1104, 1122,
1142, 1164, 1188, 1214, 1242, 1272, 1304, 1338, 1374, 1412, 1452, 1494, 1538,
1584, 1632, 1682, 1734, 1788, 1844, 1902, 1962, 2024, 2087, 2149, 2210, 2270,
2329, 2387, 2444, 2500, 54, 64, 75, 87, 100, 114, 129, 145, 162,
180, 199, 219, 240, 262, 285, 309, 334, 360, 387, 415, 444, 474,
505, 536, 566, 595, 623, 650, 676, 701, 725, 748, 1123, 1143, 1165,
1189, 1215, 1243, 1273, 1305, 1339, 1375, 1413, 1453, 1495, 1539, 1585, 1633,
1683, 1735, 1789, 1845, 1903, 1963, 2025, 2088, 2150, 2211, 2271, 2330, 2388,
2445, 2501, 2556, 65, 76, 88, 101, 115, 130, 146, 163, 181, 200,
220, 241, 263, 286, 310, 335, 361, 388, 416, 445, 475, 506, 537,
567, 596, 624, 651, 677, 702, 726, 749, 771, 1144, 1166, 1190, 1216,
1244, 1274, 1306, 1340, 1376, 1414, 1454, 1496, 1540, 1586, 1634, 1684, 1736,
1790, 1846, 1904, 1964, 2026, 2089, 2151, 2212, 2272, 2331, 2389, 2446, 2502,
2557, 2611, 77, 89, 102, 116, 131, 147, 164, 182, 201, 221, 242,
264, 287, 311, 336, 362, 389, 417, 446, 476, 507, 538, 568, 597,
625, 652, 678, 703, 727, 750, 772, 793, 1167, 1191, 1217, 1245, 1275,
1307, 1341, 1377, 1415, 1455, 1497, 1541, 1587, 1635, 1685, 1737, 1791, 1847,
1905, 1965, 2027, 2090, 2152, 2213, 2273, 2332, 2390, 2447, 2503, 2558, 2612,
2665, 90, 103, 117, 132, 148, 165, 183, 202, 222, 243, 265, 288,
312, 337, 363, 390, 418, 447, 477, 508, 539, 569, 598, 626, 653,
679, 704, 728, 751, 773, 794, 814, 1192, 1218, 1246, 1276, 1308, 1342,
1378, 1416, 1456, 1498, 1542, 1588, 1636, 1686, 1738, 1792, 1848, 1906, 1966,
2028, 2091, 2153, 2214, 2274, 2333, 2391, 2448, 2504, 2559, 2613, 2666, 2718,
104, 118, 133, 149, 166, 184, 203, 223, 244, 266, 289, 313, 338,
364, 391, 419, 448, 478, 509, 540, 570, 599, 627, 654, 680, 705,
729, 752, 774, 795, 815, 834, 1219, 1247, 1277, 1309, 1343, 1379, 1417,
1457, 1499, 1543, 1589, 1637, 1687, 1739, 1793, 1849, 1907, 1967, 2029, 2092,
2154, 2215, 2275, 2334, 2392, 2449, 2505, 2560, 2614, 2667, 2719, 2770, 119,
134, 150, 167, 185, 204, 224, 245, 267, 290, 314, 339, 365, 392,
420, 449, 479, 510, 541, 571, 600, 628, 655, 681, 706, 730, 753,
775, 796, 816, 835, 853, 1248, 1278, 1310, 1344, 1380, 1418, 1458, 1500,
1544, 1590, 1638, 1688, 1740, 1794, 1850, 1908, 1968, 2030, 2093, 2155, 2216,
2276, 2335, 2393, 2450, 2506, 2561, 2615, 2668, 2720, 2771, 2821, 135, 151,
168, 186, 205, 225, 246, 268, 291, 315, 340, 366, 393, 421, 450,
480, 511, 542, 572, 601, 629, 656, 682, 707, 731, 754, 776, 797,
817, 836, 854, 871, 1279, 1311, 1345, 1381, 1419, 1459, 1501, 1545, 1591,
1639, 1689, 1741, 1795, 1851, 1909, 1969, 2031, 2094, 2156, 2217, 2277, 2336,
2394, 2451, 2507, 2562, 2616, 2669, 2721, 2772, 2822, 2871, 152, 169, 187,
206, 226, 247, 269, 292, 316, 341, 367, 394, 422, 451, 481, 512,
543, 573, 602, 630, 657, 683, 708, 732, 755, 777, 798, 818, 837,
855, 872, 888, 1312, 1346, 1382, 1420, 1460, 1502, 1546, 1592, 1640, 1690,
1742, 1796, 1852, 1910, 1970, 2032, 2095, 2157, 2218, 2278, 2337, 2395, 2452,
2508, 2563, 2617, 2670, 2722, 2773, 2823, 2872, 2920, 170, 188, 207, 227,
248, 270, 293, 317, 342, 368, 395, 423, 452, 482, 513, 544, 574,
603, 631, 658, 684, 709, 733, 756, 778, 799, 819, 838, 856, 873,
889, 904, 1347, 1383, 1421, 1461, 1503, 1547, 1593, 1641, 1691, 1743, 1797,
1853, 1911, 1971, 2033, 2096, 2158, 2219, 2279, 2338, 2396, 2453, 2509, 2564,
2618, 2671, 2723, 2774, 2824, 2873, 2921, 2968, 189, 208, 228, 249, 271,
294, 318, 343, 369, 396, 424, 453, 483, 514, 545, 575, 604, 632,
659, 685, 710, 734, 757, 779, 800, 820, 839, 857, 874, 890, 905,
919, 1384, 1422, 1462, 1504, 1548, 1594, 1642, 1692, 1744, 1798, 1854, 1912,
1972, 2034, 2097, 2159, 2220, 2280, 2339, 2397, 2454, 2510, 2565, 2619, 2672,
2724, 2775, 2825, 2874, 2922, 2969, 3015, 209, 229, 250, 272, 295, 319,
344, 370, 397, 425, 454, 484, 515, 546, 576, 605, 633, 660, 686,
711, 735, 758, 780, 801, 821, 840, 858, 875, 891, 906, 920, 933,
1423, 1463, 1505, 1549, 1595, 1643, 1693, 1745, 1799, 1855, 1913, 1973, 2035,
2098, 2160, 2221, 2281, 2340, 2398, 2455, 2511, 2566, 2620, 2673, 2725, 2776,
2826, 2875, 2923, 2970, 3016, 3061, 230, 251, 273, 296, 320, 345, 371,
398, 426, 455, 485, 516, 547, 577, 606, 634, 661, 687, 712, 736,
759, 781, 802, 822, 841, 859, 876, 892, 907, 921, 934, 946, 1464,
1506, 1550, 1596, 1644, 1694, 1746, 1800, 1856, 1914, 1974, 2036, 2099, 2161,
2222, 2282, 2341, 2399, 2456, 2512, 2567, 2621, 2674, 2726, 2777, 2827, 2876,
2924, 2971, 3017, 3062, 3106, 252, 274, 297, 321, 346, 372, 399, 427,
456, 486, 517, 548, 578, 607, 635, 662, 688, 713, 737, 760, 782,
803, 823, 842, 860, 877, 893, 908, 922, 935, 947, 958, 1507, 1551,
1597, 1645, 1695, 1747, 1801, 1857, 1915, 1975, 2037, 2100, 2162, 2223, 2283,
2342, 2400, 2457, 2513, 2568, 2622, 2675, 2727, 2778, 2828, 2877, 2925, 2972,
3018, 3063, 3107, 3150, 275, 298, 322, 347, 373, 400, 428, 457, 487,
518, 549, 579, 608, 636, 663, 689, 714, 738, 761, 783, 804, 824,
843, 861, 878, 894, 909, 923, 936, 948, 959, 969, 1552, 1598, 1646,
1696, 1748, 1802, 1858, 1916, 1976, 2038, 2101, 2163, 2224, 2284, 2343, 2401,
2458, 2514, 2569, 2623, 2676, 2728, 2779, 2829, 2878, 2926, 2973, 3019, 3064,
3108, 3151, 3193, 299, 323, 348, 374, 401, 429, 458, 488, 519, 550,
580, 609, 637, 664, 690, 715, 739, 762, 784, 805, 825, 844, 862,
879, 895, 910, 924, 937, 949, 960, 970, 979, 1599, 1647, 1697, 1749,
1803, 1859, 1917, 1977, 2039, 2102, 2164, 2225, 2285, 2344, 2402, 2459, 2515,
2570, 2624, 2677, 2729, 2780, 2830, 2879, 2927, 2974, 3020, 3065, 3109, 3152,
3194, 3235, 324, 349, 375, 402, 430, 459, 489, 520, 551, 581, 610,
638, 665, 691, 716, 740, 763, 785, 806, 826, 845, 863, 880, 896,
911, 925, 938, 950, 961, 971, 980, 988, 1648, 1698, 1750, 1804, 1860,
1918, 1978, 2040, 2103, 2165, 2226, 2286, 2345, 2403, 2460, 2516, 2571, 2625,
2678, 2730, 2781, 2831, 2880, 2928, 2975, 3021, 3066, 3110, 3153, 3195, 3236,
3276, 350, 376, 403, 431, 460, 490, 521, 552, 582, 611, 639, 666,
692, 717, 741, 764, 786, 807, 827, 846, 864, 881, 897, 912, 926,
939, 951, 962, 972, 981, 989, 996, 1699, 1751, 1805, 1861, 1919, 1979,
2041, 2104, 2166, 2227, 2287, 2346, 2404, 2461, 2517, 2572, 2626, 2679, 2731,
2782, 2832, 2881, 2929, 2976, 3022, 3067, 3111, 3154, 3196, 3237, 3277, 3316,
377, 404, 432, 461, 491, 522, 553, 583, 612, 640, 667, 693, 718,
742, 765, 787, 808, 828, 847, 865, 882, 898, 913, 927, 940, 952,
963, 973, 982, 990, 997, 1003, 1752, 1806, 1862, 1920, 1980, 2042, 2105,
2167, 2228, 2288, 2347, 2405, 2462, 2518, 2573, 2627, 2680, 2732, 2783, 2833,
2882, 2930, 2977, 3023, 3068, 3112, 3155, 3197, 3238, 3278, 3317, 3355, 405,
433, 462, 492, 523, 554, 584, 613, 641, 668, 694, 719, 743, 766,
788, 809, 829, 848, 866, 883, 899, 914, 928, 941, 953, 964, 974,
983, 991, 998, 1004, 1009, 1807, 1863, 1921, 1981, 2043, 2106, 2168, 2229,
2289, 2348, 2406, 2463, 2519, 2574, 2628, 2681, 2733, 2784, 2834, 2883, 2931,
2978, 3024, 3069, 3113, 3156, 3198, 3239, 3279, 3318, 3356, 3393, 434, 463,
493, 524, 555, 585, 614, 642, 669, 695, 720, 744, 767, 789, 810,
830, 849, 867, 884, 900, 915, 929, 942, 954, 965, 975, 984, 992,
999, 1005, 1010, 1014, 1864, 1922, 1982, 2044, 2107, 2169, 2230, 2290, 2349,
2407, 2464, 2520, 2575, 2629, 2682, 2734, 2785, 2835, 2884, 2932, 2979, 3025,
3070, 3114, 3157, 3199, 3240, 3280, 3319, 3357, 3394, 3430, 464, 494, 525,
556, 586, 615, 643, 670, 696, 721, 745, 768, 790, 811, 831, 850,
868, 885, 901, 916, 930, 943, 955, 966, 976, 985, 993, 1000, 1006,
1011, 1015, 1018, 1923, 1983, 2045, 2108, 2170, 2231, 2291, 2350, 2408, 2465,
2521, 2576, 2630, 2683, 2735, 2786, 2836, 2885, 2933, 2980, 3026, 3071, 3115,
3158, 3200, 3241, 3281, 3320, 3358, 3395, 3431, 3466, 495, 526, 557, 587,
616, 644, 671, 697, 722, 746, 769, 791, 812, 832, 851, 869, 886,
902, 917, 931, 944, 956, 967, 977, 986, 994, 1001, 1007, 1012, 1016,
1019, 1021, 1984, 2046, 2109, 2171, 2232, 2292, 2351, 2409, 2466, 2522, 2577,
2631, 2684, 2736, 2787, 2837, 2886, 2934, 2981, 3027, 3072, 3116, 3159, 3201,
3242, 3282, 3321, 3359, 3396, 3432, 3467, 3501, 527, 558, 588, 617, 645,
672, 698, 723, 747, 770, 792, 813, 833, 852, 870, 887, 903, 918,
932, 945, 957, 968, 978, 987, 995, 1002, 1008, 1013, 1017, 1020, 1022,
1023, 2047, 2110, 2172, 2233, 2293, 2352, 2410, 2467, 2523, 2578, 2632, 2685,
2737, 2788, 2838, 2887, 2935, 2982, 3028, 3073, 3117, 3160, 3202, 3243, 3283,
3322, 3360, 3397, 3433, 3468, 3502, 3535, 1025, 1028, 1033, 1040, 1049, 1060,
1073, 1088, 1105, 1124, 1145, 1168, 1193, 1220, 1249, 1280, 1313, 1348, 1385,
1424, 1465, 1508, 1553, 1600, 1649, 1700, 1753, 1808, 1865, 1924, 1985, 2048,
2111, 2173, 2234, 2294, 2353, 2411, 2468, 2524, 2579, 2633, 2686, 2738, 2789,
2839, 2888, 2936, 2983, 3029, 3074, 3118, 3161, 3203, 3244, 3284, 3323, 3361,
3398, 3434, 3469, 3503, 3536, 3568, 1029, 1034, 1041, 1050, 1061, 1074, 1089,
1106, 1125, 1146, 1169, 1194, 1221, 1250, 1281, 1314, 1349, 1386, 1425, 1466,
1509, 1554, 1601, 1650, 1701, 1754, 1809, 1866, 1925, 1986, 2049, 2112, 2174,
2235, 2295, 2354, 2412, 2469, 2525, 2580, 2634, 2687, 2739, 2790, 2840, 2889,
2937, 2984, 3030, 3075, 3119, 3162, 3204, 3245, 3285, 3324, 3362, 3399, 3435,
3470, 3504, 3537, 3569, 3600, 1035, 1042, 1051, 1062, 1075, 1090, 1107, 1126,
1147, 1170, 1195, 1222, 1251, 1282, 1315, 1350, 1387, 1426, 1467, 1510, 1555,
1602, 1651, 1702, 1755, 1810, 1867, 1926, 1987, 2050, 2113, 2175, 2236, 2296,
2355, 2413, 2470, 2526, 2581, 2635, 2688, 2740, 2791, 2841, 2890, 2938, 2985,
3031, 3076, 3120, 3163, 3205, 3246, 3286, 3325, 3363, 3400, 3436, 3471, 3505,
3538, 3570, 3601, 3631, 1043, 1052, 1063, 1076, 1091, 1108, 1127, 1148, 1171,
1196, 1223, 1252, 1283, 1316, 1351, 1388, 1427, 1468, 1511, 1556, 1603, 1652,
1703, 1756, 1811, 1868, 1927, 1988, 2051, 2114, 2176, 2237, 2297, 2356, 2414,
2471, 2527, 2582, 2636, 2689, 2741, 2792, 2842, 2891, 2939, 2986, 3032, 3077,
3121, 3164, 3206, 3247, 3287, 3326, 3364, 3401, 3437, 3472, 3506, 3539, 3571,
3602, 3632, 3661, 1053, 1064, 1077, 1092, 1109, 1128, 1149, 1172, 1197, 1224,
1253, 1284, 1317, 1352, 1389, 1428, 1469, 1512, 1557, 1604, 1653, 1704, 1757,
1812, 1869, 1928, 1989, 2052, 2115, 2177, 2238, 2298, 2357, 2415, 2472, 2528,
2583, 2637, 2690, 2742, 2793, 2843, 2892, 2940, 2987, 3033, 3078, 3122, 3165,
3207, 3248, 3288, 3327, 3365, 3402, 3438, 3473, 3507, 3540, 3572, 3603, 3633,
3662, 3690, 1065, 1078, 1093, 1110, 1129, 1150, 1173, 1198, 1225, 1254, 1285,
1318, 1353, 1390, 1429, 1470, 1513, 1558, 1605, 1654, 1705, 1758, 1813, 1870,
1929, 1990, 2053, 2116, 2178, 2239, 2299, 2358, 2416, 2473, 2529, 2584, 2638,
2691, 2743, 2794, 2844, 2893, 2941, 2988, 3034, 3079, 3123, 3166, 3208, 3249,
3289, 3328, 3366, 3403, 3439, 3474, 3508, 3541, 3573, 3604, 3634, 3663, 3691,
3718, 1079, 1094, 1111, 1130, 1151, 1174, 1199, 1226, 1255, 1286, 1319, 1354,
1391, 1430, 1471, 1514, 1559, 1606, 1655, 1706, 1759, 1814, 1871, 1930, 1991,
2054, 2117, 2179, 2240, 2300, 2359, 2417, 2474, 2530, 2585, 2639, 2692, 2744,
2795, 2845, 2894, 2942, 2989, 3035, 3080, 3124, 3167, 3209, 3250, 3290, 3329,
3367, 3404, 3440, 3475, 3509, 3542, 3574, 3605, 3635, 3664, 3692, 3719, 3745,
1095, 1112, 1131, 1152, 1175, 1200, 1227, 1256, 1287, 1320, 1355, 1392, 1431,
1472, 1515, 1560, 1607, 1656, 1707, 1760, 1815, 1872, 1931, 1992, 2055, 2118,
2180, 2241, 2301, 2360, 2418, 2475, 2531, 2586, 2640, 2693, 2745, 2796, 2846,
2895, 2943, 2990, 3036, 3081, 3125, 3168, 3210, 3251, 3291, 3330, 3368, 3405,
3441, 3476, 3510, 3543, 3575, 3606, 3636, 3665, 3693, 3720, 3746, 3771, 1113,
1132, 1153, 1176, 1201, 1228, 1257, 1288, 1321, 1356, 1393, 1432, 1473, 1516,
1561, 1608, 1657, 1708, 1761, 1816, 1873, 1932, 1993, 2056, 2119, 2181, 2242,
2302, 2361, 2419, 2476, 2532, 2587, 2641, 2694, 2746, 2797, 2847, 2896, 2944,
2991, 3037, 3082, 3126, 3169, 3211, 3252, 3292, 3331, 3369, 3406, 3442, 3477,
3511, 3544, 3576, 3607, 3637, 3666, 3694, 3721, 3747, 3772, 3796, 1133, 1154,
1177, 1202, 1229, 1258, 1289, 1322, 1357, 1394, 1433, 1474, 1517, 1562, 1609,
1658, 1709, 1762, 1817, 1874, 1933, 1994, 2057, 2120, 2182, 2243, 2303, 2362,
2420, 2477, 2533, 2588, 2642, 2695, 2747, 2798, 2848, 2897, 2945, 2992, 3038,
3083, 3127, 3170, 3212, 3253, 3293, 3332, 3370, 3407, 3443, 3478, 3512, 3545,
3577, 3608, 3638, 3667, 3695, 3722, 3748, 3773, 3797, 3820, 1155, 1178, 1203,
1230, 1259, 1290, 1323, 1358, 1395, 1434, 1475, 1518, 1563, 1610, 1659, 1710,
1763, 1818, 1875, 1934, 1995, 2058, 2121, 2183, 2244, 2304, 2363, 2421, 2478,
2534, 2589, 2643, 2696, 2748, 2799, 2849, 2898, 2946, 2993, 3039, 3084, 3128,
3171, 3213, 3254, 3294, 3333, 3371, 3408, 3444, 3479, 3513, 3546, 3578, 3609,
3639, 3668, 3696, 3723, 3749, 3774, 3798, 3821, 3843, 1179, 1204, 1231, 1260,
1291, 1324, 1359, 1396, 1435, 1476, 1519, 1564, 1611, 1660, 1711, 1764, 1819,
1876, 1935, 1996, 2059, 2122, 2184, 2245, 2305, 2364, 2422, 2479, 2535, 2590,
2644, 2697, 2749, 2800, 2850, 2899, 2947, 2994, 3040, 3085, 3129, 3172, 3214,
3255, 3295, 3334, 3372, 3409, 3445, 3480, 3514, 3547, 3579, 3610, 3640, 3669,
3697, 3724, 3750, 3775, 3799, 3822, 3844, 3865, 1205, 1232, 1261, 1292, 1325,
1360, 1397, 1436, 1477, 1520, 1565, 1612, 1661, 1712, 1765, 1820, 1877, 1936,
1997, 2060, 2123, 2185, 2246, 2306, 2365, 2423, 2480, 2536, 2591, 2645, 2698,
2750, 2801, 2851, 2900, 2948, 2995, 3041, 3086, 3130, 3173, 3215, 3256, 3296,
3335, 3373, 3410, 3446, 3481, 3515, 3548, 3580, 3611, 3641, 3670, 3698, 3725,
3751, 3776, 3800, 3823, 3845, 3866, 3886, 1233, 1262, 1293, 1326, 1361, 1398,
1437, 1478, 1521, 1566, 1613, 1662, 1713, 1766, 1821, 1878, 1937, 1998, 2061,
2124, 2186, 2247, 2307, 2366, 2424, 2481, 2537, 2592, 2646, 2699, 2751, 2802,
2852, 2901, 2949, 2996, 3042, 3087, 3131, 3174, 3216, 3257, 3297, 3336, 3374,
3411, 3447, 3482, 3516, 3549, 3581, 3612, 3642, 3671, 3699, 3726, 3752, 3777,
3801, 3824, 3846, 3867, 3887, 3906, 1263, 1294, 1327, 1362, 1399, 1438, 1479,
1522, 1567, 1614, 1663, 1714, 1767, 1822, 1879, 1938, 1999, 2062, 2125, 2187,
2248, 2308, 2367, 2425, 2482, 2538, 2593, 2647, 2700, 2752, 2803, 2853, 2902,
2950, 2997, 3043, 3088, 3132, 3175, 3217, 3258, 3298, 3337, 3375, 3412, 3448,
3483, 3517, 3550, 3582, 3613, 3643, 3672, 3700, 3727, 3753, 3778, 3802, 3825,
3847, 3868, 3888, 3907, 3925, 1295, 1328, 1363, 1400, 1439, 1480, 1523, 1568,
1615, 1664, 1715, 1768, 1823, 1880, 1939, 2000, 2063, 2126, 2188, 2249, 2309,
2368, 2426, 2483, 2539, 2594, 2648, 2701, 2753, 2804, 2854, 2903, 2951, 2998,
3044, 3089, 3133, 3176, 3218, 3259, 3299, 3338, 3376, 3413, 3449, 3484, 3518,
3551, 3583, 3614, 3644, 3673, 3701, 3728, 3754, 3779, 3803, 3826, 3848, 3869,
3889, 3908, 3926, 3943, 1329, 1364, 1401, 1440, 1481, 1524, 1569, 1616, 1665,
1716, 1769, 1824, 1881, 1940, 2001, 2064, 2127, 2189, 2250, 2310, 2369, 2427,
2484, 2540, 2595, 2649, 2702, 2754, 2805, 2855, 2904, 2952, 2999, 3045, 3090,
3134, 3177, 3219, 3260, 3300, 3339, 3377, 3414, 3450, 3485, 3519, 3552, 3584,
3615, 3645, 3674, 3702, 3729, 3755, 3780, 3804, 3827, 3849, 3870, 3890, 3909,
3927, 3944, 3960, 1365, 1402, 1441, 1482, 1525, 1570, 1617, 1666, 1717, 1770,
1825, 1882, 1941, 2002, 2065, 2128, 2190, 2251, 2311, 2370, 2428, 2485, 2541,
2596, 2650, 2703, 2755, 2806, 2856, 2905, 2953, 3000, 3046, 3091, 3135, 3178,
3220, 3261, 3301, 3340, 3378, 3415, 3451, 3486, 3520, 3553, 3585, 3616, 3646,
3675, 3703, 3730, 3756, 3781, 3805, 3828, 3850, 3871, 3891, 3910, 3928, 3945,
3961, 3976, 1403, 1442, 1483, 1526, 1571, 1618, 1667, 1718, 1771, 1826, 1883,
1942, 2003, 2066, 2129, 2191, 2252, 2312, 2371, 2429, 2486, 2542, 2597, 2651,
2704, 2756, 2807, 2857, 2906, 2954, 3001, 3047, 3092, 3136, 3179, 3221, 3262,
3302, 3341, 3379, 3416, 3452, 3487, 3521, 3554, 3586, 3617, 3647, 3676, 3704,
3731, 3757, 3782, 3806, 3829, 3851, 3872, 3892, 3911, 3929, 3946, 3962, 3977,
3991, 1443, 1484, 1527, 1572, 1619, 1668, 1719, 1772, 1827, 1884, 1943, 2004,
2067, 2130, 2192, 2253, 2313, 2372, 2430, 2487, 2543, 2598, 2652, 2705, 2757,
2808, 2858, 2907, 2955, 3002, 3048, 3093, 3137, 3180, 3222, 3263, 3303, 3342,
3380, 3417, 3453, 3488, 3522, 3555, 3587, 3618, 3648, 3677, 3705, 3732, 3758,
3783, 3807, 3830, 3852, 3873, 3893, 3912, 3930, 3947, 3963, 3978, 3992, 4005,
1485, 1528, 1573, 1620, 1669, 1720, 1773, 1828, 1885, 1944, 2005, 2068, 2131,
2193, 2254, 2314, 2373, 2431, 2488, 2544, 2599, 2653, 2706, 2758, 2809, 2859,
2908, 2956, 3003, 3049, 3094, 3138, 3181, 3223, 3264, 3304, 3343, 3381, 3418,
3454, 3489, 3523, 3556, 3588, 3619, 3649, 3678, 3706, 3733, 3759, 3784, 3808,
3831, 3853, 3874, 3894, 3913, 3931, 3948, 3964, 3979, 3993, 4006, 4018, 1529,
1574, 1621, 1670, 1721, 1774, 1829, 1886, 1945, 2006, 2069, 2132, 2194, 2255,
2315, 2374, 2432, 2489, 2545, 2600, 2654, 2707, 2759, 2810, 2860, 2909, 2957,
3004, 3050, 3095, 3139, 3182, 3224, 3265, 3305, 3344, 3382, 3419, 3455, 3490,
3524, 3557, 3589, 3620, 3650, 3679, 3707, 3734, 3760, 3785, 3809, 3832, 3854,
3875, 3895, 3914, 3932, 3949, 3965, 3980, 3994, 4007, 4019, 4030, 1575, 1622,
1671, 1722, 1775, 1830, 1887, 1946, 2007, 2070, 2133, 2195, 2256, 2316, 2375,
2433, 2490, 2546, 2601, 2655, 2708, 2760, 2811, 2861, 2910, 2958, 3005, 3051,
3096, 3140, 3183, 3225, 3266, 3306, 3345, 3383, 3420, 3456, 3491, 3525, 3558,
3590, 3621, 3651, 3680, 3708, 3735, 3761, 3786, 3810, 3833, 3855, 3876, 3896,
3915, 3933, 3950, 3966, 3981, 3995, 4008, 4020, 4031, 4041, 1623, 1672, 1723,
1776, 1831, 1888, 1947, 2008, 2071, 2134, 2196, 2257, 2317, 2376, 2434, 2491,
2547, 2602, 2656, 2709, 2761, 2812, 2862, 2911, 2959, 3006, 3052, 3097, 3141,
3184, 3226, 3267, 3307, 3346, 3384, 3421, 3457, 3492, 3526, 3559, 3591, 3622,
3652, 3681, 3709, 3736, 3762, 3787, 3811, 3834, 3856, 3877, 3897, 3916, 3934,
3951, 3967, 3982, 3996, 4009, 4021, 4032, 4042, 4051, 1673, 1724, 1777, 1832,
1889, 1948, 2009, 2072, 2135, 2197, 2258, 2318, 2377, 2435, 2492, 2548, 2603,
2657, 2710, 2762, 2813, 2863, 2912, 2960, 3007, 3053, 3098, 3142, 3185, 3227,
3268, 3308, 3347, 3385, 3422, 3458, 3493, 3527, 3560, 3592, 3623, 3653, 3682,
3710, 3737, 3763, 3788, 3812, 3835, 3857, 3878, 3898, 3917, 3935, 3952, 3968,
3983, 3997, 4010, 4022, 4033, 4043, 4052, 4060, 1725, 1778, 1833, 1890, 1949,
2010, 2073, 2136, 2198, 2259, 2319, 2378, 2436, 2493, 2549, 2604, 2658, 2711,
2763, 2814, 2864, 2913, 2961, 3008, 3054, 3099, 3143, 3186, 3228, 3269, 3309,
3348, 3386, 3423, 3459, 3494, 3528, 3561, 3593, 3624, 3654, 3683, 3711, 3738,
3764, 3789, 3813, 3836, 3858, 3879, 3899, 3918, 3936, 3953, 3969, 3984, 3998,
4011, 4023, 4034, 4044, 4053, 4061, 4068, 1779, 1834, 1891, 1950, 2011, 2074,
2137, 2199, 2260, 2320, 2379, 2437, 2494, 2550, 2605, 2659, 2712, 2764, 2815,
2865, 2914, 2962, 3009, 3055, 3100, 3144, 3187, 3229, 3270, 3310, 3349, 3387,
3424, 3460, 3495, 3529, 3562, 3594, 3625, 3655, 3684, 3712, 3739, 3765, 3790,
3814, 3837, 3859, 3880, 3900, 3919, 3937, 3954, 3970, 3985, 3999, 4012, 4024,
4035, 4045, 4054, 4062, 4069, 4075, 1835, 1892, 1951, 2012, 2075, 2138, 2200,
2261, 2321, 2380, 2438, 2495, 2551, 2606, 2660, 2713, 2765, 2816, 2866, 2915,
2963, 3010, 3056, 3101, 3145, 3188, 3230, 3271, 3311, 3350, 3388, 3425, 3461,
3496, 3530, 3563, 3595, 3626, 3656, 3685, 3713, 3740, 3766, 3791, 3815, 3838,
3860, 3881, 3901, 3920, 3938, 3955, 3971, 3986, 4000, 4013, 4025, 4036, 4046,
4055, 4063, 4070, 4076, 4081, 1893, 1952, 2013, 2076, 2139, 2201, 2262, 2322,
2381, 2439, 2496, 2552, 2607, 2661, 2714, 2766, 2817, 2867, 2916, 2964, 3011,
3057, 3102, 3146, 3189, 3231, 3272, 3312, 3351, 3389, 3426, 3462, 3497, 3531,
3564, 3596, 3627, 3657, 3686, 3714, 3741, 3767, 3792, 3816, 3839, 3861, 3882,
3902, 3921, 3939, 3956, 3972, 3987, 4001, 4014, 4026, 4037, 4047, 4056, 4064,
4071, 4077, 4082, 4086, 1953, 2014, 2077, 2140, 2202, 2263, 2323, 2382, 2440,
2497, 2553, 2608, 2662, 2715, 2767, 2818, 2868, 2917, 2965, 3012, 3058, 3103,
3147, 3190, 3232, 3273, 3313, 3352, 3390, 3427, 3463, 3498, 3532, 3565, 3597,
3628, 3658, 3687, 3715, 3742, 3768, 3793, 3817, 3840, 3862, 3883, 3903, 3922,
3940, 3957, 3973, 3988, 4002, 4015, 4027, 4038, 4048, 4057, 4065, 4072, 4078,
4083, 4087, 4090, 2015, 2078, 2141, 2203, 2264, 2324, 2383, 2441, 2498, 2554,
2609, 2663, 2716, 2768, 2819, 2869, 2918, 2966, 3013, 3059, 3104, 3148, 3191,
3233, 3274, 3314, 3353, 3391, 3428, 3464, 3499, 3533, 3566, 3598, 3629, 3659,
3688, 3716, 3743, 3769, 3794, 3818, 3841, 3863, 3884, 3904, 3923, 3941, 3958,
3974, 3989, 4003, 4016, 4028, 4039, 4049, 4058, 4066, 4073, 4079, 4084, 4088,
4091, 4093, 2079, 2142, 2204, 2265, 2325, 2384, 2442, 2499, 2555, 2610, 2664,
2717, 2769, 2820, 2870, 2919, 2967, 3014, 3060, 3105, 3149, 3192, 3234, 3275,
3315, 3354, 3392, 3429, 3465, 3500, 3534, 3567, 3599, 3630, 3660, 3689, 3717,
3744, 3770, 3795, 3819, 3842, 3864, 3885, 3905, 3924, 3942, 3959, 3975, 3990,
4004, 4017, 4029, 4040, 4050, 4059, 4067, 4074, 4080, 4085, 4089, 4092, 4094,
4095,
};
#endif // CONFIG_TX64X64
const SCAN_ORDER av1_default_scan_orders[TX_SIZES] = {
{ default_scan_4x4, av1_default_iscan_4x4, default_scan_4x4_neighbors },
{ default_scan_8x8, av1_default_iscan_8x8, default_scan_8x8_neighbors },
{ default_scan_16x16, av1_default_iscan_16x16, default_scan_16x16_neighbors },
{ default_scan_32x32, av1_default_iscan_32x32, default_scan_32x32_neighbors },
#if CONFIG_TX64X64
{ default_scan_64x64, av1_default_iscan_64x64, default_scan_64x64_neighbors },
#endif // CONFIG_TX64X64
};
const SCAN_ORDER av1_intra_scan_orders[TX_SIZES_ALL][TX_TYPES] = {
{
// TX_4X4
{ default_scan_4x4, av1_default_iscan_4x4, default_scan_4x4_neighbors },
{ row_scan_4x4, av1_row_iscan_4x4, row_scan_4x4_neighbors },
{ col_scan_4x4, av1_col_iscan_4x4, col_scan_4x4_neighbors },
{ default_scan_4x4, av1_default_iscan_4x4, default_scan_4x4_neighbors },
{ default_scan_4x4, av1_default_iscan_4x4, default_scan_4x4_neighbors },
{ default_scan_4x4, av1_default_iscan_4x4, default_scan_4x4_neighbors },
{ default_scan_4x4, av1_default_iscan_4x4, default_scan_4x4_neighbors },
{ default_scan_4x4, av1_default_iscan_4x4, default_scan_4x4_neighbors },
{ default_scan_4x4, av1_default_iscan_4x4, default_scan_4x4_neighbors },
{ mrow_scan_4x4, av1_mrow_iscan_4x4, mrow_scan_4x4_neighbors },
{ row_scan_4x4, av1_row_iscan_4x4, row_scan_4x4_neighbors },
{ col_scan_4x4, av1_col_iscan_4x4, col_scan_4x4_neighbors },
{ row_scan_4x4, av1_row_iscan_4x4, row_scan_4x4_neighbors },
{ col_scan_4x4, av1_col_iscan_4x4, col_scan_4x4_neighbors },
{ row_scan_4x4, av1_row_iscan_4x4, row_scan_4x4_neighbors },
{ col_scan_4x4, av1_col_iscan_4x4, col_scan_4x4_neighbors },
},
{
// TX_8X8
{ default_scan_8x8, av1_default_iscan_8x8, default_scan_8x8_neighbors },
{ row_scan_8x8, av1_row_iscan_8x8, row_scan_8x8_neighbors },
{ col_scan_8x8, av1_col_iscan_8x8, col_scan_8x8_neighbors },
{ default_scan_8x8, av1_default_iscan_8x8, default_scan_8x8_neighbors },
{ default_scan_8x8, av1_default_iscan_8x8, default_scan_8x8_neighbors },
{ default_scan_8x8, av1_default_iscan_8x8, default_scan_8x8_neighbors },
{ default_scan_8x8, av1_default_iscan_8x8, default_scan_8x8_neighbors },
{ default_scan_8x8, av1_default_iscan_8x8, default_scan_8x8_neighbors },
{ default_scan_8x8, av1_default_iscan_8x8, default_scan_8x8_neighbors },
{ mrow_scan_8x8, av1_mrow_iscan_8x8, mrow_scan_8x8_neighbors },
{ row_scan_8x8, av1_row_iscan_8x8, row_scan_8x8_neighbors },
{ col_scan_8x8, av1_col_iscan_8x8, col_scan_8x8_neighbors },
{ row_scan_8x8, av1_row_iscan_8x8, row_scan_8x8_neighbors },
{ col_scan_8x8, av1_col_iscan_8x8, col_scan_8x8_neighbors },
{ row_scan_8x8, av1_row_iscan_8x8, row_scan_8x8_neighbors },
{ col_scan_8x8, av1_col_iscan_8x8, col_scan_8x8_neighbors },
},
{
// TX_16X16
{ default_scan_16x16, av1_default_iscan_16x16,
default_scan_16x16_neighbors },
{ row_scan_16x16, av1_row_iscan_16x16, row_scan_16x16_neighbors },
{ col_scan_16x16, av1_col_iscan_16x16, col_scan_16x16_neighbors },
{ default_scan_16x16, av1_default_iscan_16x16,
default_scan_16x16_neighbors },
{ default_scan_16x16, av1_default_iscan_16x16,
default_scan_16x16_neighbors },
{ default_scan_16x16, av1_default_iscan_16x16,
default_scan_16x16_neighbors },
{ default_scan_16x16, av1_default_iscan_16x16,
default_scan_16x16_neighbors },
{ default_scan_16x16, av1_default_iscan_16x16,
default_scan_16x16_neighbors },
{ default_scan_16x16, av1_default_iscan_16x16,
default_scan_16x16_neighbors },
{ mrow_scan_16x16, av1_mrow_iscan_16x16, mrow_scan_16x16_neighbors },
{ row_scan_16x16, av1_row_iscan_16x16, row_scan_16x16_neighbors },
{ col_scan_16x16, av1_col_iscan_16x16, col_scan_16x16_neighbors },
{ row_scan_16x16, av1_row_iscan_16x16, row_scan_16x16_neighbors },
{ col_scan_16x16, av1_col_iscan_16x16, col_scan_16x16_neighbors },
{ row_scan_16x16, av1_row_iscan_16x16, row_scan_16x16_neighbors },
{ col_scan_16x16, av1_col_iscan_16x16, col_scan_16x16_neighbors },
},
{
// TX_32X32
{ default_scan_32x32, av1_default_iscan_32x32,
default_scan_32x32_neighbors },
{ h2_scan_32x32, av1_h2_iscan_32x32, h2_scan_32x32_neighbors },
{ v2_scan_32x32, av1_v2_iscan_32x32, v2_scan_32x32_neighbors },
{ qtr_scan_32x32, av1_qtr_iscan_32x32, qtr_scan_32x32_neighbors },
{ h2_scan_32x32, av1_h2_iscan_32x32, h2_scan_32x32_neighbors },
{ v2_scan_32x32, av1_v2_iscan_32x32, v2_scan_32x32_neighbors },
{ qtr_scan_32x32, av1_qtr_iscan_32x32, qtr_scan_32x32_neighbors },
{ qtr_scan_32x32, av1_qtr_iscan_32x32, qtr_scan_32x32_neighbors },
{ qtr_scan_32x32, av1_qtr_iscan_32x32, qtr_scan_32x32_neighbors },
{ mrow_scan_32x32, av1_mrow_iscan_32x32, mrow_scan_32x32_neighbors },
{ mrow_scan_32x32, av1_mrow_iscan_32x32, mrow_scan_32x32_neighbors },
{ mcol_scan_32x32, av1_mcol_iscan_32x32, mcol_scan_32x32_neighbors },
{ mrow_scan_32x32, av1_mrow_iscan_32x32, mrow_scan_32x32_neighbors },
{ mcol_scan_32x32, av1_mcol_iscan_32x32, mcol_scan_32x32_neighbors },
{ mrow_scan_32x32, av1_mrow_iscan_32x32, mrow_scan_32x32_neighbors },
{ mcol_scan_32x32, av1_mcol_iscan_32x32, mcol_scan_32x32_neighbors },
},
#if CONFIG_TX64X64
{
// TX_64X64
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
},
#endif // CONFIG_TX64X64
{
// TX_4X8
{ default_scan_4x8, av1_default_iscan_4x8, default_scan_4x8_neighbors },
{ mrow_scan_4x8, av1_mrow_iscan_4x8, mrow_scan_4x8_neighbors },
{ mcol_scan_4x8, av1_mcol_iscan_4x8, mcol_scan_4x8_neighbors },
{ default_scan_4x8, av1_default_iscan_4x8, default_scan_4x8_neighbors },
{ default_scan_4x8, av1_default_iscan_4x8, default_scan_4x8_neighbors },
{ default_scan_4x8, av1_default_iscan_4x8, default_scan_4x8_neighbors },
{ default_scan_4x8, av1_default_iscan_4x8, default_scan_4x8_neighbors },
{ default_scan_4x8, av1_default_iscan_4x8, default_scan_4x8_neighbors },
{ default_scan_4x8, av1_default_iscan_4x8, default_scan_4x8_neighbors },
{ mrow_scan_4x8, av1_mrow_iscan_4x8, mrow_scan_4x8_neighbors },
{ mrow_scan_4x8, av1_mrow_iscan_4x8, mrow_scan_4x8_neighbors },
{ mcol_scan_4x8, av1_mcol_iscan_4x8, mcol_scan_4x8_neighbors },
{ mrow_scan_4x8, av1_mrow_iscan_4x8, mrow_scan_4x8_neighbors },
{ mcol_scan_4x8, av1_mcol_iscan_4x8, mcol_scan_4x8_neighbors },
{ mrow_scan_4x8, av1_mrow_iscan_4x8, mrow_scan_4x8_neighbors },
{ mcol_scan_4x8, av1_mcol_iscan_4x8, mcol_scan_4x8_neighbors },
},
{
// TX_8X4
{ default_scan_8x4, av1_default_iscan_8x4, default_scan_8x4_neighbors },
{ mrow_scan_8x4, av1_mrow_iscan_8x4, mrow_scan_8x4_neighbors },
{ mcol_scan_8x4, av1_mcol_iscan_8x4, mcol_scan_8x4_neighbors },
{ default_scan_8x4, av1_default_iscan_8x4, default_scan_8x4_neighbors },
{ default_scan_8x4, av1_default_iscan_8x4, default_scan_8x4_neighbors },
{ default_scan_8x4, av1_default_iscan_8x4, default_scan_8x4_neighbors },
{ default_scan_8x4, av1_default_iscan_8x4, default_scan_8x4_neighbors },
{ default_scan_8x4, av1_default_iscan_8x4, default_scan_8x4_neighbors },
{ default_scan_8x4, av1_default_iscan_8x4, default_scan_8x4_neighbors },
{ mrow_scan_8x4, av1_mrow_iscan_8x4, mrow_scan_8x4_neighbors },
{ mrow_scan_8x4, av1_mrow_iscan_8x4, mrow_scan_8x4_neighbors },
{ mcol_scan_8x4, av1_mcol_iscan_8x4, mcol_scan_8x4_neighbors },
{ mrow_scan_8x4, av1_mrow_iscan_8x4, mrow_scan_8x4_neighbors },
{ mcol_scan_8x4, av1_mcol_iscan_8x4, mcol_scan_8x4_neighbors },
{ mrow_scan_8x4, av1_mrow_iscan_8x4, mrow_scan_8x4_neighbors },
{ mcol_scan_8x4, av1_mcol_iscan_8x4, mcol_scan_8x4_neighbors },
},
{
// TX_8X16
{ default_scan_8x16, av1_default_iscan_8x16,
default_scan_8x16_neighbors },
{ mrow_scan_8x16, av1_mrow_iscan_8x16, mrow_scan_8x16_neighbors },
{ mcol_scan_8x16, av1_mcol_iscan_8x16, mcol_scan_8x16_neighbors },
{ default_scan_8x16, av1_default_iscan_8x16,
default_scan_8x16_neighbors },
{ default_scan_8x16, av1_default_iscan_8x16,
default_scan_8x16_neighbors },
{ default_scan_8x16, av1_default_iscan_8x16,
default_scan_8x16_neighbors },
{ default_scan_8x16, av1_default_iscan_8x16,
default_scan_8x16_neighbors },
{ default_scan_8x16, av1_default_iscan_8x16,
default_scan_8x16_neighbors },
{ default_scan_8x16, av1_default_iscan_8x16,
default_scan_8x16_neighbors },
{ mrow_scan_8x16, av1_mrow_iscan_8x16, mrow_scan_8x16_neighbors },
{ mrow_scan_8x16, av1_mrow_iscan_8x16, mrow_scan_8x16_neighbors },
{ mcol_scan_8x16, av1_mcol_iscan_8x16, mcol_scan_8x16_neighbors },
{ mrow_scan_8x16, av1_mrow_iscan_8x16, mrow_scan_8x16_neighbors },
{ mcol_scan_8x16, av1_mcol_iscan_8x16, mcol_scan_8x16_neighbors },
{ mrow_scan_8x16, av1_mrow_iscan_8x16, mrow_scan_8x16_neighbors },
{ mcol_scan_8x16, av1_mcol_iscan_8x16, mcol_scan_8x16_neighbors },
},
{
// TX_16X8
{ default_scan_16x8, av1_default_iscan_16x8,
default_scan_16x8_neighbors },
{ mrow_scan_16x8, av1_mrow_iscan_16x8, mrow_scan_16x8_neighbors },
{ mcol_scan_16x8, av1_mcol_iscan_16x8, mcol_scan_16x8_neighbors },
{ default_scan_16x8, av1_default_iscan_16x8,
default_scan_16x8_neighbors },
{ default_scan_16x8, av1_default_iscan_16x8,
default_scan_16x8_neighbors },
{ default_scan_16x8, av1_default_iscan_16x8,
default_scan_16x8_neighbors },
{ default_scan_16x8, av1_default_iscan_16x8,
default_scan_16x8_neighbors },
{ default_scan_16x8, av1_default_iscan_16x8,
default_scan_16x8_neighbors },
{ default_scan_16x8, av1_default_iscan_16x8,
default_scan_16x8_neighbors },
{ mrow_scan_16x8, av1_mrow_iscan_16x8, mrow_scan_16x8_neighbors },
{ mrow_scan_16x8, av1_mrow_iscan_16x8, mrow_scan_16x8_neighbors },
{ mcol_scan_16x8, av1_mcol_iscan_16x8, mcol_scan_16x8_neighbors },
{ mrow_scan_16x8, av1_mrow_iscan_16x8, mrow_scan_16x8_neighbors },
{ mcol_scan_16x8, av1_mcol_iscan_16x8, mcol_scan_16x8_neighbors },
{ mrow_scan_16x8, av1_mrow_iscan_16x8, mrow_scan_16x8_neighbors },
{ mcol_scan_16x8, av1_mcol_iscan_16x8, mcol_scan_16x8_neighbors },
},
{
// TX_16X32
{ default_scan_16x32, av1_default_iscan_16x32,
default_scan_16x32_neighbors },
{ mrow_scan_16x32, av1_mrow_iscan_16x32, mrow_scan_16x32_neighbors },
{ mcol_scan_16x32, av1_mcol_iscan_16x32, mcol_scan_16x32_neighbors },
{ default_scan_16x32, av1_default_iscan_16x32,
default_scan_16x32_neighbors },
{ default_scan_16x32, av1_default_iscan_16x32,
default_scan_16x32_neighbors },
{ default_scan_16x32, av1_default_iscan_16x32,
default_scan_16x32_neighbors },
{ default_scan_16x32, av1_default_iscan_16x32,
default_scan_16x32_neighbors },
{ default_scan_16x32, av1_default_iscan_16x32,
default_scan_16x32_neighbors },
{ default_scan_16x32, av1_default_iscan_16x32,
default_scan_16x32_neighbors },
{ mrow_scan_16x32, av1_mrow_iscan_16x32, mrow_scan_16x32_neighbors },
{ mrow_scan_16x32, av1_mrow_iscan_16x32, mrow_scan_16x32_neighbors },
{ mcol_scan_16x32, av1_mcol_iscan_16x32, mcol_scan_16x32_neighbors },
{ mrow_scan_16x32, av1_mrow_iscan_16x32, mrow_scan_16x32_neighbors },
{ mcol_scan_16x32, av1_mcol_iscan_16x32, mcol_scan_16x32_neighbors },
{ mrow_scan_16x32, av1_mrow_iscan_16x32, mrow_scan_16x32_neighbors },
{ mcol_scan_16x32, av1_mcol_iscan_16x32, mcol_scan_16x32_neighbors },
},
{
// TX_32X16
{ default_scan_32x16, av1_default_iscan_32x16,
default_scan_32x16_neighbors },
{ mrow_scan_32x16, av1_mrow_iscan_32x16, mrow_scan_32x16_neighbors },
{ mcol_scan_32x16, av1_mcol_iscan_32x16, mcol_scan_32x16_neighbors },
{ default_scan_32x16, av1_default_iscan_32x16,
default_scan_32x16_neighbors },
{ default_scan_32x16, av1_default_iscan_32x16,
default_scan_32x16_neighbors },
{ default_scan_32x16, av1_default_iscan_32x16,
default_scan_32x16_neighbors },
{ default_scan_32x16, av1_default_iscan_32x16,
default_scan_32x16_neighbors },
{ default_scan_32x16, av1_default_iscan_32x16,
default_scan_32x16_neighbors },
{ default_scan_32x16, av1_default_iscan_32x16,
default_scan_32x16_neighbors },
{ mrow_scan_32x16, av1_mrow_iscan_32x16, mrow_scan_32x16_neighbors },
{ mrow_scan_32x16, av1_mrow_iscan_32x16, mrow_scan_32x16_neighbors },
{ mcol_scan_32x16, av1_mcol_iscan_32x16, mcol_scan_32x16_neighbors },
{ mrow_scan_32x16, av1_mrow_iscan_32x16, mrow_scan_32x16_neighbors },
{ mcol_scan_32x16, av1_mcol_iscan_32x16, mcol_scan_32x16_neighbors },
{ mrow_scan_32x16, av1_mrow_iscan_32x16, mrow_scan_32x16_neighbors },
{ mcol_scan_32x16, av1_mcol_iscan_32x16, mcol_scan_32x16_neighbors },
},
#if CONFIG_TX64X64
{
// TX_32X64
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
},
{
// TX_64X32
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
}
#endif // CONFIG_TX64X64
};
const SCAN_ORDER av1_inter_scan_orders[TX_SIZES_ALL][TX_TYPES] = {
{
// TX_4X4
{ default_scan_4x4, av1_default_iscan_4x4, default_scan_4x4_neighbors },
{ default_scan_4x4, av1_default_iscan_4x4, default_scan_4x4_neighbors },
{ default_scan_4x4, av1_default_iscan_4x4, default_scan_4x4_neighbors },
{ default_scan_4x4, av1_default_iscan_4x4, default_scan_4x4_neighbors },
{ default_scan_4x4, av1_default_iscan_4x4, default_scan_4x4_neighbors },
{ default_scan_4x4, av1_default_iscan_4x4, default_scan_4x4_neighbors },
{ default_scan_4x4, av1_default_iscan_4x4, default_scan_4x4_neighbors },
{ default_scan_4x4, av1_default_iscan_4x4, default_scan_4x4_neighbors },
{ default_scan_4x4, av1_default_iscan_4x4, default_scan_4x4_neighbors },
{ mrow_scan_4x4, av1_mrow_iscan_4x4, mrow_scan_4x4_neighbors },
{ mrow_scan_4x4, av1_mrow_iscan_4x4, mrow_scan_4x4_neighbors },
{ mcol_scan_4x4, av1_mcol_iscan_4x4, mcol_scan_4x4_neighbors },
{ mrow_scan_4x4, av1_mrow_iscan_4x4, mrow_scan_4x4_neighbors },
{ mcol_scan_4x4, av1_mcol_iscan_4x4, mcol_scan_4x4_neighbors },
{ mrow_scan_4x4, av1_mrow_iscan_4x4, mrow_scan_4x4_neighbors },
{ mcol_scan_4x4, av1_mcol_iscan_4x4, mcol_scan_4x4_neighbors },
},
{
// TX_8X8
{ default_scan_8x8, av1_default_iscan_8x8, default_scan_8x8_neighbors },
{ default_scan_8x8, av1_default_iscan_8x8, default_scan_8x8_neighbors },
{ default_scan_8x8, av1_default_iscan_8x8, default_scan_8x8_neighbors },
{ default_scan_8x8, av1_default_iscan_8x8, default_scan_8x8_neighbors },
{ default_scan_8x8, av1_default_iscan_8x8, default_scan_8x8_neighbors },
{ default_scan_8x8, av1_default_iscan_8x8, default_scan_8x8_neighbors },
{ default_scan_8x8, av1_default_iscan_8x8, default_scan_8x8_neighbors },
{ default_scan_8x8, av1_default_iscan_8x8, default_scan_8x8_neighbors },
{ default_scan_8x8, av1_default_iscan_8x8, default_scan_8x8_neighbors },
{ mrow_scan_8x8, av1_mrow_iscan_8x8, mrow_scan_8x8_neighbors },
{ mrow_scan_8x8, av1_mrow_iscan_8x8, mrow_scan_8x8_neighbors },
{ mcol_scan_8x8, av1_mcol_iscan_8x8, mcol_scan_8x8_neighbors },
{ mrow_scan_8x8, av1_mrow_iscan_8x8, mrow_scan_8x8_neighbors },
{ mcol_scan_8x8, av1_mcol_iscan_8x8, mcol_scan_8x8_neighbors },
{ mrow_scan_8x8, av1_mrow_iscan_8x8, mrow_scan_8x8_neighbors },
{ mcol_scan_8x8, av1_mcol_iscan_8x8, mcol_scan_8x8_neighbors },
},
{
// TX_16X16
{ default_scan_16x16, av1_default_iscan_16x16,
default_scan_16x16_neighbors },
{ default_scan_16x16, av1_default_iscan_16x16,
default_scan_16x16_neighbors },
{ default_scan_16x16, av1_default_iscan_16x16,
default_scan_16x16_neighbors },
{ default_scan_16x16, av1_default_iscan_16x16,
default_scan_16x16_neighbors },
{ default_scan_16x16, av1_default_iscan_16x16,
default_scan_16x16_neighbors },
{ default_scan_16x16, av1_default_iscan_16x16,
default_scan_16x16_neighbors },
{ default_scan_16x16, av1_default_iscan_16x16,
default_scan_16x16_neighbors },
{ default_scan_16x16, av1_default_iscan_16x16,
default_scan_16x16_neighbors },
{ default_scan_16x16, av1_default_iscan_16x16,
default_scan_16x16_neighbors },
{ mrow_scan_16x16, av1_mrow_iscan_16x16, mrow_scan_16x16_neighbors },
{ mrow_scan_16x16, av1_mrow_iscan_16x16, mrow_scan_16x16_neighbors },
{ mcol_scan_16x16, av1_mcol_iscan_16x16, mcol_scan_16x16_neighbors },
{ mrow_scan_16x16, av1_mrow_iscan_16x16, mrow_scan_16x16_neighbors },
{ mcol_scan_16x16, av1_mcol_iscan_16x16, mcol_scan_16x16_neighbors },
{ mrow_scan_16x16, av1_mrow_iscan_16x16, mrow_scan_16x16_neighbors },
{ mcol_scan_16x16, av1_mcol_iscan_16x16, mcol_scan_16x16_neighbors },
},
{
// TX_32X32
{ default_scan_32x32, av1_default_iscan_32x32,
default_scan_32x32_neighbors },
{ h2_scan_32x32, av1_h2_iscan_32x32, h2_scan_32x32_neighbors },
{ v2_scan_32x32, av1_v2_iscan_32x32, v2_scan_32x32_neighbors },
{ qtr_scan_32x32, av1_qtr_iscan_32x32, qtr_scan_32x32_neighbors },
{ h2_scan_32x32, av1_h2_iscan_32x32, h2_scan_32x32_neighbors },
{ v2_scan_32x32, av1_v2_iscan_32x32, v2_scan_32x32_neighbors },
{ qtr_scan_32x32, av1_qtr_iscan_32x32, qtr_scan_32x32_neighbors },
{ qtr_scan_32x32, av1_qtr_iscan_32x32, qtr_scan_32x32_neighbors },
{ qtr_scan_32x32, av1_qtr_iscan_32x32, qtr_scan_32x32_neighbors },
{ mrow_scan_32x32, av1_mrow_iscan_32x32, mrow_scan_32x32_neighbors },
{ mrow_scan_32x32, av1_mrow_iscan_32x32, mrow_scan_32x32_neighbors },
{ mcol_scan_32x32, av1_mcol_iscan_32x32, mcol_scan_32x32_neighbors },
{ mrow_scan_32x32, av1_mrow_iscan_32x32, mrow_scan_32x32_neighbors },
{ mcol_scan_32x32, av1_mcol_iscan_32x32, mcol_scan_32x32_neighbors },
{ mrow_scan_32x32, av1_mrow_iscan_32x32, mrow_scan_32x32_neighbors },
{ mcol_scan_32x32, av1_mcol_iscan_32x32, mcol_scan_32x32_neighbors },
},
#if CONFIG_TX64X64
{
// TX_64X64
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
{ default_scan_64x64, av1_default_iscan_64x64,
default_scan_64x64_neighbors },
},
#endif // CONFIG_TX64X64
{
// TX_4X8
{ default_scan_4x8, av1_default_iscan_4x8, default_scan_4x8_neighbors },
{ default_scan_4x8, av1_default_iscan_4x8, default_scan_4x8_neighbors },
{ default_scan_4x8, av1_default_iscan_4x8, default_scan_4x8_neighbors },
{ default_scan_4x8, av1_default_iscan_4x8, default_scan_4x8_neighbors },
{ default_scan_4x8, av1_default_iscan_4x8, default_scan_4x8_neighbors },
{ default_scan_4x8, av1_default_iscan_4x8, default_scan_4x8_neighbors },
{ default_scan_4x8, av1_default_iscan_4x8, default_scan_4x8_neighbors },
{ default_scan_4x8, av1_default_iscan_4x8, default_scan_4x8_neighbors },
{ default_scan_4x8, av1_default_iscan_4x8, default_scan_4x8_neighbors },
{ mrow_scan_4x8, av1_mrow_iscan_4x8, mrow_scan_4x8_neighbors },
{ mrow_scan_4x8, av1_mrow_iscan_4x8, mrow_scan_4x8_neighbors },
{ mcol_scan_4x8, av1_mcol_iscan_4x8, mcol_scan_4x8_neighbors },
{ mrow_scan_4x8, av1_mrow_iscan_4x8, mrow_scan_4x8_neighbors },
{ mcol_scan_4x8, av1_mcol_iscan_4x8, mcol_scan_4x8_neighbors },
{ mrow_scan_4x8, av1_mrow_iscan_4x8, mrow_scan_4x8_neighbors },
{ mcol_scan_4x8, av1_mcol_iscan_4x8, mcol_scan_4x8_neighbors },
},
{
// TX_8X4
{ default_scan_8x4, av1_default_iscan_8x4, default_scan_8x4_neighbors },
{ default_scan_8x4, av1_default_iscan_8x4, default_scan_8x4_neighbors },
{ default_scan_8x4, av1_default_iscan_8x4, default_scan_8x4_neighbors },
{ default_scan_8x4, av1_default_iscan_8x4, default_scan_8x4_neighbors },
{ default_scan_8x4, av1_default_iscan_8x4, default_scan_8x4_neighbors },
{ default_scan_8x4, av1_default_iscan_8x4, default_scan_8x4_neighbors },
{ default_scan_8x4, av1_default_iscan_8x4, default_scan_8x4_neighbors },
{ default_scan_8x4, av1_default_iscan_8x4, default_scan_8x4_neighbors },
{ default_scan_8x4, av1_default_iscan_8x4, default_scan_8x4_neighbors },
{ mrow_scan_8x4, av1_mrow_iscan_8x4, mrow_scan_8x4_neighbors },
{ mrow_scan_8x4, av1_mrow_iscan_8x4, mrow_scan_8x4_neighbors },
{ mcol_scan_8x4, av1_mcol_iscan_8x4, mcol_scan_8x4_neighbors },
{ mrow_scan_8x4, av1_mrow_iscan_8x4, mrow_scan_8x4_neighbors },
{ mcol_scan_8x4, av1_mcol_iscan_8x4, mcol_scan_8x4_neighbors },
{ mrow_scan_8x4, av1_mrow_iscan_8x4, mrow_scan_8x4_neighbors },
{ mcol_scan_8x4, av1_mcol_iscan_8x4, mcol_scan_8x4_neighbors },
},
{
// TX_8X16
{ default_scan_8x16, av1_default_iscan_8x16,
default_scan_8x16_neighbors },
{ default_scan_8x16, av1_default_iscan_8x16,
default_scan_8x16_neighbors },
{ default_scan_8x16, av1_default_iscan_8x16,
default_scan_8x16_neighbors },
{ default_scan_8x16, av1_default_iscan_8x16,
default_scan_8x16_neighbors },
{ default_scan_8x16, av1_default_iscan_8x16,
default_scan_8x16_neighbors },
{ default_scan_8x16, av1_default_iscan_8x16,
default_scan_8x16_neighbors },
{ default_scan_8x16, av1_default_iscan_8x16,
default_scan_8x16_neighbors },
{ default_scan_8x16, av1_default_iscan_8x16,
default_scan_8x16_neighbors },
{ default_scan_8x16, av1_default_iscan_8x16,
default_scan_8x16_neighbors },
{ mrow_scan_8x16, av1_mrow_iscan_8x16, mrow_scan_8x16_neighbors },
{ mrow_scan_8x16, av1_mrow_iscan_8x16, mrow_scan_8x16_neighbors },
{ mcol_scan_8x16, av1_mcol_iscan_8x16, mcol_scan_8x16_neighbors },
{ mrow_scan_8x16, av1_mrow_iscan_8x16, mrow_scan_8x16_neighbors },
{ mcol_scan_8x16, av1_mcol_iscan_8x16, mcol_scan_8x16_neighbors },
{ mrow_scan_8x16, av1_mrow_iscan_8x16, mrow_scan_8x16_neighbors },
{ mcol_scan_8x16, av1_mcol_iscan_8x16, mcol_scan_8x16_neighbors },
},
{
// TX_16X8
{ default_scan_16x8, av1_default_iscan_16x8,
default_scan_16x8_neighbors },
{ default_scan_16x8, av1_default_iscan_16x8,
default_scan_16x8_neighbors },
{ default_scan_16x8, av1_default_iscan_16x8,
default_scan_16x8_neighbors },
{ default_scan_16x8, av1_default_iscan_16x8,
default_scan_16x8_neighbors },
{ default_scan_16x8, av1_default_iscan_16x8,
default_scan_16x8_neighbors },
{ default_scan_16x8, av1_default_iscan_16x8,
default_scan_16x8_neighbors },
{ default_scan_16x8, av1_default_iscan_16x8,
default_scan_16x8_neighbors },
{ default_scan_16x8, av1_default_iscan_16x8,
default_scan_16x8_neighbors },
{ default_scan_16x8, av1_default_iscan_16x8,
default_scan_16x8_neighbors },
{ mrow_scan_16x8, av1_mrow_iscan_16x8, mrow_scan_16x8_neighbors },
{ mrow_scan_16x8, av1_mrow_iscan_16x8, mrow_scan_16x8_neighbors },
{ mcol_scan_16x8, av1_mcol_iscan_16x8, mcol_scan_16x8_neighbors },
{ mrow_scan_16x8, av1_mrow_iscan_16x8, mrow_scan_16x8_neighbors },
{ mcol_scan_16x8, av1_mcol_iscan_16x8, mcol_scan_16x8_neighbors },
{ mrow_scan_16x8, av1_mrow_iscan_16x8, mrow_scan_16x8_neighbors },
{ mcol_scan_16x8, av1_mcol_iscan_16x8, mcol_scan_16x8_neighbors },
},
{
// TX_16X32
{ default_scan_16x32, av1_default_iscan_16x32,
default_scan_16x32_neighbors },
{ default_scan_16x32, av1_default_iscan_16x32,
default_scan_16x32_neighbors },
{ default_scan_16x32, av1_default_iscan_16x32,
default_scan_16x32_neighbors },
{ default_scan_16x32, av1_default_iscan_16x32,
default_scan_16x32_neighbors },
{ default_scan_16x32, av1_default_iscan_16x32,
default_scan_16x32_neighbors },
{ default_scan_16x32, av1_default_iscan_16x32,
default_scan_16x32_neighbors },
{ default_scan_16x32, av1_default_iscan_16x32,
default_scan_16x32_neighbors },
{ default_scan_16x32, av1_default_iscan_16x32,
default_scan_16x32_neighbors },
{ default_scan_16x32, av1_default_iscan_16x32,
default_scan_16x32_neighbors },
{ mrow_scan_16x32, av1_mrow_iscan_16x32, mrow_scan_16x32_neighbors },
{ mrow_scan_16x32, av1_mrow_iscan_16x32, mrow_scan_16x32_neighbors },
{ mcol_scan_16x32, av1_mcol_iscan_16x32, mcol_scan_16x32_neighbors },
{ mrow_scan_16x32, av1_mrow_iscan_16x32, mrow_scan_16x32_neighbors },
{ mcol_scan_16x32, av1_mcol_iscan_16x32, mcol_scan_16x32_neighbors },
{ mrow_scan_16x32, av1_mrow_iscan_16x32, mrow_scan_16x32_neighbors },
{ mcol_scan_16x32, av1_mcol_iscan_16x32, mcol_scan_16x32_neighbors },
},
{
// TX_32X16
{ default_scan_32x16, av1_default_iscan_32x16,
default_scan_32x16_neighbors },
{ default_scan_32x16, av1_default_iscan_32x16,
default_scan_32x16_neighbors },
{ default_scan_32x16, av1_default_iscan_32x16,
default_scan_32x16_neighbors },
{ default_scan_32x16, av1_default_iscan_32x16,
default_scan_32x16_neighbors },
{ default_scan_32x16, av1_default_iscan_32x16,
default_scan_32x16_neighbors },
{ default_scan_32x16, av1_default_iscan_32x16,
default_scan_32x16_neighbors },
{ default_scan_32x16, av1_default_iscan_32x16,
default_scan_32x16_neighbors },
{ default_scan_32x16, av1_default_iscan_32x16,
default_scan_32x16_neighbors },
{ default_scan_32x16, av1_default_iscan_32x16,
default_scan_32x16_neighbors },
{ mrow_scan_32x16, av1_mrow_iscan_32x16, mrow_scan_32x16_neighbors },
{ mrow_scan_32x16, av1_mrow_iscan_32x16, mrow_scan_32x16_neighbors },
{ mcol_scan_32x16, av1_mcol_iscan_32x16, mcol_scan_32x16_neighbors },
{ mrow_scan_32x16, av1_mrow_iscan_32x16, mrow_scan_32x16_neighbors },
{ mcol_scan_32x16, av1_mcol_iscan_32x16, mcol_scan_32x16_neighbors },
{ mrow_scan_32x16, av1_mrow_iscan_32x16, mrow_scan_32x16_neighbors },
{ mcol_scan_32x16, av1_mcol_iscan_32x16, mcol_scan_32x16_neighbors },
},
#if CONFIG_TX64X64
{
// TX_32X64
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
{ default_scan_32x64, av1_default_iscan_32x64,
default_scan_32x64_neighbors },
},
{
// TX_64X32
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
{ default_scan_64x32, av1_default_iscan_64x32,
default_scan_64x32_neighbors },
},
#endif // CONFIG_TX64X64
{
// TX_4X16
{ default_scan_4x16, av1_default_iscan_4x16,
default_scan_4x16_neighbors },
{ default_scan_4x16, av1_default_iscan_4x16,
default_scan_4x16_neighbors },
{ default_scan_4x16, av1_default_iscan_4x16,
default_scan_4x16_neighbors },
{ default_scan_4x16, av1_default_iscan_4x16,
default_scan_4x16_neighbors },
{ default_scan_4x16, av1_default_iscan_4x16,
default_scan_4x16_neighbors },
{ default_scan_4x16, av1_default_iscan_4x16,
default_scan_4x16_neighbors },
{ default_scan_4x16, av1_default_iscan_4x16,
default_scan_4x16_neighbors },
{ default_scan_4x16, av1_default_iscan_4x16,
default_scan_4x16_neighbors },
{ default_scan_4x16, av1_default_iscan_4x16,
default_scan_4x16_neighbors },
{ mrow_scan_4x16, av1_mrow_iscan_4x16, mrow_scan_4x16_neighbors },
{ mrow_scan_4x16, av1_mrow_iscan_4x16, mrow_scan_4x16_neighbors },
{ mcol_scan_4x16, av1_mcol_iscan_4x16, mcol_scan_4x16_neighbors },
{ mrow_scan_4x16, av1_mrow_iscan_4x16, mrow_scan_4x16_neighbors },
{ mcol_scan_4x16, av1_mcol_iscan_4x16, mcol_scan_4x16_neighbors },
{ mrow_scan_4x16, av1_mrow_iscan_4x16, mrow_scan_4x16_neighbors },
{ mcol_scan_4x16, av1_mcol_iscan_4x16, mcol_scan_4x16_neighbors },
},
{
// TX_16X4
{ default_scan_16x4, av1_default_iscan_16x4,
default_scan_16x4_neighbors },
{ default_scan_16x4, av1_default_iscan_16x4,
default_scan_16x4_neighbors },
{ default_scan_16x4, av1_default_iscan_16x4,
default_scan_16x4_neighbors },
{ default_scan_16x4, av1_default_iscan_16x4,
default_scan_16x4_neighbors },
{ default_scan_16x4, av1_default_iscan_16x4,
default_scan_16x4_neighbors },
{ default_scan_16x4, av1_default_iscan_16x4,
default_scan_16x4_neighbors },
{ default_scan_16x4, av1_default_iscan_16x4,
default_scan_16x4_neighbors },
{ default_scan_16x4, av1_default_iscan_16x4,
default_scan_16x4_neighbors },
{ default_scan_16x4, av1_default_iscan_16x4,
default_scan_16x4_neighbors },
{ mrow_scan_16x4, av1_mrow_iscan_16x4, mrow_scan_16x4_neighbors },
{ mrow_scan_16x4, av1_mrow_iscan_16x4, mrow_scan_16x4_neighbors },
{ mcol_scan_16x4, av1_mcol_iscan_16x4, mcol_scan_16x4_neighbors },
{ mrow_scan_16x4, av1_mrow_iscan_16x4, mrow_scan_16x4_neighbors },
{ mcol_scan_16x4, av1_mcol_iscan_16x4, mcol_scan_16x4_neighbors },
{ mrow_scan_16x4, av1_mrow_iscan_16x4, mrow_scan_16x4_neighbors },
{ mcol_scan_16x4, av1_mcol_iscan_16x4, mcol_scan_16x4_neighbors },
},
{
// TX_8X32
{ default_scan_8x32, av1_default_iscan_8x32,
default_scan_8x32_neighbors },
{ default_scan_8x32, av1_default_iscan_8x32,
default_scan_8x32_neighbors },
{ default_scan_8x32, av1_default_iscan_8x32,
default_scan_8x32_neighbors },
{ default_scan_8x32, av1_default_iscan_8x32,
default_scan_8x32_neighbors },
{ default_scan_8x32, av1_default_iscan_8x32,
default_scan_8x32_neighbors },
{ default_scan_8x32, av1_default_iscan_8x32,
default_scan_8x32_neighbors },
{ default_scan_8x32, av1_default_iscan_8x32,
default_scan_8x32_neighbors },
{ default_scan_8x32, av1_default_iscan_8x32,
default_scan_8x32_neighbors },
{ default_scan_8x32, av1_default_iscan_8x32,
default_scan_8x32_neighbors },
{ mrow_scan_8x32, av1_mrow_iscan_8x32, mrow_scan_8x32_neighbors },
{ mrow_scan_8x32, av1_mrow_iscan_8x32, mrow_scan_8x32_neighbors },
{ mcol_scan_8x32, av1_mcol_iscan_8x32, mcol_scan_8x32_neighbors },
{ mrow_scan_8x32, av1_mrow_iscan_8x32, mrow_scan_8x32_neighbors },
{ mcol_scan_8x32, av1_mcol_iscan_8x32, mcol_scan_8x32_neighbors },
{ mrow_scan_8x32, av1_mrow_iscan_8x32, mrow_scan_8x32_neighbors },
{ mcol_scan_8x32, av1_mcol_iscan_8x32, mcol_scan_8x32_neighbors },
},
{
// TX_32X8
{ default_scan_32x8, av1_default_iscan_32x8,
default_scan_32x8_neighbors },
{ default_scan_32x8, av1_default_iscan_32x8,
default_scan_32x8_neighbors },
{ default_scan_32x8, av1_default_iscan_32x8,
default_scan_32x8_neighbors },
{ default_scan_32x8, av1_default_iscan_32x8,
default_scan_32x8_neighbors },
{ default_scan_32x8, av1_default_iscan_32x8,
default_scan_32x8_neighbors },
{ default_scan_32x8, av1_default_iscan_32x8,
default_scan_32x8_neighbors },
{ default_scan_32x8, av1_default_iscan_32x8,
default_scan_32x8_neighbors },
{ default_scan_32x8, av1_default_iscan_32x8,
default_scan_32x8_neighbors },
{ default_scan_32x8, av1_default_iscan_32x8,
default_scan_32x8_neighbors },
{ mrow_scan_32x8, av1_mrow_iscan_32x8, mrow_scan_32x8_neighbors },
{ mrow_scan_32x8, av1_mrow_iscan_32x8, mrow_scan_32x8_neighbors },
{ mcol_scan_32x8, av1_mcol_iscan_32x8, mcol_scan_32x8_neighbors },
{ mrow_scan_32x8, av1_mrow_iscan_32x8, mrow_scan_32x8_neighbors },
{ mcol_scan_32x8, av1_mcol_iscan_32x8, mcol_scan_32x8_neighbors },
{ mrow_scan_32x8, av1_mrow_iscan_32x8, mrow_scan_32x8_neighbors },
{ mcol_scan_32x8, av1_mcol_iscan_32x8, mcol_scan_32x8_neighbors },
},
};
#if CONFIG_ADAPT_SCAN
// TX_32X32 will has 1024 coefficients whose indexes can be represented in 10
// bits
#define COEFF_IDX_BITS (10 + CONFIG_TX64X64)
#define COEFF_IDX_SIZE (1 << COEFF_IDX_BITS)
#define COEFF_IDX_MASK (COEFF_IDX_SIZE - 1)
static uint32_t *get_non_zero_prob(FRAME_CONTEXT *fc, TX_SIZE tx_size,
TX_TYPE tx_type) {
switch (tx_size) {
case TX_4X4: return fc->non_zero_prob_4X4[tx_type];
case TX_8X8: return fc->non_zero_prob_8X8[tx_type];
case TX_16X16: return fc->non_zero_prob_16X16[tx_type];
case TX_32X32: return fc->non_zero_prob_32X32[tx_type];
case TX_4X8: return fc->non_zero_prob_4X8[tx_type];
case TX_8X4: return fc->non_zero_prob_8X4[tx_type];
case TX_8X16: return fc->non_zero_prob_8X16[tx_type];
case TX_16X8: return fc->non_zero_prob_16X8[tx_type];
case TX_16X32: return fc->non_zero_prob_16X32[tx_type];
case TX_32X16: return fc->non_zero_prob_32X16[tx_type];
default: assert(0); return NULL;
}
}
static int16_t *get_adapt_scan(FRAME_CONTEXT *fc, TX_SIZE tx_size,
TX_TYPE tx_type) {
switch (tx_size) {
case TX_4X4: return fc->scan_4X4[tx_type];
case TX_8X8: return fc->scan_8X8[tx_type];
case TX_16X16: return fc->scan_16X16[tx_type];
case TX_32X32: return fc->scan_32X32[tx_type];
case TX_4X8: return fc->scan_4X8[tx_type];
case TX_8X4: return fc->scan_8X4[tx_type];
case TX_8X16: return fc->scan_8X16[tx_type];
case TX_16X8: return fc->scan_16X8[tx_type];
case TX_16X32: return fc->scan_16X32[tx_type];
case TX_32X16: return fc->scan_32X16[tx_type];
default: assert(0); return NULL;
}
}
static int16_t *get_adapt_iscan(FRAME_CONTEXT *fc, TX_SIZE tx_size,
TX_TYPE tx_type) {
switch (tx_size) {
case TX_4X4: return fc->iscan_4X4[tx_type];
case TX_8X8: return fc->iscan_8X8[tx_type];
case TX_16X16: return fc->iscan_16X16[tx_type];
case TX_32X32: return fc->iscan_32X32[tx_type];
case TX_4X8: return fc->iscan_4X8[tx_type];
case TX_8X4: return fc->iscan_8X4[tx_type];
case TX_8X16: return fc->iscan_8X16[tx_type];
case TX_16X8: return fc->iscan_16X8[tx_type];
case TX_16X32: return fc->iscan_16X32[tx_type];
case TX_32X16: return fc->iscan_32X16[tx_type];
default: assert(0); return NULL;
}
}
static int16_t *get_adapt_nb(FRAME_CONTEXT *fc, TX_SIZE tx_size,
TX_TYPE tx_type) {
switch (tx_size) {
case TX_4X4: return fc->nb_4X4[tx_type];
case TX_8X8: return fc->nb_8X8[tx_type];
case TX_16X16: return fc->nb_16X16[tx_type];
case TX_32X32: return fc->nb_32X32[tx_type];
case TX_4X8: return fc->nb_4X8[tx_type];
case TX_8X4: return fc->nb_8X4[tx_type];
case TX_8X16: return fc->nb_8X16[tx_type];
case TX_16X8: return fc->nb_16X8[tx_type];
case TX_16X32: return fc->nb_16X32[tx_type];
case TX_32X16: return fc->nb_32X16[tx_type];
default: assert(0); return NULL;
}
}
static uint32_t *get_non_zero_counts(FRAME_COUNTS *counts, TX_SIZE tx_size,
TX_TYPE tx_type) {
switch (tx_size) {
case TX_4X4: return counts->non_zero_count_4X4[tx_type];
case TX_8X8: return counts->non_zero_count_8X8[tx_type];
case TX_16X16: return counts->non_zero_count_16X16[tx_type];
case TX_32X32: return counts->non_zero_count_32X32[tx_type];
case TX_4X8: return counts->non_zero_count_4x8[tx_type];
case TX_8X4: return counts->non_zero_count_8x4[tx_type];
case TX_8X16: return counts->non_zero_count_8x16[tx_type];
case TX_16X8: return counts->non_zero_count_16x8[tx_type];
case TX_16X32: return counts->non_zero_count_16x32[tx_type];
case TX_32X16: return counts->non_zero_count_32x16[tx_type];
default: assert(0); return NULL;
}
}
static INLINE int clamp_64(int64_t value, int low, int high) {
return value < low ? low : (value > high ? high : (int)value);
}
#if USE_2X2_PROB
static int do_down_sample(TX_SIZE tx_size) {
const int tx_w = tx_size_wide[tx_size];
const int tx_h = tx_size_high[tx_size];
if (tx_w > 8 || tx_h > 8) {
return 1;
} else {
return 0;
}
}
void av1_down_sample_scan_count(uint32_t *non_zero_count_ds,
const uint32_t *non_zero_count,
TX_SIZE tx_size) {
const int tx_w = tx_size_wide[tx_size];
const int tx_h = tx_size_high[tx_size];
if (tx_w > 8 && tx_h > 8) {
const int tx_w_ds = tx_w >> 1;
const int tx_h_ds = tx_h >> 1;
for (int r_ds = 0; r_ds < tx_h_ds; ++r_ds) {
for (int c_ds = 0; c_ds < tx_w_ds; ++c_ds) {
const int ci_ds = r_ds * tx_w_ds + c_ds;
const int r = r_ds << 1;
const int c = c_ds << 1;
const int ci = r * tx_w + c;
non_zero_count_ds[ci_ds] = non_zero_count[ci];
}
}
} else if (tx_w > 8 && tx_h <= 8) {
const int tx_w_ds = tx_w >> 1;
const int tx_h_ds = tx_h;
for (int r_ds = 0; r_ds < tx_h_ds; ++r_ds) {
for (int c_ds = 0; c_ds < tx_w_ds; ++c_ds) {
const int ci_ds = r_ds * tx_w_ds + c_ds;
const int r = r_ds;
const int c = c_ds << 1;
const int ci = r * tx_w + c;
non_zero_count_ds[ci_ds] = non_zero_count[ci];
}
}
} else if (tx_w <= 8 && tx_h > 8) {
const int tx_w_ds = tx_w;
const int tx_h_ds = tx_h >> 1;
for (int r_ds = 0; r_ds < tx_h_ds; ++r_ds) {
for (int c_ds = 0; c_ds < tx_w_ds; ++c_ds) {
const int ci_ds = r_ds * tx_w_ds + c_ds;
const int r = r_ds << 1;
const int c = c_ds;
const int ci = r * tx_w + c;
non_zero_count_ds[ci_ds] = non_zero_count[ci];
}
}
} else {
assert(0);
}
}
void av1_up_sample_scan_count(uint32_t *non_zero_count,
const uint32_t *non_zero_count_ds,
TX_SIZE tx_size, unsigned int block_num) {
const int tx_w = tx_size_wide[tx_size];
const int tx_h = tx_size_high[tx_size];
if (tx_w > 8 && tx_h > 8) {
const int tx_w_ds = tx_w >> 1;
const int tx_h_ds = tx_h >> 1;
for (int r_ds = 0; r_ds < tx_h_ds; ++r_ds) {
for (int c_ds = 0; c_ds < tx_w_ds; ++c_ds) {
const int ci_ds = r_ds * tx_w_ds + c_ds;
const int r = r_ds << 1;
const int c = c_ds << 1;
const int ci = r * tx_w + c;
non_zero_count[ci] = non_zero_count_ds[ci_ds];
if (c_ds + 1 < tx_w_ds) {
uint32_t count =
non_zero_count_ds[ci_ds] + non_zero_count_ds[ci_ds + 1];
count = ROUND_POWER_OF_TWO(count, 1);
count = clamp32u(count, 0, block_num);
non_zero_count[ci + 1] = count;
} else {
non_zero_count[ci + 1] = non_zero_count_ds[ci_ds];
}
}
}
for (int r_ds = 0; r_ds < tx_h_ds; ++r_ds) {
for (int c = 0; c < tx_w; ++c) {
const int r = r_ds << 1;
const int ci = r * tx_w + c;
if (r + 2 < tx_h) {
uint32_t count = non_zero_count[ci] + non_zero_count[ci + 2 * tx_w];
count = ROUND_POWER_OF_TWO(count, 1);
count = clamp32u(count, 0, block_num);
non_zero_count[ci + tx_w] = count;
} else {
non_zero_count[ci + tx_w] = non_zero_count[ci];
}
}
}
} else if (tx_w > 8 && tx_h <= 8) {
const int tx_w_ds = tx_w >> 1;
const int tx_h_ds = tx_h;
for (int r_ds = 0; r_ds < tx_h_ds; ++r_ds) {
for (int c_ds = 0; c_ds < tx_w_ds; ++c_ds) {
const int ci_ds = r_ds * tx_w_ds + c_ds;
const int r = r_ds;
const int c = c_ds << 1;
const int ci = r * tx_w + c;
non_zero_count[ci] = non_zero_count_ds[ci_ds];
if (c_ds + 1 < tx_w_ds) {
uint32_t count =
non_zero_count_ds[ci_ds] + non_zero_count_ds[ci_ds + 1];
count = ROUND_POWER_OF_TWO(count, 1);
count = clamp32u(count, 0, block_num);
non_zero_count[ci + 1] = count;
} else {
non_zero_count[ci + 1] = non_zero_count_ds[ci_ds];
}
}
}
} else if (tx_w <= 8 && tx_h > 8) {
const int tx_w_ds = tx_w;
const int tx_h_ds = tx_h >> 1;
for (int r_ds = 0; r_ds < tx_h_ds; ++r_ds) {
for (int c_ds = 0; c_ds < tx_w_ds; ++c_ds) {
const int ci_ds = r_ds * tx_w_ds + c_ds;
const int r = r_ds << 1;
const int c = c_ds;
const int ci = r * tx_w + c;
non_zero_count[ci] = non_zero_count_ds[ci_ds];
if (r_ds + 1 < tx_h_ds) {
uint32_t count =
non_zero_count_ds[ci_ds] + non_zero_count_ds[ci_ds + tx_w_ds];
count = ROUND_POWER_OF_TWO(count, 1);
count = clamp32u(count, 0, block_num);
non_zero_count[ci + tx_w] = count;
} else {
non_zero_count[ci + tx_w] = non_zero_count_ds[ci_ds];
}
}
}
} else {
assert(0);
}
}
#endif
static void update_scan_prob(AV1_COMMON *cm, TX_SIZE tx_size, TX_TYPE tx_type,
int rate) {
FRAME_CONTEXT *pre_fc = cm->pre_fc;
uint32_t *prev_non_zero_prob = get_non_zero_prob(pre_fc, tx_size, tx_type);
uint32_t *non_zero_prob = get_non_zero_prob(cm->fc, tx_size, tx_type);
uint32_t *non_zero_count = get_non_zero_counts(&cm->counts, tx_size, tx_type);
const int tx2d_size = tx_size_2d[tx_size];
unsigned int block_num = cm->counts.txb_count[tx_size][tx_type];
#if USE_2X2_PROB
#if CONFIG_TX64X64
DECLARE_ALIGNED(16, uint32_t, non_zero_count_ds[1024]);
assert((tx2d_size >> 2) <= 1024);
#else // CONFIG_TX64X64
DECLARE_ALIGNED(16, uint32_t, non_zero_count_ds[256]);
assert((tx2d_size >> 2) <= 256);
#endif // CONFIG_TX64X64
if (do_down_sample(tx_size)) {
av1_down_sample_scan_count(non_zero_count_ds, non_zero_count, tx_size);
av1_up_sample_scan_count(non_zero_count, non_zero_count_ds, tx_size,
block_num);
}
#endif
int i;
const int inv_precision = 30;
int32_t inv_block_num = block_num == 0 ? 0 : (1 << inv_precision) / block_num;
for (i = 0; i < tx2d_size; i++) {
int64_t curr_prob =
block_num == 0 ? 0 : ((non_zero_count[i] * inv_block_num) >>
(inv_precision - ADAPT_SCAN_PROB_PRECISION));
int64_t prev_prob = prev_non_zero_prob[i];
int64_t pred_prob =
(curr_prob * rate +
prev_prob * ((1 << ADAPT_SCAN_PROB_PRECISION) - rate)) >>
ADAPT_SCAN_PROB_PRECISION;
// TODO(angiebird): reduce the bit usage of probabilities and remove
// clamp_64()
non_zero_prob[i] =
clamp_64(pred_prob, 0, (1 << ADAPT_SCAN_PROB_PRECISION) - 1);
}
}
static void update_scan_count(int16_t *scan, int max_scan,
const tran_low_t *dqcoeffs,
uint32_t *non_zero_count) {
int i;
for (i = 0; i < max_scan; ++i) {
int coeff_idx = scan[i];
non_zero_count[coeff_idx] += (dqcoeffs[coeff_idx] != 0);
}
}
void av1_update_scan_count_facade(AV1_COMMON *cm, FRAME_COUNTS *counts,
TX_SIZE tx_size, TX_TYPE tx_type,
const tran_low_t *dqcoeffs, int max_scan) {
if (cm->use_adapt_scan && do_adapt_scan(tx_size, tx_type)) {
int16_t *scan = get_adapt_scan(cm->fc, tx_size, tx_type);
uint32_t *non_zero_count = get_non_zero_counts(counts, tx_size, tx_type);
update_scan_count(scan, max_scan, dqcoeffs, non_zero_count);
++counts->txb_count[tx_size][tx_type];
}
}
static int cmp_prob(const void *a, const void *b) {
return *(const uint32_t *)b > *(const uint32_t *)a ? 1 : -1;
}
void av1_augment_prob(TX_SIZE tx_size, TX_TYPE tx_type, uint32_t *prob) {
// TODO(angiebird): check if we need is_inter here
const SCAN_ORDER *sc = get_default_scan(tx_size, tx_type, 0);
const int tx1d_wide = tx_size_wide[tx_size];
const int tx1d_high = tx_size_high[tx_size];
int r, c;
for (r = 0; r < tx1d_high; r++) {
for (c = 0; c < tx1d_wide; c++) {
const int idx = r * tx1d_wide + c;
const uint32_t mask_16 = ((1 << 16) - 1);
const uint32_t tie_breaker = ~((uint32_t)sc->iscan[idx]);
// prob[idx]: 16 bits dummy: 6 bits scan_idx: 10 bits
prob[idx] = (prob[idx] << 16) | (mask_16 & tie_breaker);
}
}
}
void av1_update_neighbors(TX_SIZE tx_size, const int16_t *scan,
const int16_t *iscan, int16_t *neighbors) {
const int tx1d_wide = tx_size_wide[tx_size];
const int tx1d_high = tx_size_high[tx_size];
const int tx2d_size = tx_size_2d[tx_size];
int scan_idx;
for (scan_idx = 0; scan_idx < tx2d_size; ++scan_idx) {
const int coeff_idx = scan[scan_idx];
const int r = coeff_idx / tx1d_wide;
const int c = coeff_idx % tx1d_wide;
const int nb_offset_r[5] = { -1, 0, -1, -1, 1 };
const int nb_offset_c[5] = { 0, -1, -1, 1, -1 };
const int nb_num = 5;
int nb_count = 0;
int nb_idx;
for (nb_idx = 0; nb_idx < nb_num; ++nb_idx) {
if (nb_count < 2) {
int nb_r = r + nb_offset_r[nb_idx];
int nb_c = c + nb_offset_c[nb_idx];
int nb_coeff_idx = nb_r * tx1d_wide + nb_c;
int valid_pos =
nb_r >= 0 && nb_r < tx1d_high && nb_c >= 0 && nb_c < tx1d_wide;
if (valid_pos && iscan[nb_coeff_idx] < scan_idx) {
neighbors[scan_idx * MAX_NEIGHBORS + nb_count] = nb_coeff_idx;
++nb_count;
}
} else {
break;
}
}
if (nb_count == 1) {
neighbors[scan_idx * MAX_NEIGHBORS + 1] =
neighbors[scan_idx * MAX_NEIGHBORS + 0];
} else if (nb_count == 0) {
neighbors[scan_idx * MAX_NEIGHBORS + 0] = scan[0];
neighbors[scan_idx * MAX_NEIGHBORS + 1] = scan[0];
}
}
neighbors[tx2d_size * MAX_NEIGHBORS + 0] = scan[0];
neighbors[tx2d_size * MAX_NEIGHBORS + 1] = scan[0];
}
#if USE_LIMIT_SCAN_DISTANCE
typedef struct SCAN_NB_QUEUE {
int nb_ci_queue[COEFF_IDX_SIZE + 1];
int pr_si_queue[COEFF_IDX_SIZE + 1];
int size;
int start;
int end;
} SCAN_NB_QUEUE;
static void assign_scan_idx(int16_t coeff_idx, int16_t *scan_idx, int tx_width,
int tx_height, int16_t *scan, int16_t *iscan,
int16_t *visit, SCAN_NB_QUEUE *queue) {
if (visit[coeff_idx] != 2) {
assert(*scan_idx < tx_width * tx_height);
scan[*scan_idx] = coeff_idx;
iscan[coeff_idx] = *scan_idx;
visit[coeff_idx] = 2;
int row = coeff_idx / tx_width;
int col = coeff_idx % tx_width;
int right_ci = coeff_idx + 1;
if (col + 1 < tx_width && visit[right_ci] == 0) {
visit[right_ci] = 1;
queue->pr_si_queue[queue->end] = *scan_idx;
queue->nb_ci_queue[queue->end] = right_ci;
queue->end = (queue->end + 1) % queue->size;
}
int down_ci = coeff_idx + tx_width;
if (row + 1 < tx_height && visit[down_ci] == 0) {
visit[down_ci] = 1;
queue->pr_si_queue[queue->end] = *scan_idx;
queue->nb_ci_queue[queue->end] = down_ci;
queue->end = (queue->end + 1) % queue->size;
}
++(*scan_idx);
}
}
static void limit_nb_scan_distance(TX_SIZE tx_size, int16_t *scan,
int16_t *iscan) {
const int tx2d_size = tx_size_2d[tx_size];
int16_t visit[COEFF_IDX_SIZE] = { 0 };
int16_t org_scan[COEFF_IDX_SIZE];
memcpy(org_scan, scan, tx2d_size * sizeof(*scan));
const int tx_width = tx_size_wide[tx_size];
const int tx_height = tx_size_high[tx_size];
const int limit = 2 * AOMMAX(tx_width, tx_height);
SCAN_NB_QUEUE queue;
queue.size = tx2d_size;
queue.start = 0;
queue.end = 0;
int16_t new_si = 0;
for (int16_t si = 0; si < tx2d_size; ++si) {
while (queue.start != queue.end &&
queue.pr_si_queue[queue.start] + limit <= new_si) {
int nb_ci = queue.nb_ci_queue[queue.start];
assign_scan_idx(nb_ci, &new_si, tx_width, tx_height, scan, iscan, visit,
&queue);
queue.start = (queue.start + 1) % queue.size;
}
int16_t ci = org_scan[si];
assign_scan_idx(ci, &new_si, tx_width, tx_height, scan, iscan, visit,
&queue);
}
assert(new_si == tx2d_size);
}
#endif // USE_LIMIT_SCAN_DISTANCE
#if USE_TOPOLOGICAL_SORT
void av1_update_sort_order(TX_SIZE tx_size, TX_TYPE tx_type,
const uint32_t *non_zero_prob, int16_t *sort_order) {
const SCAN_ORDER *sc = get_default_scan(tx_size, tx_type, 0);
uint32_t temp[COEFF_IDX_SIZE];
const int tx2d_size = tx_size_2d[tx_size];
int sort_idx;
assert(tx2d_size <= COEFF_IDX_SIZE);
memcpy(temp, non_zero_prob, tx2d_size * sizeof(*non_zero_prob));
av1_augment_prob(tx_size, tx_type, temp);
qsort(temp, tx2d_size, sizeof(*temp), cmp_prob);
for (sort_idx = 0; sort_idx < tx2d_size; ++sort_idx) {
const int default_scan_idx =
(temp[sort_idx] & COEFF_IDX_MASK) ^ COEFF_IDX_MASK;
const int coeff_idx = sc->scan[default_scan_idx];
sort_order[sort_idx] = coeff_idx;
}
}
// topological sort
static void dfs_scan(int tx1d_size, int *scan_idx, int coeff_idx, int16_t *scan,
int16_t *iscan) {
const int r = coeff_idx / tx1d_size;
const int c = coeff_idx % tx1d_size;
if (iscan[coeff_idx] != -1) return;
if (r > 0) dfs_scan(tx1d_size, scan_idx, coeff_idx - tx1d_size, scan, iscan);
if (c > 0) dfs_scan(tx1d_size, scan_idx, coeff_idx - 1, scan, iscan);
scan[*scan_idx] = coeff_idx;
iscan[coeff_idx] = *scan_idx;
++(*scan_idx);
}
void av1_update_scan_order(TX_SIZE tx_size, int16_t *sort_order, int16_t *scan,
int16_t *iscan) {
int coeff_idx;
int scan_idx;
int sort_idx;
const int tx1d_size = tx_size_wide[tx_size];
const int tx2d_size = tx_size_2d[tx_size];
for (coeff_idx = 0; coeff_idx < tx2d_size; ++coeff_idx) {
iscan[coeff_idx] = -1;
}
scan_idx = 0;
for (sort_idx = 0; sort_idx < tx2d_size; ++sort_idx) {
coeff_idx = sort_order[sort_idx];
dfs_scan(tx1d_size, &scan_idx, coeff_idx, scan, iscan);
}
}
#else
static void filter_prob(TX_SIZE tx_size, uint32_t *prob) {
const int tx1d_wide = tx_size_wide[tx_size];
const int tx1d_high = tx_size_high[tx_size];
for (int r = tx1d_high - 1; r >= 0; --r) {
for (int c = tx1d_wide - 1; c >= 0; --c) {
int idx = r * tx1d_wide + c;
uint32_t v = prob[idx];
if (r > 0 && prob[idx - tx1d_wide] < v) prob[idx - tx1d_wide] = v;
if (c > 0 && prob[idx - 1] < v) prob[idx - 1] = v;
}
}
}
void av1_update_scan_order(TX_SIZE tx_size, TX_TYPE tx_type,
uint32_t *non_zero_prob, int16_t *scan,
int16_t *iscan) {
const SCAN_ORDER *sc = get_default_scan(tx_size, tx_type, 0);
uint32_t temp[COEFF_IDX_SIZE];
const int tx2d_size = tx_size_2d[tx_size];
int scan_idx;
assert(tx2d_size <= COEFF_IDX_SIZE);
memcpy(temp, non_zero_prob, tx2d_size * sizeof(*non_zero_prob));
filter_prob(tx_size, temp);
av1_augment_prob(tx_size, tx_type, temp);
qsort(temp, tx2d_size, sizeof(*temp), cmp_prob);
for (scan_idx = 0; scan_idx < tx2d_size; ++scan_idx) {
const int default_scan_idx =
(temp[scan_idx] & COEFF_IDX_MASK) ^ COEFF_IDX_MASK;
const int coeff_idx = sc->scan[default_scan_idx];
scan[scan_idx] = coeff_idx;
iscan[coeff_idx] = scan_idx;
}
}
#endif
static void update_scan_order_facade(AV1_COMMON *cm, TX_SIZE tx_size,
TX_TYPE tx_type, int use_curr_frame) {
#if USE_TOPOLOGICAL_SORT
int16_t sort_order[COEFF_IDX_SIZE];
#endif
uint32_t *non_zero_prob;
if (use_curr_frame)
non_zero_prob = get_non_zero_prob(cm->fc, tx_size, tx_type);
else
non_zero_prob = get_non_zero_prob(cm->pre_fc, tx_size, tx_type);
int16_t *scan = get_adapt_scan(cm->fc, tx_size, tx_type);
int16_t *iscan = get_adapt_iscan(cm->fc, tx_size, tx_type);
int16_t *nb = get_adapt_nb(cm->fc, tx_size, tx_type);
assert(tx_size_2d[tx_size] <= COEFF_IDX_SIZE);
#if USE_TOPOLOGICAL_SORT
av1_update_sort_order(tx_size, tx_type, non_zero_prob, sort_order);
av1_update_scan_order(tx_size, sort_order, scan, iscan);
#else
av1_update_scan_order(tx_size, tx_type, non_zero_prob, scan, iscan);
#endif
#if USE_LIMIT_SCAN_DISTANCE
limit_nb_scan_distance(tx_size, scan, iscan);
#endif // USE_LIMIT_SCAN_DISTANCE
av1_update_neighbors(tx_size, scan, iscan, nb);
}
static void update_eob_threshold(AV1_COMMON *cm, TX_SIZE tx_size,
TX_TYPE tx_type) {
int i, row, col, row_limit, col_limit, cal_idx = 0;
const int tx_width = tx_size_wide[tx_size];
const int tx_height = tx_size_high[tx_size];
row_limit = tx_width >> 1;
col_limit = tx_height >> 1;
if (tx_width >= 8 && tx_height >= 8) {
SCAN_ORDER *sc = &cm->fc->sc[tx_size][tx_type];
int16_t *threshold = &cm->fc->eob_threshold[tx_size][tx_type][0];
const int tx2d_size = tx_size_2d[tx_size];
while (cal_idx < EOB_THRESHOLD_NUM) {
for (i = 0; i < tx2d_size; ++i) {
row = sc->scan[i] / tx_height;
col = sc->scan[i] % tx_width;
if (row >= row_limit || col >= col_limit) break;
}
row_limit >>= 1;
col_limit >>= 1;
threshold[cal_idx] = i;
cal_idx++;
}
}
}
void av1_init_scan_order(AV1_COMMON *cm) {
TX_SIZE tx_size;
TX_TYPE tx_type;
for (tx_size = 0; tx_size < TX_SIZES_ALL; ++tx_size) {
if (tx_size > TX_32X16) continue;
for (tx_type = DCT_DCT; tx_type < TX_TYPES; ++tx_type) {
if (do_adapt_scan(tx_size, tx_type)) {
uint32_t *non_zero_prob = get_non_zero_prob(cm->fc, tx_size, tx_type);
const int tx2d_size = tx_size_2d[tx_size];
int i;
SCAN_ORDER *sc = &cm->fc->sc[tx_size][tx_type];
for (i = 0; i < tx2d_size; ++i) {
non_zero_prob[i] = (1 << ADAPT_SCAN_PROB_PRECISION) /
2; // init non_zero_prob to 0.5
}
update_scan_order_facade(cm, tx_size, tx_type, 1);
sc->scan = get_adapt_scan(cm->fc, tx_size, tx_type);
sc->iscan = get_adapt_iscan(cm->fc, tx_size, tx_type);
sc->neighbors = get_adapt_nb(cm->fc, tx_size, tx_type);
update_eob_threshold(cm, tx_size, tx_type);
}
}
}
}
void av1_adapt_scan_order(AV1_COMMON *cm) {
if (cm->use_adapt_scan) {
TX_SIZE tx_size;
#if CACHE_SCAN_PROB
int use_curr_frame = 0;
#else // CACHE_SCAN_PROB
int use_curr_frame = 1;
#endif // CACHE_SCAN_PROB
for (tx_size = 0; tx_size < TX_SIZES_ALL; ++tx_size) {
if (tx_size > TX_32X16) continue;
TX_TYPE tx_type;
for (tx_type = DCT_DCT; tx_type < TX_TYPES; ++tx_type) {
if (do_adapt_scan(tx_size, tx_type)) {
update_scan_prob(cm, tx_size, tx_type, ADAPT_SCAN_UPDATE_RATE);
update_scan_order_facade(cm, tx_size, tx_type, use_curr_frame);
update_eob_threshold(cm, tx_size, tx_type);
}
}
}
}
}
void av1_deliver_eob_threshold(const AV1_COMMON *cm, MACROBLOCKD *xd) {
xd->eob_threshold_md = (const EobThresholdMD *)cm->fc->eob_threshold;
}
#endif // CONFIG_ADAPT_SCAN