Additional Tables

General

This section contains tables that do not naturally fit in the main sections of the Specification.

Scan tables

This section defines the scan order for different types of transform. Each table is named in the form <type>_Scan_<w>x<h>, and contains an ordered list of positions within a rectangle of width w and height h. Each position is calculated as w * y + x.

The following table lists pairs of scan tables which are transposes of each other. A table T_wxh is a transpose of another table T_hxw if the following function returns 1:

is_transpose( ) {
    for ( pos = 0; pos < w * h; pos++ ) {
        x1 = T_wxh[ pos ] % w
        y1 = T_wxh[ pos ] / w
        x2 = T_hxw[ pos ] % h
        y2 = T_hxw[ pos ] / h
        if ( x1 != y2 || y1 != x2 )
            return 0
    }
    return 1
}
Table Transpose
Default_Scan_4x8 Default_Scan_8x4
Default_Scan_16x32 Default_Scan_32x16
Default_Scan_16x4 Default_Scan_4x16
Default_Scan_16x8 Default_Scan_8x16
Default_Scan_32x8 Default_Scan_8x32
Mcol_Scan_4x4 Mrow_Scan_4x4
Mcol_Scan_4x8 Mrow_Scan_8x4
Mcol_Scan_8x8 Mrow_Scan_8x8
Mcol_Scan_16x8 Mrow_Scan_8x16
Mcol_Scan_16x16 Mrow_Scan_16x16
Mcol_Scan_16x4 Mrow_Scan_4x16
Mrow_Scan_4x4 Mcol_Scan_4x4
Mrow_Scan_4x8 Mcol_Scan_8x4
Mrow_Scan_8x8 Mcol_Scan_8x8
Mrow_Scan_16x8 Mcol_Scan_8x16
Mrow_Scan_16x16 Mcol_Scan_16x16
Mrow_Scan_16x4 Mcol_Scan_4x16
Default_Scan_4x4[ 16 ] = {
    0, 1, 4, 8,
    5, 2, 3, 6,
    9, 12, 13, 10,
    7, 11, 14, 15
}
Mcol_Scan_4x4[ 16 ] = {
    0, 4, 8, 12,
    1, 5, 9, 13,
    2, 6, 10, 14,
    3, 7, 11, 15
}
Mrow_Scan_4x4[ 16 ] = {
    0, 1, 2, 3,
    4, 5, 6, 7,
    8, 9, 10, 11,
    12, 13, 14, 15
}
Default_Scan_4x8[ 32 ] = {
  0,  1,  4,  2,  5,  8,  3,  6,  9,  12, 7,  10, 13, 16, 11, 14,
  17, 20, 15, 18, 21, 24, 19, 22, 25, 28, 23, 26, 29, 27, 30, 31
}
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
}
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
}
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
}
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
}
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
}
Default_Scan_8x8[ 64 ] = {
    0,  1,  8,  16, 9,  2,  3,  10,
    17, 24, 32, 25, 18, 11, 4,  5,
    12, 19, 26, 33, 40, 48, 41, 34,
    27, 20, 13, 6,  7,  14, 21, 28,
    35, 42, 49, 56, 57, 50, 43, 36,
    29, 22, 15, 23, 30, 37, 44, 51,
    58, 59, 52, 45, 38, 31, 39, 46,
    53, 60, 61, 54, 47, 55, 62, 63
}
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
}
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
}
Default_Scan_8x16[ 128 ] = {
  0,   1,   8,   2,   9,   16,  3,   10,  17,  24,  4,   11,  18,  25,  32,
  5,   12,  19,  26,  33,  40,  6,   13,  20,  27,  34,  41,  48,  7,   14,
  21,  28,  35,  42,  49,  56,  15,  22,  29,  36,  43,  50,  57,  64,  23,
  30,  37,  44,  51,  58,  65,  72,  31,  38,  45,  52,  59,  66,  73,  80,
  39,  46,  53,  60,  67,  74,  81,  88,  47,  54,  61,  68,  75,  82,  89,
  96,  55,  62,  69,  76,  83,  90,  97,  104, 63,  70,  77,  84,  91,  98,
  105, 112, 71,  78,  85,  92,  99,  106, 113, 120, 79,  86,  93,  100, 107,
  114, 121, 87,  94,  101, 108, 115, 122, 95,  102, 109, 116, 123, 103, 110,
  117, 124, 111, 118, 125, 119, 126, 127
}
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
}
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
}
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
}
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
}
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
}
Default_Scan_16x16[ 256 ] = {
    0,   1,   16,  32,  17,  2,   3,   18,  33,  48,  64,  49,  34,  19,    4,   5,
    20,  35,  50,  65,  80,  96,  81,  66,  51,  36,  21,  6,   7,   22,   37,  52,
    67,  82,  97,  112, 128, 113, 98,  83,  68,  53,  38,  23,  8,    9,   24,  39,
    54,  69,  84,  99,  114, 129, 144, 160, 145, 130, 115, 100, 85,  70,   55,  40,
    25,  10,  11,  26,  41,  56,  71,  86,  101, 116, 131, 146, 161, 176, 192, 177,
    162, 147, 132, 117, 102, 87,  72,  57,  42,   27,  12,  13,  28,  43,  58,  73,
    88,  103, 118, 133, 148, 163, 178, 193, 208, 224, 209, 194, 179, 164, 149, 134,
    119, 104, 89,  74,  59,  44,  29,  14,   15,  30,  45,  60,  75,  90, 105, 120,
    135, 150, 165, 180, 195, 210, 225, 240, 241, 226, 211, 196, 181, 166, 151, 136,
    121, 106, 91,  76,  61,  46,   31,  47,  62,  77,  92, 107, 122, 137, 152, 167,
    182, 197, 212, 227, 242, 243, 228, 213, 198, 183, 168, 153, 138, 123, 108, 93,
    78,  63,  79,  94,  109, 124, 139, 154, 169, 184, 199, 214, 229, 244, 245, 230,
    215, 200, 185, 170, 155, 140, 125, 110, 95,  111, 126, 141, 156, 171, 186, 201,
    216, 231, 246, 247, 232, 217, 202, 187, 172, 157, 142, 127, 143, 158, 173, 188,
    203, 218, 233, 248, 249, 234, 219, 204, 189, 174, 159, 175, 190, 205, 220, 235,
    250, 251, 236, 221, 206, 191, 207, 222, 237, 252, 253, 238, 223, 239, 254, 255
}
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
}
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
}
Default_Scan_16x32[ 512 ] = {
  0,   1,   16,  2,   17,  32,  3,   18,  33,  48,  4,   19,  34,  49,  64,
  5,   20,  35,  50,  65,  80,  6,   21,  36,  51,  66,  81,  96,  7,   22,
  37,  52,  67,  82,  97,  112, 8,   23,  38,  53,  68,  83,  98,  113, 128,
  9,   24,  39,  54,  69,  84,  99,  114, 129, 144, 10,  25,  40,  55,  70,
  85,  100, 115, 130, 145, 160, 11,  26,  41,  56,  71,  86,  101, 116, 131,
  146, 161, 176, 12,  27,  42,  57,  72,  87,  102, 117, 132, 147, 162, 177,
  192, 13,  28,  43,  58,  73,  88,  103, 118, 133, 148, 163, 178, 193, 208,
  14,  29,  44,  59,  74,  89,  104, 119, 134, 149, 164, 179, 194, 209, 224,
  15,  30,  45,  60,  75,  90,  105, 120, 135, 150, 165, 180, 195, 210, 225,
  240, 31,  46,  61,  76,  91,  106, 121, 136, 151, 166, 181, 196, 211, 226,
  241, 256, 47,  62,  77,  92,  107, 122, 137, 152, 167, 182, 197, 212, 227,
  242, 257, 272, 63,  78,  93,  108, 123, 138, 153, 168, 183, 198, 213, 228,
  243, 258, 273, 288, 79,  94,  109, 124, 139, 154, 169, 184, 199, 214, 229,
  244, 259, 274, 289, 304, 95,  110, 125, 140, 155, 170, 185, 200, 215, 230,
  245, 260, 275, 290, 305, 320, 111, 126, 141, 156, 171, 186, 201, 216, 231,
  246, 261, 276, 291, 306, 321, 336, 127, 142, 157, 172, 187, 202, 217, 232,
  247, 262, 277, 292, 307, 322, 337, 352, 143, 158, 173, 188, 203, 218, 233,
  248, 263, 278, 293, 308, 323, 338, 353, 368, 159, 174, 189, 204, 219, 234,
  249, 264, 279, 294, 309, 324, 339, 354, 369, 384, 175, 190, 205, 220, 235,
  250, 265, 280, 295, 310, 325, 340, 355, 370, 385, 400, 191, 206, 221, 236,
  251, 266, 281, 296, 311, 326, 341, 356, 371, 386, 401, 416, 207, 222, 237,
  252, 267, 282, 297, 312, 327, 342, 357, 372, 387, 402, 417, 432, 223, 238,
  253, 268, 283, 298, 313, 328, 343, 358, 373, 388, 403, 418, 433, 448, 239,
  254, 269, 284, 299, 314, 329, 344, 359, 374, 389, 404, 419, 434, 449, 464,
  255, 270, 285, 300, 315, 330, 345, 360, 375, 390, 405, 420, 435, 450, 465,
  480, 271, 286, 301, 316, 331, 346, 361, 376, 391, 406, 421, 436, 451, 466,
  481, 496, 287, 302, 317, 332, 347, 362, 377, 392, 407, 422, 437, 452, 467,
  482, 497, 303, 318, 333, 348, 363, 378, 393, 408, 423, 438, 453, 468, 483,
  498, 319, 334, 349, 364, 379, 394, 409, 424, 439, 454, 469, 484, 499, 335,
  350, 365, 380, 395, 410, 425, 440, 455, 470, 485, 500, 351, 366, 381, 396,
  411, 426, 441, 456, 471, 486, 501, 367, 382, 397, 412, 427, 442, 457, 472,
  487, 502, 383, 398, 413, 428, 443, 458, 473, 488, 503, 399, 414, 429, 444,
  459, 474, 489, 504, 415, 430, 445, 460, 475, 490, 505, 431, 446, 461, 476,
  491, 506, 447, 462, 477, 492, 507, 463, 478, 493, 508, 479, 494, 509, 495,
  510, 511
}
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
}
Default_Scan_32x32[ 1024 ] = {
    0,    1,    32,   64,   33,   2,   3,    34,   65,   96,   128,  97,  66,
    35,   4,    5,    36,   67,   98,  129,  160,  192,  161,  130,  99,  68,
    37,   6,    7,    38,   69,   100, 131,  162,  193,  224,  256,  225, 194,
    163,  132,  101,  70,   39,   8,   9,    40,   71,   102,  133,  164, 195,
    226,  257,  288,  320,  289,  258, 227,  196,  165,  134,  103,  72,  41,
    10,   11,   42,   73,   104,  135, 166,  197,  228,  259,  290,  321, 352,
    384,  353,  322,  291,  260,  229, 198,  167,  136,  105,  74,   43,  12,
    13,   44,   75,   106,  137,  168, 199,  230,  261,  292,  323,  354, 385,
    416,  448,  417,  386,  355,  324, 293,  262,  231,  200,  169,  138, 107,
    76,   45,   14,   15,   46,   77,  108,  139,  170,  201,  232,  263, 294,
    325,  356,  387,  418,  449,  480, 512,  481,  450,  419,  388,  357, 326,
    295,  264,  233,  202,  171,  140, 109,  78,   47,   16,   17,   48,  79,
    110,  141,  172,  203,  234,  265, 296,  327,  358,  389,  420,  451, 482,
    513,  544,  576,  545,  514,  483, 452,  421,  390,  359,  328,  297, 266,
    235,  204,  173,  142,  111,  80,  49,   18,   19,   50,   81,   112, 143,
    174,  205,  236,  267,  298,  329, 360,  391,  422,  453,  484,  515, 546,
    577,  608,  640,  609,  578,  547, 516,  485,  454,  423,  392,  361, 330,
    299,  268,  237,  206,  175,  144, 113,  82,   51,   20,   21,   52,  83,
    114,  145,  176,  207,  238,  269, 300,  331,  362,  393,  424,  455, 486,
    517,  548,  579,  610,  641,  672, 704,  673,  642,  611,  580,  549, 518,
    487,  456,  425,  394,  363,  332, 301,  270,  239,  208,  177,  146, 115,
    84,   53,   22,   23,   54,   85,  116,  147,  178,  209,  240,  271, 302,
    333,  364,  395,  426,  457,  488, 519,  550,  581,  612,  643,  674, 705,
    736,  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,
    25,   56,   87,   118,  149,  180, 211,  242,  273,  304,  335,  366, 397,
    428,  459,  490,  521,  552,  583, 614,  645,  676,  707,  738,  769, 800,
    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,   27,   58,   89,   120,  151, 182,  213,  244,  275,  306,  337, 368,
    399,  430,  461,  492,  523,  554, 585,  616,  647,  678,  709,  740, 771,
    802,  833,  864,  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,  29,   60,   91,   122,  153,  184, 215,
    246,  277,  308,  339,  370,  401, 432,  463,  494,  525,  556,  587, 618,
    649,  680,  711,  742,  773,  804, 835,  866,  897,  928,  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,   31,   62,   93,   124, 155,  186,  217,  248,  279,  310, 341,
    372,  403,  434,  465,  496,  527, 558,  589,  620,  651,  682,  713, 744,
    775,  806,  837,  868,  899,  930, 961,  992,  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,
    95,   126,  157,  188,  219,  250, 281,  312,  343,  374,  405,  436, 467,
    498,  529,  560,  591,  622,  653, 684,  715,  746,  777,  808,  839, 870,
    901,  932,  963,  994,  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,  159,  190,  221,  252,  283, 314,
    345,  376,  407,  438,  469,  500, 531,  562,  593,  624,  655,  686, 717,
    748,  779,  810,  841,  872,  903, 934,  965,  996,  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,  223,  254, 285,
    316,  347,  378,  409,  440,  471, 502,  533,  564,  595,  626,  657, 688,
    719,  750,  781,  812,  843,  874, 905,  936,  967,  998,  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,  287,  318,  349, 380,
    411,  442,  473,  504,  535,  566, 597,  628,  659,  690,  721,  752, 783,
    814,  845,  876,  907,  938,  969, 1000, 1001, 970,  939,  908,  877, 846,
    815,  784,  753,  722,  691,  660, 629,  598,  567,  536,  505,  474, 443,
    412,  381,  350,  319,  351,  382, 413,  444,  475,  506,  537,  568, 599,
    630,  661,  692,  723,  754,  785, 816,  847,  878,  909,  940,  971, 1002,
    1003, 972,  941,  910,  879,  848, 817,  786,  755,  724,  693,  662, 631,
    600,  569,  538,  507,  476,  445, 414,  383,  415,  446,  477,  508, 539,
    570,  601,  632,  663,  694,  725, 756,  787,  818,  849,  880,  911, 942,
    973,  1004, 1005, 974,  943,  912, 881,  850,  819,  788,  757,  726, 695,
    664,  633,  602,  571,  540,  509, 478,  447,  479,  510,  541,  572, 603,
    634,  665,  696,  727,  758,  789, 820,  851,  882,  913,  944,  975, 1006,
    1007, 976,  945,  914,  883,  852, 821,  790,  759,  728,  697,  666, 635,
    604,  573,  542,  511,  543,  574, 605,  636,  667,  698,  729,  760, 791,
    822,  853,  884,  915,  946,  977, 1008, 1009, 978,  947,  916,  885, 854,
    823,  792,  761,  730,  699,  668, 637,  606,  575,  607,  638,  669, 700,
    731,  762,  793,  824,  855,  886, 917,  948,  979,  1010, 1011, 980, 949,
    918,  887,  856,  825,  794,  763, 732,  701,  670,  639,  671,  702, 733,
    764,  795,  826,  857,  888,  919, 950,  981,  1012, 1013, 982,  951, 920,
    889,  858,  827,  796,  765,  734, 703,  735,  766,  797,  828,  859, 890,
    921,  952,  983,  1014, 1015, 984, 953,  922,  891,  860,  829,  798, 767,
    799,  830,  861,  892,  923,  954, 985,  1016, 1017, 986,  955,  924, 893,
    862,  831,  863,  894,  925,  956, 987,  1018, 1019, 988,  957,  926, 895,
    927,  958,  989,  1020, 1021, 990, 959,  991,  1022, 1023
}
Default_Scan_4x16[ 64 ] = {
  0,  1,  4,  2,  5,  8,  3,  6,  9,  12, 7,  10, 13, 16, 11, 14,
  17, 20, 15, 18, 21, 24, 19, 22, 25, 28, 23, 26, 29, 32, 27, 30,
  33, 36, 31, 34, 37, 40, 35, 38, 41, 44, 39, 42, 45, 48, 43, 46,
  49, 52, 47, 50, 53, 56, 51, 54, 57, 60, 55, 58, 61, 59, 62, 63
}
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
}
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
}
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
}
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
}
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
}
Default_Scan_8x32[ 256 ] = {
  0,   1,   8,   2,   9,   16,  3,   10,  17,  24,  4,   11,  18,  25,  32,
  5,   12,  19,  26,  33,  40,  6,   13,  20,  27,  34,  41,  48,  7,   14,
  21,  28,  35,  42,  49,  56,  15,  22,  29,  36,  43,  50,  57,  64,  23,
  30,  37,  44,  51,  58,  65,  72,  31,  38,  45,  52,  59,  66,  73,  80,
  39,  46,  53,  60,  67,  74,  81,  88,  47,  54,  61,  68,  75,  82,  89,
  96,  55,  62,  69,  76,  83,  90,  97,  104, 63,  70,  77,  84,  91,  98,
  105, 112, 71,  78,  85,  92,  99,  106, 113, 120, 79,  86,  93,  100, 107,
  114, 121, 128, 87,  94,  101, 108, 115, 122, 129, 136, 95,  102, 109, 116,
  123, 130, 137, 144, 103, 110, 117, 124, 131, 138, 145, 152, 111, 118, 125,
  132, 139, 146, 153, 160, 119, 126, 133, 140, 147, 154, 161, 168, 127, 134,
  141, 148, 155, 162, 169, 176, 135, 142, 149, 156, 163, 170, 177, 184, 143,
  150, 157, 164, 171, 178, 185, 192, 151, 158, 165, 172, 179, 186, 193, 200,
  159, 166, 173, 180, 187, 194, 201, 208, 167, 174, 181, 188, 195, 202, 209,
  216, 175, 182, 189, 196, 203, 210, 217, 224, 183, 190, 197, 204, 211, 218,
  225, 232, 191, 198, 205, 212, 219, 226, 233, 240, 199, 206, 213, 220, 227,
  234, 241, 248, 207, 214, 221, 228, 235, 242, 249, 215, 222, 229, 236, 243,
  250, 223, 230, 237, 244, 251, 231, 238, 245, 252, 239, 246, 253, 247, 254,
  255
}
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
}

Conversion tables

This section defines the constant lookup tables used to convert between different representations.

For a block size x (with values having the same interpretation as for the variable subSize), Mi_Width_Log2[ x ] gives the base 2 logarithm of the width of the block in units of 4 samples.

