blob: 758b32f8f37030b82a56f428f20c864a5992355b [file] [log] [blame] [edit]
/*
* Copyright (c) 2021, Alliance for Open Media. All rights reserved
*
* This source code is subject to the terms of the BSD 3-Clause Clear License
* and the Alliance for Open Media Patent License 1.0. If the BSD 3-Clause Clear
* License was not distributed with this source code in the LICENSE file, you
* can obtain it at aomedia.org/license/software-license/bsd-3-c-c/. 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
* aomedia.org/license/patent-license/.
*/
#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, 8, 5, 2, 12, 9, 6, 3, 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, default_scan_4x8[32]) = {
0, 4, 1, 8, 5, 2, 12, 9, 6, 3, 16, 13, 10, 7, 20, 17,
14, 11, 24, 21, 18, 15, 28, 25, 22, 19, 29, 26, 23, 30, 27, 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, 8, 1, 16, 9, 2, 24, 17, 10, 3, 25, 18, 11, 4, 26, 19,
12, 5, 27, 20, 13, 6, 28, 21, 14, 7, 29, 22, 15, 30, 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, 4, 1, 8, 5, 2, 12, 9, 6, 3, 16, 13, 10, 7, 20, 17,
14, 11, 24, 21, 18, 15, 28, 25, 22, 19, 32, 29, 26, 23, 36, 33,
30, 27, 40, 37, 34, 31, 44, 41, 38, 35, 48, 45, 42, 39, 52, 49,
46, 43, 56, 53, 50, 47, 60, 57, 54, 51, 61, 58, 55, 62, 59, 63,
};
DECLARE_ALIGNED(16, static const int16_t, default_scan_16x4[64]) = {
0, 16, 1, 32, 17, 2, 48, 33, 18, 3, 49, 34, 19, 4, 50, 35,
20, 5, 51, 36, 21, 6, 52, 37, 22, 7, 53, 38, 23, 8, 54, 39,
24, 9, 55, 40, 25, 10, 56, 41, 26, 11, 57, 42, 27, 12, 58, 43,
28, 13, 59, 44, 29, 14, 60, 45, 30, 15, 61, 46, 31, 62, 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,
};
#if CONFIG_FLEX_PARTITION
DECLARE_ALIGNED(16, static const int16_t, default_scan_4x32[128]) = {
0, 4, 1, 8, 5, 2, 12, 9, 6, 3, 16, 13, 10, 7, 20,
17, 14, 11, 24, 21, 18, 15, 28, 25, 22, 19, 32, 29, 26, 23,
36, 33, 30, 27, 40, 37, 34, 31, 44, 41, 38, 35, 48, 45, 42,
39, 52, 49, 46, 43, 56, 53, 50, 47, 60, 57, 54, 51, 64, 61,
58, 55, 68, 65, 62, 59, 72, 69, 66, 63, 76, 73, 70, 67, 80,
77, 74, 71, 84, 81, 78, 75, 88, 85, 82, 79, 92, 89, 86, 83,
96, 93, 90, 87, 100, 97, 94, 91, 104, 101, 98, 95, 108, 105, 102,
99, 112, 109, 106, 103, 116, 113, 110, 107, 120, 117, 114, 111, 124, 121,
118, 115, 125, 122, 119, 126, 123, 127
};
DECLARE_ALIGNED(16, static const int16_t, default_scan_32x4[128]) = {
0, 32, 1, 64, 33, 2, 96, 65, 34, 3, 97, 66, 35, 4, 98, 67,
36, 5, 99, 68, 37, 6, 100, 69, 38, 7, 101, 70, 39, 8, 102, 71,
40, 9, 103, 72, 41, 10, 104, 73, 42, 11, 105, 74, 43, 12, 106, 75,
44, 13, 107, 76, 45, 14, 108, 77, 46, 15, 109, 78, 47, 16, 110, 79,
48, 17, 111, 80, 49, 18, 112, 81, 50, 19, 113, 82, 51, 20, 114, 83,
52, 21, 115, 84, 53, 22, 116, 85, 54, 23, 117, 86, 55, 24, 118, 87,
56, 25, 119, 88, 57, 26, 120, 89, 58, 27, 121, 90, 59, 28, 122, 91,
60, 29, 123, 92, 61, 30, 124, 93, 62, 31, 125, 94, 63, 126, 95, 127,
};
DECLARE_ALIGNED(16, static const int16_t, mrow_scan_4x32[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_32x4[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, mcol_scan_4x32[128]) = {
0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60,
64, 68, 72, 76, 80, 84, 88, 92, 96, 100, 104, 108, 112, 116, 120, 124,
1, 5, 9, 13, 17, 21, 25, 29, 33, 37, 41, 45, 49, 53, 57, 61,
65, 69, 73, 77, 81, 85, 89, 93, 97, 101, 105, 109, 113, 117, 121, 125,
2, 6, 10, 14, 18, 22, 26, 30, 34, 38, 42, 46, 50, 54, 58, 62,
66, 70, 74, 78, 82, 86, 90, 94, 98, 102, 106, 110, 114, 118, 122, 126,
3, 7, 11, 15, 19, 23, 27, 31, 35, 39, 43, 47, 51, 55, 59, 63,
67, 71, 75, 79, 83, 87, 91, 95, 99, 103, 107, 111, 115, 119, 123, 127,
};
DECLARE_ALIGNED(16, static const int16_t, mcol_scan_32x4[128]) = {
0, 32, 64, 96, 1, 33, 65, 97, 2, 34, 66, 98, 3, 35, 67, 99,
4, 36, 68, 100, 5, 37, 69, 101, 6, 38, 70, 102, 7, 39, 71, 103,
8, 40, 72, 104, 9, 41, 73, 105, 10, 42, 74, 106, 11, 43, 75, 107,
12, 44, 76, 108, 13, 45, 77, 109, 14, 46, 78, 110, 15, 47, 79, 111,
16, 48, 80, 112, 17, 49, 81, 113, 18, 50, 82, 114, 19, 51, 83, 115,
20, 52, 84, 116, 21, 53, 85, 117, 22, 54, 86, 118, 23, 55, 87, 119,
24, 56, 88, 120, 25, 57, 89, 121, 26, 58, 90, 122, 27, 59, 91, 123,
28, 60, 92, 124, 29, 61, 93, 125, 30, 62, 94, 126, 31, 63, 95, 127,
};
#endif // CONFIG_FLEX_PARTITION
DECLARE_ALIGNED(16, static const int16_t, default_scan_8x32[256]) = {
0, 8, 1, 16, 9, 2, 24, 17, 10, 3, 32, 25, 18, 11, 4,
40, 33, 26, 19, 12, 5, 48, 41, 34, 27, 20, 13, 6, 56, 49,
42, 35, 28, 21, 14, 7, 64, 57, 50, 43, 36, 29, 22, 15, 72,
65, 58, 51, 44, 37, 30, 23, 80, 73, 66, 59, 52, 45, 38, 31,
88, 81, 74, 67, 60, 53, 46, 39, 96, 89, 82, 75, 68, 61, 54,
47, 104, 97, 90, 83, 76, 69, 62, 55, 112, 105, 98, 91, 84, 77,
70, 63, 120, 113, 106, 99, 92, 85, 78, 71, 128, 121, 114, 107, 100,
93, 86, 79, 136, 129, 122, 115, 108, 101, 94, 87, 144, 137, 130, 123,
116, 109, 102, 95, 152, 145, 138, 131, 124, 117, 110, 103, 160, 153, 146,
139, 132, 125, 118, 111, 168, 161, 154, 147, 140, 133, 126, 119, 176, 169,
162, 155, 148, 141, 134, 127, 184, 177, 170, 163, 156, 149, 142, 135, 192,
185, 178, 171, 164, 157, 150, 143, 200, 193, 186, 179, 172, 165, 158, 151,
208, 201, 194, 187, 180, 173, 166, 159, 216, 209, 202, 195, 188, 181, 174,
167, 224, 217, 210, 203, 196, 189, 182, 175, 232, 225, 218, 211, 204, 197,
190, 183, 240, 233, 226, 219, 212, 205, 198, 191, 248, 241, 234, 227, 220,
213, 206, 199, 249, 242, 235, 228, 221, 214, 207, 250, 243, 236, 229, 222,
215, 251, 244, 237, 230, 223, 252, 245, 238, 231, 253, 246, 239, 254, 247,
255,
};
DECLARE_ALIGNED(16, static const int16_t, default_scan_32x8[256]) = {
0, 32, 1, 64, 33, 2, 96, 65, 34, 3, 128, 97, 66, 35, 4,
160, 129, 98, 67, 36, 5, 192, 161, 130, 99, 68, 37, 6, 224, 193,
162, 131, 100, 69, 38, 7, 225, 194, 163, 132, 101, 70, 39, 8, 226,
195, 164, 133, 102, 71, 40, 9, 227, 196, 165, 134, 103, 72, 41, 10,
228, 197, 166, 135, 104, 73, 42, 11, 229, 198, 167, 136, 105, 74, 43,
12, 230, 199, 168, 137, 106, 75, 44, 13, 231, 200, 169, 138, 107, 76,
45, 14, 232, 201, 170, 139, 108, 77, 46, 15, 233, 202, 171, 140, 109,
78, 47, 16, 234, 203, 172, 141, 110, 79, 48, 17, 235, 204, 173, 142,
111, 80, 49, 18, 236, 205, 174, 143, 112, 81, 50, 19, 237, 206, 175,
144, 113, 82, 51, 20, 238, 207, 176, 145, 114, 83, 52, 21, 239, 208,
177, 146, 115, 84, 53, 22, 240, 209, 178, 147, 116, 85, 54, 23, 241,
210, 179, 148, 117, 86, 55, 24, 242, 211, 180, 149, 118, 87, 56, 25,
243, 212, 181, 150, 119, 88, 57, 26, 244, 213, 182, 151, 120, 89, 58,
27, 245, 214, 183, 152, 121, 90, 59, 28, 246, 215, 184, 153, 122, 91,
60, 29, 247, 216, 185, 154, 123, 92, 61, 30, 248, 217, 186, 155, 124,
93, 62, 31, 249, 218, 187, 156, 125, 94, 63, 250, 219, 188, 157, 126,
95, 251, 220, 189, 158, 127, 252, 221, 190, 159, 253, 222, 191, 254, 223,
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, 24, 17, 10, 3, 32, 25, 18, 11, 4, 40,
33, 26, 19, 12, 5, 48, 41, 34, 27, 20, 13, 6, 56, 49, 42, 35,
28, 21, 14, 7, 57, 50, 43, 36, 29, 22, 15, 58, 51, 44, 37, 30,
23, 59, 52, 45, 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, default_scan_8x16[128]) = {
0, 8, 1, 16, 9, 2, 24, 17, 10, 3, 32, 25, 18, 11, 4, 40,
33, 26, 19, 12, 5, 48, 41, 34, 27, 20, 13, 6, 56, 49, 42, 35,
28, 21, 14, 7, 64, 57, 50, 43, 36, 29, 22, 15, 72, 65, 58, 51,
44, 37, 30, 23, 80, 73, 66, 59, 52, 45, 38, 31, 88, 81, 74, 67,
60, 53, 46, 39, 96, 89, 82, 75, 68, 61, 54, 47, 104, 97, 90, 83,
76, 69, 62, 55, 112, 105, 98, 91, 84, 77, 70, 63, 120, 113, 106, 99,
92, 85, 78, 71, 121, 114, 107, 100, 93, 86, 79, 122, 115, 108, 101, 94,
87, 123, 116, 109, 102, 95, 124, 117, 110, 103, 125, 118, 111, 126, 119, 127,
};
DECLARE_ALIGNED(16, static const int16_t, default_scan_16x8[128]) = {
0, 16, 1, 32, 17, 2, 48, 33, 18, 3, 64, 49, 34, 19, 4, 80,
65, 50, 35, 20, 5, 96, 81, 66, 51, 36, 21, 6, 112, 97, 82, 67,
52, 37, 22, 7, 113, 98, 83, 68, 53, 38, 23, 8, 114, 99, 84, 69,
54, 39, 24, 9, 115, 100, 85, 70, 55, 40, 25, 10, 116, 101, 86, 71,
56, 41, 26, 11, 117, 102, 87, 72, 57, 42, 27, 12, 118, 103, 88, 73,
58, 43, 28, 13, 119, 104, 89, 74, 59, 44, 29, 14, 120, 105, 90, 75,
60, 45, 30, 15, 121, 106, 91, 76, 61, 46, 31, 122, 107, 92, 77, 62,
47, 123, 108, 93, 78, 63, 124, 109, 94, 79, 125, 110, 95, 126, 111, 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, 16, 1, 32, 17, 2, 48, 33, 18, 3, 64, 49, 34, 19, 4,
80, 65, 50, 35, 20, 5, 96, 81, 66, 51, 36, 21, 6, 112, 97,
82, 67, 52, 37, 22, 7, 128, 113, 98, 83, 68, 53, 38, 23, 8,
144, 129, 114, 99, 84, 69, 54, 39, 24, 9, 160, 145, 130, 115, 100,
85, 70, 55, 40, 25, 10, 176, 161, 146, 131, 116, 101, 86, 71, 56,
41, 26, 11, 192, 177, 162, 147, 132, 117, 102, 87, 72, 57, 42, 27,
12, 208, 193, 178, 163, 148, 133, 118, 103, 88, 73, 58, 43, 28, 13,
224, 209, 194, 179, 164, 149, 134, 119, 104, 89, 74, 59, 44, 29, 14,
240, 225, 210, 195, 180, 165, 150, 135, 120, 105, 90, 75, 60, 45, 30,
15, 256, 241, 226, 211, 196, 181, 166, 151, 136, 121, 106, 91, 76, 61,
46, 31, 272, 257, 242, 227, 212, 197, 182, 167, 152, 137, 122, 107, 92,
77, 62, 47, 288, 273, 258, 243, 228, 213, 198, 183, 168, 153, 138, 123,
108, 93, 78, 63, 304, 289, 274, 259, 244, 229, 214, 199, 184, 169, 154,
139, 124, 109, 94, 79, 320, 305, 290, 275, 260, 245, 230, 215, 200, 185,
170, 155, 140, 125, 110, 95, 336, 321, 306, 291, 276, 261, 246, 231, 216,
201, 186, 171, 156, 141, 126, 111, 352, 337, 322, 307, 292, 277, 262, 247,
232, 217, 202, 187, 172, 157, 142, 127, 368, 353, 338, 323, 308, 293, 278,
263, 248, 233, 218, 203, 188, 173, 158, 143, 384, 369, 354, 339, 324, 309,
294, 279, 264, 249, 234, 219, 204, 189, 174, 159, 400, 385, 370, 355, 340,
325, 310, 295, 280, 265, 250, 235, 220, 205, 190, 175, 416, 401, 386, 371,
356, 341, 326, 311, 296, 281, 266, 251, 236, 221, 206, 191, 432, 417, 402,
387, 372, 357, 342, 327, 312, 297, 282, 267, 252, 237, 222, 207, 448, 433,
418, 403, 388, 373, 358, 343, 328, 313, 298, 283, 268, 253, 238, 223, 464,
449, 434, 419, 404, 389, 374, 359, 344, 329, 314, 299, 284, 269, 254, 239,
480, 465, 450, 435, 420, 405, 390, 375, 360, 345, 330, 315, 300, 285, 270,
255, 496, 481, 466, 451, 436, 421, 406, 391, 376, 361, 346, 331, 316, 301,
286, 271, 497, 482, 467, 452, 437, 422, 407, 392, 377, 362, 347, 332, 317,
302, 287, 498, 483, 468, 453, 438, 423, 408, 393, 378, 363, 348, 333, 318,
303, 499, 484, 469, 454, 439, 424, 409, 394, 379, 364, 349, 334, 319, 500,
485, 470, 455, 440, 425, 410, 395, 380, 365, 350, 335, 501, 486, 471, 456,
441, 426, 411, 396, 381, 366, 351, 502, 487, 472, 457, 442, 427, 412, 397,
382, 367, 503, 488, 473, 458, 443, 428, 413, 398, 383, 504, 489, 474, 459,
444, 429, 414, 399, 505, 490, 475, 460, 445, 430, 415, 506, 491, 476, 461,
446, 431, 507, 492, 477, 462, 447, 508, 493, 478, 463, 509, 494, 479, 510,
495, 511,
};
DECLARE_ALIGNED(16, static const int16_t, default_scan_32x16[512]) = {
0, 32, 1, 64, 33, 2, 96, 65, 34, 3, 128, 97, 66, 35, 4,
160, 129, 98, 67, 36, 5, 192, 161, 130, 99, 68, 37, 6, 224, 193,
162, 131, 100, 69, 38, 7, 256, 225, 194, 163, 132, 101, 70, 39, 8,
288, 257, 226, 195, 164, 133, 102, 71, 40, 9, 320, 289, 258, 227, 196,
165, 134, 103, 72, 41, 10, 352, 321, 290, 259, 228, 197, 166, 135, 104,
73, 42, 11, 384, 353, 322, 291, 260, 229, 198, 167, 136, 105, 74, 43,
12, 416, 385, 354, 323, 292, 261, 230, 199, 168, 137, 106, 75, 44, 13,
448, 417, 386, 355, 324, 293, 262, 231, 200, 169, 138, 107, 76, 45, 14,
480, 449, 418, 387, 356, 325, 294, 263, 232, 201, 170, 139, 108, 77, 46,
15, 481, 450, 419, 388, 357, 326, 295, 264, 233, 202, 171, 140, 109, 78,
47, 16, 482, 451, 420, 389, 358, 327, 296, 265, 234, 203, 172, 141, 110,
79, 48, 17, 483, 452, 421, 390, 359, 328, 297, 266, 235, 204, 173, 142,
111, 80, 49, 18, 484, 453, 422, 391, 360, 329, 298, 267, 236, 205, 174,
143, 112, 81, 50, 19, 485, 454, 423, 392, 361, 330, 299, 268, 237, 206,
175, 144, 113, 82, 51, 20, 486, 455, 424, 393, 362, 331, 300, 269, 238,
207, 176, 145, 114, 83, 52, 21, 487, 456, 425, 394, 363, 332, 301, 270,
239, 208, 177, 146, 115, 84, 53, 22, 488, 457, 426, 395, 364, 333, 302,
271, 240, 209, 178, 147, 116, 85, 54, 23, 489, 458, 427, 396, 365, 334,
303, 272, 241, 210, 179, 148, 117, 86, 55, 24, 490, 459, 428, 397, 366,
335, 304, 273, 242, 211, 180, 149, 118, 87, 56, 25, 491, 460, 429, 398,
367, 336, 305, 274, 243, 212, 181, 150, 119, 88, 57, 26, 492, 461, 430,
399, 368, 337, 306, 275, 244, 213, 182, 151, 120, 89, 58, 27, 493, 462,
431, 400, 369, 338, 307, 276, 245, 214, 183, 152, 121, 90, 59, 28, 494,
463, 432, 401, 370, 339, 308, 277, 246, 215, 184, 153, 122, 91, 60, 29,
495, 464, 433, 402, 371, 340, 309, 278, 247, 216, 185, 154, 123, 92, 61,
30, 496, 465, 434, 403, 372, 341, 310, 279, 248, 217, 186, 155, 124, 93,
62, 31, 497, 466, 435, 404, 373, 342, 311, 280, 249, 218, 187, 156, 125,
94, 63, 498, 467, 436, 405, 374, 343, 312, 281, 250, 219, 188, 157, 126,
95, 499, 468, 437, 406, 375, 344, 313, 282, 251, 220, 189, 158, 127, 500,
469, 438, 407, 376, 345, 314, 283, 252, 221, 190, 159, 501, 470, 439, 408,
377, 346, 315, 284, 253, 222, 191, 502, 471, 440, 409, 378, 347, 316, 285,
254, 223, 503, 472, 441, 410, 379, 348, 317, 286, 255, 504, 473, 442, 411,
380, 349, 318, 287, 505, 474, 443, 412, 381, 350, 319, 506, 475, 444, 413,
382, 351, 507, 476, 445, 414, 383, 508, 477, 446, 415, 509, 478, 447, 510,
479, 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, 49, 34, 19, 4,
80, 65, 50, 35, 20, 5, 96, 81, 66, 51, 36, 21, 6, 112, 97,
82, 67, 52, 37, 22, 7, 128, 113, 98, 83, 68, 53, 38, 23, 8,
144, 129, 114, 99, 84, 69, 54, 39, 24, 9, 160, 145, 130, 115, 100,
85, 70, 55, 40, 25, 10, 176, 161, 146, 131, 116, 101, 86, 71, 56,
41, 26, 11, 192, 177, 162, 147, 132, 117, 102, 87, 72, 57, 42, 27,
12, 208, 193, 178, 163, 148, 133, 118, 103, 88, 73, 58, 43, 28, 13,
224, 209, 194, 179, 164, 149, 134, 119, 104, 89, 74, 59, 44, 29, 14,
240, 225, 210, 195, 180, 165, 150, 135, 120, 105, 90, 75, 60, 45, 30,
15, 241, 226, 211, 196, 181, 166, 151, 136, 121, 106, 91, 76, 61, 46,
31, 242, 227, 212, 197, 182, 167, 152, 137, 122, 107, 92, 77, 62, 47,
243, 228, 213, 198, 183, 168, 153, 138, 123, 108, 93, 78, 63, 244, 229,
214, 199, 184, 169, 154, 139, 124, 109, 94, 79, 245, 230, 215, 200, 185,
170, 155, 140, 125, 110, 95, 246, 231, 216, 201, 186, 171, 156, 141, 126,
111, 247, 232, 217, 202, 187, 172, 157, 142, 127, 248, 233, 218, 203, 188,
173, 158, 143, 249, 234, 219, 204, 189, 174, 159, 250, 235, 220, 205, 190,
175, 251, 236, 221, 206, 191, 252, 237, 222, 207, 253, 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, 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, 3, 128, 97, 66, 35,
4, 160, 129, 98, 67, 36, 5, 192, 161, 130, 99, 68, 37, 6,
224, 193, 162, 131, 100, 69, 38, 7, 256, 225, 194, 163, 132, 101,
70, 39, 8, 288, 257, 226, 195, 164, 133, 102, 71, 40, 9, 320,
289, 258, 227, 196, 165, 134, 103, 72, 41, 10, 352, 321, 290, 259,
228, 197, 166, 135, 104, 73, 42, 11, 384, 353, 322, 291, 260, 229,
198, 167, 136, 105, 74, 43, 12, 416, 385, 354, 323, 292, 261, 230,
199, 168, 137, 106, 75, 44, 13, 448, 417, 386, 355, 324, 293, 262,
231, 200, 169, 138, 107, 76, 45, 14, 480, 449, 418, 387, 356, 325,
294, 263, 232, 201, 170, 139, 108, 77, 46, 15, 512, 481, 450, 419,
388, 357, 326, 295, 264, 233, 202, 171, 140, 109, 78, 47, 16, 544,
513, 482, 451, 420, 389, 358, 327, 296, 265, 234, 203, 172, 141, 110,
79, 48, 17, 576, 545, 514, 483, 452, 421, 390, 359, 328, 297, 266,
235, 204, 173, 142, 111, 80, 49, 18, 608, 577, 546, 515, 484, 453,
422, 391, 360, 329, 298, 267, 236, 205, 174, 143, 112, 81, 50, 19,
640, 609, 578, 547, 516, 485, 454, 423, 392, 361, 330, 299, 268, 237,
206, 175, 144, 113, 82, 51, 20, 672, 641, 610, 579, 548, 517, 486,
455, 424, 393, 362, 331, 300, 269, 238, 207, 176, 145, 114, 83, 52,
21, 704, 673, 642, 611, 580, 549, 518, 487, 456, 425, 394, 363, 332,
301, 270, 239, 208, 177, 146, 115, 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, 768, 737, 706, 675, 644, 613, 582, 551,
520, 489, 458, 427, 396, 365, 334, 303, 272, 241, 210, 179, 148, 117,
86, 55, 24, 800, 769, 738, 707, 676, 645, 614, 583, 552, 521, 490,
459, 428, 397, 366, 335, 304, 273, 242, 211, 180, 149, 118, 87, 56,
25, 832, 801, 770, 739, 708, 677, 646, 615, 584, 553, 522, 491, 460,
429, 398, 367, 336, 305, 274, 243, 212, 181, 150, 119, 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,
896, 865, 834, 803, 772, 741, 710, 679, 648, 617, 586, 555, 524, 493,
462, 431, 400, 369, 338, 307, 276, 245, 214, 183, 152, 121, 90, 59,
28, 928, 897, 866, 835, 804, 773, 742, 711, 680, 649, 618, 587, 556,
525, 494, 463, 432, 401, 370, 339, 308, 277, 246, 215, 184, 153, 122,
91, 60, 29, 960, 929, 898, 867, 836, 805, 774, 743, 712, 681, 650,
619, 588, 557, 526, 495, 464, 433, 402, 371, 340, 309, 278, 247, 216,
185, 154, 123, 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, 900,
869, 838, 807, 776, 745, 714, 683, 652, 621, 590, 559, 528, 497, 466,
435, 404, 373, 342, 311, 280, 249, 218, 187, 156, 125, 94, 63, 994,
963, 932, 901, 870, 839, 808, 777, 746, 715, 684, 653, 622, 591, 560,
529, 498, 467, 436, 405, 374, 343, 312, 281, 250, 219, 188, 157, 126,
95, 995, 964, 933, 902, 871, 840, 809, 778, 747, 716, 685, 654, 623,
592, 561, 530, 499, 468, 437, 406, 375, 344, 313, 282, 251, 220, 189,
158, 127, 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, 904, 873, 842, 811, 780, 749, 718, 687, 656,
625, 594, 563, 532, 501, 470, 439, 408, 377, 346, 315, 284, 253, 222,
191, 998, 967, 936, 905, 874, 843, 812, 781, 750, 719, 688, 657, 626,
595, 564, 533, 502, 471, 440, 409, 378, 347, 316, 285, 254, 223, 999,
968, 937, 906, 875, 844, 813, 782, 751, 720, 689, 658, 627, 596, 565,
534, 503, 472, 441, 410, 379, 348, 317, 286, 255, 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, 908, 877, 846, 815, 784,
753, 722, 691, 660, 629, 598, 567, 536, 505, 474, 443, 412, 381, 350,
319, 1002, 971, 940, 909, 878, 847, 816, 785, 754, 723, 692, 661, 630,
599, 568, 537, 506, 475, 444, 413, 382, 351, 1003, 972, 941, 910, 879,
848, 817, 786, 755, 724, 693, 662, 631, 600, 569, 538, 507, 476, 445,
414, 383, 1004, 973, 942, 911, 880, 849, 818, 787, 756, 725, 694, 663,
632, 601, 570, 539, 508, 477, 446, 415, 1005, 974, 943, 912, 881, 850,
819, 788, 757, 726, 695, 664, 633, 602, 571, 540, 509, 478, 447, 1006,
975, 944, 913, 882, 851, 820, 789, 758, 727, 696, 665, 634, 603, 572,
541, 510, 479, 1007, 976, 945, 914, 883, 852, 821, 790, 759, 728, 697,
666, 635, 604, 573, 542, 511, 1008, 977, 946, 915, 884, 853, 822, 791,
760, 729, 698, 667, 636, 605, 574, 543, 1009, 978, 947, 916, 885, 854,
823, 792, 761, 730, 699, 668, 637, 606, 575, 1010, 979, 948, 917, 886,
855, 824, 793, 762, 731, 700, 669, 638, 607, 1011, 980, 949, 918, 887,
856, 825, 794, 763, 732, 701, 670, 639, 1012, 981, 950, 919, 888, 857,
826, 795, 764, 733, 702, 671, 1013, 982, 951, 920, 889, 858, 827, 796,
765, 734, 703, 1014, 983, 952, 921, 890, 859, 828, 797, 766, 735, 1015,
984, 953, 922, 891, 860, 829, 798, 767, 1016, 985, 954, 923, 892, 861,
830, 799, 1017, 986, 955, 924, 893, 862, 831, 1018, 987, 956, 925, 894,
863, 1019, 988, 957, 926, 895, 1020, 989, 958, 927, 1021, 990, 959, 1022,
991, 1023,
};
DECLARE_ALIGNED(16, static const int16_t,
av1_default_iscan_4x4[16]) = { 0, 2, 5, 9, 1, 4, 8, 12,
3, 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_default_iscan_4x8[32]) = {
0, 2, 5, 9, 1, 4, 8, 13, 3, 7, 12, 17, 6, 11, 16, 21,
10, 15, 20, 25, 14, 19, 24, 28, 18, 23, 27, 30, 22, 26, 29, 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, 2, 5, 9, 13, 17, 21, 25, 1, 4, 8, 12, 16, 20, 24, 28,
3, 7, 11, 15, 19, 23, 27, 30, 6, 10, 14, 18, 22, 26, 29, 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, 2, 5, 9, 1, 4, 8, 13, 3, 7, 12, 17, 6, 11, 16, 21,
10, 15, 20, 25, 14, 19, 24, 29, 18, 23, 28, 33, 22, 27, 32, 37,
26, 31, 36, 41, 30, 35, 40, 45, 34, 39, 44, 49, 38, 43, 48, 53,
42, 47, 52, 57, 46, 51, 56, 60, 50, 55, 59, 62, 54, 58, 61, 63
};
DECLARE_ALIGNED(16, static const int16_t, av1_default_iscan_16x4[64]) = {
0, 2, 5, 9, 13, 17, 21, 25, 29, 33, 37, 41, 45, 49, 53, 57,
1, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60,
3, 7, 11, 15, 19, 23, 27, 31, 35, 39, 43, 47, 51, 55, 59, 62,
6, 10, 14, 18, 22, 26, 30, 34, 38, 42, 46, 50, 54, 58, 61, 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,
};
#if CONFIG_FLEX_PARTITION
DECLARE_ALIGNED(16, static const int16_t, av1_default_iscan_4x32[128]) = {
0, 2, 5, 9, 1, 4, 8, 13, 3, 7, 12, 17, 6, 11, 16,
21, 10, 15, 20, 25, 14, 19, 24, 29, 18, 23, 28, 33, 22, 27,
32, 37, 26, 31, 36, 41, 30, 35, 40, 45, 34, 39, 44, 49, 38,
43, 48, 53, 42, 47, 52, 57, 46, 51, 56, 61, 50, 55, 60, 65,
54, 59, 64, 69, 58, 63, 68, 73, 62, 67, 72, 77, 66, 71, 76,
81, 70, 75, 80, 85, 74, 79, 84, 89, 78, 83, 88, 93, 82, 87,
92, 97, 86, 91, 96, 101, 90, 95, 100, 105, 94, 99, 104, 109, 98,
103, 108, 113, 102, 107, 112, 117, 106, 111, 116, 121, 110, 115, 120, 124,
114, 119, 123, 126, 118, 122, 125, 127
};
DECLARE_ALIGNED(16, static const int16_t, av1_default_iscan_32x4[128]) = {
0, 2, 5, 9, 13, 17, 21, 25, 29, 33, 37, 41, 45, 49, 53, 57,
61, 65, 69, 73, 77, 81, 85, 89, 93, 97, 101, 105, 109, 113, 117, 121,
1, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60,
64, 68, 72, 76, 80, 84, 88, 92, 96, 100, 104, 108, 112, 116, 120, 124,
3, 7, 11, 15, 19, 23, 27, 31, 35, 39, 43, 47, 51, 55, 59, 63,
67, 71, 75, 79, 83, 87, 91, 95, 99, 103, 107, 111, 115, 119, 123, 126,
6, 10, 14, 18, 22, 26, 30, 34, 38, 42, 46, 50, 54, 58, 62, 66,
70, 74, 78, 82, 86, 90, 94, 98, 102, 106, 110, 114, 118, 122, 125, 127,
};
DECLARE_ALIGNED(16, static const int16_t, av1_mrow_iscan_4x32[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_32x4[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_mcol_iscan_4x32[128]) = {
0, 32, 64, 96, 1, 33, 65, 97, 2, 34, 66, 98, 3, 35, 67, 99,
4, 36, 68, 100, 5, 37, 69, 101, 6, 38, 70, 102, 7, 39, 71, 103,
8, 40, 72, 104, 9, 41, 73, 105, 10, 42, 74, 106, 11, 43, 75, 107,
12, 44, 76, 108, 13, 45, 77, 109, 14, 46, 78, 110, 15, 47, 79, 111,
16, 48, 80, 112, 17, 49, 81, 113, 18, 50, 82, 114, 19, 51, 83, 115,
20, 52, 84, 116, 21, 53, 85, 117, 22, 54, 86, 118, 23, 55, 87, 119,
24, 56, 88, 120, 25, 57, 89, 121, 26, 58, 90, 122, 27, 59, 91, 123,
28, 60, 92, 124, 29, 61, 93, 125, 30, 62, 94, 126, 31, 63, 95, 127,
};
DECLARE_ALIGNED(16, static const int16_t, av1_mcol_iscan_32x4[128]) = {
0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60,
64, 68, 72, 76, 80, 84, 88, 92, 96, 100, 104, 108, 112, 116, 120, 124,
1, 5, 9, 13, 17, 21, 25, 29, 33, 37, 41, 45, 49, 53, 57, 61,
65, 69, 73, 77, 81, 85, 89, 93, 97, 101, 105, 109, 113, 117, 121, 125,
2, 6, 10, 14, 18, 22, 26, 30, 34, 38, 42, 46, 50, 54, 58, 62,
66, 70, 74, 78, 82, 86, 90, 94, 98, 102, 106, 110, 114, 118, 122, 126,
3, 7, 11, 15, 19, 23, 27, 31, 35, 39, 43, 47, 51, 55, 59, 63,
67, 71, 75, 79, 83, 87, 91, 95, 99, 103, 107, 111, 115, 119, 123, 127,
};
#endif // CONFIG_FLEX_PARTITION
DECLARE_ALIGNED(16, static const int16_t, av1_default_iscan_8x32[256]) = {
0, 2, 5, 9, 14, 20, 27, 35, 1, 4, 8, 13, 19, 26, 34,
43, 3, 7, 12, 18, 25, 33, 42, 51, 6, 11, 17, 24, 32, 41,
50, 59, 10, 16, 23, 31, 40, 49, 58, 67, 15, 22, 30, 39, 48,
57, 66, 75, 21, 29, 38, 47, 56, 65, 74, 83, 28, 37, 46, 55,
64, 73, 82, 91, 36, 45, 54, 63, 72, 81, 90, 99, 44, 53, 62,
71, 80, 89, 98, 107, 52, 61, 70, 79, 88, 97, 106, 115, 60, 69,
78, 87, 96, 105, 114, 123, 68, 77, 86, 95, 104, 113, 122, 131, 76,
85, 94, 103, 112, 121, 130, 139, 84, 93, 102, 111, 120, 129, 138, 147,
92, 101, 110, 119, 128, 137, 146, 155, 100, 109, 118, 127, 136, 145, 154,
163, 108, 117, 126, 135, 144, 153, 162, 171, 116, 125, 134, 143, 152, 161,
170, 179, 124, 133, 142, 151, 160, 169, 178, 187, 132, 141, 150, 159, 168,
177, 186, 195, 140, 149, 158, 167, 176, 185, 194, 203, 148, 157, 166, 175,
184, 193, 202, 211, 156, 165, 174, 183, 192, 201, 210, 219, 164, 173, 182,
191, 200, 209, 218, 227, 172, 181, 190, 199, 208, 217, 226, 234, 180, 189,
198, 207, 216, 225, 233, 240, 188, 197, 206, 215, 224, 232, 239, 245, 196,
205, 214, 223, 231, 238, 244, 249, 204, 213, 222, 230, 237, 243, 248, 252,
212, 221, 229, 236, 242, 247, 251, 254, 220, 228, 235, 241, 246, 250, 253,
255,
};
DECLARE_ALIGNED(16, static const int16_t, av1_default_iscan_32x8[256]) = {
0, 2, 5, 9, 14, 20, 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, 1, 4, 8, 13, 19, 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, 3, 7, 12, 18, 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, 240, 6, 11, 17, 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, 239, 245, 10, 16, 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, 238, 244, 249, 15, 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, 237, 243, 248, 252, 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, 236, 242, 247, 251, 254, 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, 235, 241, 246, 250, 253,
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_default_iscan_8x8[64]) = {
0, 2, 5, 9, 14, 20, 27, 35, 1, 4, 8, 13, 19, 26, 34, 42,
3, 7, 12, 18, 25, 33, 41, 48, 6, 11, 17, 24, 32, 40, 47, 53,
10, 16, 23, 31, 39, 46, 52, 57, 15, 22, 30, 38, 45, 51, 56, 60,
21, 29, 37, 44, 50, 55, 59, 62, 28, 36, 43, 49, 54, 58, 61, 63
};
DECLARE_ALIGNED(16, static const int16_t, av1_default_iscan_8x16[128]) = {
0, 2, 5, 9, 14, 20, 27, 35, 1, 4, 8, 13, 19, 26, 34, 43,
3, 7, 12, 18, 25, 33, 42, 51, 6, 11, 17, 24, 32, 41, 50, 59,
10, 16, 23, 31, 40, 49, 58, 67, 15, 22, 30, 39, 48, 57, 66, 75,
21, 29, 38, 47, 56, 65, 74, 83, 28, 37, 46, 55, 64, 73, 82, 91,
36, 45, 54, 63, 72, 81, 90, 99, 44, 53, 62, 71, 80, 89, 98, 106,
52, 61, 70, 79, 88, 97, 105, 112, 60, 69, 78, 87, 96, 104, 111, 117,
68, 77, 86, 95, 103, 110, 116, 121, 76, 85, 94, 102, 109, 115, 120, 124,
84, 93, 101, 108, 114, 119, 123, 126, 92, 100, 107, 113, 118, 122, 125, 127,
};
DECLARE_ALIGNED(16, static const int16_t, av1_default_iscan_16x8[128]) = {
0, 2, 5, 9, 14, 20, 27, 35, 43, 51, 59, 67, 75, 83, 91, 99,
1, 4, 8, 13, 19, 26, 34, 42, 50, 58, 66, 74, 82, 90, 98, 106,
3, 7, 12, 18, 25, 33, 41, 49, 57, 65, 73, 81, 89, 97, 105, 112,
6, 11, 17, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 104, 111, 117,
10, 16, 23, 31, 39, 47, 55, 63, 71, 79, 87, 95, 103, 110, 116, 121,
15, 22, 30, 38, 46, 54, 62, 70, 78, 86, 94, 102, 109, 115, 120, 124,
21, 29, 37, 45, 53, 61, 69, 77, 85, 93, 101, 108, 114, 119, 123, 126,
28, 36, 44, 52, 60, 68, 76, 84, 92, 100, 107, 113, 118, 122, 125, 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, 2, 5, 9, 14, 20, 27, 35, 44, 54, 65, 77, 90, 104, 119,
135, 1, 4, 8, 13, 19, 26, 34, 43, 53, 64, 76, 89, 103, 118,
134, 151, 3, 7, 12, 18, 25, 33, 42, 52, 63, 75, 88, 102, 117,
133, 150, 167, 6, 11, 17, 24, 32, 41, 51, 62, 74, 87, 101, 116,
132, 149, 166, 183, 10, 16, 23, 31, 40, 50, 61, 73, 86, 100, 115,
131, 148, 165, 182, 199, 15, 22, 30, 39, 49, 60, 72, 85, 99, 114,
130, 147, 164, 181, 198, 215, 21, 29, 38, 48, 59, 71, 84, 98, 113,
129, 146, 163, 180, 197, 214, 231, 28, 37, 47, 58, 70, 83, 97, 112,
128, 145, 162, 179, 196, 213, 230, 247, 36, 46, 57, 69, 82, 96, 111,
127, 144, 161, 178, 195, 212, 229, 246, 263, 45, 56, 68, 81, 95, 110,
126, 143, 160, 177, 194, 211, 228, 245, 262, 279, 55, 67, 80, 94, 109,
125, 142, 159, 176, 193, 210, 227, 244, 261, 278, 295, 66, 79, 93, 108,
124, 141, 158, 175, 192, 209, 226, 243, 260, 277, 294, 311, 78, 92, 107,
123, 140, 157, 174, 191, 208, 225, 242, 259, 276, 293, 310, 327, 91, 106,
122, 139, 156, 173, 190, 207, 224, 241, 258, 275, 292, 309, 326, 343, 105,
121, 138, 155, 172, 189, 206, 223, 240, 257, 274, 291, 308, 325, 342, 359,
120, 137, 154, 171, 188, 205, 222, 239, 256, 273, 290, 307, 324, 341, 358,
375, 136, 153, 170, 187, 204, 221, 238, 255, 272, 289, 306, 323, 340, 357,
374, 391, 152, 169, 186, 203, 220, 237, 254, 271, 288, 305, 322, 339, 356,
373, 390, 406, 168, 185, 202, 219, 236, 253, 270, 287, 304, 321, 338, 355,
372, 389, 405, 420, 184, 201, 218, 235, 252, 269, 286, 303, 320, 337, 354,
371, 388, 404, 419, 433, 200, 217, 234, 251, 268, 285, 302, 319, 336, 353,
370, 387, 403, 418, 432, 445, 216, 233, 250, 267, 284, 301, 318, 335, 352,
369, 386, 402, 417, 431, 444, 456, 232, 249, 266, 283, 300, 317, 334, 351,
368, 385, 401, 416, 430, 443, 455, 466, 248, 265, 282, 299, 316, 333, 350,
367, 384, 400, 415, 429, 442, 454, 465, 475, 264, 281, 298, 315, 332, 349,
366, 383, 399, 414, 428, 441, 453, 464, 474, 483, 280, 297, 314, 331, 348,
365, 382, 398, 413, 427, 440, 452, 463, 473, 482, 490, 296, 313, 330, 347,
364, 381, 397, 412, 426, 439, 451, 462, 472, 481, 489, 496, 312, 329, 346,
363, 380, 396, 411, 425, 438, 450, 461, 471, 480, 488, 495, 501, 328, 345,
362, 379, 395, 410, 424, 437, 449, 460, 470, 479, 487, 494, 500, 505, 344,
361, 378, 394, 409, 423, 436, 448, 459, 469, 478, 486, 493, 499, 504, 508,
360, 377, 393, 408, 422, 435, 447, 458, 468, 477, 485, 492, 498, 503, 507,
510, 376, 392, 407, 421, 434, 446, 457, 467, 476, 484, 491, 497, 502, 506,
509, 511
};
DECLARE_ALIGNED(16, static const int16_t, av1_default_iscan_32x16[512]) = {
0, 2, 5, 9, 14, 20, 27, 35, 44, 54, 65, 77, 90, 104, 119,
135, 151, 167, 183, 199, 215, 231, 247, 263, 279, 295, 311, 327, 343, 359,
375, 391, 1, 4, 8, 13, 19, 26, 34, 43, 53, 64, 76, 89, 103,
118, 134, 150, 166, 182, 198, 214, 230, 246, 262, 278, 294, 310, 326, 342,
358, 374, 390, 406, 3, 7, 12, 18, 25, 33, 42, 52, 63, 75, 88,
102, 117, 133, 149, 165, 181, 197, 213, 229, 245, 261, 277, 293, 309, 325,
341, 357, 373, 389, 405, 420, 6, 11, 17, 24, 32, 41, 51, 62, 74,
87, 101, 116, 132, 148, 164, 180, 196, 212, 228, 244, 260, 276, 292, 308,
324, 340, 356, 372, 388, 404, 419, 433, 10, 16, 23, 31, 40, 50, 61,
73, 86, 100, 115, 131, 147, 163, 179, 195, 211, 227, 243, 259, 275, 291,
307, 323, 339, 355, 371, 387, 403, 418, 432, 445, 15, 22, 30, 39, 49,
60, 72, 85, 99, 114, 130, 146, 162, 178, 194, 210, 226, 242, 258, 274,
290, 306, 322, 338, 354, 370, 386, 402, 417, 431, 444, 456, 21, 29, 38,
48, 59, 71, 84, 98, 113, 129, 145, 161, 177, 193, 209, 225, 241, 257,
273, 289, 305, 321, 337, 353, 369, 385, 401, 416, 430, 443, 455, 466, 28,
37, 47, 58, 70, 83, 97, 112, 128, 144, 160, 176, 192, 208, 224, 240,
256, 272, 288, 304, 320, 336, 352, 368, 384, 400, 415, 429, 442, 454, 465,
475, 36, 46, 57, 69, 82, 96, 111, 127, 143, 159, 175, 191, 207, 223,
239, 255, 271, 287, 303, 319, 335, 351, 367, 383, 399, 414, 428, 441, 453,
464, 474, 483, 45, 56, 68, 81, 95, 110, 126, 142, 158, 174, 190, 206,
222, 238, 254, 270, 286, 302, 318, 334, 350, 366, 382, 398, 413, 427, 440,
452, 463, 473, 482, 490, 55, 67, 80, 94, 109, 125, 141, 157, 173, 189,
205, 221, 237, 253, 269, 285, 301, 317, 333, 349, 365, 381, 397, 412, 426,
439, 451, 462, 472, 481, 489, 496, 66, 79, 93, 108, 124, 140, 156, 172,
188, 204, 220, 236, 252, 268, 284, 300, 316, 332, 348, 364, 380, 396, 411,
425, 438, 450, 461, 471, 480, 488, 495, 501, 78, 92, 107, 123, 139, 155,
171, 187, 203, 219, 235, 251, 267, 283, 299, 315, 331, 347, 363, 379, 395,
410, 424, 437, 449, 460, 470, 479, 487, 494, 500, 505, 91, 106, 122, 138,
154, 170, 186, 202, 218, 234, 250, 266, 282, 298, 314, 330, 346, 362, 378,
394, 409, 423, 436, 448, 459, 469, 478, 486, 493, 499, 504, 508, 105, 121,
137, 153, 169, 185, 201, 217, 233, 249, 265, 281, 297, 313, 329, 345, 361,
377, 393, 408, 422, 435, 447, 458, 468, 477, 485, 492, 498, 503, 507, 510,
120, 136, 152, 168, 184, 200, 216, 232, 248, 264, 280, 296, 312, 328, 344,
360, 376, 392, 407, 421, 434, 446, 457, 467, 476, 484, 491, 497, 502, 506,
509, 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_default_iscan_16x16[256]) = {
0, 2, 5, 9, 14, 20, 27, 35, 44, 54, 65, 77, 90, 104, 119,
135, 1, 4, 8, 13, 19, 26, 34, 43, 53, 64, 76, 89, 103, 118,
134, 150, 3, 7, 12, 18, 25, 33, 42, 52, 63, 75, 88, 102, 117,
133, 149, 164, 6, 11, 17, 24, 32, 41, 51, 62, 74, 87, 101, 116,
132, 148, 163, 177, 10, 16, 23, 31, 40, 50, 61, 73, 86, 100, 115,
131, 147, 162, 176, 189, 15, 22, 30, 39, 49, 60, 72, 85, 99, 114,
130, 146, 161, 175, 188, 200, 21, 29, 38, 48, 59, 71, 84, 98, 113,
129, 145, 160, 174, 187, 199, 210, 28, 37, 47, 58, 70, 83, 97, 112,
128, 144, 159, 173, 186, 198, 209, 219, 36, 46, 57, 69, 82, 96, 111,
127, 143, 158, 172, 185, 197, 208, 218, 227, 45, 56, 68, 81, 95, 110,
126, 142, 157, 171, 184, 196, 207, 217, 226, 234, 55, 67, 80, 94, 109,
125, 141, 156, 170, 183, 195, 206, 216, 225, 233, 240, 66, 79, 93, 108,
124, 140, 155, 169, 182, 194, 205, 215, 224, 232, 239, 245, 78, 92, 107,
123, 139, 154, 168, 181, 193, 204, 214, 223, 231, 238, 244, 249, 91, 106,
122, 138, 153, 167, 180, 192, 203, 213, 222, 230, 237, 243, 248, 252, 105,
121, 137, 152, 166, 179, 191, 202, 212, 221, 229, 236, 242, 247, 251, 254,
120, 136, 151, 165, 178, 190, 201, 211, 220, 228, 235, 241, 246, 250, 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, 9, 14, 20, 27, 35, 44, 54, 65, 77, 90,
104, 119, 135, 152, 170, 189, 209, 230, 252, 275, 299, 324, 350,
377, 405, 434, 464, 495, 527, 1, 4, 8, 13, 19, 26, 34,
43, 53, 64, 76, 89, 103, 118, 134, 151, 169, 188, 208, 229,
251, 274, 298, 323, 349, 376, 404, 433, 463, 494, 526, 558, 3,
7, 12, 18, 25, 33, 42, 52, 63, 75, 88, 102, 117, 133,
150, 168, 187, 207, 228, 250, 273, 297, 322, 348, 375, 403, 432,
462, 493, 525, 557, 588, 6, 11, 17, 24, 32, 41, 51, 62,
74, 87, 101, 116, 132, 149, 167, 186, 206, 227, 249, 272, 296,
321, 347, 374, 402, 431, 461, 492, 524, 556, 587, 617, 10, 16,
23, 31, 40, 50, 61, 73, 86, 100, 115, 131, 148, 166, 185,
205, 226, 248, 271, 295, 320, 346, 373, 401, 430, 460, 491, 523,
555, 586, 616, 645, 15, 22, 30, 39, 49, 60, 72, 85, 99,
114, 130, 147, 165, 184, 204, 225, 247, 270, 294, 319, 345, 372,
400, 429, 459, 490, 522, 554, 585, 615, 644, 672, 21, 29, 38,
48, 59, 71, 84, 98, 113, 129, 146, 164, 183, 203, 224, 246,
269, 293, 318, 344, 371, 399, 428, 458, 489, 521, 553, 584, 614,
643, 671, 698, 28, 37, 47, 58, 70, 83, 97, 112, 128, 145,
163, 182, 202, 223, 245, 268, 292, 317, 343, 370, 398, 427, 457,
488, 520, 552, 583, 613, 642, 670, 697, 723, 36, 46, 57, 69,
82, 96, 111, 127, 144, 162, 181, 201, 222, 244, 267, 291, 316,
342, 369, 397, 426, 456, 487, 519, 551, 582, 612, 641, 669, 696,
722, 747, 45, 56, 68, 81, 95, 110, 126, 143, 161, 180, 200,
221, 243, 266, 290, 315, 341, 368, 396, 425, 455, 486, 518, 550,
581, 611, 640, 668, 695, 721, 746, 770, 55, 67, 80, 94, 109,
125, 142, 160, 179, 199, 220, 242, 265, 289, 314, 340, 367, 395,
424, 454, 485, 517, 549, 580, 610, 639, 667, 694, 720, 745, 769,
792, 66, 79, 93, 108, 124, 141, 159, 178, 198, 219, 241, 264,
288, 313, 339, 366, 394, 423, 453, 484, 516, 548, 579, 609, 638,
666, 693, 719, 744, 768, 791, 813, 78, 92, 107, 123, 140, 158,
177, 197, 218, 240, 263, 287, 312, 338, 365, 393, 422, 452, 483,
515, 547, 578, 608, 637, 665, 692, 718, 743, 767, 790, 812, 833,
91, 106, 122, 139, 157, 176, 196, 217, 239, 262, 286, 311, 337,
364, 392, 421, 451, 482, 514, 546, 577, 607, 636, 664, 691, 717,
742, 766, 789, 811, 832, 852, 105, 121, 138, 156, 175, 195, 216,
238, 261, 285, 310, 336, 363, 391, 420, 450, 481, 513, 545, 576,
606, 635, 663, 690, 716, 741, 765, 788, 810, 831, 851, 870, 120,
137, 155, 174, 194, 215, 237, 260, 284, 309, 335, 362, 390, 419,
449, 480, 512, 544, 575, 605, 634, 662, 689, 715, 740, 764, 787,
809, 830, 850, 869, 887, 136, 154, 173, 193, 214, 236, 259, 283,
308, 334, 361, 389, 418, 448, 479, 511, 543, 574, 604, 633, 661,
688, 714, 739, 763, 786, 808, 829, 849, 868, 886, 903, 153, 172,
192, 213, 235, 258, 282, 307, 333, 360, 388, 417, 447, 478, 510,
542, 573, 603, 632, 660, 687, 713, 738, 762, 785, 807, 828, 848,
867, 885, 902, 918, 171, 191, 212, 234, 257, 281, 306, 332, 359,
387, 416, 446, 477, 509, 541, 572, 602, 631, 659, 686, 712, 737,
761, 784, 806, 827, 847, 866, 884, 901, 917, 932, 190, 211, 233,
256, 280, 305, 331, 358, 386, 415, 445, 476, 508, 540, 571, 601,
630, 658, 685, 711, 736, 760, 783, 805, 826, 846, 865, 883, 900,
916, 931, 945, 210, 232, 255, 279, 304, 330, 357, 385, 414, 444,
475, 507, 539, 570, 600, 629, 657, 684, 710, 735, 759, 782, 804,
825, 845, 864, 882, 899, 915, 930, 944, 957, 231, 254, 278, 303,
329, 356, 384, 413, 443, 474, 506, 538, 569, 599, 628, 656, 683,
709, 734, 758, 781, 803, 824, 844, 863, 881, 898, 914, 929, 943,
956, 968, 253, 277, 302, 328, 355, 383, 412, 442, 473, 505, 537,
568, 598, 627, 655, 682, 708, 733, 757, 780, 802, 823, 843, 862,
880, 897, 913, 928, 942, 955, 967, 978, 276, 301, 327, 354, 382,
411, 441, 472, 504, 536, 567, 597, 626, 654, 681, 707, 732, 756,
779, 801, 822, 842, 861, 879, 896, 912, 927, 941, 954, 966, 977,
987, 300, 326, 353, 381, 410, 440, 471, 503, 535, 566, 596, 625,
653, 680, 706, 731, 755, 778, 800, 821, 841, 860, 878, 895, 911,
926, 940, 953, 965, 976, 986, 995, 325, 352, 380, 409, 439, 470,
502, 534, 565, 595, 624, 652, 679, 705, 730, 754, 777, 799, 820,
840, 859, 877, 894, 910, 925, 939, 952, 964, 975, 985, 994, 1002,
351, 379, 408, 438, 469, 501, 533, 564, 594, 623, 651, 678, 704,
729, 753, 776, 798, 819, 839, 858, 876, 893, 909, 924, 938, 951,
963, 974, 984, 993, 1001, 1008, 378, 407, 437, 468, 500, 532, 563,
593, 622, 650, 677, 703, 728, 752, 775, 797, 818, 838, 857, 875,
892, 908, 923, 937, 950, 962, 973, 983, 992, 1000, 1007, 1013, 406,
436, 467, 499, 531, 562, 592, 621, 649, 676, 702, 727, 751, 774,
796, 817, 837, 856, 874, 891, 907, 922, 936, 949, 961, 972, 982,
991, 999, 1006, 1012, 1017, 435, 466, 498, 530, 561, 591, 620, 648,
675, 701, 726, 750, 773, 795, 816, 836, 855, 873, 890, 906, 921,
935, 948, 960, 971, 981, 990, 998, 1005, 1011, 1016, 1020, 465, 497,
529, 560, 590, 619, 647, 674, 700, 725, 749, 772, 794, 815, 835,
854, 872, 889, 905, 920, 934, 947, 959, 970, 980, 989, 997, 1004,
1010, 1015, 1019, 1022, 496, 528, 559, 589, 618, 646, 673, 699, 724,
748, 771, 793, 814, 834, 853, 871, 888, 904, 919, 933, 946, 958,
969, 979, 988, 996, 1003, 1009, 1014, 1018, 1021, 1023
};
const SCAN_ORDER av1_default_scan_orders[TX_SIZES] = {
{ default_scan_4x4, av1_default_iscan_4x4 },
{ default_scan_8x8, av1_default_iscan_8x8 },
{ default_scan_16x16, av1_default_iscan_16x16 },
{ default_scan_32x32, av1_default_iscan_32x32 },
// Half of the coefficients of tx64 at higher frequencies are set to
// zeros. So tx32's scan order is used.
{ default_scan_32x32, av1_default_iscan_32x32 },
};
const SCAN_ORDER av1_scan_orders[TX_SIZES_ALL][TX_TYPES] = {
{
// TX_4X4
{ default_scan_4x4, av1_default_iscan_4x4 },
{ default_scan_4x4, av1_default_iscan_4x4 },
{ default_scan_4x4, av1_default_iscan_4x4 },
{ default_scan_4x4, av1_default_iscan_4x4 },
{ default_scan_4x4, av1_default_iscan_4x4 },
{ default_scan_4x4, av1_default_iscan_4x4 },
{ default_scan_4x4, av1_default_iscan_4x4 },
{ default_scan_4x4, av1_default_iscan_4x4 },
{ default_scan_4x4, av1_default_iscan_4x4 },
{ default_scan_4x4, av1_default_iscan_4x4 },
{ mrow_scan_4x4, av1_mrow_iscan_4x4 },
{ mcol_scan_4x4, av1_mcol_iscan_4x4 },
{ mrow_scan_4x4, av1_mrow_iscan_4x4 },
{ mcol_scan_4x4, av1_mcol_iscan_4x4 },
{ mrow_scan_4x4, av1_mrow_iscan_4x4 },
{ mcol_scan_4x4, av1_mcol_iscan_4x4 },
},
{
// TX_8X8
{ default_scan_8x8, av1_default_iscan_8x8 },
{ default_scan_8x8, av1_default_iscan_8x8 },
{ default_scan_8x8, av1_default_iscan_8x8 },
{ default_scan_8x8, av1_default_iscan_8x8 },
{ default_scan_8x8, av1_default_iscan_8x8 },
{ default_scan_8x8, av1_default_iscan_8x8 },
{ default_scan_8x8, av1_default_iscan_8x8 },
{ default_scan_8x8, av1_default_iscan_8x8 },
{ default_scan_8x8, av1_default_iscan_8x8 },
{ default_scan_8x8, av1_default_iscan_8x8 },
{ mrow_scan_8x8, av1_mrow_iscan_8x8 },
{ mcol_scan_8x8, av1_mcol_iscan_8x8 },
{ mrow_scan_8x8, av1_mrow_iscan_8x8 },
{ mcol_scan_8x8, av1_mcol_iscan_8x8 },
{ mrow_scan_8x8, av1_mrow_iscan_8x8 },
{ mcol_scan_8x8, av1_mcol_iscan_8x8 },
},
{
// TX_16X16
{ default_scan_16x16, av1_default_iscan_16x16 },
{ default_scan_16x16, av1_default_iscan_16x16 },
{ default_scan_16x16, av1_default_iscan_16x16 },
{ default_scan_16x16, av1_default_iscan_16x16 },
{ default_scan_16x16, av1_default_iscan_16x16 },
{ default_scan_16x16, av1_default_iscan_16x16 },
{ default_scan_16x16, av1_default_iscan_16x16 },
{ default_scan_16x16, av1_default_iscan_16x16 },
{ default_scan_16x16, av1_default_iscan_16x16 },
{ default_scan_16x16, av1_default_iscan_16x16 },
{ mrow_scan_16x16, av1_mrow_iscan_16x16 },
{ mcol_scan_16x16, av1_mcol_iscan_16x16 },
{ mrow_scan_16x16, av1_mrow_iscan_16x16 },
{ mcol_scan_16x16, av1_mcol_iscan_16x16 },
{ mrow_scan_16x16, av1_mrow_iscan_16x16 },
{ mcol_scan_16x16, av1_mcol_iscan_16x16 },
},
{
// TX_32X32
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ mrow_scan_32x32, av1_mrow_iscan_32x32 },
{ mcol_scan_32x32, av1_mcol_iscan_32x32 },
{ mrow_scan_32x32, av1_mrow_iscan_32x32 },
{ mcol_scan_32x32, av1_mcol_iscan_32x32 },
{ mrow_scan_32x32, av1_mrow_iscan_32x32 },
{ mcol_scan_32x32, av1_mcol_iscan_32x32 },
},
{
// TX_64X64
// Half of the coefficients of tx64 at higher frequencies are set to
// zeros. So tx32's scan order is used.
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ mrow_scan_32x32, av1_mrow_iscan_32x32 },
{ mcol_scan_32x32, av1_mcol_iscan_32x32 },
{ mrow_scan_32x32, av1_mrow_iscan_32x32 },
{ mcol_scan_32x32, av1_mcol_iscan_32x32 },
{ mrow_scan_32x32, av1_mrow_iscan_32x32 },
{ mcol_scan_32x32, av1_mcol_iscan_32x32 },
},
{
// TX_4X8
{ default_scan_4x8, av1_default_iscan_4x8 },
{ default_scan_4x8, av1_default_iscan_4x8 },
{ default_scan_4x8, av1_default_iscan_4x8 },
{ default_scan_4x8, av1_default_iscan_4x8 },
{ default_scan_4x8, av1_default_iscan_4x8 },
{ default_scan_4x8, av1_default_iscan_4x8 },
{ default_scan_4x8, av1_default_iscan_4x8 },
{ default_scan_4x8, av1_default_iscan_4x8 },
{ default_scan_4x8, av1_default_iscan_4x8 },
{ default_scan_4x8, av1_default_iscan_4x8 },
{ mrow_scan_4x8, av1_mrow_iscan_4x8 },
{ mcol_scan_4x8, av1_mcol_iscan_4x8 },
{ mrow_scan_4x8, av1_mrow_iscan_4x8 },
{ mcol_scan_4x8, av1_mcol_iscan_4x8 },
{ mrow_scan_4x8, av1_mrow_iscan_4x8 },
{ mcol_scan_4x8, av1_mcol_iscan_4x8 },
},
{
// TX_8X4
{ default_scan_8x4, av1_default_iscan_8x4 },
{ default_scan_8x4, av1_default_iscan_8x4 },
{ default_scan_8x4, av1_default_iscan_8x4 },
{ default_scan_8x4, av1_default_iscan_8x4 },
{ default_scan_8x4, av1_default_iscan_8x4 },
{ default_scan_8x4, av1_default_iscan_8x4 },
{ default_scan_8x4, av1_default_iscan_8x4 },
{ default_scan_8x4, av1_default_iscan_8x4 },
{ default_scan_8x4, av1_default_iscan_8x4 },
{ default_scan_8x4, av1_default_iscan_8x4 },
{ mrow_scan_8x4, av1_mrow_iscan_8x4 },
{ mcol_scan_8x4, av1_mcol_iscan_8x4 },
{ mrow_scan_8x4, av1_mrow_iscan_8x4 },
{ mcol_scan_8x4, av1_mcol_iscan_8x4 },
{ mrow_scan_8x4, av1_mrow_iscan_8x4 },
{ mcol_scan_8x4, av1_mcol_iscan_8x4 },
},
{
// TX_8X16
{ default_scan_8x16, av1_default_iscan_8x16 },
{ default_scan_8x16, av1_default_iscan_8x16 },
{ default_scan_8x16, av1_default_iscan_8x16 },
{ default_scan_8x16, av1_default_iscan_8x16 },
{ default_scan_8x16, av1_default_iscan_8x16 },
{ default_scan_8x16, av1_default_iscan_8x16 },
{ default_scan_8x16, av1_default_iscan_8x16 },
{ default_scan_8x16, av1_default_iscan_8x16 },
{ default_scan_8x16, av1_default_iscan_8x16 },
{ default_scan_8x16, av1_default_iscan_8x16 },
{ mrow_scan_8x16, av1_mrow_iscan_8x16 },
{ mcol_scan_8x16, av1_mcol_iscan_8x16 },
{ mrow_scan_8x16, av1_mrow_iscan_8x16 },
{ mcol_scan_8x16, av1_mcol_iscan_8x16 },
{ mrow_scan_8x16, av1_mrow_iscan_8x16 },
{ mcol_scan_8x16, av1_mcol_iscan_8x16 },
},
{
// TX_16X8
{ default_scan_16x8, av1_default_iscan_16x8 },
{ default_scan_16x8, av1_default_iscan_16x8 },
{ default_scan_16x8, av1_default_iscan_16x8 },
{ default_scan_16x8, av1_default_iscan_16x8 },
{ default_scan_16x8, av1_default_iscan_16x8 },
{ default_scan_16x8, av1_default_iscan_16x8 },
{ default_scan_16x8, av1_default_iscan_16x8 },
{ default_scan_16x8, av1_default_iscan_16x8 },
{ default_scan_16x8, av1_default_iscan_16x8 },
{ default_scan_16x8, av1_default_iscan_16x8 },
{ mrow_scan_16x8, av1_mrow_iscan_16x8 },
{ mcol_scan_16x8, av1_mcol_iscan_16x8 },
{ mrow_scan_16x8, av1_mrow_iscan_16x8 },
{ mcol_scan_16x8, av1_mcol_iscan_16x8 },
{ mrow_scan_16x8, av1_mrow_iscan_16x8 },
{ mcol_scan_16x8, av1_mcol_iscan_16x8 },
},
{
// TX_16X32
{ default_scan_16x32, av1_default_iscan_16x32 },
{ default_scan_16x32, av1_default_iscan_16x32 },
{ default_scan_16x32, av1_default_iscan_16x32 },
{ default_scan_16x32, av1_default_iscan_16x32 },
{ default_scan_16x32, av1_default_iscan_16x32 },
{ default_scan_16x32, av1_default_iscan_16x32 },
{ default_scan_16x32, av1_default_iscan_16x32 },
{ default_scan_16x32, av1_default_iscan_16x32 },
{ default_scan_16x32, av1_default_iscan_16x32 },
{ default_scan_16x32, av1_default_iscan_16x32 },
{ mrow_scan_16x32, av1_mrow_iscan_16x32 },
{ mcol_scan_16x32, av1_mcol_iscan_16x32 },
{ mrow_scan_16x32, av1_mrow_iscan_16x32 },
{ mcol_scan_16x32, av1_mcol_iscan_16x32 },
{ mrow_scan_16x32, av1_mrow_iscan_16x32 },
{ mcol_scan_16x32, av1_mcol_iscan_16x32 },
},
{
// TX_32X16
{ default_scan_32x16, av1_default_iscan_32x16 },
{ default_scan_32x16, av1_default_iscan_32x16 },
{ default_scan_32x16, av1_default_iscan_32x16 },
{ default_scan_32x16, av1_default_iscan_32x16 },
{ default_scan_32x16, av1_default_iscan_32x16 },
{ default_scan_32x16, av1_default_iscan_32x16 },
{ default_scan_32x16, av1_default_iscan_32x16 },
{ default_scan_32x16, av1_default_iscan_32x16 },
{ default_scan_32x16, av1_default_iscan_32x16 },
{ default_scan_32x16, av1_default_iscan_32x16 },
{ mrow_scan_32x16, av1_mrow_iscan_32x16 },
{ mcol_scan_32x16, av1_mcol_iscan_32x16 },
{ mrow_scan_32x16, av1_mrow_iscan_32x16 },
{ mcol_scan_32x16, av1_mcol_iscan_32x16 },
{ mrow_scan_32x16, av1_mrow_iscan_32x16 },
{ mcol_scan_32x16, av1_mcol_iscan_32x16 },
},
{
// TX_32X64
// Half of the coefficients of tx64 at higher frequencies are set to
// zeros. So tx32's scan order is used.
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ mrow_scan_32x32, av1_mrow_iscan_32x32 },
{ mcol_scan_32x32, av1_mcol_iscan_32x32 },
{ mrow_scan_32x32, av1_mrow_iscan_32x32 },
{ mcol_scan_32x32, av1_mcol_iscan_32x32 },
{ mrow_scan_32x32, av1_mrow_iscan_32x32 },
{ mcol_scan_32x32, av1_mcol_iscan_32x32 },
},
{
// TX_64X32
// Half of the coefficients of tx64 at higher frequencies are set to
// zeros. So tx32's scan order is used.
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ default_scan_32x32, av1_default_iscan_32x32 },
{ mrow_scan_32x32, av1_mrow_iscan_32x32 },
{ mcol_scan_32x32, av1_mcol_iscan_32x32 },
{ mrow_scan_32x32, av1_mrow_iscan_32x32 },
{ mcol_scan_32x32, av1_mcol_iscan_32x32 },
{ mrow_scan_32x32, av1_mrow_iscan_32x32 },
{ mcol_scan_32x32, av1_mcol_iscan_32x32 },
},
{
// TX_4X16
{ default_scan_4x16, av1_default_iscan_4x16 },
{ default_scan_4x16, av1_default_iscan_4x16 },
{ default_scan_4x16, av1_default_iscan_4x16 },
{ default_scan_4x16, av1_default_iscan_4x16 },
{ default_scan_4x16, av1_default_iscan_4x16 },
{ default_scan_4x16, av1_default_iscan_4x16 },
{ default_scan_4x16, av1_default_iscan_4x16 },
{ default_scan_4x16, av1_default_iscan_4x16 },
{ default_scan_4x16, av1_default_iscan_4x16 },
{ default_scan_4x16, av1_default_iscan_4x16 },
{ mrow_scan_4x16, av1_mrow_iscan_4x16 },
{ mcol_scan_4x16, av1_mcol_iscan_4x16 },
{ mrow_scan_4x16, av1_mrow_iscan_4x16 },
{ mcol_scan_4x16, av1_mcol_iscan_4x16 },
{ mrow_scan_4x16, av1_mrow_iscan_4x16 },
{ mcol_scan_4x16, av1_mcol_iscan_4x16 },
},
{
// TX_16X4
{ default_scan_16x4, av1_default_iscan_16x4 },
{ default_scan_16x4, av1_default_iscan_16x4 },
{ default_scan_16x4, av1_default_iscan_16x4 },
{ default_scan_16x4, av1_default_iscan_16x4 },
{ default_scan_16x4, av1_default_iscan_16x4 },
{ default_scan_16x4, av1_default_iscan_16x4 },
{ default_scan_16x4, av1_default_iscan_16x4 },
{ default_scan_16x4, av1_default_iscan_16x4 },
{ default_scan_16x4, av1_default_iscan_16x4 },
{ default_scan_16x4, av1_default_iscan_16x4 },
{ mrow_scan_16x4, av1_mrow_iscan_16x4 },
{ mcol_scan_16x4, av1_mcol_iscan_16x4 },
{ mrow_scan_16x4, av1_mrow_iscan_16x4 },
{ mcol_scan_16x4, av1_mcol_iscan_16x4 },
{ mrow_scan_16x4, av1_mrow_iscan_16x4 },
{ mcol_scan_16x4, av1_mcol_iscan_16x4 },
},
{
// TX_8X32
{ default_scan_8x32, av1_default_iscan_8x32 },
{ default_scan_8x32, av1_default_iscan_8x32 },
{ default_scan_8x32, av1_default_iscan_8x32 },
{ default_scan_8x32, av1_default_iscan_8x32 },
{ default_scan_8x32, av1_default_iscan_8x32 },
{ default_scan_8x32, av1_default_iscan_8x32 },
{ default_scan_8x32, av1_default_iscan_8x32 },
{ default_scan_8x32, av1_default_iscan_8x32 },
{ default_scan_8x32, av1_default_iscan_8x32 },
{ default_scan_8x32, av1_default_iscan_8x32 },
{ mrow_scan_8x32, av1_mrow_iscan_8x32 },
{ mcol_scan_8x32, av1_mcol_iscan_8x32 },
{ mrow_scan_8x32, av1_mrow_iscan_8x32 },
{ mcol_scan_8x32, av1_mcol_iscan_8x32 },
{ mrow_scan_8x32, av1_mrow_iscan_8x32 },
{ mcol_scan_8x32, av1_mcol_iscan_8x32 },
},
{
// TX_32X8
{ default_scan_32x8, av1_default_iscan_32x8 },
{ default_scan_32x8, av1_default_iscan_32x8 },
{ default_scan_32x8, av1_default_iscan_32x8 },
{ default_scan_32x8, av1_default_iscan_32x8 },
{ default_scan_32x8, av1_default_iscan_32x8 },
{ default_scan_32x8, av1_default_iscan_32x8 },
{ default_scan_32x8, av1_default_iscan_32x8 },
{ default_scan_32x8, av1_default_iscan_32x8 },
{ default_scan_32x8, av1_default_iscan_32x8 },
{ default_scan_32x8, av1_default_iscan_32x8 },
{ mrow_scan_32x8, av1_mrow_iscan_32x8 },
{ mcol_scan_32x8, av1_mcol_iscan_32x8 },
{ mrow_scan_32x8, av1_mrow_iscan_32x8 },
{ mcol_scan_32x8, av1_mcol_iscan_32x8 },
{ mrow_scan_32x8, av1_mrow_iscan_32x8 },
{ mcol_scan_32x8, av1_mcol_iscan_32x8 },
},
{
// TX_16X64
// Half of the coefficients of tx64 at higher frequencies are set to
// zeros. So tx32's scan order is used.
{ default_scan_16x32, av1_default_iscan_16x32 },
{ default_scan_16x32, av1_default_iscan_16x32 },
{ default_scan_16x32, av1_default_iscan_16x32 },
{ default_scan_16x32, av1_default_iscan_16x32 },
{ default_scan_16x32, av1_default_iscan_16x32 },
{ default_scan_16x32, av1_default_iscan_16x32 },
{ default_scan_16x32, av1_default_iscan_16x32 },
{ default_scan_16x32, av1_default_iscan_16x32 },
{ default_scan_16x32, av1_default_iscan_16x32 },
{ default_scan_16x32, av1_default_iscan_16x32 },
{ mrow_scan_16x32, av1_mrow_iscan_16x32 },
{ mcol_scan_16x32, av1_mcol_iscan_16x32 },
{ mrow_scan_16x32, av1_mrow_iscan_16x32 },
{ mcol_scan_16x32, av1_mcol_iscan_16x32 },
{ mrow_scan_16x32, av1_mrow_iscan_16x32 },
{ mcol_scan_16x32, av1_mcol_iscan_16x32 },
},
{
// TX_64X16
// Half of the coefficients of tx64 at higher frequencies are set to
// zeros. So tx32's scan order is used.
{ default_scan_32x16, av1_default_iscan_32x16 },
{ default_scan_32x16, av1_default_iscan_32x16 },
{ default_scan_32x16, av1_default_iscan_32x16 },
{ default_scan_32x16, av1_default_iscan_32x16 },
{ default_scan_32x16, av1_default_iscan_32x16 },
{ default_scan_32x16, av1_default_iscan_32x16 },
{ default_scan_32x16, av1_default_iscan_32x16 },
{ default_scan_32x16, av1_default_iscan_32x16 },
{ default_scan_32x16, av1_default_iscan_32x16 },
{ default_scan_32x16, av1_default_iscan_32x16 },
{ mrow_scan_32x16, av1_mrow_iscan_32x16 },
{ mcol_scan_32x16, av1_mcol_iscan_32x16 },
{ mrow_scan_32x16, av1_mrow_iscan_32x16 },
{ mcol_scan_32x16, av1_mcol_iscan_32x16 },
{ mrow_scan_32x16, av1_mrow_iscan_32x16 },
{ mcol_scan_32x16, av1_mcol_iscan_32x16 },
},
#if CONFIG_FLEX_PARTITION
{
// TX_4X32
{ default_scan_4x32, av1_default_iscan_4x32 },
{ default_scan_4x32, av1_default_iscan_4x32 },
{ default_scan_4x32, av1_default_iscan_4x32 },
{ default_scan_4x32, av1_default_iscan_4x32 },
{ default_scan_4x32, av1_default_iscan_4x32 },
{ default_scan_4x32, av1_default_iscan_4x32 },
{ default_scan_4x32, av1_default_iscan_4x32 },
{ default_scan_4x32, av1_default_iscan_4x32 },
{ default_scan_4x32, av1_default_iscan_4x32 },
{ default_scan_4x32, av1_default_iscan_4x32 },
{ mrow_scan_4x32, av1_mrow_iscan_4x32 },
{ mcol_scan_4x32, av1_mcol_iscan_4x32 },
{ mrow_scan_4x32, av1_mrow_iscan_4x32 },
{ mcol_scan_4x32, av1_mcol_iscan_4x32 },
{ mrow_scan_4x32, av1_mrow_iscan_4x32 },
{ mcol_scan_4x32, av1_mcol_iscan_4x32 },
},
{
// TX_32X4
{ default_scan_32x4, av1_default_iscan_32x4 },
{ default_scan_32x4, av1_default_iscan_32x4 },
{ default_scan_32x4, av1_default_iscan_32x4 },
{ default_scan_32x4, av1_default_iscan_32x4 },
{ default_scan_32x4, av1_default_iscan_32x4 },
{ default_scan_32x4, av1_default_iscan_32x4 },
{ default_scan_32x4, av1_default_iscan_32x4 },
{ default_scan_32x4, av1_default_iscan_32x4 },
{ default_scan_32x4, av1_default_iscan_32x4 },
{ default_scan_32x4, av1_default_iscan_32x4 },
{ mrow_scan_32x4, av1_mrow_iscan_32x4 },
{ mcol_scan_32x4, av1_mcol_iscan_32x4 },
{ mrow_scan_32x4, av1_mrow_iscan_32x4 },
{ mcol_scan_32x4, av1_mcol_iscan_32x4 },
{ mrow_scan_32x4, av1_mrow_iscan_32x4 },
{ mcol_scan_32x4, av1_mcol_iscan_32x4 },
},
{
// TX_8X64
// Half of the coefficients of tx64 at higher frequencies are set to
// zeros. So tx32's scan order is used.
{ default_scan_8x32, av1_default_iscan_8x32 },
{ default_scan_8x32, av1_default_iscan_8x32 },
{ default_scan_8x32, av1_default_iscan_8x32 },
{ default_scan_8x32, av1_default_iscan_8x32 },
{ default_scan_8x32, av1_default_iscan_8x32 },
{ default_scan_8x32, av1_default_iscan_8x32 },
{ default_scan_8x32, av1_default_iscan_8x32 },
{ default_scan_8x32, av1_default_iscan_8x32 },
{ default_scan_8x32, av1_default_iscan_8x32 },
{ default_scan_8x32, av1_default_iscan_8x32 },
{ mrow_scan_8x32, av1_mrow_iscan_8x32 },
{ mcol_scan_8x32, av1_mcol_iscan_8x32 },
{ mrow_scan_8x32, av1_mrow_iscan_8x32 },
{ mcol_scan_8x32, av1_mcol_iscan_8x32 },
{ mrow_scan_8x32, av1_mrow_iscan_8x32 },
{ mcol_scan_8x32, av1_mcol_iscan_8x32 },
},
{
// TX_64X8
// Half of the coefficients of tx64 at higher frequencies are set to
// zeros. So tx32's scan order is used.
{ default_scan_32x8, av1_default_iscan_32x8 },
{ default_scan_32x8, av1_default_iscan_32x8 },
{ default_scan_32x8, av1_default_iscan_32x8 },
{ default_scan_32x8, av1_default_iscan_32x8 },
{ default_scan_32x8, av1_default_iscan_32x8 },
{ default_scan_32x8, av1_default_iscan_32x8 },
{ default_scan_32x8, av1_default_iscan_32x8 },
{ default_scan_32x8, av1_default_iscan_32x8 },
{ default_scan_32x8, av1_default_iscan_32x8 },
{ default_scan_32x8, av1_default_iscan_32x8 },
{ mrow_scan_32x8, av1_mrow_iscan_32x8 },
{ mcol_scan_32x8, av1_mcol_iscan_32x8 },
{ mrow_scan_32x8, av1_mrow_iscan_32x8 },
{ mcol_scan_32x8, av1_mcol_iscan_32x8 },
{ mrow_scan_32x8, av1_mrow_iscan_32x8 },
{ mcol_scan_32x8, av1_mcol_iscan_32x8 },
},
{
// TX_4X64
// Half of the coefficients of tx64 at higher frequencies are set to
// zeros. So tx32's scan order is used.
{ default_scan_4x32, av1_default_iscan_4x32 },
{ default_scan_4x32, av1_default_iscan_4x32 },
{ default_scan_4x32, av1_default_iscan_4x32 },
{ default_scan_4x32, av1_default_iscan_4x32 },
{ default_scan_4x32, av1_default_iscan_4x32 },
{ default_scan_4x32, av1_default_iscan_4x32 },
{ default_scan_4x32, av1_default_iscan_4x32 },
{ default_scan_4x32, av1_default_iscan_4x32 },
{ default_scan_4x32, av1_default_iscan_4x32 },
{ default_scan_4x32, av1_default_iscan_4x32 },
{ mrow_scan_4x32, av1_mrow_iscan_4x32 },
{ mcol_scan_4x32, av1_mcol_iscan_4x32 },
{ mrow_scan_4x32, av1_mrow_iscan_4x32 },
{ mcol_scan_4x32, av1_mcol_iscan_4x32 },
{ mrow_scan_4x32, av1_mrow_iscan_4x32 },
{ mcol_scan_4x32, av1_mcol_iscan_4x32 },
},
{
// TX_64X4
// Half of the coefficients of tx64 at higher frequencies are set to
// zeros. So tx32's scan order is used.
{ default_scan_32x4, av1_default_iscan_32x4 },
{ default_scan_32x4, av1_default_iscan_32x4 },
{ default_scan_32x4, av1_default_iscan_32x4 },
{ default_scan_32x4, av1_default_iscan_32x4 },
{ default_scan_32x4, av1_default_iscan_32x4 },
{ default_scan_32x4, av1_default_iscan_32x4 },
{ default_scan_32x4, av1_default_iscan_32x4 },
{ default_scan_32x4, av1_default_iscan_32x4 },
{ default_scan_32x4, av1_default_iscan_32x4 },
{ default_scan_32x4, av1_default_iscan_32x4 },
{ mrow_scan_32x4, av1_mrow_iscan_32x4 },
{ mcol_scan_32x4, av1_mcol_iscan_32x4 },
{ mrow_scan_32x4, av1_mrow_iscan_32x4 },
{ mcol_scan_32x4, av1_mcol_iscan_32x4 },
{ mrow_scan_32x4, av1_mrow_iscan_32x4 },
{ mcol_scan_32x4, av1_mcol_iscan_32x4 },
},
#endif // CONFIG_FLEX_PARTITION
};