Mi_Width_Log2[ BLOCK_SIZES ] = {
    0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3,
    4, 4, 4, 5, 5, 0, 2, 1, 3, 2, 4
}

For a block size x, Mi_Height_Log2[ x ] gives the base 2 logarithm of the height of the block in units of 4 samples.

Mi_Height_Log2[ BLOCK_SIZES ] = {
    0, 1, 0, 1, 2, 1, 2, 3, 2, 3, 4,
    3, 4, 5, 4, 5, 2, 0, 3, 1, 4, 2
}

For a block size x, Num_4x4_Blocks_Wide[ x ] gives the width of the block in units of 4 samples.

Num_4x4_Blocks_Wide[ BLOCK_SIZES ] = {
    1, 1, 2, 2, 2, 4, 4, 4, 8, 8, 8,
    16, 16, 16, 32, 32, 1, 4, 2, 8, 4, 16
}

For a block size x, Block_Width[ x ] gives the width of the block in units of samples. Block_Width[ x ] is defined to be equal to 4 * Num_4x4_Blocks_Wide[ x ].

For a block size x, Num_4x4_Blocks_High[ x ] gives the the height of the block in units of 4 samples.

Num_4x4_Blocks_High[ BLOCK_SIZES ] = {
    1, 2, 1, 2, 4, 2, 4, 8, 4, 8, 16,
    8, 16, 32, 16, 32, 4, 1, 8, 2, 16, 4
}

For a block size x, Block_Height[ x ] gives the height of the block in units of samples. Block_Height[ x ] is defined to be equal to 4 * Num_4x4_Blocks_High[ x ].

Size_Group is used to map a block size into a context for intra syntax elements.

Size_Group[ BLOCK_SIZES ] = {
  0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3,
  3, 3, 3, 3, 3, 0, 0, 1, 1, 2, 2
}

For a luma block size x, Max_Tx_Size_Rect[ x ] returns the largest transform size that can be used for blocks of size x (this can be either square or rectangular).

Max_Tx_Size_Rect[ BLOCK_SIZES ] = {
  TX_4X4, TX_4X8, TX_8X4, TX_8X8,
  TX_8X16, TX_16X8, TX_16X16, TX_16X32,
  TX_32X16, TX_32X32, TX_32X64, TX_64X32,
  TX_64X64, TX_64X64, TX_64X64, TX_64X64,
  TX_4X16, TX_16X4, TX_8X32, TX_32X8,
  TX_16X64, TX_64X16
}

For a square block size x, and a partition type p, Partition_Subsize[ p ][ x ] returns the size of the sub-blocks used by this partition. (If the partition produces blocks of different sizes, then the table contains the largest sub-block size.)

The table will never get accessed for rectangular block sizes.

Partition_Subsize[ 10 ][ BLOCK_SIZES ] = {
  {
                                  BLOCK_4X4,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_8X8,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_16X16,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_32X32,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_64X64,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_128X128,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_INVALID,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_INVALID
  }, {
                                  BLOCK_INVALID,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_8X4,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_16X8,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_32X16,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_64X32,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_128X64,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_INVALID,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_INVALID
  }, {
                                  BLOCK_INVALID,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_4X8,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_8X16,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_16X32,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_32X64,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_64X128,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_INVALID,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_INVALID
  }, {
                                  BLOCK_INVALID,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_4X4,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_8X8,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_16X16,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_32X32,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_64X64,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_INVALID,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_INVALID
  }, {
                                  BLOCK_INVALID,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_8X4,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_16X8,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_32X16,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_64X32,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_128X64,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_INVALID,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_INVALID
  }, {
                                  BLOCK_INVALID,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_8X4,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_16X8,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_32X16,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_64X32,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_128X64,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_INVALID,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_INVALID
  }, {
                                  BLOCK_INVALID,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_4X8,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_8X16,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_16X32,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_32X64,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_64X128,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_INVALID,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_INVALID
  }, {
                                  BLOCK_INVALID,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_4X8,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_8X16,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_16X32,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_32X64,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_64X128,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_INVALID,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_INVALID
  }, {
                                  BLOCK_INVALID,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_INVALID,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_16X4,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_32X8,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_64X16,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_INVALID,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_INVALID,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_INVALID
  }, {
                                  BLOCK_INVALID,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_INVALID,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_4X16,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_8X32,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_16X64,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_INVALID,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_INVALID,
    BLOCK_INVALID, BLOCK_INVALID, BLOCK_INVALID
  }
}
Split_Tx_Size[ TX_SIZES_ALL ] = {
  TX_4X4,
  TX_4X4,
  TX_8X8,
  TX_16X16,
  TX_32X32,
  TX_4X4,
  TX_4X4,
  TX_8X8,
  TX_8X8,
  TX_16X16,
  TX_16X16,
  TX_32X32,
  TX_32X32
  TX_4X8,
  TX_8X4,
  TX_8X16,
  TX_16X8,
  TX_16X32,
  TX_32X16
}
Mode_To_Txfm[ UV_INTRA_MODES_CFL_ALLOWED ] = {
    DCT_DCT,   // DC_PRED
    ADST_DCT,  // V_PRED
    DCT_ADST,  // H_PRED
    DCT_DCT,   // D45_PRED
    ADST_ADST, // D135_PRED
    ADST_DCT,  // D113_PRED
    DCT_ADST,  // D157_PRED
    DCT_ADST,  // D203_PRED
    ADST_DCT,  // D67_PRED
    ADST_ADST, // SMOOTH_PRED
    ADST_DCT,  // SMOOTH_V_PRED
    DCT_ADST,  // SMOOTH_H_PRED
    ADST_ADST, // PAETH_PRED
    DCT_DCT,   // UV_CFL_PRED
}
Palette_Color_Context[ PALETTE_MAX_COLOR_CONTEXT_HASH + 1 ] =
  { -1, -1, 0, -1, -1, 4,  3,  2, 1 }

Note: The negative numbers in the array Palette_Color_Context indicate values that will never be accessed.

Palette_Color_Hash_Multipliers[ PALETTE_NUM_NEIGHBORS ] = { 1, 2, 2 }
Sm_Weights_Tx_4x4  [  4 ] = { 255, 149,  85,  64 }
Sm_Weights_Tx_8x8  [  8 ] = { 255, 197, 146, 105,  73,  50,  37,  32 }
Sm_Weights_Tx_16x16[ 16 ] = { 255, 225, 196, 170, 145, 123, 102,  84,  68,  54,  43,  33,  26, 20, 17, 16 }
Sm_Weights_Tx_32x32[ 32 ] = { 255, 240, 225, 210, 196, 182, 169, 157, 145, 133, 122, 111, 101, 92, 83, 74,
                              66,  59,  52,  45,  39,  34,  29,  25,  21,  17,  14,  12,  10,  9,  8,  8 }
Sm_Weights_Tx_64x64[ 64 ] = { 255, 248, 240, 233, 225, 218, 210, 203, 196, 189, 182, 176, 169, 163, 156,
                              150, 144, 138, 133, 127, 121, 116, 111, 106, 101, 96, 91, 86, 82, 77, 73, 69,
                              65, 61, 57, 54, 50, 47, 44, 41, 38, 35, 32, 29, 27, 25, 22, 20, 18, 16, 15,
                              13, 12, 10, 9, 8, 7, 6, 6, 5, 5, 4, 4, 4 }
Mode_To_Angle[ INTRA_MODES ] = { 0, 90, 180, 45, 135, 113, 157, 203, 67, 0, 0, 0, 0 }
Dr_Intra_Derivative[ 90 ] = {
  0, 0, 0, 1023, 0, 0, 547, 0, 0, 372, 0, 0, 0, 0,
  273, 0, 0, 215, 0, 0, 178, 0, 0, 151, 0, 0, 132, 0, 0,
  116, 0, 0, 102, 0, 0, 0, 90, 0, 0, 80, 0, 0, 71, 0, 0,
  64, 0, 0, 57, 0, 0, 51, 0, 0, 45, 0, 0, 0, 40, 0, 0,
  35, 0, 0, 31, 0, 0, 27, 0, 0, 23, 0, 0, 19, 0, 0,
  15, 0, 0, 0, 0, 11, 0, 0, 7, 0, 0, 3, 0, 0
}
Intra_Filter_Taps[ INTRA_FILTER_MODES ][ 8 ][ 7 ] = {
  {
      { -6, 10, 0, 0, 0, 12, 0 },
      { -5, 2, 10, 0, 0, 9, 0 },
      { -3, 1, 1, 10, 0, 7, 0 },
      { -3, 1, 1, 2, 10, 5, 0 },
      { -4, 6, 0, 0, 0, 2, 12 },
      { -3, 2, 6, 0, 0, 2, 9 },
      { -3, 2, 2, 6, 0, 2, 7 },
      { -3, 1, 2, 2, 6, 3, 5 },
  },
  {
      { -10, 16, 0, 0, 0, 10, 0 },
      { -6, 0, 16, 0, 0, 6, 0 },
      { -4, 0, 0, 16, 0, 4, 0 },
      { -2, 0, 0, 0, 16, 2, 0 },
      { -10, 16, 0, 0, 0, 0, 10 },
      { -6, 0, 16, 0, 0, 0, 6 },
      { -4, 0, 0, 16, 0, 0, 4 },
      { -2, 0, 0, 0, 16, 0, 2 },
  },
  {
      { -8, 8, 0, 0, 0, 16, 0 },
      { -8, 0, 8, 0, 0, 16, 0 },
      { -8, 0, 0, 8, 0, 16, 0 },
      { -8, 0, 0, 0, 8, 16, 0 },
      { -4, 4, 0, 0, 0, 0, 16 },
      { -4, 0, 4, 0, 0, 0, 16 },
      { -4, 0, 0, 4, 0, 0, 16 },
      { -4, 0, 0, 0, 4, 0, 16 },
  },
  {
      { -2, 8, 0, 0, 0, 10, 0 },
      { -1, 3, 8, 0, 0, 6, 0 },
      { -1, 2, 3, 8, 0, 4, 0 },
      { 0, 1, 2, 3, 8, 2, 0 },
      { -1, 4, 0, 0, 0, 3, 10 },
      { -1, 3, 4, 0, 0, 4, 6 },
      { -1, 2, 3, 4, 0, 4, 4 },
      { -1, 2, 2, 3, 4, 3, 3 },
  },
  {
      { -12, 14, 0, 0, 0, 14, 0 },
      { -10, 0, 14, 0, 0, 12, 0 },
      { -9, 0, 0, 14, 0, 11, 0 },
      { -8, 0, 0, 0, 14, 10, 0 },
      { -10, 12, 0, 0, 0, 0, 14 },
      { -9, 1, 12, 0, 0, 0, 12 },
      { -8, 0, 0, 12, 0, 1, 11 },
      { -7, 0, 0, 1, 12, 1, 9 },
  }
}

For a transform size t (of width w and height h) (with the same interpretation as for the TxSize variable), Tx_Size_Sqr[ t ] returns a square tx size with side length Min( w, h ).

Tx_Size_Sqr[ TX_SIZES_ALL ] = {
    TX_4X4,
    TX_8X8,
    TX_16X16,
    TX_32X32,
    TX_64X64,
    TX_4X4,
    TX_4X4,
    TX_8X8,
    TX_8X8,
    TX_16X16,
    TX_16X16,
    TX_32X32,
    TX_32X32,
    TX_4X4,
    TX_4X4,
    TX_8X8,
    TX_8X8,
    TX_16X16,
    TX_16X16
}

For a transform size t (of width w and height h), Tx_Size_Sqr_Up[ t ] returns a square tx size with side length Max( w, h ).

Tx_Size_Sqr_Up[ TX_SIZES_ALL ] = {
    TX_4X4,
    TX_8X8,
    TX_16X16,
    TX_32X32,
    TX_64X64,
    TX_8X8,
    TX_8X8,
    TX_16X16,
    TX_16X16,
    TX_32X32,
    TX_32X32,
    TX_64X64,
    TX_64X64,
    TX_16X16,
    TX_16X16,
    TX_32X32,
    TX_32X32,
    TX_64X64,
    TX_64X64
}

For a transform size t (of width w and height h), Tx_Width[ t ] returns w.

Tx_Width[ TX_SIZES_ALL ] = {
    4,  8, 16, 32, 64, 4,  8, 8,  16, 16, 32, 32, 64, 4, 16, 8, 32, 16, 64
}

For a transform size t (of width w and height h), Tx_Height[ t ] returns h.

Tx_Height[ TX_SIZES_ALL ] = {
    4,  8, 16, 32, 64, 8,  4, 16, 8,  32, 16, 64, 32, 16, 4, 32, 8, 64, 16
}

For a transform size t (of width w and height h), Tx_Width_Log2[ t ] returns the base 2 logarithm of w.

Tx_Width_Log2[ TX_SIZES_ALL ] = {
    2, 3, 4, 5, 6, 2, 3, 3, 4, 4, 5, 5, 6, 2, 4, 3, 5, 4, 6
}

For a transform size t (of width w and height h), Tx_Height_Log2[ t ] returns the base 2 logarithm of h.

Tx_Height_Log2[ TX_SIZES_ALL ] = {
    2, 3, 4, 5, 6, 3, 2, 4, 3, 5, 4, 6, 5, 4, 2, 5, 3, 6, 4
}
Wedge_Bits[ BLOCK_SIZES ] = {
  0, 0, 0, 4, 4, 4, 4, 4, 4, 4, 0,
  0, 0, 0, 0, 0, 0, 0, 4, 4, 0, 0
 }
Sig_Ref_Diff_Offset[ 3 ][ SIG_REF_DIFF_OFFSET_NUM ][ 2 ] = {
  {
    { 0, 1 }, { 1, 0 }, { 1, 1 }, { 0, 2 }, { 2, 0 }
  },
  {
    { 0, 1 }, { 1, 0 }, { 0, 2 }, { 0, 3 }, { 0, 4 }
  },
  {
    { 0, 1 }, { 1, 0 }, { 2, 0 }, { 3, 0 }, { 4, 0 }
  }
}
Adjusted_Tx_Size[ TX_SIZES_ALL ] = {
    TX_4X4,
    TX_8X8,
    TX_16X16,
    TX_32X32,
    TX_32X32,
    TX_4X8,
    TX_8X4,
    TX_8X16,
    TX_16X8,
    TX_16X32,
    TX_32X16,
    TX_32X32,
    TX_32X32,
    TX_4X16,
    TX_16X4,
    TX_8X32,
    TX_32X8,
    TX_16X32,
    TX_32X16
}

The array Gaussian_Sequence contains random samples from a Gaussian distribution with zero mean and standard deviation of about 512 clipped to the range of [-2048, 2047] and rounded to the nearest multiple of 4.

Gaussian_Sequence[ 2048 ] = {
    56,    568,   -180,  172,   124,   -84,   172,   -64,   -900,  24,   820,
  224,   1248,  996,   272,   -8,    -916,  -388,  -732,  -104,  -188, 800,
  112,   -652,  -320,  -376,  140,   -252,  492,   -168,  44,    -788, 588,
  -584,  500,   -228,  12,    680,   272,   -476,  972,   -100,  652,  368,
  432,   -196,  -720,  -192,  1000,  -332,  652,   -136,  -552,  -604, -4,
  192,   -220,  -136,  1000,  -52,   372,   -96,   -624,  124,   -24,  396,
  540,   -12,   -104,  640,   464,   244,   -208,  -84,   368,   -528, -740,
  248,   -968,  -848,  608,   376,   -60,   -292,  -40,   -156,  252,  -292,
  248,   224,   -280,  400,   -244,  244,   -60,   76,    -80,   212,  532,
  340,   128,   -36,   824,   -352,  -60,   -264,  -96,   -612,  416,  -704,
  220,   -204,  640,   -160,  1220,  -408,  900,   336,   20,    -336, -96,
  -792,  304,   48,    -28,   -1232, -1172, -448,  104,   -292,  -520, 244,
  60,    -948,  0,     -708,  268,   108,   356,   -548,  488,   -344, -136,
  488,   -196,  -224,  656,   -236,  -1128, 60,    4,     140,   276,  -676,
  -376,  168,   -108,  464,   8,     564,   64,    240,   308,   -300, -400,
  -456,  -136,  56,    120,   -408,  -116,  436,   504,   -232,  328,  844,
  -164,  -84,   784,   -168,  232,   -224,  348,   -376,  128,   568,  96,
  -1244, -288,  276,   848,   832,   -360,  656,   464,   -384,  -332, -356,
  728,   -388,  160,   -192,  468,   296,   224,   140,   -776,  -100, 280,
  4,     196,   44,    -36,   -648,  932,   16,    1428,  28,    528,  808,
  772,   20,    268,   88,    -332,  -284,  124,   -384,  -448,  208,  -228,
  -1044, -328,  660,   380,   -148,  -300,  588,   240,   540,   28,   136,
  -88,   -436,  256,   296,   -1000, 1400,  0,     -48,   1056,  -136, 264,
  -528,  -1108, 632,   -484,  -592,  -344,  796,   124,   -668,  -768, 388,
  1296,  -232,  -188,  -200,  -288,  -4,    308,   100,   -168,  256,  -500,
  204,   -508,  648,   -136,  372,   -272,  -120,  -1004, -552,  -548, -384,
  548,   -296,  428,   -108,  -8,    -912,  -324,  -224,  -88,   -112, -220,
  -100,  996,   -796,  548,   360,   -216,  180,   428,   -200,  -212, 148,
  96,    148,   284,   216,   -412,  -320,  120,   -300,  -384,  -604, -572,
  -332,  -8,    -180,  -176,  696,   116,   -88,   628,   76,    44,   -516,
  240,   -208,  -40,   100,   -592,  344,   -308,  -452,  -228,  20,   916,
  -1752, -136,  -340,  -804,  140,   40,    512,   340,   248,   184,  -492,
  896,   -156,  932,   -628,  328,   -688,  -448,  -616,  -752,  -100, 560,
  -1020, 180,   -800,  -64,   76,    576,   1068,  396,   660,   552,  -108,
  -28,   320,   -628,  312,   -92,   -92,   -472,  268,   16,    560,  516,
  -672,  -52,   492,   -100,  260,   384,   284,   292,   304,   -148, 88,
  -152,  1012,  1064,  -228,  164,   -376,  -684,  592,   -392,  156,  196,
  -524,  -64,   -884,  160,   -176,  636,   648,   404,   -396,  -436, 864,
  424,   -728,  988,   -604,  904,   -592,  296,   -224,  536,   -176, -920,
  436,   -48,   1176,  -884,  416,   -776,  -824,  -884,  524,   -548, -564,
  -68,   -164,  -96,   692,   364,   -692,  -1012, -68,   260,   -480, 876,
  -1116, 452,   -332,  -352,  892,   -1088, 1220,  -676,  12,    -292, 244,
  496,   372,   -32,   280,   200,   112,   -440,  -96,   24,    -644, -184,
  56,    -432,  224,   -980,  272,   -260,  144,   -436,  420,   356,  364,
  -528,  76,    172,   -744,  -368,  404,   -752,  -416,  684,   -688, 72,
  540,   416,   92,    444,   480,   -72,   -1416, 164,   -1172, -68,  24,
  424,   264,   1040,  128,   -912,  -524,  -356,  64,    876,   -12,  4,
  -88,   532,   272,   -524,  320,   276,   -508,  940,   24,    -400, -120,
  756,   60,    236,   -412,  100,   376,   -484,  400,   -100,  -740, -108,
  -260,  328,   -268,  224,   -200,  -416,  184,   -604,  -564,  -20,  296,
  60,    892,   -888,  60,    164,   68,    -760,  216,   -296,  904,  -336,
  -28,   404,   -356,  -568,  -208,  -1480, -512,  296,   328,   -360, -164,
  -1560, -776,  1156,  -428,  164,   -504,  -112,  120,   -216,  -148, -264,
  308,   32,    64,    -72,   72,    116,   176,   -64,   -272,  460,  -536,
  -784,  -280,  348,   108,   -752,  -132,  524,   -540,  -776,  116,  -296,
  -1196, -288,  -560,  1040,  -472,  116,   -848,  -1116, 116,   636,  696,
  284,   -176,  1016,  204,   -864,  -648,  -248,  356,   972,   -584, -204,
  264,   880,   528,   -24,   -184,  116,   448,   -144,  828,   524,  212,
  -212,  52,    12,    200,   268,   -488,  -404,  -880,  824,   -672, -40,
  908,   -248,  500,   716,   -576,  492,   -576,  16,    720,   -108, 384,
  124,   344,   280,   576,   -500,  252,   104,   -308,  196,   -188, -8,
  1268,  296,   1032,  -1196, 436,   316,   372,   -432,  -200,  -660, 704,
  -224,  596,   -132,  268,   32,    -452,  884,   104,   -1008, 424,  -1348,
  -280,  4,     -1168, 368,   476,   696,   300,   -8,    24,    180,  -592,
  -196,  388,   304,   500,   724,   -160,  244,   -84,   272,   -256, -420,
  320,   208,   -144,  -156,  156,   364,   452,   28,    540,   316,  220,
  -644,  -248,  464,   72,    360,   32,    -388,  496,   -680,  -48,  208,
  -116,  -408,  60,    -604,  -392,  548,   -840,  784,   -460,  656,  -544,
  -388,  -264,  908,   -800,  -628,  -612,  -568,  572,   -220,  164,  288,
  -16,   -308,  308,   -112,  -636,  -760,  280,   -668,  432,   364,  240,
  -196,  604,   340,   384,   196,   592,   -44,   -500,  432,   -580, -132,
  636,   -76,   392,   4,     -412,  540,   508,   328,   -356,  -36,  16,
  -220,  -64,   -248,  -60,   24,    -192,  368,   1040,  92,    -24,  -1044,
  -32,   40,    104,   148,   192,   -136,  -520,  56,    -816,  -224, 732,
  392,   356,   212,   -80,   -424,  -1008, -324,  588,   -1496, 576,  460,
  -816,  -848,  56,    -580,  -92,   -1372, -112,  -496,  200,   364,  52,
  -140,  48,    -48,   -60,   84,    72,    40,    132,   -356,  -268, -104,
  -284,  -404,  732,   -520,  164,   -304,  -540,  120,   328,   -76,  -460,
  756,   388,   588,   236,   -436,  -72,   -176,  -404,  -316,  -148, 716,
  -604,  404,   -72,   -88,   -888,  -68,   944,   88,    -220,  -344, 960,
  472,   460,   -232,  704,   120,   832,   -228,  692,   -508,  132,  -476,
  844,   -748,  -364,  -44,   1116,  -1104, -1056, 76,    428,   552,  -692,
  60,    356,   96,    -384,  -188,  -612,  -576,  736,   508,   892,  352,
  -1132, 504,   -24,   -352,  324,   332,   -600,  -312,  292,   508,  -144,
  -8,    484,   48,    284,   -260,  -240,  256,   -100,  -292,  -204, -44,
  472,   -204,  908,   -188,  -1000, -256,  92,    1164,  -392,  564,  356,
  652,   -28,   -884,  256,   484,   -192,  760,   -176,  376,   -524, -452,
  -436,  860,   -736,  212,   124,   504,   -476,  468,   76,    -472, 552,
  -692,  -944,  -620,  740,   -240,  400,   132,   20,    192,   -196, 264,
  -668,  -1012, -60,   296,   -316,  -828,  76,    -156,  284,   -768, -448,
  -832,  148,   248,   652,   616,   1236,  288,   -328,  -400,  -124, 588,
  220,   520,   -696,  1032,  768,   -740,  -92,   -272,  296,   448,  -464,
  412,   -200,  392,   440,   -200,  264,   -152,  -260,  320,   1032, 216,
  320,   -8,    -64,   156,   -1016, 1084,  1172,  536,   484,   -432, 132,
  372,   -52,   -256,  84,    116,   -352,  48,    116,   304,   -384, 412,
  924,   -300,  528,   628,   180,   648,   44,    -980,  -220,  1320, 48,
  332,   748,   524,   -268,  -720,  540,   -276,  564,   -344,  -208, -196,
  436,   896,   88,    -392,  132,   80,    -964,  -288,  568,   56,   -48,
  -456,  888,   8,     552,   -156,  -292,  948,   288,   128,   -716, -292,
  1192,  -152,  876,   352,   -600,  -260,  -812,  -468,  -28,   -120, -32,
  -44,   1284,  496,   192,   464,   312,   -76,   -516,  -380,  -456, -1012,
  -48,   308,   -156,  36,    492,   -156,  -808,  188,   1652,  68,   -120,
  -116,  316,   160,   -140,  352,   808,   -416,  592,   316,   -480, 56,
  528,   -204,  -568,  372,   -232,  752,   -344,  744,   -4,    324,  -416,
  -600,  768,   268,   -248,  -88,   -132,  -420,  -432,  80,    -288, 404,
  -316,  -1216, -588,  520,   -108,  92,    -320,  368,   -480,  -216, -92,
  1688,  -300,  180,   1020,  -176,  820,   -68,   -228,  -260,  436,  -904,
  20,    40,    -508,  440,   -736,  312,   332,   204,   760,   -372, 728,
  96,    -20,   -632,  -520,  -560,  336,   1076,  -64,   -532,  776,  584,
  192,   396,   -728,  -520,  276,   -188,  80,    -52,   -612,  -252, -48,
  648,   212,   -688,  228,   -52,   -260,  428,   -412,  -272,  -404, 180,
  816,   -796,  48,    152,   484,   -88,   -216,  988,   696,   188,  -528,
  648,   -116,  -180,  316,   476,   12,    -564,  96,    476,   -252, -364,
  -376,  -392,  556,   -256,  -576,  260,   -352,  120,   -16,   -136, -260,
  -492,  72,    556,   660,   580,   616,   772,   436,   424,   -32,  -324,
  -1268, 416,   -324,  -80,   920,   160,   228,   724,   32,    -516, 64,
  384,   68,    -128,  136,   240,   248,   -204,  -68,   252,   -932, -120,
  -480,  -628,  -84,   192,   852,   -404,  -288,  -132,  204,   100,  168,
  -68,   -196,  -868,  460,   1080,  380,   -80,   244,   0,     484,  -888,
  64,    184,   352,   600,   460,   164,   604,   -196,  320,   -64,  588,
  -184,  228,   12,    372,   48,    -848,  -344,  224,   208,   -200, 484,
  128,   -20,   272,   -468,  -840,  384,   256,   -720,  -520,  -464, -580,
  112,   -120,  644,   -356,  -208,  -608,  -528,  704,   560,   -424, 392,
  828,   40,    84,    200,   -152,  0,     -144,  584,   280,   -120, 80,
  -556,  -972,  -196,  -472,  724,   80,    168,   -32,   88,    160,  -688,
  0,     160,   356,   372,   -776,  740,   -128,  676,   -248,  -480, 4,
  -364,  96,    544,   232,   -1032, 956,   236,   356,   20,    -40,  300,
  24,    -676,  -596,  132,   1120,  -104,  532,   -1096, 568,   648,  444,
  508,   380,   188,   -376,  -604,  1488,  424,   24,    756,   -220, -192,
  716,   120,   920,   688,   168,   44,    -460,  568,   284,   1144, 1160,
  600,   424,   888,   656,   -356,  -320,  220,   316,   -176,  -724, -188,
  -816,  -628,  -348,  -228,  -380,  1012,  -452,  -660,  736,   928,  404,
  -696,  -72,   -268,  -892,  128,   184,   -344,  -780,  360,   336,  400,
  344,   428,   548,   -112,  136,   -228,  -216,  -820,  -516,  340,  92,
  -136,  116,   -300,  376,   -244,  100,   -316,  -520,  -284,  -12,  824,
  164,   -548,  -180,  -128,  116,   -924,  -828,  268,   -368,  -580, 620,
  192,   160,   0,     -1676, 1068,  424,   -56,   -360,  468,   -156, 720,
  288,   -528,  556,   -364,  548,   -148,  504,   316,   152,   -648, -620,
  -684,  -24,   -376,  -384,  -108,  -920,  -1032, 768,   180,   -264, -508,
  -1268, -260,  -60,   300,   -240,  988,   724,   -376,  -576,  -212, -736,
  556,   192,   1092,  -620,  -880,  376,   -56,   -4,    -216,  -32,  836,
  268,   396,   1332,  864,   -600,  100,   56,    -412,  -92,   356,  180,
  884,   -468,  -436,  292,   -388,  -804,  -704,  -840,  368,   -348, 140,
  -724,  1536,  940,   372,   112,   -372,  436,   -480,  1136,  296,  -32,
  -228,  132,   -48,   -220,  868,   -1016, -60,   -1044, -464,  328,  916,
  244,   12,    -736,  -296,  360,   468,   -376,  -108,  -92,   788,  368,
  -56,   544,   400,   -672,  -420,  728,   16,    320,   44,    -284, -380,
  -796,  488,   132,   204,   -596,  -372,  88,    -152,  -908,  -636, -572,
  -624,  -116,  -692,  -200,  -56,   276,   -88,   484,   -324,  948,  864,
  1000,  -456,  -184,  -276,  292,   -296,  156,   676,   320,   160,  908,
  -84,   -1236, -288,  -116,  260,   -372,  -644,  732,   -756,  -96,  84,
  344,   -520,  348,   -688,  240,   -84,   216,   -1044, -136,  -676, -396,
  -1500, 960,   -40,   176,   168,   1516,  420,   -504,  -344,  -364, -360,
  1216,  -940,  -380,  -212,  252,   -660,  -708,  484,   -444,  -152, 928,
  -120,  1112,  476,   -260,  560,   -148,  -344,  108,   -196,  228,  -288,
  504,   560,   -328,  -88,   288,   -1008, 460,   -228,  468,   -836, -196,
  76,    388,   232,   412,   -1168, -716,  -644,  756,   -172,  -356, -504,
  116,   432,   528,   48,    476,   -168,  -608,  448,   160,   -532, -272,
  28,    -676,  -12,   828,   980,   456,   520,   104,   -104,  256,  -344,
  -4,    -28,   -368,  -52,   -524,  -572,  -556,  -200,  768,   1124, -208,
  -512,  176,   232,   248,   -148,  -888,  604,   -600,  -304,  804,  -156,
  -212,  488,   -192,  -804,  -256,  368,   -360,  -916,  -328,  228,  -240,
  -448,  -472,  856,   -556,  -364,  572,   -12,   -156,  -368,  -340, 432,
  252,   -752,  -152,  288,   268,   -580,  -848,  -592,  108,   -76,  244,
  312,   -716,  592,   -80,   436,   360,   4,     -248,  160,   516,  584,
  732,   44,    -468,  -280,  -292,  -156,  -588,  28,    308,   912,  24,
  124,   156,   180,   -252,  944,   -924,  -772,  -520,  -428,  -624, 300,
  -212,  -1144, 32,    -724,  800,   -1128, -212,  -1288, -848,  180,  -416,
  440,   192,   -576,  -792,  -76,   -1080, 80,    -532,  -352,  -132, 380,
  -820,  148,   1112,  128,   164,   456,   700,   -924,  144,   -668, -384,
  648,   -832,  508,   552,   -52,   -100,  -656,  208,   -568,  748,  -88,
  680,   232,   300,   192,   -408,  -1012, -152,  -252,  -268,  272,  -876,
  -664,  -648,  -332,  -136,  16,    12,    1152,  -28,   332,   -536, 320,
  -672,  -460,  -316,  532,   -260,  228,   -40,   1052,  -816,  180,  88,
  -496,  -556,  -672,  -368,  428,   92,    356,   404,   -408,  252,  196,
  -176,  -556,  792,   268,   32,    372,   40,    96,    -332,  328,  120,
  372,   -900,  -40,   472,   -264,  -592,  952,   128,   656,   112,  664,
  -232,  420,   4,     -344,  -464,  556,   244,   -416,  -32,   252,  0,
  -412,  188,   -696,  508,   -476,  324,   -1096, 656,   -312,  560,  264,
  -136,  304,   160,   -64,   -580,  248,   336,   -720,  560,   -348, -288,
  -276,  -196,  -500,  852,   -544,  -236,  -1128, -992,  -776,  116,  56,
  52,    860,   884,   212,   -12,   168,   1020,  512,   -552,  924,  -148,
  716,   188,   164,   -340,  -520,  -184,  880,   -152,  -680,  -208, -1156,
  -300,  -528,  -472,  364,   100,   -744,  -1056, -32,   540,   280,  144,
  -676,  -32,   -232,  -280,  -224,  96,    568,   -76,   172,   148,  148,
  104,   32,    -296,  -32,   788,   -80,   32,    -16,   280,   288,  944,
  428,   -484
}

Default CDF tables

This section contains the default values for the cumulative distributions.

Default_Intra_Frame_Y_Mode_Cdf[ INTRA_MODE_CONTEXTS ][ INTRA_MODE_CONTEXTS ][ INTRA_MODES + 1 ] = {
  {
    { 15588, 17027, 19338, 20218, 20682, 21110, 21825, 23244,
                24189, 28165, 29093, 30466, 32768, 0 },
    { 12016, 18066, 19516, 20303, 20719, 21444, 21888, 23032,
                24434, 28658, 30172, 31409, 32768, 0 },
    { 10052, 10771, 22296, 22788, 23055, 23239, 24133, 25620,
                26160, 29336, 29929, 31567, 32768, 0 },
    { 14091, 15406, 16442, 18808, 19136, 19546, 19998, 22096,
                24746, 29585, 30958, 32462, 32768, 0 },
    { 12122, 13265, 15603, 16501, 18609, 20033, 22391, 25583,
                26437, 30261, 31073, 32475, 32768, 0 }
  },
  {
    { 10023, 19585, 20848, 21440, 21832, 22760, 23089, 24023,
                25381, 29014, 30482, 31436, 32768, 0 },
    { 5983, 24099, 24560, 24886, 25066, 25795, 25913, 26423,
                27610, 29905, 31276, 31794, 32768, 0 },
    { 7444, 12781, 20177, 20728, 21077, 21607, 22170, 23405,
                24469, 27915, 29090, 30492, 32768, 0 },
    { 8537, 14689, 15432, 17087, 17408, 18172, 18408, 19825,
                24649, 29153, 31096, 32210, 32768, 0 },
    { 7543, 14231, 15496, 16195, 17905, 20717, 21984, 24516,
                26001, 29675, 30981, 31994, 32768, 0 }
  },
  {
    { 12613, 13591, 21383, 22004, 22312, 22577, 23401, 25055,
                25729, 29538, 30305, 32077, 32768, 0 },
    { 9687, 13470, 18506, 19230, 19604, 20147, 20695, 22062,
                23219, 27743, 29211, 30907, 32768, 0 },
    { 6183, 6505, 26024, 26252, 26366, 26434, 27082, 28354, 28555,
                30467, 30794, 32086, 32768, 0 },
    { 10718, 11734, 14954, 17224, 17565, 17924, 18561, 21523,
                23878, 28975, 30287, 32252, 32768, 0 },
    { 9194, 9858, 16501, 17263, 18424, 19171, 21563, 25961, 26561,
                30072, 30737, 32463, 32768, 0 }
  },
  {
    { 12602, 14399, 15488, 18381, 18778, 19315, 19724, 21419,
                25060, 29696, 30917, 32409, 32768, 0 },
    { 8203, 13821, 14524, 17105, 17439, 18131, 18404, 19468,
                25225, 29485, 31158, 32342, 32768, 0 },
    { 8451, 9731, 15004, 17643, 18012, 18425, 19070, 21538, 24605,
                29118, 30078, 32018, 32768, 0 },
    { 7714, 9048, 9516, 16667, 16817, 16994, 17153, 18767, 26743,
                30389, 31536, 32528, 32768, 0 },
    { 8843, 10280, 11496, 15317, 16652, 17943, 19108, 22718,
                25769, 29953, 30983, 32485, 32768, 0 }
  },
  {
    { 12578, 13671, 15979, 16834, 19075, 20913, 22989, 25449,
                26219, 30214, 31150, 32477, 32768, 0 },
    { 9563, 13626, 15080, 15892, 17756, 20863, 22207, 24236,
                25380, 29653, 31143, 32277, 32768, 0 },
    { 8356, 8901, 17616, 18256, 19350, 20106, 22598, 25947, 26466,
                29900, 30523, 32261, 32768, 0 },
    { 10835, 11815, 13124, 16042, 17018, 18039, 18947, 22753,
                24615, 29489, 30883, 32482, 32768, 0 },
    { 7618, 8288, 9859, 10509, 15386, 18657, 22903, 28776, 29180,
                31355, 31802, 32593, 32768, 0 }
  }
}
Default_Y_Mode_Cdf[ BLOCK_SIZE_GROUPS ][ INTRA_MODES + 1 ] = {
  { 22801, 23489, 24293, 24756,
    25601, 26123, 26606, 27418,
    27945, 29228, 29685, 30349,
    32768, 0 },
  { 18673, 19845, 22631, 23318,
    23950, 24649, 25527, 27364,
    28152, 29701, 29984, 30852,
    32768, 0 },
  { 19770, 20979, 23396, 23939,
    24241, 24654, 25136, 27073,
    27830, 29360, 29730, 30659,
    32768, 0 },
  { 20155, 21301, 22838, 23178,
    23261, 23533, 23703, 24804,
    25352, 26575, 27016, 28049,
    32768, 0 }
}
Default_Uv_Mode_Cfl_Not_Allowed_Cdf[ INTRA_MODES ][ UV_INTRA_MODES_CFL_NOT_ALLOWED + 1 ] = {
  { 22631, 24152, 25378, 25661, 25986, 26520, 27055, 27923,
    28244, 30059, 30941, 31961, 32768, 0 },
  { 9513, 26881, 26973, 27046, 27118, 27664, 27739, 27824,
    28359, 29505, 29800, 31796, 32768, 0 },
  { 9845, 9915, 28663, 28704, 28757, 28780, 29198, 29822, 29854,
    30764, 31777, 32029, 32768, 0 },
  { 13639, 13897, 14171, 25331, 25606, 25727, 25953, 27148,
    28577, 30612, 31355, 32493, 32768, 0 },
  { 9764, 9835, 9930, 9954, 25386, 27053, 27958, 28148, 28243,
    31101, 31744, 32363, 32768, 0 },
  { 11825, 13589, 13677, 13720, 15048, 29213, 29301, 29458,
    29711, 31161, 31441, 32550, 32768, 0 },
  { 14175, 14399, 16608, 16821, 17718, 17775, 28551, 30200,
    30245, 31837, 32342, 32667, 32768, 0 },
  { 12885, 13038, 14978, 15590, 15673, 15748, 16176, 29128,
    29267, 30643, 31961, 32461, 32768, 0 },
  { 12026, 13661, 13874, 15305, 15490, 15726, 15995, 16273,
    28443, 30388, 30767, 32416, 32768, 0 },
  { 19052, 19840, 20579, 20916, 21150, 21467, 21885, 22719,
    23174, 28861, 30379, 32175, 32768, 0 },
  { 18627, 19649, 20974, 21219, 21492, 21816, 22199, 23119,
    23527, 27053, 31397, 32148, 32768, 0 },
  { 17026, 19004, 19997, 20339, 20586, 21103, 21349, 21907,
    22482, 25896, 26541, 31819, 32768, 0 },
  { 12124, 13759, 14959, 14992, 15007, 15051, 15078, 15166,
    15255, 15753, 16039, 16606, 32768, 0 }
}
Default_Uv_Mode_Cfl_Allowed_Cdf[ INTRA_MODES ][ UV_INTRA_MODES_CFL_ALLOWED + 1 ] = {
  { 10407, 11208, 12900, 13181, 13823, 14175, 14899, 15656,
    15986, 20086, 20995, 22455, 24212, 32768, 0 },
  { 4532, 19780, 20057, 20215, 20428, 21071, 21199, 21451,
    22099, 24228, 24693, 27032, 29472, 32768, 0 },
  { 5273, 5379, 20177, 20270, 20385, 20439, 20949, 21695, 21774,
    23138, 24256, 24703, 26679, 32768, 0 },
  { 6740, 7167, 7662, 14152, 14536, 14785, 15034, 16741, 18371,
    21520, 22206, 23389, 24182, 32768, 0 },
  { 4987, 5368, 5928, 6068, 19114, 20315, 21857, 22253, 22411,
    24911, 25380, 26027, 26376, 32768, 0 },
  { 5370, 6889, 7247, 7393, 9498, 21114, 21402, 21753, 21981,
    24780, 25386, 26517, 27176, 32768, 0 },
  { 4816, 4961, 7204, 7326, 8765, 8930, 20169, 20682, 20803,
    23188, 23763, 24455, 24940, 32768, 0 },
  { 6608, 6740, 8529, 9049, 9257, 9356, 9735, 18827, 19059,
    22336, 23204, 23964, 24793, 32768, 0 },
  { 5998, 7419, 7781, 8933, 9255, 9549, 9753, 10417, 18898,
    22494, 23139, 24764, 25989, 32768, 0 },
  { 10660, 11298, 12550, 12957, 13322, 13624, 14040, 15004,
    15534, 20714, 21789, 23443, 24861, 32768, 0 },
  { 10522, 11530, 12552, 12963, 13378, 13779, 14245, 15235,
    15902, 20102, 22696, 23774, 25838, 32768, 0 },
  { 10099, 10691, 12639, 13049, 13386, 13665, 14125, 15163,
    15636, 19676, 20474, 23519, 25208, 32768, 0 },
  { 3144, 5087, 7382, 7504, 7593, 7690, 7801, 8064, 8232, 9248,
    9875, 10521, 29048, 32768, 0 }
}
Default_Angle_Delta_Cdf[ DIRECTIONAL_MODES ][(2 * MAX_ANGLE_DELTA + 1) + 1] = {
  { 2180, 5032, 7567, 22776, 26989, 30217, 32768, 0 },
  { 2301, 5608, 8801, 23487, 26974, 30330, 32768, 0 },
  { 3780, 11018, 13699, 19354, 23083, 31286, 32768, 0 },
  { 4581, 11226, 15147, 17138, 21834, 28397, 32768, 0 },
  { 1737, 10927, 14509, 19588, 22745, 28823, 32768, 0 },
  { 2664, 10176, 12485, 17650, 21600, 30495, 32768, 0 },
  { 2240, 11096, 15453, 20341, 22561, 28917, 32768, 0 },
  { 3605, 10428, 12459, 17676, 21244, 30655, 32768, 0 }
}
Default_Intrabc_Cdf[ 2 + 1 ] = { 30531, 32768, 0 }
Default_Partition_W8_Cdf[ PARTITION_CONTEXTS ][ 5 ] = {
  { 19132, 25510, 30392, 32768, 0 },
  { 13928, 19855, 28540, 32768, 0 },
  { 12522, 23679, 28629, 32768, 0 },
  { 9896, 18783, 25853, 32768, 0 },
}
Default_Partition_W16_Cdf[ PARTITION_CONTEXTS ][ 11 ] = {
  { 15597, 20929, 24571, 26706, 27664, 28821, 29601, 30571, 31902, 32768, 0 },
  { 7925, 11043, 16785, 22470, 23971, 25043, 26651, 28701, 29834, 32768, 0 },
  { 5414, 13269, 15111, 20488, 22360, 24500, 25537, 26336, 32117, 32768, 0 },
  { 2662, 6362, 8614, 20860, 23053, 24778, 26436, 27829, 31171, 32768, 0 }
}
Default_Partition_W32_Cdf[ PARTITION_CONTEXTS ][ 11 ] = {
  { 18462, 20920, 23124, 27647, 28227, 29049, 29519, 30178, 31544, 32768, 0 },
  { 7689, 9060, 12056, 24992, 25660, 26182, 26951, 28041, 29052, 32768, 0 },
  { 6015, 9009, 10062, 24544, 25409, 26545, 27071, 27526, 32047, 32768, 0 },
  { 1394, 2208, 2796, 28614, 29061, 29466, 29840, 30185, 31899, 32768, 0 }
}
Default_Partition_W64_Cdf[ PARTITION_CONTEXTS ][ 11 ] = {
  { 20137, 21547, 23078, 29566, 29837, 30261, 30524, 30892, 31724, 32768, 0 },
  { 6732, 7490, 9497, 27944, 28250, 28515, 28969, 29630, 30104, 32768, 0 },
  { 5945, 7663, 8348, 28683, 29117, 29749, 30064, 30298, 32238, 32768, 0 },
  { 870, 1212, 1487, 31198, 31394, 31574, 31743, 31881, 32332, 32768, 0 }
}
Default_Partition_W128_Cdf[ PARTITION_CONTEXTS ][ 9 ] = {
  { 27899, 28219, 28529, 32484, 32539, 32619, 32639, 32768, 0 },
  { 6607, 6990, 8268, 32060, 32219, 32338, 32371, 32768, 0 },
  { 5429, 6676, 7122, 32027, 32227, 32531, 32582, 32768, 0 },
  { 711, 966, 1172, 32448, 32538, 32617, 32664, 32768, 0 }
}
Default_Tx_8x8_Cdf[ TX_SIZE_CONTEXTS ][ MAX_TX_DEPTH + 1 ] = {
  { 19968, 32768, 0 },
  { 19968, 32768, 0 },
  { 24320, 32768, 0 }
}
Default_Tx_16x16_Cdf[ TX_SIZE_CONTEXTS ][ MAX_TX_DEPTH + 2 ] = {
  { 12272, 30172, 32768, 0 },
  { 12272, 30172, 32768, 0 },
  { 18677, 30848, 32768, 0 }
}
Default_Tx_32x32_Cdf[ TX_SIZE_CONTEXTS ][ MAX_TX_DEPTH + 2 ] = {
  { 12986, 15180, 32768, 0 },
  { 12986, 15180, 32768, 0 },
  { 24302, 25602, 32768, 0 }
}
Default_Tx_64x64_Cdf[ TX_SIZE_CONTEXTS ][ MAX_TX_DEPTH + 2 ] = {
  { 5782, 11475, 32768, 0 },
  { 5782, 11475, 32768, 0 },
  { 16803, 22759, 32768, 0 }
}
Default_Txfm_Split_Cdf[ TXFM_PARTITION_CONTEXTS ][ 3 ] = {
  { 28581, 32768, 0 }, { 23846, 32768, 0 }, { 20847, 32768, 0 },
  { 24315, 32768, 0 }, { 18196, 32768, 0 }, { 12133, 32768, 0 },
  { 18791, 32768, 0 }, { 10887, 32768, 0 }, { 11005, 32768, 0 },
  { 27179, 32768, 0 }, { 20004, 32768, 0 }, { 11281, 32768, 0 },
  { 26549, 32768, 0 }, { 19308, 32768, 0 }, { 14224, 32768, 0 },
  { 28015, 32768, 0 }, { 21546, 32768, 0 }, { 14400, 32768, 0 },
  { 28165, 32768, 0 }, { 22401, 32768, 0 }, { 16088, 32768, 0 }
}
Default_Filter_Intra_Mode_Cdf[ 6 ] = { 8949, 12776, 17211, 29558, 32768, 0 }
Default_Filter_Intra_Cdf[ BLOCK_SIZES ][ 3 ] = {
  {  4621, 32768, 0 }, {  6743, 32768, 0 }, {  5893, 32768, 0 },
  {  7866, 32768, 0 }, { 12551, 32768, 0 }, {  9394, 32768, 0 },
  { 12408, 32768, 0 }, { 14301, 32768, 0 }, { 12756, 32768, 0 },
  { 22343, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 },
  { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 },
  { 16384, 32768, 0 }, { 12770, 32768, 0 }, { 10368, 32768, 0 },
  { 20229, 32768, 0 }, { 18101, 32768, 0 }, { 16384, 32768, 0 },
  { 16384, 32768, 0 }
}

Note: Indices 10 to 15 and 20 to 21 inclusive are never used in the first dimension of the Default_Filter_Intra_Cdf CDF table.

Default_Segment_Id_Cdf[ SEGMENT_ID_CONTEXTS ][ MAX_SEGMENTS + 1 ] = {
  { 5622, 7893, 16093, 18233, 27809, 28373, 32533, 32768, 0 },
  { 14274, 18230, 22557, 24935, 29980, 30851, 32344, 32768, 0 },
  { 27527, 28487, 28723, 28890, 32397, 32647, 32679, 32768, 0 }
}
Default_Segment_Id_Predicted_Cdf[ SEGMENT_ID_PREDICTED_CONTEXTS ][ 3 ] = {
  { 128 * 128, 32768, 0 },
  { 128 * 128, 32768, 0 },
  { 128 * 128, 32768, 0 }
}
Default_Mv_Class0_Hp_Cdf[ 3 ] = {
  160*128, 32768, 0
}
Default_Mv_Hp_Cdf[ 3 ] = {
  128*128, 32768, 0
}
Default_Mv_Sign_Cdf[3] = {
  128*128, 32768, 0
}
Default_Mv_Bit_Cdf[ MV_OFFSET_BITS ][ 3 ] = {
  { 136*128, 32768, 0 },
  { 140*128, 32768, 0 },
  { 148*128, 32768, 0 },
  { 160*128, 32768, 0 },
  { 176*128, 32768, 0 },
  { 192*128, 32768, 0 },
  { 224*128, 32768, 0 },
  { 234*128, 32768, 0 },
  { 234*128, 32768, 0 },
  { 240*128, 32768, 0 }
}
Default_Mv_Class0_Bit_Cdf[ 3 ] = {
  216*128, 32768, 0
}
Default_New_Mv_Cdf[ NEW_MV_CONTEXTS ][ 3 ] = {
  { 24035, 32768, 0 },
  { 16630, 32768, 0 },
  { 15339, 32768, 0 },
  { 8386, 32768, 0 },
  { 12222, 32768, 0 },
  { 4676, 32768, 0 }
}
Default_Zero_Mv_Cdf[ ZERO_MV_CONTEXTS ][ 3 ] = {
  { 2175, 32768, 0 },
  { 1054, 32768, 0 }
}
Default_Ref_Mv_Cdf[ REF_MV_CONTEXTS ][ 3 ] = {
  { 23974, 32768, 0 },
  { 24188, 32768, 0 },
  { 17848, 32768, 0 },
  { 28622, 32768, 0 },
  { 24312, 32768, 0 },
  { 19923, 32768, 0 }
}
Default_Drl_Mode_Cdf[ DRL_MODE_CONTEXTS ][ 3 ] = {
  { 13104, 32768, 0 },
  { 24560, 32768, 0 },
  { 18945, 32768, 0 }
}
Default_Is_Inter_Cdf[ IS_INTER_CONTEXTS ][ 3 ] = {
  { 806, 32768, 0 },
  { 16662, 32768, 0 },
  { 20186, 32768, 0 },
  { 26538, 32768, 0 }
}
Default_Comp_Mode_Cdf[ COMP_INTER_CONTEXTS ][ 3 ] = {
  { 26828, 32768, 0 },
  { 24035, 32768, 0 },
  { 12031, 32768, 0 },
  { 10640, 32768, 0 },
  { 2901, 32768, 0 }
}
Default_Skip_Mode_Cdf[ SKIP_MODE_CONTEXTS ][ 3 ] = {
  {32621, 32768, 0},
  {20708, 32768, 0},
  {8127, 32768, 0}
}
Default_Skip_Cdf[ SKIP_CONTEXTS ][ 3 ] = {
  { 31671, 32768, 0 },
  { 16515, 32768, 0 },
  { 4576, 32768, 0 }
}
Default_Comp_Ref_Cdf[ REF_CONTEXTS ][ FWD_REFS - 1 ][ 3 ] = {
  { { 4946, 32768, 0 },
    { 9468, 32768, 0 },
    { 1503, 32768, 0 } },
  { { 19891, 32768, 0 },
    { 22441, 32768, 0 },
    { 15160, 32768, 0 } },
  { { 30731, 32768, 0 },
    { 31059, 32768, 0 },
    { 27544, 32768, 0 } }
}
Default_Comp_Bwd_Ref_Cdf[ REF_CONTEXTS ][ BWD_REFS - 1 ][ 3 ] = {
  { {  2235, 32768, 0 }, {  1423, 32768, 0 } },
  { { 17182, 32768, 0 }, { 15175, 32768, 0 } },
  { { 30606, 32768, 0 }, { 30489, 32768, 0 } }
}
Default_Single_Ref_Cdf[ REF_CONTEXTS ][ SINGLE_REFS - 1 ][ 3 ] = {
  { { 4897, 32768, 0 }, { 1555, 32768, 0 }, { 4236, 32768, 0 },
    { 8650, 32768, 0 }, { 904, 32768, 0 }, { 1444, 32768, 0 } },
  { { 16973, 32768, 0 }, { 16751, 32768, 0 }, { 19647, 32768, 0 },
    { 24773, 32768, 0 }, { 11014, 32768, 0 }, { 15087, 32768, 0 } },
  { { 29744, 32768, 0 }, { 30279, 32768, 0 }, { 31194, 32768, 0 },
    { 31895, 32768, 0 }, { 26875, 32768, 0 }, { 30304, 32768, 0 } }
}
Default_Compound_Mode_Cdf[ COMPOUND_MODE_CONTEXTS ][ COMPOUND_MODES + 1 ] = {
  { 7760, 13823, 15808, 17641, 19156, 20666, 26891, 32768, 0 },
  { 10730, 19452, 21145, 22749, 24039, 25131, 28724, 32768, 0 },
  { 10664, 20221, 21588, 22906, 24295, 25387, 28436, 32768, 0 },
  { 13298, 16984, 20471, 24182, 25067, 25736, 26422, 32768, 0 },
  { 18904, 23325, 25242, 27432, 27898, 28258, 30758, 32768, 0 },
  { 10725, 17454, 20124, 22820, 24195, 25168, 26046, 32768, 0 },
  { 17125, 24273, 25814, 27492, 28214, 28704, 30592, 32768, 0 },
  { 13046, 23214, 24505, 25942, 27435, 28442, 29330, 32768, 0 }
}
Default_Interp_Filter_Cdf[ INTERP_FILTER_CONTEXTS ][ INTERP_FILTERS + 1 ] = {
  { 31935, 32720, 32768, 0 },
  { 5568, 32719, 32768, 0 },
  { 422, 2938, 32768, 0 },
  { 28244, 32608, 32768, 0 },
  { 31206, 31953, 32768, 0 },
  { 4862, 32121, 32768, 0 },
  { 770, 1152, 32768, 0 },
  { 20889, 25637, 32768, 0 },
  { 31910, 32724, 32768, 0 },
  { 4120, 32712, 32768, 0 },
  { 305, 2247, 32768, 0 },
  { 27403, 32636, 32768, 0 },
  { 31022, 32009, 32768, 0 },
  { 2963, 32093, 32768, 0 },
  { 601, 943, 32768, 0 },
  { 14969, 21398, 32768, 0 }
}
Default_Motion_Mode_Cdf[ BLOCK_SIZES ][ MOTION_MODES + 1 ] = {
  { 10923, 21845, 32768, 0 },
  { 10923, 21845, 32768, 0 },
  { 10923, 21845, 32768, 0 },
  { 7651, 24760, 32768, 0 },
  { 4738, 24765, 32768, 0 },
  { 5391, 25528, 32768, 0 },
  { 19419, 26810, 32768, 0 },
  { 5123, 23606, 32768, 0 },
  { 11606, 24308, 32768, 0 },
  { 26260, 29116, 32768, 0 },
  { 20360, 28062, 32768, 0 },
  { 21679, 26830, 32768, 0 },
  { 29516, 30701, 32768, 0 },
  { 28898, 30397, 32768, 0 },
  { 30878, 31335, 32768, 0 },
  { 32507, 32558, 32768, 0 },
  { 10923, 21845, 32768, 0 },
  { 10923, 21845, 32768, 0 },
  { 28799, 31390, 32768, 0 },
  { 26431, 30774, 32768, 0 },
  { 28973, 31594, 32768, 0 },
  { 29742, 31203, 32768, 0 }
}

Note: Indices 0 to 2 and 16 to 17 inclusive are never used in the first dimension of the Default_Motion_Mode_Cdf CDF table.

Default_Mv_Joint_Cdf[ MV_JOINTS + 1 ] = {
  4096, 11264, 19328, 32768, 0
}
Default_Mv_Class_Cdf[ 2 ][ MV_CLASSES + 1 ] = {
  { 28672, 30976, 31858, 32320,
    32551, 32656, 32740, 32757,
    32762, 32767, 32768, 0 },
  { 28672, 30976, 31858, 32320,
    32551, 32656, 32740, 32757,
    32762, 32767, 32768, 0 }
}
Default_Mv_Class0_Fr_Cdf[ 2 ][ CLASS0_SIZE ][ MV_JOINTS + 1 ] = {
  { { 16384, 24576, 26624, 32768, 0 },
    { 12288, 21248, 24128, 32768, 0 } },
  { { 16384, 24576, 26624, 32768, 0 },
    { 12288, 21248, 24128, 32768, 0 } },
}
Default_Mv_Fr_Cdf[ 2 ][ MV_JOINTS + 1 ] = {
  { 8192, 17408, 21248, 32768, 0 },
  { 8192, 17408, 21248, 32768, 0 },
}
Default_Palette_Y_Size_Cdf[ PALETTE_BLOCK_SIZE_CONTEXTS ][ PALETTE_SIZES + 1 ] = {
  { 7952, 13000, 18149, 21478, 25527, 29241, 32768, 0 },
  { 7139, 11421, 16195, 19544, 23666, 28073, 32768, 0 },
  { 7788, 12741, 17325, 20500, 24315, 28530, 32768, 0 },
  { 8271, 14064, 18246, 21564, 25071, 28533, 32768, 0 },
  { 12725, 19180, 21863, 24839, 27535, 30120, 32768, 0 },
  { 9711, 14888, 16923, 21052, 25661, 27875, 32768, 0 },
  { 14940, 20797, 21678, 24186, 27033, 28999, 32768, 0 }
}
Default_Palette_Uv_Size_Cdf[ PALETTE_BLOCK_SIZE_CONTEXTS ][ PALETTE_SIZES + 1 ] = {
  { 8713, 19979, 27128, 29609, 31331, 32272, 32768, 0 },
  { 5839, 15573, 23581, 26947, 29848, 31700, 32768, 0 },
  { 4426, 11260, 17999, 21483, 25863, 29430, 32768, 0 },
  { 3228, 9464, 14993, 18089, 22523, 27420, 32768, 0 },
  { 3768, 8886, 13091, 17852, 22495, 27207, 32768, 0 },
  { 2464, 8451, 12861, 21632, 25525, 28555, 32768, 0 },
  { 1269, 5435, 10433, 18963, 21700, 25865, 32768, 0 }
}
Default_Palette_Size_2_Y_Color_Cdf[ PALETTE_COLOR_CONTEXTS ][ 3 ] = {
  { 28710, 32768, 0 },
  { 16384, 32768, 0 },
  { 10553, 32768, 0 },
  { 27036, 32768, 0 },
  { 31603, 32768, 0 }
}

Default_Palette_Size_3_Y_Color_Cdf[ PALETTE_COLOR_CONTEXTS ][ 4 ] = {
  { 27877, 30490, 32768, 0 },
  { 11532, 25697, 32768, 0 },
  { 6544, 30234, 32768, 0 },
  { 23018, 28072, 32768, 0 },
  { 31915, 32385, 32768, 0 }
}

Default_Palette_Size_4_Y_Color_Cdf[ PALETTE_COLOR_CONTEXTS ][ 5 ] = {
  { 25572, 28046, 30045, 32768, 0 },
  { 9478, 21590, 27256, 32768, 0 },
  { 7248, 26837, 29824, 32768, 0 },
  { 19167, 24486, 28349, 32768, 0 },
  { 31400, 31825, 32250, 32768, 0 }
}

Default_Palette_Size_5_Y_Color_Cdf[ PALETTE_COLOR_CONTEXTS ][ 6 ] = {
  { 24779, 26955, 28576, 30282, 32768, 0 },
  { 8669, 20364, 24073, 28093, 32768, 0 },
  { 4255, 27565, 29377, 31067, 32768, 0 },
  { 19864, 23674, 26716, 29530, 32768, 0 },
  { 31646, 31893, 32147, 32426, 32768, 0 }
}

Default_Palette_Size_6_Y_Color_Cdf[ PALETTE_COLOR_CONTEXTS ][ 7 ] = {
  { 23132, 25407, 26970, 28435, 30073, 32768, 0 },
  { 7443, 17242, 20717, 24762, 27982, 32768, 0 },
  { 6300, 24862, 26944, 28784, 30671, 32768, 0 },
  { 18916, 22895, 25267, 27435, 29652, 32768, 0 },
  { 31270, 31550, 31808, 32059, 32353, 32768, 0 }
}

Default_Palette_Size_7_Y_Color_Cdf[ PALETTE_COLOR_CONTEXTS ][ 8 ] = {
  { 23105, 25199, 26464, 27684, 28931, 30318, 32768, 0 },
  { 6950, 15447, 18952, 22681, 25567, 28563, 32768, 0 },
  { 7560, 23474, 25490, 27203, 28921, 30708, 32768, 0 },
  { 18544, 22373, 24457, 26195, 28119, 30045, 32768, 0 },
  { 31198, 31451, 31670, 31882, 32123, 32391, 32768, 0 }
}

Default_Palette_Size_8_Y_Color_Cdf[ PALETTE_COLOR_CONTEXTS ][ 9 ] = {
  { 21689, 23883, 25163, 26352, 27506, 28827, 30195, 32768, 0 },
  { 6892, 15385, 17840, 21606, 24287, 26753, 29204, 32768, 0 },
  { 5651, 23182, 25042, 26518, 27982, 29392, 30900, 32768, 0 },
  { 19349, 22578, 24418, 25994, 27524, 29031, 30448, 32768, 0 },
  { 31028, 31270, 31504, 31705, 31927, 32153, 32392, 32768, 0 }
}
Default_Palette_Size_2_Uv_Color_Cdf[ PALETTE_COLOR_CONTEXTS ][ 3 ] = {
  { 29089, 32768, 0 },
  { 16384, 32768, 0 },
  { 8713, 32768, 0 },
  { 29257, 32768, 0 },
  { 31610, 32768, 0 }
}

Default_Palette_Size_3_Uv_Color_Cdf[ PALETTE_COLOR_CONTEXTS ][ 4 ] = {
  { 25257, 29145, 32768, 0 },
  { 12287, 27293, 32768, 0 },
  { 7033, 27960, 32768, 0 },
  { 20145, 25405, 32768, 0 },
  { 30608, 31639, 32768, 0 }
}

Default_Palette_Size_4_Uv_Color_Cdf[ PALETTE_COLOR_CONTEXTS ][ 5 ] = {
  { 24210, 27175, 29903, 32768, 0 },
  { 9888, 22386, 27214, 32768, 0 },
  { 5901, 26053, 29293, 32768, 0 },
  { 18318, 22152, 28333, 32768, 0 },
  { 30459, 31136, 31926, 32768, 0 }
}

Default_Palette_Size_5_Uv_Color_Cdf[ PALETTE_COLOR_CONTEXTS ][ 6 ] = {
  { 22980, 25479, 27781, 29986, 32768, 0 },
  { 8413, 21408, 24859, 28874, 32768, 0 },
  { 2257, 29449, 30594, 31598, 32768, 0 },
  { 19189, 21202, 25915, 28620, 32768, 0 },
  { 31844, 32044, 32281, 32518, 32768, 0 }
}

Default_Palette_Size_6_Uv_Color_Cdf[ PALETTE_COLOR_CONTEXTS ][ 7 ] = {
  { 22217, 24567, 26637, 28683, 30548, 32768, 0 },
  { 7307, 16406, 19636, 24632, 28424, 32768, 0 },
  { 4441, 25064, 26879, 28942, 30919, 32768, 0 },
  { 17210, 20528, 23319, 26750, 29582, 32768, 0 },
  { 30674, 30953, 31396, 31735, 32207, 32768, 0 }
}

Default_Palette_Size_7_Uv_Color_Cdf[ PALETTE_COLOR_CONTEXTS ][ 8 ] = {
  { 21239, 23168, 25044, 26962, 28705, 30506, 32768, 0 },
  { 6545, 15012, 18004, 21817, 25503, 28701, 32768, 0 },
  { 3448, 26295, 27437, 28704, 30126, 31442, 32768, 0 },
  { 15889, 18323, 21704, 24698, 26976, 29690, 32768, 0 },
  { 30988, 31204, 31479, 31734, 31983, 32325, 32768, 0 }
}

Default_Palette_Size_8_Uv_Color_Cdf[ PALETTE_COLOR_CONTEXTS ][ 9 ] = {
  { 21442, 23288, 24758, 26246, 27649, 28980, 30563, 32768, 0 },
  { 5863, 14933, 17552, 20668, 23683, 26411, 29273, 32768, 0 },
  { 3415, 25810, 26877, 27990, 29223, 30394, 31618, 32768, 0 },
  { 17965, 20084, 22232, 23974, 26274, 28402, 30390, 32768, 0 },
  { 31190, 31329, 31516, 31679, 31825, 32026, 32322, 32768, 0 }
}
Default_Palette_Y_Mode_Cdf[ PALETTE_BLOCK_SIZE_CONTEXTS ][ PALETTE_Y_MODE_CONTEXTS ][ 3 ] = {
  { { 31676, 32768, 0 }, {  3419, 32768, 0 }, {  1261, 32768, 0 } },
  { { 31912, 32768, 0 }, {  2859, 32768, 0 }, {   980, 32768, 0 } },
  { { 31823, 32768, 0 }, {  3400, 32768, 0 }, {   781, 32768, 0 } },
  { { 32030, 32768, 0 }, {  3561, 32768, 0 }, {   904, 32768, 0 } },
  { { 32309, 32768, 0 }, {  7337, 32768, 0 }, {  1462, 32768, 0 } },
  { { 32265, 32768, 0 }, {  4015, 32768, 0 }, {  1521, 32768, 0 } },
  { { 32450, 32768, 0 }, {  7946, 32768, 0 }, {   129, 32768, 0 } }
}
Default_Palette_Uv_Mode_Cdf[ PALETTE_UV_MODE_CONTEXTS ][ 3 ] = {
  { 32461, 32768, 0 }, { 21488, 32768, 0 }
}
Default_Delta_Q_Cdf[ DELTA_Q_SMALL + 2 ] = {
  28160, 32120, 32677, 32768, 0
}
Default_Delta_Lf_Cdf[ DELTA_LF_SMALL + 2 ] = {
  28160, 32120, 32677, 32768, 0
}
Default_Intra_Tx_Type_Set1_Cdf[ 2 ][ INTRA_MODES ][ 8 ] = {
    {
        { 1535, 8035, 9461, 12751, 23467, 27825, 32768, 0 },
        { 564, 3335, 9709, 10870, 18143, 28094, 32768, 0 },
        { 672, 3247, 3676, 11982, 19415, 23127, 32768, 0 },
        { 5279, 13885, 15487, 18044, 23527, 30252, 32768, 0 },
        { 4423, 6074, 7985, 10416, 25693, 29298, 32768, 0 },
        { 1486, 4241, 9460, 10662, 16456, 27694, 32768, 0 },
        { 439, 2838, 3522, 6737, 18058, 23754, 32768, 0 },
        { 1190, 4233, 4855, 11670, 20281, 24377, 32768, 0 },
        { 1045, 4312, 8647, 10159, 18644, 29335, 32768, 0 },
        { 202, 3734, 4747, 7298, 17127, 24016, 32768, 0 },
        { 447, 4312, 6819, 8884, 16010, 23858, 32768, 0 },
        { 277, 4369, 5255, 8905, 16465, 22271, 32768, 0 },
        { 3409, 5436, 10599, 15599, 19687, 24040, 32768, 0 }
    },
    {
        { 1870, 13742, 14530, 16498, 23770, 27698, 32768, 0 },
        { 326, 8796, 14632, 15079, 19272, 27486, 32768, 0 },
        { 484, 7576, 7712, 14443, 19159, 22591, 32768, 0 },
        { 1126, 15340, 15895, 17023, 20896, 30279, 32768, 0 },
        { 655, 4854, 5249, 5913, 22099, 27138, 32768, 0 },
        { 1299, 6458, 8885, 9290, 14851, 25497, 32768, 0 },
        { 311, 5295, 5552, 6885, 16107, 22672, 32768, 0 },
        { 883, 8059, 8270, 11258, 17289, 21549, 32768, 0 },
        { 741, 7580, 9318, 10345, 16688, 29046, 32768, 0 },
        { 110, 7406, 7915, 9195, 16041, 23329, 32768, 0 },
        { 363, 7974, 9357, 10673, 15629, 24474, 32768, 0 },
        { 153, 7647, 8112, 9936, 15307, 19996, 32768, 0 },
        { 3511, 6332, 11165, 15335, 19323, 23594, 32768, 0 }
    }
}
Default_Intra_Tx_Type_Set2_Cdf[ 3 ][ INTRA_MODES ][ 6 ] = {
    {
        { 6554, 13107, 19661, 26214, 32768, 0 },
        { 6554, 13107, 19661, 26214, 32768, 0 },
        { 6554, 13107, 19661, 26214, 32768, 0 },
        { 6554, 13107, 19661, 26214, 32768, 0 },
        { 6554, 13107, 19661, 26214, 32768, 0 },
        { 6554, 13107, 19661, 26214, 32768, 0 },
        { 6554, 13107, 19661, 26214, 32768, 0 },
        { 6554, 13107, 19661, 26214, 32768, 0 },
        { 6554, 13107, 19661, 26214, 32768, 0 },
        { 6554, 13107, 19661, 26214, 32768, 0 },
        { 6554, 13107, 19661, 26214, 32768, 0 },
        { 6554, 13107, 19661, 26214, 32768, 0 },
        { 6554, 13107, 19661, 26214, 32768, 0 }
    },
    {
        { 6554, 13107, 19661, 26214, 32768, 0 },
        { 6554, 13107, 19661, 26214, 32768, 0 },
        { 6554, 13107, 19661, 26214, 32768, 0 },
        { 6554, 13107, 19661, 26214, 32768, 0 },
        { 6554, 13107, 19661, 26214, 32768, 0 },
        { 6554, 13107, 19661, 26214, 32768, 0 },
        { 6554, 13107, 19661, 26214, 32768, 0 },
        { 6554, 13107, 19661, 26214, 32768, 0 },
        { 6554, 13107, 19661, 26214, 32768, 0 },
        { 6554, 13107, 19661, 26214, 32768, 0 },
        { 6554, 13107, 19661, 26214, 32768, 0 },
        { 6554, 13107, 19661, 26214, 32768, 0 },
        { 6554, 13107, 19661, 26214, 32768, 0 }
    },
    {
        { 1127, 12814, 22772, 27483, 32768, 0 },
        { 145, 6761, 11980, 26667, 32768, 0 },
        { 362, 5887, 11678, 16725, 32768, 0 },
        { 385, 15213, 18587, 30693, 32768, 0 },
        { 25, 2914, 23134, 27903, 32768, 0 },
        { 60, 4470, 11749, 23991, 32768, 0 },
        { 37, 3332, 14511, 21448, 32768, 0 },
        { 157, 6320, 13036, 17439, 32768, 0 },
        { 119, 6719, 12906, 29396, 32768, 0 },
        { 47, 5537, 12576, 21499, 32768, 0 },
        { 269, 6076, 11258, 23115, 32768, 0 },
        { 83, 5615, 12001, 17228, 32768, 0 },
        { 1968, 5556, 12023, 18547, 32768, 0 }
    }
}
Default_Inter_Tx_Type_Set1_Cdf[ 2 ][ 17 ] = {
    { 4458, 5560, 7695, 9709, 13330, 14789, 17537, 20266, 21504,
      22848, 23934, 25474, 27727, 28915, 30631, 32768, 0 },
    { 1645, 2573, 4778, 5711, 7807, 8622, 10522, 15357, 17674,
      20408, 22517, 25010, 27116, 28856, 30749, 32768, 0 }
}
Default_Inter_Tx_Type_Set2_Cdf[ 13 ] = {
    770, 2421, 5225, 12907, 15819, 18927, 21561, 24089, 26595,
    28526, 30529, 32768, 0
}
Default_Inter_Tx_Type_Set3_Cdf[ 4 ][ 3 ] = {
    { 16384, 32768, 0 },
    { 4167, 32768, 0 },
    { 1998, 32768, 0 },
    { 748, 32768, 0 }
}
Default_Compound_Idx_Cdf[ COMPOUND_IDX_CONTEXTS ][ 3 ] = {
  { 18244, 32768, 0 },
  { 12865, 32768, 0 },
  { 7053,  32768, 0 },
  { 13259, 32768, 0 },
  { 9334,  32768, 0 },
  { 4644,  32768, 0 }
}
Default_Comp_Group_Idx_Cdf[ COMP_GROUP_IDX_CONTEXTS ][ 3 ] = {
  { 26607, 32768, 0 },
  { 22891, 32768, 0 },
  { 18840, 32768, 0 },
  { 24594, 32768, 0 },
  { 19934, 32768, 0 },
  { 22674, 32768, 0 }
}
Default_Compound_Type_Cdf[ BLOCK_SIZES ][ COMPOUND_TYPES + 1 ] = {
  { 16384, 32768, 0 },
  { 16384, 32768, 0 },
  { 16384, 32768, 0 },
  { 23431, 32768, 0 },
  { 13171, 32768, 0 },
  { 11470, 32768, 0 },
  { 9770, 32768, 0 },
  { 9100, 32768, 0 },
  { 8233, 32768, 0 },
  { 6172, 32768, 0 },
  { 16384, 32768, 0 },
  { 16384, 32768, 0 },
  { 16384, 32768, 0 },
  { 16384, 32768, 0 },
  { 16384, 32768, 0 },
  { 16384, 32768, 0 },
  { 16384, 32768, 0 },
  { 16384, 32768, 0 },
  { 11820, 32768, 0 },
  { 7701, 32768, 0 },
  { 16384, 32768, 0 },
  { 16384, 32768, 0 }
}

Note: Indices 0 to 2, 10 to 17, and 20 to 21 inclusive are never used in the first dimension of the Default_Compound_Type_Cdf CDF table.

Default_Inter_Intra_Cdf[ BLOCK_SIZE_GROUPS - 1 ][ 3 ] = {
  { 26887, 32768, 0},
  { 27597, 32768, 0},
  { 30237, 32768, 0}
}
Default_Inter_Intra_Mode_Cdf[ BLOCK_SIZE_GROUPS - 1 ][ INTERINTRA_MODES + 1 ] = {
  { 1875, 11082, 27332, 32768, 0 },
  { 2473, 9996, 26388, 32768, 0 },
  { 4238, 11537, 25926, 32768, 0 }
}
Default_Wedge_Index_Cdf[ BLOCK_SIZES ][ 16+1 ] = {
  { 2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, 18432, 20480, 22528, 24576, 26624, 28672, 30720, 32768, 0 },
  { 2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, 18432, 20480, 22528, 24576, 26624, 28672, 30720, 32768, 0 },
  { 2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, 18432, 20480, 22528, 24576, 26624, 28672, 30720, 32768, 0 },
  { 2438, 4440, 6599, 8663, 11005, 12874, 15751, 18094, 20359, 22362, 24127, 25702, 27752, 29450, 31171, 32768, 0 },
  { 806, 3266, 6005, 6738, 7218, 7367, 7771, 14588, 16323, 17367, 18452, 19422, 22839, 26127, 29629, 32768, 0 },
  { 2779, 3738, 4683, 7213, 7775, 8017, 8655, 14357, 17939, 21332, 24520, 27470, 29456, 30529, 31656, 32768, 0 },
  { 1684, 3625, 5675, 7108, 9302, 11274, 14429, 17144, 19163, 20961, 22884, 24471, 26719, 28714, 30877, 32768, 0 },
  { 1142, 3491, 6277, 7314, 8089, 8355, 9023, 13624, 15369, 16730, 18114, 19313, 22521, 26012, 29550, 32768, 0 },
  { 2742, 4195, 5727, 8035, 8980, 9336, 10146, 14124, 17270, 20533, 23434, 25972, 27944, 29570, 31416, 32768, 0 },
  { 1727, 3948, 6101, 7796, 9841, 12344, 15766, 18944, 20638, 22038, 23963, 25311, 26988, 28766, 31012, 32768, 0 },
  { 2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, 18432, 20480, 22528, 24576, 26624, 28672, 30720, 32768, 0 },
  { 2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, 18432, 20480, 22528, 24576, 26624, 28672, 30720, 32768, 0 },
  { 2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, 18432, 20480, 22528, 24576, 26624, 28672, 30720, 32768, 0 },
  { 2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, 18432, 20480, 22528, 24576, 26624, 28672, 30720, 32768, 0 },
  { 2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, 18432, 20480, 22528, 24576, 26624, 28672, 30720, 32768, 0 },
  { 2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, 18432, 20480, 22528, 24576, 26624, 28672, 30720, 32768, 0 },
  { 2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, 18432, 20480, 22528, 24576, 26624, 28672, 30720, 32768, 0 },
  { 2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, 18432, 20480, 22528, 24576, 26624, 28672, 30720, 32768, 0 },
  { 154, 987, 1925, 2051, 2088, 2111, 2151, 23033, 23703, 24284, 24985, 25684, 27259, 28883, 30911, 32768, 0 },
  { 1135, 1322, 1493, 2635, 2696, 2737, 2770, 21016, 22935, 25057, 27251, 29173, 30089, 30960, 31933, 32768, 0 },
  { 2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, 18432, 20480, 22528, 24576, 26624, 28672, 30720, 32768, 0 },
  { 2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, 18432, 20480, 22528, 24576, 26624, 28672, 30720, 32768, 0 }
}

Note: Indices 0 to 2, 10 to 17, and 20 to 21 inclusive are never used in the first dimension of the Default_Wedge_Index_Cdf CDF table.

Default_Wedge_Inter_Intra_Cdf[ BLOCK_SIZES ][ 3 ] = {
  { 16384, 32768, 0 },
  { 16384, 32768, 0 },
  { 16384, 32768, 0 },
  { 20036, 32768, 0 },
  { 24957, 32768, 0 },
  { 26704, 32768, 0 },
  { 27530, 32768, 0 },
  { 29564, 32768, 0 },
  { 29444, 32768, 0 },
  { 26872, 32768, 0 },
  { 16384, 32768, 0 },
  { 16384, 32768, 0 },
  { 16384, 32768, 0 },
  { 16384, 32768, 0 },
  { 16384, 32768, 0 },
  { 16384, 32768, 0 },
  { 16384, 32768, 0 },
  { 16384, 32768, 0 },
  { 16384, 32768, 0 },
  { 16384, 32768, 0 },
  { 16384, 32768, 0 },
  { 16384, 32768, 0 }
}

Note: Only indices 3 to 9 inclusive are used in the first dimension of the Default_Wedge_Inter_Intra_Cdf CDF table.

Default_Use_Obmc_Cdf[ BLOCK_SIZES ][ 3 ] = {
  { 16384, 32768, 0 },
  { 16384, 32768, 0 },
  { 16384, 32768, 0 },
  { 10437, 32768, 0 },
  { 9371, 32768, 0 },
  { 9301, 32768, 0 },
  { 17432, 32768, 0 },
  { 14423, 32768, 0 },
  { 15142, 32768, 0 },
  { 25817, 32768, 0 },
  { 22823, 32768, 0 },
  { 22083, 32768, 0 },
  { 30128, 32768, 0 },
  { 31014, 32768, 0 },
  { 31560, 32768, 0 },
  { 32638, 32768, 0 },
  { 16384, 32768, 0 },
  { 16384, 32768, 0 },
  { 23664, 32768, 0 },
  { 20901, 32768, 0 },
  { 24008, 32768, 0 },
  { 26879, 32768, 0 }
}

Note: Indices 0 to 2 and 16 to 17 inclusive are never used in the first dimension of the Default_Use_Obmc_Cdf CDF table.

Default_Comp_Ref_Type_Cdf[ COMP_REF_TYPE_CONTEXTS ][ 3 ] = {
  { 1198, 32768, 0 },
  { 2070, 32768, 0 },
  { 9166, 32768, 0 },
  { 7499, 32768, 0 },
  { 22475, 32768, 0 }
}
Default_Uni_Comp_Ref_Cdf[ REF_CONTEXTS ][ UNIDIR_COMP_REFS - 1 ][ 3 ] = {
  { { 5284, 32768, 0 }, { 3865, 32768, 0 }, { 3128, 32768, 0 } },
  { { 23152, 32768, 0 }, { 14173, 32768, 0 }, { 15270, 32768, 0 } },
  { { 31774, 32768, 0 }, { 25120, 32768, 0 }, { 26710, 32768, 0 } }
}
Default_Cfl_Sign_Cdf[ CFL_JOINT_SIGNS + 1 ] = {
  1418, 2123, 13340, 18405, 26972, 28343, 32294, 32768, 0
}
Default_Cfl_Alpha_Cdf[ CFL_ALPHA_CONTEXTS ][ CFL_ALPHABET_SIZE + 1 ] = {
  { 7637, 20719, 31401, 32481, 32657, 32688, 32692, 32696, 32700,
    32704, 32708, 32712, 32716, 32720, 32724, 32768, 0 },
  { 14365, 23603, 28135, 31168, 32167, 32395, 32487, 32573, 32620,
    32647, 32668, 32672, 32676, 32680, 32684, 32768, 0 },
  { 11532, 22380, 28445, 31360, 32349, 32523, 32584, 32649, 32673,
    32677, 32681, 32685, 32689, 32693, 32697, 32768, 0 },
  { 26990, 31402, 32282, 32571, 32692, 32696, 32700, 32704, 32708,
    32712, 32716, 32720, 32724, 32728, 32732, 32768, 0 },
  { 17248, 26058, 28904, 30608, 31305, 31877, 32126, 32321, 32394,
    32464, 32516, 32560, 32576, 32593, 32622, 32768, 0 },
  { 14738, 21678, 25779, 27901, 29024, 30302, 30980, 31843, 32144,
    32413, 32520, 32594, 32622, 32656, 32660, 32768, 0 }
}
Default_Use_Wiener_Cdf[ 2 + 1 ] = {
  11570, 32768, 0
}
Default_Use_Sgrproj_Cdf[ 2 + 1 ] = {
  16855, 32768, 0
}
Default_Restoration_Type_Cdf[ RESTORE_SWITCHABLE + 1 ] = {
  9413, 22581, 32768, 0
}
Default_Txb_Skip_Cdf[ COEFF_CDF_Q_CTXS ][ TX_SIZES ][ TXB_SKIP_CONTEXTS ][ 3 ] = {
  {
    { { 31849, 32768, 0 },
      { 5892, 32768, 0 },
      { 12112, 32768, 0 },
      { 21935, 32768, 0 },
      { 20289, 32768, 0 },
      { 27473, 32768, 0 },
      { 32487, 32768, 0 },
      { 7654, 32768, 0 },
      { 19473, 32768, 0 },
      { 29984, 32768, 0 },
      { 9961, 32768, 0 },
      { 30242, 32768, 0 },
      { 32117, 32768, 0 } },
    { { 31548, 32768, 0 },
      { 1549, 32768, 0 },
      { 10130, 32768, 0 },
      { 16656, 32768, 0 },
      { 18591, 32768, 0 },
      { 26308, 32768, 0 },
      { 32537, 32768, 0 },
      { 5403, 32768, 0 },
      { 18096, 32768, 0 },
      { 30003, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 } },
    { { 29957, 32768, 0 },
      { 5391, 32768, 0 },
      { 18039, 32768, 0 },
      { 23566, 32768, 0 },
      { 22431, 32768, 0 },
      { 25822, 32768, 0 },
      { 32197, 32768, 0 },
      { 3778, 32768, 0 },
      { 15336, 32768, 0 },
      { 28981, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 } },
    { { 17920, 32768, 0 },
      { 1818, 32768, 0 },
      { 7282, 32768, 0 },
      { 25273, 32768, 0 },
      { 10923, 32768, 0 },
      { 31554, 32768, 0 },
      { 32624, 32768, 0 },
      { 1366, 32768, 0 },
      { 15628, 32768, 0 },
      { 30462, 32768, 0 },
      { 146, 32768, 0 },
      { 5132, 32768, 0 },
      { 31657, 32768, 0 } },
    { { 6308, 32768, 0 },
      { 117, 32768, 0 },
      { 1638, 32768, 0 },
      { 2161, 32768, 0 },
      { 16384, 32768, 0 },
      { 10923, 32768, 0 },
      { 30247, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 } }
  },
  {
    { { 30371, 32768, 0 },
      { 7570, 32768, 0 },
      { 13155, 32768, 0 },
      { 20751, 32768, 0 },
      { 20969, 32768, 0 },
      { 27067, 32768, 0 },
      { 32013, 32768, 0 },
      { 5495, 32768, 0 },
      { 17942, 32768, 0 },
      { 28280, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 } },
    { { 31782, 32768, 0 },
      { 1836, 32768, 0 },
      { 10689, 32768, 0 },
      { 17604, 32768, 0 },
      { 21622, 32768, 0 },
      { 27518, 32768, 0 },
      { 32399, 32768, 0 },
      { 4419, 32768, 0 },
      { 16294, 32768, 0 },
      { 28345, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 } },
    { { 31901, 32768, 0 },
      { 10311, 32768, 0 },
      { 18047, 32768, 0 },
      { 24806, 32768, 0 },
      { 23288, 32768, 0 },
      { 27914, 32768, 0 },
      { 32296, 32768, 0 },
      { 4215, 32768, 0 },
      { 15756, 32768, 0 },
      { 28341, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 } },
    { { 26726, 32768, 0 },
      { 1045, 32768, 0 },
      { 11703, 32768, 0 },
      { 20590, 32768, 0 },
      { 18554, 32768, 0 },
      { 25970, 32768, 0 },
      { 31938, 32768, 0 },
      { 5583, 32768, 0 },
      { 21313, 32768, 0 },
      { 29390, 32768, 0 },
      { 641, 32768, 0 },
      { 22265, 32768, 0 },
      { 31452, 32768, 0 } },
    { { 26584, 32768, 0 },
      { 188, 32768, 0 },
      { 8847, 32768, 0 },
      { 24519, 32768, 0 },
      { 22938, 32768, 0 },
      { 30583, 32768, 0 },
      { 32608, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 } }
  },
  {
    { { 29614, 32768, 0 },
      { 9068, 32768, 0 },
      { 12924, 32768, 0 },
      { 19538, 32768, 0 },
      { 17737, 32768, 0 },
      { 24619, 32768, 0 },
      { 30642, 32768, 0 },
      { 4119, 32768, 0 },
      { 16026, 32768, 0 },
      { 25657, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 } },
    { { 31957, 32768, 0 },
      { 3230, 32768, 0 },
      { 11153, 32768, 0 },
      { 18123, 32768, 0 },
      { 20143, 32768, 0 },
      { 26536, 32768, 0 },
      { 31986, 32768, 0 },
      { 3050, 32768, 0 },
      { 14603, 32768, 0 },
      { 25155, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 } },
    { { 32363, 32768, 0 },
      { 10692, 32768, 0 },
      { 19090, 32768, 0 },
      { 24357, 32768, 0 },
      { 24442, 32768, 0 },
      { 28312, 32768, 0 },
      { 32169, 32768, 0 },
      { 3648, 32768, 0 },
      { 15690, 32768, 0 },
      { 26815, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 } },
    { { 30669, 32768, 0 },
      { 3832, 32768, 0 },
      { 11663, 32768, 0 },
      { 18889, 32768, 0 },
      { 19782, 32768, 0 },
      { 23313, 32768, 0 },
      { 31330, 32768, 0 },
      { 5124, 32768, 0 },
      { 18719, 32768, 0 },
      { 28468, 32768, 0 },
      { 3082, 32768, 0 },
      { 20982, 32768, 0 },
      { 29443, 32768, 0 } },
    { { 28573, 32768, 0 },
      { 3183, 32768, 0 },
      { 17802, 32768, 0 },
      { 25977, 32768, 0 },
      { 26677, 32768, 0 },
      { 27832, 32768, 0 },
      { 32387, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 } }
  },
  {
    { { 26887, 32768, 0 },
      { 6729, 32768, 0 },
      { 10361, 32768, 0 },
      { 17442, 32768, 0 },
      { 15045, 32768, 0 },
      { 22478, 32768, 0 },
      { 29072, 32768, 0 },
      { 2713, 32768, 0 },
      { 11861, 32768, 0 },
      { 20773, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 } },
    { { 31903, 32768, 0 },
      { 2044, 32768, 0 },
      { 7528, 32768, 0 },
      { 14618, 32768, 0 },
      { 16182, 32768, 0 },
      { 24168, 32768, 0 },
      { 31037, 32768, 0 },
      { 2786, 32768, 0 },
      { 11194, 32768, 0 },
      { 20155, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 } },
    { { 32510, 32768, 0 },
      { 8430, 32768, 0 },
      { 17318, 32768, 0 },
      { 24154, 32768, 0 },
      { 23674, 32768, 0 },
      { 28789, 32768, 0 },
      { 32139, 32768, 0 },
      { 3440, 32768, 0 },
      { 13117, 32768, 0 },
      { 22702, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 } },
    { { 31671, 32768, 0 },
      { 2056, 32768, 0 },
      { 11746, 32768, 0 },
      { 16852, 32768, 0 },
      { 18635, 32768, 0 },
      { 24715, 32768, 0 },
      { 31484, 32768, 0 },
      { 4656, 32768, 0 },
      { 16074, 32768, 0 },
      { 24704, 32768, 0 },
      { 1806, 32768, 0 },
      { 14645, 32768, 0 },
      { 25336, 32768, 0 } },
    { { 31539, 32768, 0 },
      { 8433, 32768, 0 },
      { 20576, 32768, 0 },
      { 27904, 32768, 0 },
      { 27852, 32768, 0 },
      { 30026, 32768, 0 },
      { 32441, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 },
      { 16384, 32768, 0 } }
  }
}
Default_Eob_Pt_16_Cdf[ COEFF_CDF_Q_CTXS ][ PLANE_TYPES ][ 2 ][ 6 ] = {
  { { { 840, 1039, 1980, 4895, 32768, 0 },
      { 370, 671, 1883, 4471, 32768, 0 } },
    { { 3247, 4950, 9688, 14563, 32768, 0 },
      { 1904, 3354, 7763, 14647, 32768, 0 } } },
  { { { 2125, 2551, 5165, 8946, 32768, 0 },
      { 513, 765, 1859, 6339, 32768, 0 } },
    { { 7637, 9498, 14259, 19108, 32768, 0 },
      { 2497, 4096, 8866, 16993, 32768, 0 } } },
  { { { 4016, 4897, 8881, 14968, 32768, 0 },
      { 716, 1105, 2646, 10056, 32768, 0 } },
    { { 11139, 13270, 18241, 23566, 32768, 0 },
      { 3192, 5032, 10297, 19755, 32768, 0 } } },
  { { { 6708, 8958, 14746, 22133, 32768, 0 },
      { 1222, 2074, 4783, 15410, 32768, 0 } },
    { { 19575, 21766, 26044, 29709, 32768, 0 },
      { 7297, 10767, 19273, 28194, 32768, 0 } } }
}
Default_Eob_Pt_32_Cdf[ COEFF_CDF_Q_CTXS ][ PLANE_TYPES ][ 2 ][ 7 ] = {
  { { { 400, 520, 977, 2102, 6542, 32768, 0 },
      { 210, 405, 1315, 3326, 7537, 32768, 0 } },
    { { 2636, 4273, 7588, 11794, 20401, 32768, 0 },
      { 1786, 3179, 6902, 11357, 19054, 32768, 0 } } },
  { { { 989, 1249, 2019, 4151, 10785, 32768, 0 },
      { 313, 441, 1099, 2917, 8562, 32768, 0 } },
    { { 8394, 10352, 13932, 18855, 26014, 32768, 0 },
      { 2578, 4124, 8181, 13670, 24234, 32768, 0 } } },
  { { { 2515, 3003, 4452, 8162, 16041, 32768, 0 },
      { 574, 821, 1836, 5089, 13128, 32768, 0 } },
    { { 13468, 16303, 20361, 25105, 29281, 32768, 0 },
      { 3542, 5502, 10415, 16760, 25644, 32768, 0 } } },
  { { { 4617, 5709, 8446, 13584, 23135, 32768, 0 },
      { 1156, 1702, 3675, 9274, 20539, 32768, 0 } },
    { { 22086, 24282, 27010, 29770, 31743, 32768, 0 },
      { 7699, 10897, 20891, 26926, 31628, 32768, 0 } } }
}
Default_Eob_Pt_64_Cdf[ COEFF_CDF_Q_CTXS ][ PLANE_TYPES ][ 2 ][ 8 ] = {
  { { { 329, 498, 1101, 1784, 3265, 7758, 32768, 0 },
      { 335, 730, 1459, 5494, 8755, 12997, 32768, 0 } },
    { { 3505, 5304, 10086, 13814, 17684, 23370, 32768, 0 },
      { 1563, 2700, 4876, 10911, 14706, 22480, 32768, 0 } } },
  { { { 1260, 1446, 2253, 3712, 6652, 13369, 32768, 0 },
      { 401, 605, 1029, 2563, 5845, 12626, 32768, 0 } },
    { { 8609, 10612, 14624, 18714, 22614, 29024, 32768, 0 },
      { 1923, 3127, 5867, 9703, 14277, 27100, 32768, 0 } } },
  { { { 2374, 2772, 4583, 7276, 12288, 19706, 32768, 0 },
      { 497, 810, 1315, 3000, 7004, 15641, 32768, 0 } },
    { { 15050, 17126, 21410, 24886, 28156, 30726, 32768, 0 },
      { 4034, 6290, 10235, 14982, 21214, 28491, 32768, 0 } } },
  { { { 6307, 7541, 12060, 16358, 22553, 27865, 32768, 0 },
      { 1289, 2320, 3971, 7926, 14153, 24291, 32768, 0 } },
    { { 24212, 25708, 28268, 30035, 31307, 32049, 32768, 0 },
      { 8726, 12378, 19409, 26450, 30038, 32462, 32768, 0 } } }
}
Default_Eob_Pt_128_Cdf[ COEFF_CDF_Q_CTXS ][ PLANE_TYPES ][ 2 ][ 9 ] = {
  { { { 219, 482, 1140, 2091, 3680, 6028, 12586, 32768, 0 },
      { 371, 699, 1254, 4830, 9479, 12562, 17497, 32768, 0 } },
    { { 5245, 7456, 12880, 15852, 20033, 23932, 27608, 32768, 0 },
      { 2054, 3472, 5869, 14232, 18242, 20590, 26752, 32768, 0 } } },
  { { { 685, 933, 1488, 2714, 4766, 8562, 19254, 32768, 0 },
      { 217, 352, 618, 2303, 5261, 9969, 17472, 32768, 0 } },
    { { 8045, 11200, 15497, 19595, 23948, 27408, 30938, 32768, 0 },
      { 2310, 4160, 7471, 14997, 17931, 20768, 30240, 32768, 0 } } },
  { { { 1366, 1738, 2527, 5016, 9355, 15797, 24643, 32768, 0 },
      { 354, 558, 944, 2760, 7287, 14037, 21779, 32768, 0 } },
    { { 13627, 16246, 20173, 24429, 27948, 30415, 31863, 32768, 0 },
      { 6275, 9889, 14769, 23164, 27988, 30493, 32272, 32768, 0 } } },
  { { { 3472, 4885, 7489, 12481, 18517, 24536, 29635, 32768, 0 },
      { 886, 1731, 3271, 8469, 15569, 22126, 28383, 32768, 0 } },
    { { 24313, 26062, 28385, 30107, 31217, 31898, 32345, 32768, 0 },
      { 9165, 13282, 21150, 30286, 31894, 32571, 32712, 32768, 0 } } }
}
Default_Eob_Pt_256_Cdf[ COEFF_CDF_Q_CTXS ][ PLANE_TYPES ][ 2 ][ 10 ] = {
  { { { 310, 584, 1887, 3589, 6168, 8611, 11352, 15652, 32768, 0 },
      { 998, 1850, 2998, 5604, 17341, 19888, 22899, 25583, 32768, 0 } },
    { { 2520, 3240, 5952, 8870, 12577, 17558, 19954, 24168, 32768, 0 },
      { 2203, 4130, 7435, 10739, 20652, 23681, 25609, 27261, 32768, 0 } } },
  { { { 1448, 2109, 4151, 6263, 9329, 13260, 17944, 23300, 32768, 0 },
      { 399, 1019, 1749, 3038, 10444, 15546, 22739, 27294, 32768, 0 } },
    { { 6402, 8148, 12623, 15072, 18728, 22847, 26447, 29377, 32768, 0 },
      { 1674, 3252, 5734, 10159, 22397, 23802, 24821, 30940, 32768, 0 } } },
  { { { 3089, 3920, 6038, 9460, 14266, 19881, 25766, 29176, 32768, 0 },
      { 1084, 2358, 3488, 5122, 11483, 18103, 26023, 29799, 32768, 0 } },
    { { 11514, 13794, 17480, 20754, 24361, 27378, 29492, 31277, 32768, 0 },
      { 6571, 9610, 15516, 21826, 29092, 30829, 31842, 32708, 32768, 0 } } },
  { { { 5348, 7113, 11820, 15924, 22106, 26777, 30334, 31757, 32768, 0 },
      { 2453, 4474, 6307, 8777, 16474, 22975, 29000, 31547, 32768, 0 } },
    { { 23110, 24597, 27140, 28894, 30167, 30927, 31392, 32094, 32768, 0 },
      { 9998, 17661, 25178, 28097, 31308, 32038, 32403, 32695, 32768, 0 } } }
}
Default_Eob_Pt_512_Cdf[ COEFF_CDF_Q_CTXS ][ PLANE_TYPES ][ 11 ] = {
  { { 641, 983, 3707, 5430, 10234, 14958, 18788, 23412, 26061, 32768, 0 },
    { 5095, 6446, 9996, 13354, 16017, 17986, 20919, 26129, 29140, 32768, 0 } },
  { { 1230, 2278, 5035, 7776, 11871, 15346, 19590, 24584, 28749, 32768, 0 },
    { 7265, 9979, 15819, 19250, 21780, 23846, 26478, 28396, 31811, 32768, 0 } },
  { { 2624, 3936, 6480, 9686, 13979, 17726, 23267, 28410, 31078, 32768, 0 },
    { 12015, 14769, 19588, 22052, 24222, 25812, 27300, 29219, 32114, 32768, 0 } },
  { { 5927, 7809, 10923, 14597, 19439, 24135, 28456, 31142, 32060, 32768, 0 },
    { 21093, 23043, 25742, 27658, 29097, 29716, 30073, 30820, 31956, 32768, 0 } }
}
Default_Eob_Pt_1024_Cdf[ COEFF_CDF_Q_CTXS ][ PLANE_TYPES ][ 12 ] = {
  { { 393, 421, 751, 1623, 3160, 6352, 13345, 18047, 22571, 25830, 32768, 0 },
    { 1865, 1988, 2930, 4242, 10533, 16538, 21354, 27255, 28546, 31784, 32768, 0 } },
  { { 696, 948, 3145, 5702, 9706, 13217, 17851, 21856, 25692, 28034, 32768, 0 },
    { 2672, 3591, 9330, 17084, 22725, 24284, 26527, 28027, 28377, 30876, 32768, 0 } },
  { { 2784, 3831, 7041, 10521, 14847, 18844, 23155, 26682, 29229, 31045, 32768, 0 },
    { 9577, 12466, 17739, 20750, 22061, 23215, 24601, 25483, 25843, 32056, 32768, 0 } },
  { { 6698, 8334, 11961, 15762, 20186, 23862, 27434, 29326, 31082, 32050, 32768, 0 },
    { 20569, 22426, 25569, 26859, 28053, 28913, 29486, 29724, 29807, 32570, 32768, 0 } }
}
Default_Eob_Extra_Cdf[ COEFF_CDF_Q_CTXS ][ TX_SIZES ][ PLANE_TYPES ][ EOB_COEF_CONTEXTS ][ 3 ] = {
  { { { { 16961, 32768, 0 }, { 17223, 32768, 0 }, { 7621, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 }
      },
      { { 19069, 32768, 0 }, { 22525, 32768, 0 }, { 13377, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 }
      } },
    { { { 20401, 32768, 0 }, { 17025, 32768, 0 }, { 12845, 32768, 0 },
        { 12873, 32768, 0 }, { 14094, 32768, 0 }, { 16384, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 }
      },
      { { 20681, 32768, 0 }, { 20701, 32768, 0 }, { 15250, 32768, 0 },
        { 15017, 32768, 0 }, { 14928, 32768, 0 }, { 16384, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 }
      } },
    { { { 23905, 32768, 0 }, { 17194, 32768, 0 }, { 16170, 32768, 0 },
        { 17695, 32768, 0 }, { 13826, 32768, 0 }, { 15810, 32768, 0 },
        { 12036, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 }
      },
      { { 23959, 32768, 0 }, { 20799, 32768, 0 }, { 19021, 32768, 0 },
        { 16203, 32768, 0 }, { 17886, 32768, 0 }, { 14144, 32768, 0 },
        { 12010, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 }
      } },
    { { { 27399, 32768, 0 }, { 16327, 32768, 0 }, { 18071, 32768, 0 },
        { 19584, 32768, 0 }, { 20721, 32768, 0 }, { 18432, 32768, 0 },
        { 19560, 32768, 0 }, { 10150, 32768, 0 }, { 8805, 32768, 0 }
      },
      { { 24932, 32768, 0 }, { 20833, 32768, 0 }, { 12027, 32768, 0 },
        { 16670, 32768, 0 }, { 19914, 32768, 0 }, { 15106, 32768, 0 },
        { 17662, 32768, 0 }, { 13783, 32768, 0 }, { 28756, 32768, 0 }
      } },
    { { { 23406, 32768, 0 }, { 21845, 32768, 0 }, { 18432, 32768, 0 },
        { 16384, 32768, 0 }, { 17096, 32768, 0 }, { 12561, 32768, 0 },
        { 17320, 32768, 0 }, { 22395, 32768, 0 }, { 21370, 32768, 0 }
      },
      { { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 }
      } } },
  { { { { 17471, 32768, 0 }, { 20223, 32768, 0 }, { 11357, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 }
      },
      { { 20335, 32768, 0 }, { 21667, 32768, 0 }, { 14818, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 }
      } },
    { { { 20430, 32768, 0 }, { 20662, 32768, 0 }, { 15367, 32768, 0 },
        { 16970, 32768, 0 }, { 14657, 32768, 0 }, { 16384, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 }
      },
      { { 22117, 32768, 0 }, { 22028, 32768, 0 }, { 18650, 32768, 0 },
        { 16042, 32768, 0 }, { 15885, 32768, 0 }, { 16384, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 }
      } },
    { { { 22409, 32768, 0 }, { 21012, 32768, 0 }, { 15650, 32768, 0 },
        { 17395, 32768, 0 }, { 15469, 32768, 0 }, { 20205, 32768, 0 },
        { 19511, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 }
      },
      { { 24220, 32768, 0 }, { 22480, 32768, 0 }, { 17737, 32768, 0 },
        { 18916, 32768, 0 }, { 19268, 32768, 0 }, { 18412, 32768, 0 },
        { 18844, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 }
      } },
    { { { 25991, 32768, 0 }, { 20314, 32768, 0 }, { 17731, 32768, 0 },
        { 19678, 32768, 0 }, { 18649, 32768, 0 }, { 17307, 32768, 0 },
        { 21798, 32768, 0 }, { 17549, 32768, 0 }, { 15630, 32768, 0 }
      },
      { { 26585, 32768, 0 }, { 21469, 32768, 0 }, { 20432, 32768, 0 },
        { 17735, 32768, 0 }, { 19280, 32768, 0 }, { 15235, 32768, 0 },
        { 20297, 32768, 0 }, { 22471, 32768, 0 }, { 28997, 32768, 0 }
      } },
    { { { 26605, 32768, 0 }, { 11304, 32768, 0 }, { 16726, 32768, 0 },
        { 16560, 32768, 0 }, { 20866, 32768, 0 }, { 23524, 32768, 0 },
        { 19878, 32768, 0 }, { 13469, 32768, 0 }, { 23084, 32768, 0 }
      },
      { { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 }
      } } },
  { { { { 18983, 32768, 0 }, { 20512, 32768, 0 }, { 14885, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 }
      },
      { { 20090, 32768, 0 }, { 19444, 32768, 0 }, { 17286, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 }
      } },
    { { { 19139, 32768, 0 }, { 21487, 32768, 0 }, { 18959, 32768, 0 },
        { 20910, 32768, 0 }, { 19089, 32768, 0 }, { 16384, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 }
      },
      { { 20536, 32768, 0 }, { 20664, 32768, 0 }, { 20625, 32768, 0 },
        { 19123, 32768, 0 }, { 14862, 32768, 0 }, { 16384, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 }
      } },
    { { { 19833, 32768, 0 }, { 21502, 32768, 0 }, { 17485, 32768, 0 },
        { 20267, 32768, 0 }, { 18353, 32768, 0 }, { 23329, 32768, 0 },
        { 21478, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 }
      },
      { { 22041, 32768, 0 }, { 23434, 32768, 0 }, { 20001, 32768, 0 },
        { 20554, 32768, 0 }, { 20951, 32768, 0 }, { 20145, 32768, 0 },
        { 15562, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 }
      } },
    { { { 23312, 32768, 0 }, { 21607, 32768, 0 }, { 16526, 32768, 0 },
        { 18957, 32768, 0 }, { 18034, 32768, 0 }, { 18934, 32768, 0 },
        { 24247, 32768, 0 }, { 16921, 32768, 0 }, { 17080, 32768, 0 }
      },
      { { 26579, 32768, 0 }, { 24910, 32768, 0 }, { 18637, 32768, 0 },
        { 19800, 32768, 0 }, { 20388, 32768, 0 }, { 9887, 32768, 0 },
        { 15642, 32768, 0 }, { 30198, 32768, 0 }, { 24721, 32768, 0 }
      } },
    { { { 26998, 32768, 0 }, { 16737, 32768, 0 }, { 17838, 32768, 0 },
        { 18922, 32768, 0 }, { 19515, 32768, 0 }, { 18636, 32768, 0 },
        { 17333, 32768, 0 }, { 15776, 32768, 0 }, { 22658, 32768, 0 }
      },
      { { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 }
      } } },
  { { { { 20177, 32768, 0 }, { 20789, 32768, 0 }, { 20262, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 }
      },
      { { 21416, 32768, 0 }, { 20855, 32768, 0 }, { 23410, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 }
      } },
    { { { 20238, 32768, 0 }, { 21057, 32768, 0 }, { 19159, 32768, 0 },
        { 22337, 32768, 0 }, { 20159, 32768, 0 }, { 16384, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 }
      },
      { { 20125, 32768, 0 }, { 20559, 32768, 0 }, { 21707, 32768, 0 },
        { 22296, 32768, 0 }, { 17333, 32768, 0 }, { 16384, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 }
      } },
    { { { 19941, 32768, 0 }, { 20527, 32768, 0 }, { 21470, 32768, 0 },
        { 22487, 32768, 0 }, { 19558, 32768, 0 }, { 22354, 32768, 0 },
        { 20331, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 }
      },
      { { 22752, 32768, 0 }, { 25006, 32768, 0 }, { 22075, 32768, 0 },
        { 21576, 32768, 0 }, { 17740, 32768, 0 }, { 21690, 32768, 0 },
        { 19211, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 }
      } },
    { { { 21442, 32768, 0 }, { 22358, 32768, 0 }, { 18503, 32768, 0 },
        { 20291, 32768, 0 }, { 19945, 32768, 0 }, { 21294, 32768, 0 },
        { 21178, 32768, 0 }, { 19400, 32768, 0 }, { 10556, 32768, 0 }
      },
      { { 24648, 32768, 0 }, { 24949, 32768, 0 }, { 20708, 32768, 0 },
        { 23905, 32768, 0 }, { 20501, 32768, 0 }, { 9558, 32768, 0 },
        { 9423, 32768, 0 },  { 30365, 32768, 0 }, { 19253, 32768, 0 }
      } },
    { { { 26064, 32768, 0 }, { 22098, 32768, 0 }, { 19613, 32768, 0 },
        { 20525, 32768, 0 }, { 17595, 32768, 0 }, { 16618, 32768, 0 },
        { 20497, 32768, 0 }, { 18989, 32768, 0 }, { 15513, 32768, 0 }
      },
      { { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 },
        { 16384, 32768, 0 }, { 16384, 32768, 0 }, { 16384, 32768, 0 }
      } } }
}
Default_Dc_Sign_Cdf[ COEFF_CDF_Q_CTXS ][ PLANE_TYPES ][ DC_SIGN_CONTEXTS ][ 3 ] = {
  { {
      { 128 * 125, 32768, 0 },
      { 128 * 102, 32768, 0 },
      { 128 * 147, 32768, 0 },
    },
    {
      { 128 * 119, 32768, 0 },
      { 128 * 101, 32768, 0 },
      { 128 * 135, 32768, 0 },
    } },
  { {
      { 128 * 125, 32768, 0 },
      { 128 * 102, 32768, 0 },
      { 128 * 147, 32768, 0 },
    },
    {
      { 128 * 119, 32768, 0 },
      { 128 * 101, 32768, 0 },
      { 128 * 135, 32768, 0 },
    } },
  { {
      { 128 * 125, 32768, 0 },
      { 128 * 102, 32768, 0 },
      { 128 * 147, 32768, 0 },
    },
    {
      { 128 * 119, 32768, 0 },
      { 128 * 101, 32768, 0 },
      { 128 * 135, 32768, 0 },
    } },
  { {
      { 128 * 125, 32768, 0 },
      { 128 * 102, 32768, 0 },
      { 128 * 147, 32768, 0 },
    },
    {
      { 128 * 119, 32768, 0 },
      { 128 * 101, 32768, 0 },
      { 128 * 135, 32768, 0 },
    } }
}
Default_Coeff_Base_Eob_Cdf[ COEFF_CDF_Q_CTXS ][ TX_SIZES ][ PLANE_TYPES ][ SIG_COEF_CONTEXTS_EOB ][ 4 ] = {
  { { { { 17837, 29055, 32768, 0 },
        { 29600, 31446, 32768, 0 },
        { 30844, 31878, 32768, 0 },
        { 24926, 28948, 32768, 0 } },
      { { 21365, 30026, 32768, 0 },
        { 30512, 32423, 32768, 0 },
        { 31658, 32621, 32768, 0 },
        { 29630, 31881, 32768, 0 } } },
    { { { 5717, 26477, 32768, 0 },
        { 30491, 31703, 32768, 0 },
        { 31550, 32158, 32768, 0 },
        { 29648, 31491, 32768, 0 } },
      { { 12608, 27820, 32768, 0 },
        { 30680, 32225, 32768, 0 },
        { 30809, 32335, 32768, 0 },
        { 31299, 32423, 32768, 0 } } },
    { { { 1786, 12612, 32768, 0 },
        { 30663, 31625, 32768, 0 },
        { 32339, 32468, 32768, 0 },
        { 31148, 31833, 32768, 0 } },
      { { 18857, 23865, 32768, 0 },
        { 31428, 32428, 32768, 0 },
        { 31744, 32373, 32768, 0 },
        { 31775, 32526, 32768, 0 } } },
    { { { 1787, 2532, 32768, 0 },
        { 30832, 31662, 32768, 0 },
        { 31824, 32682, 32768, 0 },
        { 32133, 32569, 32768, 0 } },
      { { 13751, 22235, 32768, 0 },
        { 32089, 32409, 32768, 0 },
        { 27084, 27920, 32768, 0 },
        { 29291, 32594, 32768, 0 } } },
    { { { 1725, 3449, 32768, 0 },
        { 31102, 31935, 32768, 0 },
        { 32457, 32613, 32768, 0 },
        { 32412, 32649, 32768, 0 } },
      { { 10923, 21845, 32768, 0 },
        { 10923, 21845, 32768, 0 },
        { 10923, 21845, 32768, 0 },
        { 10923, 21845, 32768, 0 } } } },
  { { { { 17560, 29888, 32768, 0 },
        { 29671, 31549, 32768, 0 },
        { 31007, 32056, 32768, 0 },
        { 27286, 30006, 32768, 0 } },
      { { 26594, 31212, 32768, 0 },
        { 31208, 32582, 32768, 0 },
        { 31835, 32637, 32768, 0 },
        { 30595, 32206, 32768, 0 } } },
    { { { 15239, 29932, 32768, 0 },
        { 31315, 32095, 32768, 0 },
        { 32130, 32434, 32768, 0 },
        { 30864, 31996, 32768, 0 } },
      { { 26279, 30968, 32768, 0 },
        { 31142, 32495, 32768, 0 },
        { 31713, 32540, 32768, 0 },
        { 31929, 32594, 32768, 0 } } },
    { { { 2644, 25198, 32768, 0 },
        { 32038, 32451, 32768, 0 },
        { 32639, 32695, 32768, 0 },
        { 32166, 32518, 32768, 0 } },
      { { 17187, 27668, 32768, 0 },
        { 31714, 32550, 32768, 0 },
        { 32283, 32678, 32768, 0 },
        { 31930, 32563, 32768, 0 } } },
    { { { 1044, 2257, 32768, 0 },
        { 30755, 31923, 32768, 0 },
        { 32208, 32693, 32768, 0 },
        { 32244, 32615, 32768, 0 } },
      { { 21317, 26207, 32768, 0 },
        { 29133, 30868, 32768, 0 },
        { 29311, 31231, 32768, 0 },
        { 29657, 31087, 32768, 0 } } },
    { { { 478, 1834, 32768, 0 },
        { 31005, 31987, 32768, 0 },
        { 32317, 32724, 32768, 0 },
        { 30865, 32648, 32768, 0 } },
      { { 10923, 21845, 32768, 0 },
        { 10923, 21845, 32768, 0 },
        { 10923, 21845, 32768, 0 },
        { 10923, 21845, 32768, 0 } } } },
  { { { { 20092, 30774, 32768, 0 },
        { 30695, 32020, 32768, 0 },
        { 31131, 32103, 32768, 0 },
        { 28666, 30870, 32768, 0 } },
      { { 27258, 31095, 32768, 0 },
        { 31804, 32623, 32768, 0 },
        { 31763, 32528, 32768, 0 },
        { 31438, 32506, 32768, 0 } } },
    { { { 18049, 30489, 32768, 0 },
        { 31706, 32286, 32768, 0 },
        { 32163, 32473, 32768, 0 },
        { 31550, 32184, 32768, 0 } },
      { { 27116, 30842, 32768, 0 },
        { 31971, 32598, 32768, 0 },
        { 32088, 32576, 32768, 0 },
        { 32067, 32664, 32768, 0 } } },
    { { { 12854, 29093, 32768, 0 },
        { 32272, 32558, 32768, 0 },
        { 32667, 32729, 32768, 0 },
        { 32306, 32585, 32768, 0 } },
      { { 25476, 30366, 32768, 0 },
        { 32169, 32687, 32768, 0 },
        { 32479, 32689, 32768, 0 },
        { 31673, 32634, 32768, 0 } } },
    { { { 2809, 19301, 32768, 0 },
        { 32205, 32622, 32768, 0 },
        { 32338, 32730, 32768, 0 },
        { 31786, 32616, 32768, 0 } },
      { { 22737, 29105, 32768, 0 },
        { 30810, 32362, 32768, 0 },
        { 30014, 32627, 32768, 0 },
        { 30528, 32574, 32768, 0 } } },
    { { { 935, 3382, 32768, 0 },
        { 30789, 31909, 32768, 0 },
        { 32466, 32756, 32768, 0 },
        { 30860, 32513, 32768, 0 } },
      { { 10923, 21845, 32768, 0 },
        { 10923, 21845, 32768, 0 },
        { 10923, 21845, 32768, 0 },
        { 10923, 21845, 32768, 0 } } } },
  { { { { 22497, 31198, 32768, 0 },
        { 31715, 32495, 32768, 0 },
        { 31606, 32337, 32768, 0 },
        { 30388, 31990, 32768, 0 } },
      { { 27877, 31584, 32768, 0 },
        { 32170, 32728, 32768, 0 },
        { 32155, 32688, 32768, 0 },
        { 32219, 32702, 32768, 0 } } },
    { { { 21457, 31043, 32768, 0 },
        { 31951, 32483, 32768, 0 },
        { 32153, 32562, 32768, 0 },
        { 31473, 32215, 32768, 0 } },
      { { 27558, 31151, 32768, 0 },
        { 32020, 32640, 32768, 0 },
        { 32097, 32575, 32768, 0 },
        { 32242, 32719, 32768, 0 } } },
    { { { 19980, 30591, 32768, 0 },
        { 32219, 32597, 32768, 0 },
        { 32581, 32706, 32768, 0 },
        { 31803, 32287, 32768, 0 } },
      { { 26473, 30507, 32768, 0 },
        { 32431, 32723, 32768, 0 },
        { 32196, 32611, 32768, 0 },
        { 31588, 32528, 32768, 0 } } },
    { { { 24647, 30463, 32768, 0 },
        { 32412, 32695, 32768, 0 },
        { 32468, 32720, 32768, 0 },
        { 31269, 32523, 32768, 0 } },
      { { 28482, 31505, 32768, 0 },
        { 32152, 32701, 32768, 0 },
        { 31732, 32598, 32768, 0 },
        { 31767, 32712, 32768, 0 } } },
    { { { 12358, 24977, 32768, 0 },
        { 31331, 32385, 32768, 0 },
        { 32634, 32756, 32768, 0 },
        { 30411, 32548, 32768, 0 } },
      { { 10923, 21845, 32768, 0 },
        { 10923, 21845, 32768, 0 },
        { 10923, 21845, 32768, 0 },
        { 10923, 21845, 32768, 0 } } } }
}
Default_Coeff_Base_Cdf[ COEFF_CDF_Q_CTXS ][ TX_SIZES ][ PLANE_TYPES ][ SIG_COEF_CONTEXTS ][ 5 ] = {
  { { { { 4034, 8930, 12727, 32768, 0 },
        { 18082, 29741, 31877, 32768, 0 },
        { 12596, 26124, 30493, 32768, 0 },
        { 9446, 21118, 27005, 32768, 0 },
        { 6308, 15141, 21279, 32768, 0 },
        { 2463, 6357, 9783, 32768, 0 },
        { 20667, 30546, 31929, 32768, 0 },
        { 13043, 26123, 30134, 32768, 0 },
        { 8151, 18757, 24778, 32768, 0 },
        { 5255, 12839, 18632, 32768, 0 },
        { 2820, 7206, 11161, 32768, 0 },
        { 8192, 16384, 24576, 32768, 0 },
        { 8192, 16384, 24576, 32768, 0 },
        { 8192, 16384, 24576, 32768, 0 },
        { 8192, 16384, 24576, 32768, 0 },
        { 8192, 16384, 24576, 32768, 0 },
        { 8192, 16384, 24576, 32768, 0 },
        { 8192, 16384, 24576, 32768, 0 },
        { 8192, 16384, 24576, 32768, 0 },
        { 8192, 16384, 24576, 32768, 0 },
        { 8192, 16384, 24576, 32768, 0 },
        { 15736, 27553, 30604, 32768, 0 },
        { 11210, 23794, 28787, 32768, 0 },
        { 5947, 13874, 19701, 32768, 0 },
        { 4215, 9323, 13891, 32768, 0 },
        { 2833, 6462, 10059, 32768, 0 },
        { 19605, 30393, 31582, 32768, 0 },
        { 13523, 26252, 30248, 32768, 0 },
        { 8446, 18622, 24512, 32768, 0 },
        { 3818, 10343, 15974, 32768, 0 },
        { 1481, 4117, 6796, 32768, 0 },
        { 22649, 31302, 32190, 32768, 0 },
        { 14829, 27127, 30449, 32768, 0 },
        { 8313, 17702, 23304, 32768, 0 },
        { 3022, 8301, 12786, 32768, 0 },
        { 1536, 4412, 7184, 32768, 0 },
        { 22354, 29774, 31372, 32768, 0 },
        { 14723, 25472, 29214, 32768, 0 },
        { 6673, 13745, 18662, 32768, 0 },
        { 2068, 5766, 9322, 32768, 0 },
        { 8192, 16384, 24576, 32768, 0 },
        { 8192, 16384, 24576, 32768, 0 } },
      { { 6302, 16444, 21761, 32768, 0 },
        { 23040, 31538, 32475, 32768, 0 },
        { 15196, 28452, 31496, 32768, 0 },
        { 10020, 22946, 28514, 32768, 0 },
        { 6533, 16862, 23501, 32768, 0 },
        { 3538, 9816, 15076, 32768, 0 },
        { 24444, 31875, 32525, 32768, 0 },
        { 15881, 28924, 31635, 32768, 0 },
        { 9922, 22873, 28466, 32768, 0 },
        { 6527, 16966, 23691, 32768, 0 },
        { 4114, 11303, 17220, 32768, 0 },
        { 8192, 16384, 24576, 32768, 0 },
        { 8192, 16384, 24576, 32768, 0 },
        { 8192, 16384, 24576, 32768, 0 },
        { 8192, 16384, 24576, 32768, 0 },
        { 8192, 16384, 24576, 32768, 0 },
        { 8192, 16384, 24576, 32768, 0 },
        { 8192, 16384, 24576, 32768, 0 },
        { 8192, 16384, 24576, 32768, 0 },
        { 8192, 16384, 24576, 32768, 0 },
        { 8192, 16384, 24576, 32768, 0 },
        { 20201, 30770, 32209, 32768, 0 },
        { 14754, 28071, 31258, 32768, 0 },
        { 8378, 20186, 26517, 32768, 0 },
        { 5916, 15299, 21978, 32768, 0 },
        { 4268, 11583, 17901, 32768, 0 },
        { 24361, 32025, 32581, 32768, 0 },
        { 18673, 30105, 31943, 32768, 0 },
        { 10196, 22244, 27576, 32768, 0 },
        { 5495, 14349, 20417, 32768, 0 },
        { 2676, 7415, 11498, 32768, 0 },
        { 24678, 31958, 32585, 32768, 0 },
        { 18629, 29906, 31831, 32768, 0 },
        { 9364, 20724, 26315, 32768, 0 },
        { 4641, 12318, 18094, 32768, 0 },
        { 2758, 7387, 11579, 32768, 0 },
        { 25433, 31842, 32469, 32768, 0 },
        { 18795, 29289, 31411, 32768, 0 },
        { 7644, 17584, 23592, 32768, 0 },
        { 3408, 9014, 15047, 32768, 0 },
        { 8192, 16384, 24576, 32768, 0 },
        { 8192, 16384, 24576, 32768, 0 } } },
    { { { 4536, 10072, 14001, 32768, 0 },
        { 25459, 31416, 32206, 32768, 0 },
        { 16605, 28048, 30818, 32768, 0 },
        { 11008, 22857, 27719, 32768, 0 },
        { 6915, 16268, 22315, 32768, 0 },
        { 2625, 6812, 10537, 32768, 0 },
        { 24257, 31788, 32499, 32768, 0 },
        { 16880, 29454, 31879, 32768, 0 },
        { 11958, 25054, 29778, 32768, 0 },
        { 7916, 18718, 25084, 32768, 0 },
        { 3383, 8777, 13446, 32768, 0 },
        { 22720, 31603, 32393, 32768, 0 },
        { 14960, 28125, 31335, 32768, 0 },
        { 9731, 22210, 27928, 32768, 0 },
        { 6304, 15832, 22277, 32768, 0 },
        { 2910, 7818, 12166, 32768, 0 },
        { 20375, 30627, 32131, 32768, 0 },
        { 13904, 27284, 30887, 32768, 0 },
        { 9368, 21558, 27144, 32768, 0 },
        { 5937, 14966, 21119, 32768, 0 },
        { 2667, 7225, 11319, 32768, 0 },
        { 23970, 31470, 32378, 32768, 0 },
        { 17173, 29734, 32018, 32768, 0 },
        { 12795, 25441, 29965, 32768, 0 },
        { 8981, 19680, 25893, 32768, 0 },
        { 4728, 11372, 16902, 32768, 0 },
        { 24287, 31797, 32439, 32768, 0 },
        { 16703, 29145, 31696, 32768, 0 },
        { 10833, 23554, 28725, 32768, 0 },
        { 6468, 16566, 23057, 32768, 0 },
        { 2415, 6562, 10278, 32768, 0 },
        { 26610, 32395, 32659, 32768, 0 },
        { 18590, 30498, 32117, 32768, 0 },
        { 12420, 25756, 29950, 32768, 0 },
        { 7639, 18746, 24710, 32768, 0 },
        { 3001, 8086, 12347, 32768, 0 },
        { 25076, 32064, 32580, 32768, 0 },
        { 17946, 30128, 32028, 32768, 0 },
        { 12024, 24985, 29378, 32768, 0 },
        { 7517, 18390, 24304, 32768, 0 },
        { 3243, 8781, 13331, 32768, 0 },
        { 8192, 16384, 24576, 32768, 0 } },
      { { 6037, 16771, 21957, 32768, 0 },
        { 24774, 31704, 32426, 32768, 0 },
        { 16830, 28589, 31056, 32768, 0 },
        { 10602, 22828, 27760, 32768, 0 },
        { 6733, 16829, 23071, 32768, 0 },
        { 3250, 8914, 13556, 32768, 0 },
        { 25582, 32220, 32668, 32768, 0 },
        { 18659, 30342, 32223, 32768, 0 },
        { 12546, 26149, 30515, 32768, 0 },
        { 8420, 20451, 26801, 32768, 0 },
        { 4636, 12420, 18344, 32768, 0 },
        { 27581, 32362, 32639, 32768, 0 },
        { 18987, 30083, 31978, 32768, 0 },
        { 11327, 24248, 29084, 32768, 0 },
        { 7264, 17719, 24120, 32768, 0 },
        { 3995, 10768, 16169, 32768, 0 },
        { 25893, 31831, 32487, 32768, 0 },
        { 16577, 28587, 31379, 32768, 0 },
        { 10189, 22748, 28182, 32768, 0 },
        { 6832, 17094, 23556, 32768, 0 },
        { 3708, 10110, 15334, 32768, 0 },
        { 25904, 32282, 32656, 32768, 0 },
        { 19721, 30792, 32276, 32768, 0 },
        { 12819, 26243, 30411, 32768, 0 },
        { 8572, 20614, 26891, 32768, 0 },
        { 5364, 14059, 20467, 32768, 0 },
        { 26580, 32438, 32677, 32768, 0 },
        { 20852, 31225, 32340, 32768, 0 },
        { 12435, 25700, 29967, 32768, 0 },
        { 8691, 20825, 26976, 32768, 0 },
        { 4446, 12209, 17269, 32768, 0 },
        { 27350, 32429, 32696, 32768, 0 },
        { 21372, 30977, 32272, 32768, 0 },
        { 12673, 25270, 29853, 32768, 0 },
        { 9208, 20925, 26640, 32768, 0 },
        { 5018, 13351, 18732, 32768, 0 },
        { 27351, 32479, 32713, 32768, 0 },
        { 21398, 31209, 32387, 32768, 0 },
        { 12162, 25047, 29842, 32768, 0 },
        { 7896, 18691, 25319, 32768, 0 },
        { 4670, 12882, 18881, 32768, 0 },
        { 8192, 16384, 24576, 32768, 0 } } },
    { { { 5487, 10460, 13708, 32768, 0 },
        { 21597, 28303, 30674, 32768, 0 },
        { 11037, 21953, 26476, 32768, 0 },
        { 8147, 17962, 22952, 32768, 0 },
        { 5242, 13061, 18532, 32768, 0 },
        { 1889, 5208, 8182, 32768, 0 },
        { 26774, 32133, 32590, 32768, 0 },
        { 17844, 29564, 31767, 32768, 0 },
        { 11690, 24438, 29171, 32768, 0 },
        { 7542, 18215, 24459, 32768, 0 },
        { 2993, 8050, 12319, 32768, 0 },
        { 28023, 32328, 32591, 32768, 0 },
        { 18651, 30126, 31954, 32768, 0 },
        { 12164, 25146, 29589, 32768, 0 },
        { 7762, 18530, 24771, 32768, 0 },
        { 3492, 9183, 13920, 32768, 0 },
        { 27591, 32008, 32491, 32768, 0 },
        { 17149, 28853, 31510, 32768, 0 },
        { 11485, 24003, 28860, 32768, 0 },
        { 7697, 18086, 24210, 32768, 0 },
        { 3075, 7999, 12218, 32768, 0 },
        { 28268, 32482, 32654, 32768, 0 },
        { 19631, 31051, 32404, 32768, 0 },
        { 13860, 27260, 31020, 32768, 0 },
        { 9605, 21613, 27594, 32768, 0 },
        { 4876, 12162, 17908, 32768, 0 },
        { 27248, 32316, 32576, 32768, 0 },
        { 18955, 30457, 32075, 32768, 0 },
        { 11824, 23997, 28795, 32768, 0 },
        { 7346, 18196, 24647, 32768, 0 },
        { 3403, 9247, 14111, 32768, 0 },
        { 29711, 32655, 32735, 32768, 0 },
        { 21169, 31394, 32417, 32768, 0 },
        { 13487, 27198, 30957, 32768, 0 },
        { 8828, 21683, 27614, 32768, 0 },
        { 4270, 11451, 17038, 32768, 0 },
        { 28708, 32578, 32731, 32768, 0 },
        { 20120, 31241, 32482, 32768, 0 },
        { 13692, 27550, 31321, 32768, 0 },
        { 9418, 22514, 28439, 32768, 0 },
        { 4999, 13283, 19462, 32768, 0 },
        { 8192, 16384, 24576, 32768, 0 } },
      { { 5673, 14302, 19711, 32768, 0 },
        { 26251, 30701, 31834, 32768, 0 },
        { 12782, 23783, 27803, 32768, 0 },
        { 9127, 20657, 25808, 32768, 0 },
        { 6368, 16208, 21462, 32768, 0 },
        { 2465, 7177, 10822, 32768, 0 },
        { 29961, 32563, 32719, 32768, 0 },
        { 18318, 29891, 31949, 32768, 0 },
        { 11361, 24514, 29357, 32768, 0 },
        { 7900, 19603, 25607, 32768, 0 },
        { 4002, 10590, 15546, 32768, 0 },
        { 29637, 32310, 32595, 32768, 0 },
        { 18296, 29913, 31809, 32768, 0 },
        { 10144, 21515, 26871, 32768, 0 },
        { 5358, 14322, 20394, 32768, 0 },
        { 3067, 8362, 13346, 32768, 0 },
        { 28652, 32470, 32676, 32768, 0 },
        { 17538, 30771, 32209, 32768, 0 },
        { 13924, 26882, 30494, 32768, 0 },
        { 10496, 22837, 27869, 32768, 0 },
        { 7236, 16396, 21621, 32768, 0 },
        { 30743, 32687, 32746, 32768, 0 },
        { 23006, 31676, 32489, 32768, 0 },
        { 14494, 27828, 31120, 32768, 0 },
        { 10174, 22801, 28352, 32768, 0 },
        { 6242, 15281, 21043, 32768, 0 },
        { 25817, 32243, 32720, 32768, 0 },
        { 18618, 31367, 32325, 32768, 0 },
        { 13997, 28318, 31878, 32768, 0 },
        { 12255, 26534, 31383, 32768, 0 },
        { 9561, 21588, 28450, 32768, 0 },
        { 28188, 32635, 32724, 32768, 0 },
        { 22060, 32365, 32728, 32768, 0 },
        { 18102, 30690, 32528, 32768, 0 },
        { 14196, 28864, 31999, 32768, 0 },
        { 12262, 25792, 30865, 32768, 0 },
        { 24176, 32109, 32628, 32768, 0 },
        { 18280, 29681, 31963, 32768, 0 },
        { 10205, 23703, 29664, 32768, 0 },
        { 7889, 20025, 27676, 32768, 0 },
        { 6060, 16743, 23970, 32768, 0 },
        { 8192, 16384, 24576, 32768, 0 } } },
    { { { 5141, 7096, 8260, 32768, 0 },
        { 27186, 29022, 29789, 32768, 0 },
        { 6668, 12568, 15682, 32768, 0 },
        { 2172, 6181, 8638, 32768, 0 },
        { 1126, 3379, 4531, 32768, 0 },
        { 443, 1361, 2254, 32768, 0 },
        { 26083, 31153, 32436, 32768, 0 },
        { 13486, 24603, 28483, 32768, 0 },
        { 6508, 14840, 19910, 32768, 0 },
        { 3386, 8800, 13286, 32768, 0 },
        { 1530, 4322, 7054, 32768, 0 },
        { 29639, 32080, 32548, 32768, 0 },
        { 15897, 27552, 30290, 32768, 0 },
        { 8588, 20047, 25383, 32768, 0 },
        { 4889, 13339, 19269, 32768, 0 },
        { 2240, 6871, 10498, 32768, 0 },
        { 28165, 32197, 32517, 32768, 0 },
        { 20735, 30427, 31568, 32768, 0 },
        { 14325, 24671, 27692, 32768, 0 },
        { 5119, 12554, 17805, 32768, 0 },
        { 1810, 5441, 8261, 32768, 0 },
        { 31212, 32724, 32748, 32768, 0 },
        { 23352, 31766, 32545, 32768, 0 },
        { 14669, 27570, 31059, 32768, 0 },
        { 8492, 20894, 27272, 32768, 0 },
        { 3644, 10194, 15204, 32768, 0 },
        { 8192, 16384, 24576, 32768, 0 },
        { 8192, 16384, 24576, 32768, 0 },
        { 8192, 16384