/*
* Copyright(c) 2019 Intel Corporation
* SPDX - License - Identifier: BSD - 2 - Clause - Patent
*/

#include "EbRateControlTables.h"
#if RC
static const EbBitNumber initial_rate_control_sad64x64_tables[] = {
    //Q0.txt
   8433,    15005,    17578,    20095,
   22006,    23178,    24255,    25537,
   26140,    26757,    27467,    27979,
   28488,    28944,    29356,    29670,
   30047,    30377,    30703,    31010,
   31343,    31522,    31632,    31840,
   32120,    32306,    32398,    32408,
   32668,    32915,    33046,    33092,
   33172,    33374,    33344,    33317,
   33790,    33744,    33964,    34270,
   34440,    34474,    34550,    34703,
   34653,    34919,    35075,    35163,
   35458,    35333,    35574,    35562,
   36108,    36427,    36845,    37184,
   37196,    37367,    37469,    37951,
   37510,    38009,    38826,    38823,
   //Q01.txt
  2135,    6317,    9166,    11760,
  13718,    14993,    16052,    17263,
  17871,    18474,    19128,    19601,
  20081,    20498,    20893,    21235,
  21580,    21886,    22187,    22491,
  22773,    22955,    23077,    23233,
  23479,    23605,    23729,    23739,
  23988,    24214,    24336,    24403,
  24520,    24720,    24719,    24747,
  25086,    25085,    25239,    25508,
  25641,    25620,    25720,    25861,
  25871,    26094,    26326,    26330,
  26595,    26641,    26774,    26761,
  27212,    27429,    27763,    28219,
  28177,    28255,    28367,    28823,
  28536,    28859,    29580,    29501,
  //Q02.txt
 961,    2830,    5863,    9184,
 11400,    12705,    13779,    15003,
 15615,    16214,    16854,    17324,
 17798,    18210,    18606,    18955,
 19300,    19608,    19905,    20213,
 20492,    20681,    20812,    20965,
 21206,    21335,    21460,    21473,
 21728,    21947,    22076,    22145,
 22268,    22469,    22473,    22498,
 22836,    22845,    22993,    23258,
 23377,    23359,    23461,    23618,
 23635,    23864,    24106,    24094,
 24362,    24431,    24563,    24536,
 24965,    25208,    25553,    26026,
 25960,    26050,    26160,    26611,
 26337,    26651,    27396,    27259,
 //Q03.txt
536,    1432,    3066,    5519,
8942,    10635,    11897,    13229,
13894,    14525,    15181,    15668,
16144,    16563,    16976,    17339,
17680,    17994,    18299,    18613,
18895,    19081,    19215,    19372,
19615,    19749,    19880,    19896,
20152,    20375,    20500,    20577,
20707,    20900,    20917,    20944,
21266,    21292,    21430,    21689,
21814,    21788,    21895,    22061,
22081,    22317,    22556,    22541,
22805,    22884,    23015,    22983,
23410,    23648,    24006,    24457,
24393,    24511,    24608,    25059,
24791,    25098,    25856,    25688,
//Q04.txt
446,    1127,    2334,    3760,
6184,    7651,    8705,    9796,
10387,    10960,    11546,    12000,
12443,    12833,    13215,    13559,
13875,    14167,    14444,    14722,
14983,    15157,    15286,    15431,
15667,    15784,    15917,    15949,
16180,    16410,    16527,    16609,
16730,    16930,    16976,    17013,
17313,    17349,    17490,    17716,
17844,    17848,    17977,    18122,
18180,    18426,    18621,    18600,
18867,    19000,    19146,    19113,
19464,    19723,    20099,    20513,
20419,    20596,    20650,    21058,
20901,    21163,    21877,    21619,
//Q05.txt
320,    887,    1720,    2477,
4048,    5366,    6328,    7256,
7791,    8311,    8828,    9235,
9632,    9976,    10308,    10606,
10862,    11113,    11343,    11565,
11778,    11924,    12025,    12134,
12315,    12395,    12489,    12493,
12682,    12836,    12972,    13015,
13089,    13248,    13294,    13315,
13531,    13527,    13643,    13818,
13884,    13955,    13980,    14149,
14134,    14361,    14436,    14447,
14811,    14760,    14902,    14909,
15176,    15362,    15756,    15910,
15892,    16055,    16074,    16423,
16189,    16543,    17040,    17211,
//Q06.txt
302,    726,    1400,    1986,
2985,    4060,    4895,    5670,
6129,    6566,    6996,    7338,
7669,    7956,    8232,    8486,
8701,    8906,    9100,    9287,
9467,    9590,    9670,    9769,
9907,    9973,    10053,    10057,
10190,    10326,    10435,    10478,
10533,    10678,    10718,    10744,
10933,    10913,    11016,    11155,
11198,    11280,    11300,    11405,
11446,    11597,    11685,    11698,
11998,    11979,    12142,    12112,
12313,    12523,    12831,    12966,
13002,    13099,    13182,    13448,
13357,    13578,    14091,    14339,
//Q07.txt
234,    564,    1094,    1521,
2144,    3078,    3933,    4678,
5126,    5546,    5958,    6285,
6604,    6881,    7145,    7393,
7602,    7801,    7989,    8168,
8347,    8469,    8551,    8652,
8787,    8853,    8933,    8943,
9078,    9209,    9323,    9366,
9422,    9566,    9612,    9642,
9823,    9814,    9914,    10044,
10092,    10170,    10205,    10300,
10348,    10493,    10588,    10601,
10884,    10880,    11036,    11012,
11195,    11407,    11718,    11846,
11878,    11983,    12063,    12324,
12234,    12458,    12953,    13140,
//Q08.txt
197,    479,    918,    1263,
1732,    2503,    3267,    3948,
4370,    4762,    5150,    5458,
5759,    6023,    6273,    6512,
6713,    6905,    7088,    7263,
7432,    7556,    7639,    7741,
7874,    7939,    8026,    8039,
8171,    8298,    8416,    8459,
8520,    8662,    8709,    8746,
8916,    8913,    9018,    9141,
9194,    9265,    9306,    9400,
9451,    9597,    9694,    9706,
9974,    9979,    10133,    10112,
10290,    10502,    10799,    10930,
10954,    11061,    11142,    11401,
11314,    11536,    12011,    12156,
//Q09.txt
161,    395,    764,    1047,
1403,    2041,    2730,    3398,
3829,    4218,    4598,    4898,
5192,    5447,    5689,    5922,
6118,    6307,    6484,    6653,
6820,    6941,    7025,    7125,
7257,    7325,    7402,    7421,
7549,    7674,    7791,    7835,
7898,    8032,    8083,    8121,
8288,    8285,    8391,    8506,
8560,    8633,    8677,    8767,
8823,    8958,    9058,    9072,
9324,    9336,    9487,    9465,
9632,    9841,    10141,    10264,
10281,    10389,    10471,    10722,
10647,    10849,    11322,    11429,
//Q10.txt
144,    347,    661,    898,
1200,    1732,    2304,    2889,
3301,    3675,    4036,    4322,
4601,    4843,    5075,    5299,
5487,    5666,    5839,    6002,
6162,    6283,    6367,    6465,
6595,    6660,    6743,    6763,
6886,    7012,    7126,    7169,
7231,    7370,    7419,    7461,
7619,    7624,    7728,    7838,
7892,    7963,    8011,    8101,
8154,    8292,    8390,    8409,
8647,    8672,    8816,    8796,
8958,    9166,    9463,    9578,
9586,    9706,    9788,    10033,
9956,    10163,    10616,    10696,
//Q11.txt
130,    310,    588,    795,
1054,    1511,    1996,    2510,
2929,    3296,    3649,    3926,
4195,    4429,    4653,    4868,
5050,    5224,    5393,    5551,
5705,    5822,    5906,    6003,
6128,    6193,    6276,    6297,
6418,    6538,    6653,    6694,
6756,    6893,    6941,    6985,
7136,    7144,    7245,    7351,
7409,    7476,    7524,    7613,
7667,    7799,    7899,    7917,
8143,    8173,    8314,    8291,
8450,    8653,    8939,    9061,
9061,    9192,    9270,    9507,
9428,    9629,    10080,    10130,
//Q12.txt
111,    265,    504,    680,
904,    1295,    1693,    2101,
2531,    2913,    3261,    3535,
3800,    4028,    4247,    4457,
4636,    4805,    4970,    5122,
5275,    5389,    5476,    5570,
5693,    5760,    5840,    5864,
5981,    6099,    6216,    6256,
6317,    6453,    6503,    6544,
6692,    6702,    6802,    6905,
6965,    7030,    7080,    7168,
7224,    7351,    7449,    7472,
7685,    7720,    7854,    7838,
7987,    8188,    8460,    8587,
8589,    8713,    8789,    9019,
8946,    9149,    9583,    9616,
//Q13.txt
101,    240,    450,    604,
801,    1147,    1491,    1823,
2216,    2588,    2923,    3189,
3445,    3665,    3874,    4077,
4249,    4413,    4571,    4718,
4867,    4979,    5065,    5159,
5278,    5343,    5420,    5448,
5561,    5677,    5793,    5830,
5898,    6028,    6077,    6121,
6263,    6273,    6375,    6468,
6531,    6596,    6646,    6735,
6789,    6916,    7015,    7034,
7241,    7279,    7412,    7394,
7535,    7739,    8001,    8129,
8125,    8252,    8331,    8553,
8487,    8688,    9110,    9121,
//Q14.txt
93,    220,    409,    545,
723,    1036,    1344,    1627,
1986,    2351,    2679,    2938,
3190,    3404,    3607,    3805,
3972,    4131,    4286,    4425,
4571,    4679,    4764,    4855,
4972,    5037,    5114,    5139,
5253,    5366,    5477,    5515,
5580,    5706,    5754,    5803,
5937,    5951,    6050,    6142,
6205,    6264,    6318,    6406,
6463,    6580,    6677,    6699,
6897,    6936,    7070,    7051,
7185,    7384,    7645,    7770,
7761,    7894,    7967,    8190,
8121,    8313,    8731,    8727,
//Q15.txt
87,    201,    372,    494,
654,    938,    1216,    1463,
1785,    2131,    2450,    2704,
2950,    3161,    3359,    3550,
3712,    3866,    4018,    4156,
4297,    4403,    4490,    4579,
4694,    4757,    4833,    4859,
4968,    5080,    5192,    5228,
5293,    5420,    5466,    5516,
5649,    5661,    5758,    5847,
5912,    5969,    6021,    6106,
6163,    6281,    6374,    6399,
6590,    6630,    6758,    6743,
6877,    7076,    7328,    7447,
7438,    7569,    7643,    7862,
7794,    7984,    8387,    8374,
//Q16.txt
79,    183,    334,    441,
580,    831,    1079,    1297,
1582,    1895,    2199,    2446,
2686,    2890,    3083,    3271,
3428,    3579,    3726,    3859,
3997,    4101,    4188,    4274,
4386,    4446,    4522,    4551,
4658,    4767,    4877,    4912,
4976,    5098,    5149,    5196,
5325,    5341,    5434,    5520,
5585,    5639,    5693,    5777,
5831,    5950,    6043,    6066,
6251,    6295,    6417,    6402,
6531,    6727,    6978,    7092,
7081,    7211,    7289,    7494,
7432,    7621,    8017,    7991,
//Q17.txt
74,    170,    309,    405,
531,    763,    992,    1193,
1455,    1745,    2035,    2280,
2518,    2720,    2911,    3096,
3249,    3398,    3541,    3674,
3808,    3908,    3994,    4078,
4190,    4251,    4324,    4351,
4457,    4564,    4673,    4707,
4770,    4892,    4937,    4985,
5111,    5127,    5219,    5303,
5366,    5421,    5474,    5558,
5615,    5727,    5817,    5843,
6018,    6063,    6184,    6169,
6295,    6488,    6731,    6848,
6834,    6962,    7039,    7246,
7182,    7359,    7750,    7719,
//Q18.txt
69,    157,    284,    372,
487,    697,    910,    1097,
1337,    1602,    1869,    2106,
2337,    2534,    2718,    2899,
3049,    3192,    3332,    3460,
3592,    3690,    3774,    3858,
3967,    4025,    4099,    4127,
4231,    4334,    4441,    4476,
4536,    4656,    4702,    4752,
4872,    4890,    4981,    5061,
5122,    5179,    5229,    5314,
5369,    5483,    5571,    5597,
5766,    5813,    5929,    5913,
6038,    6227,    6469,    6581,
6562,    6691,    6768,    6972,
6909,    7089,    7467,    7424,
//Q19.txt
65,    147,    265,    346,
449,    642,    842,    1017,
1241,    1485,    1736,    1966,
2192,    2385,    2566,    2744,
2891,    3033,    3168,    3293,
3423,    3520,    3603,    3685,
3792,    3849,    3920,    3949,
4049,    4151,    4255,    4290,
4352,    4469,    4515,    4562,
4679,    4699,    4787,    4864,
4926,    4983,    5033,    5115,
5167,    5279,    5364,    5394,
5552,    5603,    5718,    5703,
5821,    6011,    6246,    6353,
6336,    6465,    6542,    6739,
6680,    6850,    7224,    7176,
//Q20.txt
61,    138,    244,    316,
408,    579,    763,    926,
1131,    1355,    1586,    1802,
2018,    2205,    2385,    2560,
2706,    2845,    2977,    3099,
3225,    3320,    3403,    3484,
3589,    3644,    3717,    3746,
3844,    3944,    4049,    4081,
4143,    4255,    4301,    4350,
4465,    4481,    4570,    4639,
4709,    4759,    4811,    4893,
4947,    5054,    5140,    5166,
5325,    5376,    5487,    5476,
5589,    5777,    6002,    6113,
6092,    6225,    6290,    6490,
6431,    6596,    6961,    6913,
//Q21.txt
57,    128,    227,    293,
379,    532,    705,    862,
1051,    1261,    1475,    1680,
1885,    2068,    2242,    2414,
2555,    2692,    2821,    2940,
3063,    3157,    3239,    3318,
3420,    3477,    3544,    3577,
3673,    3771,    3873,    3904,
3968,    4078,    4123,    4172,
4283,    4304,    4386,    4460,
4525,    4576,    4624,    4707,
4759,    4866,    4950,    4978,
5128,    5172,    5293,    5278,
5391,    5572,    5793,    5903,
5885,    6012,    6082,    6275,
6217,    6382,    6739,    6681,
//Q22.txt
54,    121,    213,    276,
355,    494,    657,    808,
986,    1184,    1387,    1581,
1778,    1956,    2128,    2297,
2437,    2572,    2697,    2814,
2935,    3027,    3109,    3187,
3288,    3342,    3409,    3439,
3533,    3630,    3731,    3763,
3823,    3933,    3978,    4025,
4134,    4154,    4237,    4307,
4368,    4419,    4468,    4548,
4602,    4706,    4789,    4817,
4964,    5012,    5121,    5107,
5219,    5395,    5616,    5723,
5698,    5831,    5905,    6088,
6032,    6187,    6546,    6482,
//Q23.txt
53,    115,    201,    259,
331,    458,    608,    752,
920,    1104,    1296,    1478,
1663,    1831,    1999,    2165,
2302,    2434,    2558,    2672,
2791,    2880,    2961,    3039,
3137,    3192,    3257,    3289,
3383,    3474,    3575,    3605,
3664,    3771,    3817,    3862,
3971,    3993,    4073,    4141,
4202,    4254,    4301,    4382,
4434,    4535,    4617,    4643,
4788,    4836,    4946,    4934,
5039,    5213,    5433,    5534,
5513,    5641,    5714,    5893,
5841,    5996,    6341,    6278,
//Q24.txt
49,    108,    189,    241,
306,    420,    557,    695,
853,    1025,    1206,    1375,
1549,    1710,    1874,    2037,
2173,    2303,    2424,    2536,
2653,    2740,    2821,    2897,
2993,    3047,    3114,    3145,
3236,    3326,    3427,    3455,
3516,    3619,    3665,    3709,
3813,    3836,    3915,    3979,
4041,    4091,    4139,    4219,
4273,    4369,    4449,    4477,
4616,    4662,    4771,    4759,
4862,    5032,    5247,    5344,
5322,    5456,    5526,    5701,
5648,    5799,    6135,    6074,
//Q25.txt
46,    100,    171,    217,
273,    371,    488,    615,
756,    912,    1076,    1229,
1386,    1531,    1683,    1840,
1971,    2097,    2212,    2322,
2433,    2519,    2598,    2673,
2766,    2819,    2883,    2917,
3005,    3094,    3189,    3218,
3278,    3377,    3424,    3467,
3568,    3590,    3666,    3734,
3789,    3840,    3885,    3962,
4019,    4109,    4187,    4217,
4349,    4395,    4501,    4488,
4591,    4759,    4965,    5063,
5043,    5163,    5238,    5408,
5357,    5507,    5830,    5764,
//Q26.txt
43,    93,    157,    198,
247,    333,    434,    549,
677,    819,    970,    1111,
1255,    1387,    1527,    1677,
1802,    1924,    2035,    2141,
2250,    2335,    2413,    2485,
2575,    2629,    2693,    2728,
2811,    2898,    2992,    3021,
3077,    3175,    3220,    3263,
3360,    3385,    3458,    3518,
3575,    3626,    3668,    3747,
3796,    3889,    3965,    3997,
4120,    4169,    4268,    4258,
4358,    4520,    4720,    4818,
4794,    4915,    4991,    5153,
5103,    5251,    5563,    5496,
//Q27.txt
41,    87,    145,    181,
224,    303,    390,    496,
612,    743,    883,    1013,
1146,    1270,    1399,    1540,
1662,    1778,    1886,    1990,
2096,    2178,    2254,    2325,
2413,    2468,    2528,    2564,
2646,    2731,    2821,    2850,
2905,    3002,    3045,    3088,
3180,    3205,    3277,    3335,
3391,    3438,    3481,    3560,
3610,    3697,    3772,    3800,
3921,    3967,    4067,    4057,
4151,    4315,    4507,    4600,
4576,    4699,    4769,    4927,
4879,    5019,    5327,    5256,
//Q28.txt
39,    81,    134,    167,
205,    275,    353,    449,
554,    674,    803,    924,
1048,    1163,    1281,    1413,
1526,    1638,    1742,    1841,
1944,    2024,    2099,    2169,
2256,    2309,    2370,    2405,
2484,    2568,    2656,    2682,
2740,    2830,    2875,    2915,
3004,    3031,    3099,    3159,
3208,    3257,    3296,    3375,
3421,    3508,    3580,    3612,
3727,    3770,    3862,    3857,
3945,    4103,    4292,    4381,
4362,    4475,    4551,    4705,
4654,    4792,    5091,    5018,
//Q29.txt
37,    77,    125,    155,
189,    253,    322,    409,
503,    613,    731,    843,
958,    1064,    1175,    1295,
1400,    1506,    1604,    1698,
1797,    1875,    1948,    2015,
2100,    2152,    2209,    2246,
2322,    2404,    2490,    2513,
2570,    2656,    2702,    2740,
2828,    2856,    2920,    2976,
3029,    3075,    3114,    3188,
3234,    3316,    3387,    3418,
3528,    3573,    3663,    3656,
3741,    3893,    4074,    4161,
4140,    4258,    4327,    4472,
4430,    4562,    4843,    4776,
//Q30.txt
35,    72,    117,    145,
174,    232,    295,    375,
462,    563,    673,    777,
885,    985,    1088,    1202,
1299,    1400,    1493,    1585,
1680,    1755,    1827,    1893,
1974,    2028,    2083,    2119,
2194,    2273,    2356,    2381,
2436,    2521,    2563,    2603,
2686,    2714,    2778,    2829,
2881,    2930,    2965,    3042,
3084,    3162,    3229,    3261,
3366,    3410,    3503,    3493,
3576,    3720,    3895,    3984,
3966,    4073,    4145,    4280,
4240,    4370,    4644,    4572,
//Q31.txt
33,    67,    107,    131,
157,    210,    265,    337,
413,    502,    601,    697,
795,    886,    980,    1084,
1174,    1265,    1353,    1438,
1528,    1600,    1668,    1733,
1812,    1863,    1918,    1955,
2025,    2101,    2181,    2203,
2256,    2341,    2380,    2420,
2500,    2522,    2588,    2636,
2689,    2733,    2768,    2842,
2881,    2962,    3026,    3054,
3152,    3196,    3281,    3275,
3354,    3497,    3659,    3748,
3724,    3835,    3901,    4031,
3991,    4125,    4376,    4309,
//Q32.txt
31,    62,    99,    120,
142,    190,    238,    302,
368,    448,    537,    623,
714,    798,    884,    979,
1061,    1146,    1226,    1305,
1391,    1458,    1525,    1588,
1664,    1714,    1765,    1803,
1871,    1945,    2021,    2043,
2096,    2172,    2215,    2252,
2329,    2354,    2416,    2461,
2510,    2552,    2590,    2661,
2699,    2775,    2837,    2866,
2960,    3002,    3085,    3076,
3151,    3287,    3445,    3532,
3508,    3610,    3679,    3805,
3766,    3891,    4136,    4069,
//Q33.txt
30,    59,    93,    112,
132,    176,    220,    279,
342,    415,    498,    579,
666,    747,    832,    924,
1001,    1085,    1162,    1240,
1324,    1391,    1460,    1523,
1599,    1649,    1699,    1737,
1804,    1877,    1953,    1975,
2029,    2103,    2144,    2181,
2256,    2282,    2340,    2384,
2434,    2476,    2509,    2578,
2618,    2690,    2754,    2780,
2870,    2909,    2988,    2983,
3057,    3183,    3341,    3425,
3403,    3499,    3567,    3692,
3652,    3768,    4008,    3944,
//Q34.txt
29,    56,    86,    104,
122,    162,    203,    257,
313,    379,    454,    528,
609,    685,    764,    849,
921,    998,    1071,    1144,
1223,    1287,    1353,    1413,
1487,    1536,    1585,    1622,
1686,    1757,    1832,    1854,
1903,    1974,    2014,    2054,
2124,    2150,    2207,    2247,
2295,    2337,    2369,    2439,
2475,    2546,    2607,    2633,
2717,    2754,    2833,    2828,
2898,    3026,    3171,    3251,
3235,    3327,    3393,    3513,
3475,    3591,    3814,    3755,
//Q35.txt
27,    51,    80,    95,
111,    147,    183,    232,
282,    341,    407,    473,
546,    615,    687,    765,
831,    901,    968,    1035,
1108,    1167,    1229,    1285,
1355,    1402,    1450,    1486,
1545,    1613,    1686,    1705,
1753,    1822,    1860,    1898,
1964,    1992,    2043,    2083,
2131,    2170,    2202,    2266,
2304,    2371,    2428,    2453,
2533,    2569,    2639,    2638,
2707,    2829,    2967,    3042,
3025,    3117,    3179,    3293,
3255,    3365,    3581,    3521,
//Q36.txt
26,    48,    74,    88,
101,    134,    165,    210,
254,    307,    366,    425,
490,    553,    618,    692,
752,    816,    878,    940,
1008,    1063,    1121,    1173,
1238,    1285,    1330,    1366,
1421,    1488,    1554,    1575,
1620,    1687,    1724,    1759,
1824,    1847,    1901,    1937,
1986,    2020,    2053,    2114,
2151,    2216,    2270,    2294,
2370,    2404,    2474,    2471,
2539,    2650,    2784,    2858,
2835,    2930,    2990,    3101,
3064,    3170,    3367,    3314,
//Q37.txt
24,    46,    69,    82,
93,    124,    152,    192,
232,    279,    333,    387,
446,    503,    564,    631,
686,    745,    802,    860,
923,    976,    1030,    1081,
1142,    1185,    1227,    1262,
1316,    1376,    1440,    1461,
1505,    1567,    1603,    1640,
1699,    1723,    1775,    1808,
1856,    1891,    1920,    1979,
2014,    2075,    2131,    2152,
2224,    2257,    2324,    2322,
2386,    2493,    2619,    2686,
2676,    2761,    2819,    2921,
2885,    2990,    3176,    3126,
//Q38.txt
23,    43,    64,    75,
86,    113,    138,    175,
210,    253,    302,    350,
403,    455,    510,    572,
623,    678,    731,    784,
841,    891,    943,    990,
1048,    1089,    1129,    1163,
1214,    1270,    1332,    1352,
1393,    1451,    1486,    1521,
1579,    1603,    1652,    1684,
1731,    1763,    1794,    1851,
1883,    1940,    1995,    2015,
2083,    2116,    2176,    2178,
2238,    2340,    2462,    2525,
2510,    2594,    2653,    2750,
2714,    2816,    2991,    2946,
//Q39.txt
22,    40,    60,    70,
79,    104,    126,    159,
190,    230,    273,    316,
364,    411,    460,    517,
563,    612,    661,    709,
762,    808,    856,    899,
953,    992,    1031,    1063,
1108,    1160,    1220,    1238,
1279,    1330,    1366,    1400,
1453,    1478,    1523,    1554,
1599,    1629,    1660,    1715,
1745,    1799,    1852,    1869,
1933,    1963,    2023,    2023,
2079,    2177,    2288,    2356,
2338,    2420,    2476,    2563,
2529,    2629,    2794,    2751,
//Q40.txt
22,    38,    56,    65,
73,    96,    116,    146,
175,    210,    250,    288,
332,    374,    419,    472,
514,    559,    605,    649,
698,    740,    786,    827,
877,    913,    949,    980,
1023,    1074,    1128,    1145,
1184,    1233,    1266,    1297,
1350,    1373,    1415,    1447,
1491,    1518,    1546,    1602,
1629,    1681,    1732,    1747,
1805,    1840,    1892,    1896,
1948,    2043,    2145,    2210,
2196,    2269,    2326,    2409,
2376,    2471,    2627,    2585,
//Q41.txt
21,    36,    53,    60,
68,    88,    106,    133,
159,    190,    226,    261,
301,    338,    379,    427,
464,    506,    548,    589,
633,    673,    716,    753,
799,    832,    868,    896,
937,    983,    1034,    1051,
1087,    1131,    1162,    1193,
1241,    1262,    1305,    1332,
1374,    1401,    1429,    1482,
1508,    1558,    1605,    1623,
1675,    1703,    1755,    1759,
1808,    1896,    1996,    2058,
2041,    2113,    2169,    2245,
2212,    2307,    2447,    2411,
//Q42.txt
20,    34,    50,    56,
63,    82,    98,    122,
145,    174,    206,    238,
274,    309,    345,    389,
423,    461,    499,    536,
578,    614,    653,    689,
731,    763,    796,    822,
859,    902,    951,    966,
1001,    1041,    1070,    1101,
1145,    1163,    1203,    1232,
1272,    1295,    1322,    1374,
1400,    1445,    1489,    1506,
1553,    1582,    1632,    1634,
1683,    1765,    1856,    1911,
1900,    1970,    2020,    2094,
2063,    2151,    2283,    2253,
//Q43.txt
19,    32,    47,    53,
58,    75,    90,    112,
133,    159,    188,    216,
249,    280,    313,    353,
384,    418,    454,    488,
525,    558,    595,    628,
666,    697,    726,    752,
787,    826,    874,    886,
919,    956,    984,    1012,
1051,    1072,    1109,    1135,
1171,    1196,    1220,    1268,
1293,    1334,    1379,    1393,
1438,    1466,    1511,    1511,
1559,    1636,    1722,    1776,
1762,    1826,    1879,    1947,
1914,    2002,    2121,    2095,
//Q44.txt
19,    31,    44,    50,
54,    70,    83,    103,
122,    145,    172,    198,
228,    256,    285,    322,
350,    381,    414,    444,
479,    510,    543,    574,
611,    639,    667,    690,
722,    759,    804,    813,
846,    878,    906,    931,
971,    987,    1023,    1047,
1081,    1103,    1129,    1171,
1196,    1238,    1276,    1290,
1332,    1357,    1402,    1403,
1446,    1520,    1597,    1649,
1639,    1700,    1752,    1808,
1782,    1866,    1975,    1952,
//Q45.txt
18,    29,    42,    47,
51,    65,    77,    95,
112,    133,    157,    181,
207,    233,    260,    294,
319,    346,    377,    404,
435,    464,    495,    522,
556,    582,    609,    632,
659,    695,    735,    745,
773,    804,    831,    853,
890,    906,    938,    961,
992,    1013,    1036,    1079,
1102,    1138,    1176,    1190,
1225,    1250,    1289,    1292,
1335,    1404,    1474,    1522,
1514,    1568,    1616,    1672,
1644,    1727,    1824,    1805,
//Q46.txt
18,    28,    40,    44,
47,    61,    71,    88,
103,    122,    144,    165,
190,    213,    237,    268,
291,    317,    344,    368,
396,    423,    451,    476,
508,    532,    556,    578,
604,    635,    674,    683,
711,    738,    760,    784,
816,    830,    861,    883,
911,    931,    954,    995,
1013,    1050,    1084,    1096,
1131,    1150,    1186,    1191,
1228,    1295,    1357,    1406,
1395,    1445,    1491,    1544,
1520,    1598,    1685,    1669,
//Q47.txt
17,    27,    38,    42,
45,    57,    66,    81,
95,    113,    133,    152,
174,    195,    218,    245,
266,    289,    314,    337,
362,    385,    412,    436,
464,    487,    509,    529,
553,    582,    618,    625,
651,    677,    696,    717,
749,    764,    791,    810,
838,    855,    878,    916,
933,    967,    999,    1009,
1038,    1060,    1093,    1095,
1131,    1195,    1248,    1294,
1285,    1331,    1375,    1426,
1402,    1472,    1550,    1542,
//Q48.txt
17,    26,    36,    39,
42,    53,    62,    75,
87,    104,    122,    139,
160,    178,    199,    224,
243,    264,    287,    307,
331,    352,    376,    398,
423,    445,    465,    483,
505,    533,    565,    572,
596,    618,    637,    658,
686,    699,    724,    741,
768,    785,    806,    842,
855,    886,    918,    926,
954,    971,    1004,    1006,
1039,    1098,    1146,    1192,
1181,    1225,    1263,    1312,
1288,    1356,    1423,    1420,
//Q49.txt
16,    25,    34,    37,
39,    49,    57,    70,
80,    95,    112,    128,
146,    163,    181,    204,
222,    240,    261,    280,
301,    320,    343,    362,
386,    405,    423,    441,
462,    486,    516,    523,
545,    565,    582,    600,
626,    637,    662,    681,
702,    719,    739,    770,
784,    812,    841,    847,
872,    889,    918,    920,
952,    1003,    1045,    1087,
1081,    1119,    1157,    1200,
1176,    1243,    1301,    1302,
//Q50.txt
16,    24,    33,    35,
37,    46,    53,    65,
75,    88,    103,    118,
135,    150,    167,    187,
203,    220,    239,    256,
276,    293,    314,    331,
353,    371,    388,    404,
423,    446,    473,    478,
499,    517,    533,    549,
573,    584,    608,    624,
643,    658,    677,    707,
719,    746,    772,    779,
800,    815,    841,    843,
873,    917,    954,    993,
992,    1026,    1059,    1101,
1079,    1138,    1190,    1192,
//Q51.txt
15,    22,    31,    33,
35,    43,    50,    60,
69,    81,    95,    108,
123,    137,    153,    171,
186,    201,    218,    234,
252,    267,    286,    303,
322,    338,    354,    369,
386,    407,    430,    437,
455,    472,    487,    503,
524,    534,    556,    569,
590,    603,    619,    649,
658,    684,    706,    714,
731,    745,    768,    770,
798,    839,    870,    904,
906,    937,    969,    1003,
986,    1039,    1081,    1090,
//Q52.txt
15,    21,    29,    31,
33,    41,    46,    56,
64,    75,    88,    100,
113,    126,    140,    157,
170,    184,    199,    214,
230,    244,    261,    277,
294,    309,    323,    337,
352,    371,    393,    398,
415,    429,    443,    458,
478,    486,    506,    521,
538,    550,    567,    594,
601,    625,    646,    651,
666,    678,    698,    700,
727,    765,    791,    819,
822,    852,    882,    911,
896,    947,    981,    993,
//Q53.txt
15,    21,    28,    29,
31,    38,    43,    52,
59,    69,    81,    92,
104,    115,    128,    143,
156,    168,    182,    195,
210,    222,    238,    252,
268,    281,    295,    308,
321,    338,    359,    364,
379,    392,    403,    418,
436,    444,    463,    476,
491,    503,    517,    543,
549,    570,    589,    594,
609,    617,    638,    636,
661,    694,    716,    744,
748,    771,    798,    825,
813,    859,    888,    901,
//Q54.txt
14,    19,    26,    28,
29,    35,    40,    48,
54,    64,    74,    84,
96,    106,    118,    131,
142,    154,    167,    179,
191,    202,    218,    230,
245,    257,    269,    282,
294,    309,    328,    332,
345,    357,    368,    382,
397,    406,    422,    433,
448,    459,    472,    496,
503,    522,    539,    543,
555,    562,    579,    579,
601,    630,    648,    673,
677,    698,    724,    750,
736,    781,    800,    820,
//Q55.txt
13,    18,    25,    26,
27,    33,    38,    44,
50,    58,    68,    77,
87,    96,    107,    119,
129,    140,    151,    163,
174,    184,    198,    209,
222,    233,    245,    256,
266,    280,    297,    300,
313,    324,    333,    345,
359,    367,    382,    393,
405,    415,    427,    450,
454,    472,    488,    491,
502,    507,    523,    523,
542,    569,    581,    604,
611,    626,    652,    671,
661,    698,    715,    738,
//Q56.txt
13,    18,    23,    25,
25,    31,    35,    41,
46,    53,    62,    70,
79,    88,    97,    109,
117,    127,    138,    148,
157,    167,    179,    189,
202,    210,    222,    232,
242,    253,    268,    272,
283,    292,    301,    313,
324,    332,    346,    356,
367,    377,    386,    408,
411,    427,    440,    444,
452,    454,    471,    472,
490,    512,    522,    542,
551,    562,    588,    602,
593,    625,    638,    663,
//Q57.txt
12,    17,    22,    23,
24,    28,    32,    37,
42,    48,    56,    64,
72,    79,    88,    98,
106,    114,    124,    133,
142,    150,    161,    170,
181,    190,    200,    209,
218,    228,    241,    245,
256,    264,    272,    282,
293,    299,    310,    321,
330,    339,    349,    368,
370,    385,    396,    400,
408,    408,    421,    424,
440,    458,    466,    485,
493,    503,    523,    539,
530,    557,    567,    592,
//Q58.txt
12,    16,    21,    21,
22,    26,    29,    34,
38,    44,    51,    57,
64,    71,    79,    88,
95,    102,    111,    119,
127,    134,    144,    152,
162,    169,    178,    187,
195,    204,    216,    218,
227,    235,    243,    251,
262,    267,    277,    287,
296,    303,    311,    329,
331,    343,    352,    356,
362,    363,    376,    377,
394,    409,    413,    432,
439,    446,    463,    477,
470,    495,    500,    523,
//Q59.txt
11,    15,    19,    20,
20,    24,    27,    31,
34,    39,    45,    51,
57,    63,    70,    77,
84,    91,    99,    105,
112,    119,    128,    135,
143,    150,    158,    166,
173,    181,    191,    194,
202,    208,    215,    223,
232,    238,    245,    254,
262,    268,    276,    290,
293,    304,    312,    315,
319,    320,    330,    332,
347,    360,    363,    378,
386,    393,    408,    419,
414,    436,    436,    459,
//Q60.txt
11,    14,    18,    18,
18,    22,    24,    27,
30,    35,    40,    45,
50,    55,    61,    67,
73,    79,    86,    92,
98,    104,    112,    118,
126,    131,    139,    146,
151,    158,    167,    170,
177,    182,    188,    195,
202,    207,    214,    221,
228,    233,    240,    253,
255,    264,    271,    274,
278,    280,    286,    289,
303,    314,    314,    329,
336,    342,    353,    364,
358,    375,    375,    398,
//Q61.txt
10,    13,    16,    16,
16,    19,    21,    24,
26,    30,    35,    39,
43,    47,    53,    58,
63,    68,    74,    79,
84,    89,    97,    101,
108,    113,    119,    126,
131,    136,    144,    147,
153,    157,    162,    168,
173,    178,    184,    190,
196,    199,    205,    216,
217,    226,    232,    236,
240,    239,    245,    247,
260,    270,    268,    281,
289,    294,    300,    311,
306,    318,    315,    341,
//Q62.txt
9,    11,    14,    14,
14,    17,    18,    20,
22,    25,    29,    32,
35,    38,    43,    47,
51,    56,    61,    65,
68,    73,    79,    83,
88,    92,    97,    103,
107,    112,    118,    120,
125,    128,    132,    137,
141,    145,    149,    154,
159,    161,    165,    173,
173,    180,    184,    189,
194,    193,    197,    202,
213,    218,    219,    228,
235,    241,    247,    253,
249,    257,    253,    277,
//Q63.txt
9,    10,    12,    12,
12,    13,    15,    16,
17,    20,    22,    24,
27,    29,    33,    36,
39,    42,    46,    49,
52,    55,    60,    63,
67,    69,    74,    79,
81,    85,    90,    92,
96,    98,    101,    104,
107,    110,    113,    118,
121,    122,    125,    130,
129,    134,    136,    142,
146,    147,    149,    154,
162,    165,    166,    170,
176,    178,    184,    187,
186,    192,    190,    212,
};

static const EbBitNumber initial_rate_control_intra_sad64x64_tables[] = {
    //Q00.txt
   23321,    25349,    27949,    29185,
   29008,    29509,    30245,    30561,
   31327,    31812,    32137,    32271,
   32765,    33464,    34222,    33984,
   34449,    34763,    34582,    35193,
   35594,    35794,    35814,    35006,
   34851,    35329,    34934,    35150,
   35291,    36626,    36653,    37541,
   36772,    36745,    36917,    36212,
   35592,    35488,    35662,    33989,
   34742,    35507,    35511,    36065,
   36030,    37168,    36393,    35742,
   37839,    35920,    38729,    38959,
   36270,    39367,    39047,    36516,
   35325,    35197,    33217,    33761,
   33155,    34627,    34303,    34218,
   //Q01.txt
  15066,    17197,    19402,    20304,
  20479,    20922,    21569,    21916,
  22430,    22829,    23133,    23265,
  23649,    24121,    24649,    24453,
  24813,    25107,    24948,    25356,
  25665,    25826,    25847,    25357,
  25217,    25545,    25312,    25473,
  25546,    26451,    26490,    27135,
  26639,    26566,    26664,    26266,
  25937,    25774,    25907,    24777,
  25307,    25770,    25756,    26128,
  26055,    26763,    26298,    25826,
  27252,    26108,    27664,    27898,
  26363,    28234,    28056,    26369,
  25494,    25406,    24200,    24575,
  23823,    24998,    24600,    24557,
  //Q02.txt
 13014,    15153,    17303,    18179,
 18355,    18788,    19414,    19764,
 20253,    20640,    20937,    21059,
 21444,    21888,    22404,    22210,
 22556,    22837,    22702,    23086,
 23380,    23542,    23559,    23083,
 22957,    23264,    23048,    23199,
 23272,    24146,    24175,    24809,
 24336,    24246,    24343,    23954,
 23654,    23438,    23596,    22542,
 23041,    23452,    23458,    23817,
 23741,    24446,    23975,    23505,
 24894,    23847,    25316,    25555,
 24152,    25859,    25701,    24051,
 23202,    23129,    22019,    22373,
 21548,    22741,    22327,    22250,
 //Q03.txt
11534,    13750,    15868,    16720,
16905,    17330,    17945,    18295,
18705,    19137,    19429,    19547,
19932,    20355,    20868,    20645,
21012,    21292,    21166,    21525,
21807,    21976,    21991,    21520,
21405,    21697,    21493,    21621,
21691,    22551,    22574,    23206,
22753,    22654,    22749,    22363,
22077,    21802,    22002,    21002,
21474,    21861,    21876,    22207,
22127,    22825,    22354,    21881,
23240,    22253,    23673,    23920,
22590,    24192,    24062,    22429,
21581,    21519,    20469,    20807,
19907,    21131,    20743,    20633,
//Q04.txt
8221,    10061,    11788,    12473,
12719,    13142,    13645,    13957,
14294,    14667,    14902,    15023,
15342,    15671,    16141,    15976,
16226,    16439,    16346,    16614,
16860,    16963,    16947,    16618,
16482,    16713,    16595,    16706,
16655,    17259,    17232,    17782,
17410,    17274,    17388,    17042,
16810,    16593,    16802,    15880,
16236,    16525,    16551,    16941,
16536,    17103,    16660,    16186,
17011,    16310,    17254,    17649,
17058,    17969,    17538,    16361,
15761,    16035,    15429,    15018,
14785,    15324,    14622,    15862,
//Q05.txt
6165,    7848,    9435,    10092,
10294,    10726,    11168,    11466,
11798,    12145,    12388,    12493,
12799,    13100,    13557,    13423,
13649,    13836,    13753,    14003,
14286,    14422,    14462,    14227,
14059,    14366,    14244,    14345,
14353,    14907,    14939,    15486,
15119,    15030,    15147,    14753,
14483,    14212,    14341,    13492,
13847,    14039,    14085,    14499,
14229,    14668,    14241,    13774,
14774,    14301,    15261,    15629,
15184,    15996,    15653,    14636,
13930,    14008,    13256,    12520,
12276,    12726,    12020,    13403,
//Q06.txt
4719,    6233,    7578,    8132,
8333,    8722,    9091,    9347,
9635,    9919,    10121,    10211,
10460,    10687,    11083,    10972,
11133,    11283,    11199,    11394,
11632,    11740,    11759,    11578,
11403,    11666,    11594,    11691,
11671,    12090,    12102,    12604,
12324,    12232,    12312,    12053,
11801,    11607,    11719,    11106,
11361,    11468,    11526,    11871,
11562,    11990,    11578,    11264,
12056,    11645,    12423,    12691,
12398,    13046,    12773,    11970,
11398,    11377,    10844,    10259,
10097,    10505,    9883,    11071,
//Q07.txt
3940,    5359,    6619,    7134,
7339,    7717,    8065,    8311,
8588,    8862,    9059,    9147,
9385,    9602,    9990,    9883,
10033,    10170,    10084,    10274,
10520,    10624,    10643,    10473,
10300,    10558,    10498,    10590,
10566,    10972,    10978,    11463,
11189,    11115,    11194,    10938,
10691,    10498,    10617,    10038,
10280,    10399,    10460,    10796,
10505,    10933,    10525,    10201,
10973,    10595,    11345,    11608,
11346,    11965,    11733,    10963,
10401,    10383,    9873,    9328,
9158,    9576,    8977,    10053,
//Q08.txt
3375,    4690,    5871,    6353,
6554,    6920,    7250,    7482,
7751,    8014,    8204,    8291,
8520,    8727,    9102,    9003,
9143,    9270,    9182,    9374,
9618,    9718,    9738,    9575,
9408,    9660,    9610,    9698,
9671,    10063,    10064,    10535,
10266,    10207,    10286,    10034,
9791,    9604,    9728,    9181,
9413,    9537,    9595,    9924,
9647,    10077,    9673,    9345,
10095,    9740,    10475,    10729,
10496,    11087,    10882,    10135,
9597,    9581,    9095,    8573,
8405,    8825,    8242,    9228,
//Q09.txt
2994,    4242,    5364,    5817,
6013,    6365,    6679,    6901,
7162,    7413,    7599,    7684,
7902,    8106,    8467,    8373,
8506,    8623,    8536,    8727,
8968,    9063,    9083,    8927,
8764,    9011,    8965,    9050,
9021,    9402,    9399,    9855,
9585,    9543,    9621,    9373,
9134,    8958,    9082,    8558,
8782,    8907,    8965,    9286,
9020,    9442,    9048,    8718,
9451,    9116,    9831,    10081,
9868,    10436,    10251,    9525,
9006,    8991,    8522,    8025,
7855,    8272,    7709,    8627,
//Q10.txt
2594,    3770,    4831,    5254,
5445,    5787,    6087,    6299,
6552,    6795,    6977,    7059,
7268,    7467,    7820,    7731,
7856,    7965,    7877,    8070,
8309,    8401,    8421,    8271,
8113,    8353,    8314,    8394,
8364,    8736,    8728,    9172,
8909,    8878,    8956,    8711,
8469,    8309,    8435,    7931,
8145,    8272,    8329,    8638,
8388,    8809,    8419,    8090,
8802,    8485,    9188,    9437,
9240,    9784,    9622,    8917,
8410,    8398,    7948,    7473,
7304,    7713,    7169,    8026,
//Q11.txt
2327,    3450,    4462,    4859,
5045,    5375,    5661,    5866,
6110,    6346,    6523,    6602,
6803,    6996,    7339,    7256,
7374,    7477,    7388,    7579,
7816,    7904,    7925,    7777,
7625,    7858,    7822,    7901,
7870,    8231,    8220,    8652,
8395,    8373,    8449,    8210,
7964,    7820,    7945,    7461,
7666,    7793,    7850,    8150,
7908,    8327,    7943,    7619,
8308,    8009,    8697,    8942,
8760,    9281,    9138,    8448,
7961,    7948,    7507,    7051,
6894,    7294,    6761,    7575,
//Q12.txt
2075,    3156,    4124,    4502,
4679,    4999,    5274,    5470,
5705,    5935,    6108,    6186,
6377,    6565,    6900,    6821,
6933,    7030,    6944,    7134,
7364,    7450,    7471,    7326,
7180,    7407,    7375,    7448,
7420,    7773,    7758,    8179,
7929,    7913,    7988,    7750,
7492,    7375,    7499,    7028,
7232,    7356,    7412,    7707,
7471,    7883,    7509,    7188,
7860,    7572,    8246,    8489,
8316,    8826,    8694,    8018,
7543,    7529,    7102,    6665,
6514,    6909,    6384,    7154,
//Q13.txt
1848,    2877,    3802,    4157,
4328,    4641,    4904,    5094,
5321,    5546,    5715,    5791,
5977,    6158,    6487,    6412,
6519,    6609,    6525,    6714,
6941,    7024,    7044,    6904,
6763,    6984,    6955,    7026,
6997,    7341,    7325,    7736,
7494,    7479,    7555,    7322,
7064,    6955,    7079,    6626,
6819,    6944,    6998,    7283,
7060,    7468,    7099,    6789,
7436,    7158,    7824,    8064,
7906,    8396,    8278,    7616,
7157,    7141,    6727,    6303,
6159,    6543,    6033,    6768,
//Q14.txt
1694,    2680,    3568,    3908,
4072,    4375,    4629,    4811,
5032,    5251,    5416,    5490,
5670,    5847,    6167,    6096,
6198,    6283,    6200,    6387,
6611,    6691,    6712,    6573,
6437,    6653,    6626,    6696,
6666,    7001,    6985,    7384,
7150,    7139,    7214,    6984,
6729,    6625,    6750,    6311,
6496,    6621,    6676,    6952,
6735,    7142,    6777,    6475,
7101,    6834,    7488,    7725,
7574,    8049,    7944,    7298,
6845,    6832,    6429,    6018,
5882,    6252,    5755,    6461,
//Q15.txt
1558,    2502,    3357,    3685,
3840,    4135,    4381,    4557,
4773,    4984,    5146,    5220,
5394,    5566,    5879,    5812,
5908,    5990,    5907,    6093,
6314,    6390,    6413,    6274,
6144,    6354,    6329,    6399,
6368,    6697,    6678,    7069,
6840,    6831,    6906,    6679,
6429,    6331,    6453,    6029,
6198,    6331,    6384,    6655,
6443,    6843,    6486,    6190,
6799,    6542,    7186,    7418,
7278,    7739,    7641,    7007,
6564,    6551,    6158,    5759,
5631,    5987,    5506,    6183,
//Q16.txt
1405,    2306,    3125,    3438,
3588,    3873,    4110,    4281,
4492,    4698,    4855,    4928,
5097,    5265,    5570,    5507,
5600,    5679,    5596,    5781,
5998,    6072,    6094,    5959,
5833,    6037,    6014,    6082,
6053,    6374,    6355,    6737,
6513,    6508,    6580,    6355,
6112,    6017,    6139,    5728,
5888,    6023,    6077,    6337,
6134,    6531,    6180,    5890,
6480,    6233,    6868,    7096,
6961,    7410,    7323,    6703,
6267,    6254,    5871,    5482,
5362,    5712,    5242,    5890,
//Q17.txt
1312,    2183,    2975,    3277,
3422,    3701,    3930,    4096,
4301,    4502,    4657,    4729,
4893,    5057,    5357,    5295,
5385,    5461,    5380,    5562,
5777,    5849,    5869,    5738,
5615,    5814,    5792,    5860,
5831,    6146,    6125,    6499,
6281,    6278,    6349,    6126,
5888,    5797,    5918,    5517,
5669,    5806,    5858,    6110,
5914,    6307,    5960,    5680,
6251,    6013,    6639,    6861,
6735,    7170,    7088,    6484,
6054,    6040,    5668,    5289,
5170,    5508,    5053,    5682,
//Q18.txt
1217,    2051,    2810,    3101,
3241,    3510,    3732,    3893,
4094,    4289,    4441,    4512,
4672,    4831,    5124,    5065,
5152,    5225,    5145,    5325,
5538,    5607,    5626,    5497,
5380,    5574,    5553,    5619,
5590,    5900,    5878,    6244,
6033,    6031,    6100,    5880,
5647,    5561,    5679,    5292,
5437,    5571,    5625,    5869,
5678,    6065,    5725,    5450,
6009,    5780,    6395,    6613,
6495,    6919,    6842,    6249,
5826,    5816,    5449,    5080,
4966,    5296,    4850,    5459,
//Q19.txt
1140,    1944,    2679,    2958,
3094,    3356,    3571,    3727,
3923,    4113,    4262,    4333,
4489,    4644,    4930,    4873,
4957,    5028,    4949,    5127,
5338,    5405,    5425,    5297,
5183,    5373,    5353,    5418,
5388,    5692,    5671,    6030,
5824,    5824,    5891,    5674,
5445,    5362,    5479,    5102,
5242,    5375,    5428,    5666,
5480,    5865,    5530,    5261,
5803,    5582,    6189,    6402,
6290,    6704,    6633,    6051,
5634,    5625,    5265,    4905,
4795,    5115,    4681,    5273,
//Q20.txt
1050,    1821,    2530,    2799,
2930,    3185,    3393,    3545,
3738,    3923,    4069,    4140,
4292,    4445,    4724,    4670,
4751,    4819,    4742,    4918,
5125,    5192,    5211,    5087,
4977,    5162,    5146,    5207,
5180,    5477,    5456,    5807,
5606,    5608,    5674,    5460,
5234,    5155,    5270,    4903,
5038,    5171,    5223,    5456,
5271,    5651,    5324,    5062,
5589,    5374,    5973,    6181,
6073,    6478,    6413,    5844,
5433,    5423,    5073,    4722,
4616,    4926,    4504,    5077,
//Q21.txt
982,    1724,    2408,    2666,
2793,    3040,    3243,    3390,
3578,    3759,    3902,    3973,
4121,    4270,    4543,    4491,
4569,    4636,    4559,    4733,
4939,    5002,    5021,    4901,
4796,    4975,    4959,    5019,
4992,    5285,    5264,    5606,
5411,    5414,    5480,    5268,
5047,    4971,    5083,    4728,
4857,    4988,    5039,    5268,
5086,    5458,    5138,    4884,
5398,    5191,    5779,    5986,
5886,    6278,    6219,    5659,
5255,    5245,    4899,    4556,
4454,    4760,    4342,    4903,
//Q22.txt
929,    1648,    2310,    2559,
2683,    2923,    3120,    3265,
3449,    3624,    3765,    3835,
3980,    4126,    4394,    4344,
4418,    4485,    4408,    4580,
4784,    4845,    4864,    4746,
4644,    4818,    4801,    4863,
4836,    5122,    5102,    5438,
5247,    5251,    5316,    5107,
4890,    4818,    4926,    4582,
4706,    4834,    4886,    5110,
4932,    5299,    4984,    4735,
5237,    5037,    5617,    5820,
5725,    6109,    6049,    5500,
5107,    5094,    4756,    4421,
4322,    4617,    4212,    4757,
//Q23.txt
868,    1562,    2202,    2443,
2564,    2798,    2990,    3130,
3311,    3483,    3622,    3690,
3832,    3975,    4239,    4190,
4263,    4328,    4251,    4423,
4622,    4684,    4702,    4586,
4489,    4658,    4643,    4702,
4677,    4958,    4937,    5267,
5080,    5085,    5150,    4944,
4730,    4660,    4766,    4432,
4550,    4678,    4731,    4949,
4773,    5137,    4826,    4582,
5073,    4877,    5451,    5650,
5559,    5934,    5881,    5340,
4951,    4941,    4610,    4280,
4187,    4473,    4075,    4609,
//Q24.txt
815,    1483,    2100,    2333,
2449,    2676,    2862,    2997,
3175,    3341,    3478,    3545,
3684,    3822,    4082,    4034,
4104,    4168,    4093,    4260,
4458,    4518,    4537,    4422,
4329,    4494,    4477,    4536,
4512,    4787,    4767,    5090,
4907,    4914,    4979,    4775,
4566,    4501,    4602,    4277,
4391,    4517,    4569,    4782,
4610,    4966,    4663,    4425,
4903,    4714,    5280,    5475,
5386,    5753,    5705,    5172,
4790,    4781,    4456,    4135,
4043,    4324,    3936,    4455,
//Q25.txt
732,    1361,    1947,    2169,
2276,    2493,    2671,    2800,
2972,    3131,    3264,    3329,
3464,    3598,    3848,    3805,
3871,    3933,    3860,    4023,
4215,    4274,    4293,    4181,
4094,    4252,    4238,    4293,
4270,    4540,    4519,    4833,
4655,    4665,    4729,    4527,
4326,    4264,    4360,    4051,
4158,    4281,    4332,    4539,
4373,    4722,    4425,    4195,
4658,    4477,    5032,    5221,
5138,    5491,    5444,    4930,
4554,    4545,    4227,    3919,
3834,    4101,    3729,    4225,
//Q26.txt
664,    1260,    1820,    2030,
2129,    2338,    2508,    2632,
2799,    2953,    3081,    3146,
3275,    3404,    3648,    3607,
3670,    3731,    3659,    3820,
4006,    4063,    4084,    3975,
3891,    4044,    4029,    4085,
4064,    4325,    4304,    4610,
4438,    4450,    4513,    4315,
4118,    4061,    4152,    3856,
3958,    4078,    4128,    4327,
4166,    4508,    4220,    3994,
4444,    4271,    4817,    5002,
4922,    5261,    5218,    4718,
4351,    4340,    4034,    3732,
3651,    3910,    3552,    4030,
//Q27.txt
612,    1177,    1713,    1915,
2007,    2207,    2369,    2488,
2650,    2799,    2924,    2986,
3111,    3236,    3472,    3434,
3494,    3555,    3483,    3640,
3822,    3878,    3899,    3793,
3713,    3861,    3847,    3901,
3881,    4135,    4114,    4413,
4246,    4257,    4320,    4126,
3934,    3882,    3969,    3688,
3782,    3896,    3948,    4139,
3985,    4318,    4036,    3818,
4253,    4089,    4624,    4803,
4729,    5053,    5019,    4530,
4169,    4160,    3859,    3566,
3490,    3740,    3394,    3854,
//Q28.txt
560,    1095,    1608,    1799,
1886,    2078,    2234,    2348,
2504,    2647,    2768,    2830,
2951,    3071,    3300,    3264,
3321,    3379,    3311,    3464,
3641,    3697,    3717,    3615,
3539,    3680,    3666,    3719,
3702,    3949,    3927,    4217,
4057,    4068,    4130,    3940,
3754,    3705,    3788,    3520,
3610,    3718,    3770,    3960,
3807,    4133,    3857,    3647,
4068,    3910,    4435,    4607,
4538,    4850,    4819,    4343,
3991,    3986,    3692,    3408,
3331,    3575,    3242,    3684,
//Q29.txt
513,    1017,    1504,    1686,
1768,    1951,    2100,    2209,
2360,    2497,    2614,    2674,
2791,    2906,    3129,    3095,
3148,    3205,    3137,    3287,
3460,    3514,    3535,    3435,
3363,    3498,    3486,    3537,
3521,    3760,    3740,    4020,
3865,    3878,    3938,    3755,
3573,    3529,    3605,    3351,
3436,    3543,    3592,    3777,
3628,    3946,    3676,    3476,
3881,    3729,    4241,    4407,
4344,    4645,    4623,    4156,
3813,    3806,    3525,    3247,
3177,    3411,    3089,    3514,
//Q30.txt
477,    955,    1421,    1596,
1673,    1848,    1992,    2097,
2242,    2375,    2487,    2547,
2660,    2770,    2986,    2954,
3006,    3060,    2994,    3140,
3309,    3360,    3382,    3286,
3217,    3347,    3336,    3385,
3369,    3602,    3582,    3853,
3703,    3718,    3776,    3597,
3420,    3380,    3453,    3209,
3289,    3394,    3442,    3618,
3477,    3787,    3525,    3332,
3724,    3576,    4079,    4240,
4180,    4473,    4447,    4000,
3664,    3658,    3383,    3116,
3047,    3269,    2961,    3372,
//Q31.txt
430,    875,    1316,    1480,
1549,    1717,    1852,    1952,
2091,    2217,    2325,    2382,
2489,    2595,    2802,    2773,
2821,    2875,    2811,    2953,
3115,    3166,    3187,    3094,
3030,    3154,    3144,    3191,
3176,    3400,    3382,    3641,
3498,    3514,    3570,    3399,
3229,    3192,    3260,    3029,
3106,    3206,    3252,    3422,
3285,    3587,    3334,    3147,
3524,    3384,    3874,    4026,
3973,    4251,    4230,    3797,
3475,    3462,    3201,    2945,
2880,    3096,    2802,    3189,
//Q32.txt
389,    803,    1220,    1375,
1439,    1596,    1725,    1820,
1953,    2073,    2177,    2232,
2336,    2436,    2635,    2608,
2654,    2706,    2645,    2782,
2940,    2986,    3008,    2919,
2859,    2977,    2968,    3014,
3000,    3217,    3198,    3448,
3312,    3326,    3382,    3216,
3051,    3020,    3083,    2867,
2936,    3030,    3078,    3240,
3110,    3403,    3157,    2977,
3341,    3207,    3684,    3831,
3779,    4045,    4029,    3609,
3298,    3287,    3033,    2788,
2728,    2929,    2652,    3020,
//Q33.txt
369,    769,    1175,    1327,
1387,    1540,    1666,    1758,
1886,    2003,    2104,    2158,
2259,    2356,    2548,    2523,
2567,    2620,    2561,    2692,
2845,    2891,    2913,    2826,
2769,    2883,    2874,    2919,
2907,    3117,    3098,    3342,
3209,    3224,    3278,    3118,
2959,    2927,    2988,    2777,
2846,    2941,    2986,    3142,
3016,    3300,    3060,    2887,
3240,    3110,    3573,    3715,
3666,    3926,    3903,    3497,
3196,    3188,    2939,    2699,
2642,    2838,    2571,    2929,
//Q34.txt
340,    714,    1102,    1247,
1302,    1450,    1569,    1656,
1780,    1893,    1990,    2043,
2139,    2233,    2417,    2395,
2437,    2488,    2432,    2559,
2707,    2752,    2772,    2688,
2637,    2745,    2737,    2778,
2769,    2972,    2955,    3190,
3063,    3078,    3130,    2971,
2821,    2792,    2851,    2648,
2714,    2806,    2849,    2999,
2878,    3154,    2922,    2755,
3097,    2971,    3424,    3561,
3515,    3761,    3742,    3349,
3059,    3048,    2809,    2581,
2523,    2713,    2453,    2796,
//Q35.txt
307,    652,    1016,    1152,
1202,    1341,    1454,    1537,
1654,    1761,    1853,    1904,
1996,    2084,    2261,    2240,
2280,    2330,    2275,    2398,
2540,    2583,    2603,    2523,
2475,    2578,    2571,    2610,
2602,    2798,    2780,    3003,
2885,    2899,    2949,    2796,
2654,    2628,    2682,    2494,
2553,    2640,    2684,    2830,
2713,    2978,    2755,    2597,
2924,    2804,    3239,    3371,
3330,    3563,    3549,    3173,
2886,    2880,    2655,    2431,
2380,    2559,    2315,    2637,
//Q36.txt
278,    597,    941,    1069,
1114,    1246,    1353,    1430,
1543,    1643,    1731,    1781,
1868,    1952,    2120,    2102,
2139,    2189,    2136,    2254,
2390,    2432,    2451,    2376,
2330,    2429,    2423,    2459,
2453,    2640,    2623,    2836,
2723,    2739,    2789,    2640,
2504,    2480,    2534,    2355,
2411,    2493,    2536,    2675,
2563,    2820,    2605,    2452,
2769,    2653,    3075,    3201,
3157,    3383,    3373,    3010,
2733,    2726,    2512,    2296,
2249,    2420,    2190,    2494,
//Q37.txt
254,    551,    875,    996,
1037,    1162,    1263,    1337,
1445,    1540,    1625,    1672,
1755,    1836,    1997,    1979,
2016,    2064,    2014,    2126,
2257,    2297,    2317,    2244,
2203,    2295,    2289,    2326,
2320,    2500,    2483,    2687,
2580,    2597,    2644,    2502,
2370,    2350,    2399,    2232,
2284,    2362,    2405,    2537,
2431,    2681,    2471,    2326,
2629,    2518,    2926,    3046,
3008,    3221,    3211,    2864,
2601,    2592,    2383,    2179,
2136,    2296,    2078,    2368,
//Q38.txt
232,    507,    812,    928,
965,    1083,    1179,    1249,
1351,    1440,    1521,    1568,
1647,    1724,    1876,    1862,
1896,    1942,    1895,    2001,
2128,    2165,    2184,    2117,
2078,    2167,    2162,    2197,
2191,    2364,    2348,    2543,
2441,    2457,    2503,    2366,
2241,    2223,    2268,    2112,
2159,    2234,    2278,    2403,
2302,    2544,    2341,    2203,
2495,    2387,    2781,    2895,
2859,    3063,    3058,    2723,
2470,    2462,    2257,    2066,
2021,    2175,    1970,    2242,
//Q39.txt
210,    462,    749,    857,
889,    1000,    1090,    1156,
1252,    1336,    1414,    1459,
1533,    1606,    1751,    1739,
1770,    1816,    1771,    1872,
1992,    2029,    2048,    1982,
1947,    2032,    2029,    2059,
2056,    2220,    2207,    2391,
2296,    2310,    2353,    2223,
2106,    2090,    2130,    1985,
2027,    2100,    2144,    2263,
2167,    2398,    2205,    2073,
2350,    2248,    2632,    2736,
2704,    2895,    2892,    2577,
2332,    2324,    2130,    1944,
1904,    2051,    1855,    2112,
//Q40.txt
192,    426,    696,    798,
827,    932,    1016,    1079,
1170,    1249,    1324,    1367,
1438,    1507,    1644,    1635,
1664,    1710,    1666,    1761,
1877,    1911,    1930,    1867,
1837,    1916,    1914,    1943,
1941,    2097,    2084,    2261,
2170,    2184,    2227,    2101,
1990,    1975,    2015,    1879,
1917,    1985,    2028,    2143,
2051,    2269,    2087,    1963,
2228,    2132,    2500,    2600,
2569,    2750,    2749,    2445,
2214,    2207,    2023,    1842,
1799,    1946,    1760,    2003,
//Q41.txt
175,    390,    642,    739,
764,    861,    941,    1000,
1085,    1160,    1231,    1273,
1339,    1404,    1534,    1526,
1555,    1598,    1557,    1646,
1757,    1789,    1808,    1750,
1721,    1796,    1795,    1823,
1822,    1971,    1958,    2125,
2040,    2054,    2094,    1973,
1869,    1859,    1893,    1766,
1800,    1867,    1907,    2019,
1930,    2143,    1964,    1849,
2100,    2007,    2361,    2456,
2426,    2599,    2600,    2310,
2089,    2081,    1903,    1736,
1693,    1835,    1659,    1888,
//Q42.txt
159,    358,    593,    684,
706,    798,    872,    928,
1007,    1080,    1146,    1187,
1249,    1310,    1432,    1427,
1455,    1497,    1459,    1543,
1647,    1678,    1696,    1642,
1617,    1687,    1686,    1714,
1713,    1855,    1843,    1999,
1921,    1934,    1972,    1856,
1759,    1751,    1783,    1664,
1696,    1760,    1799,    1902,
1819,    2021,    1853,    1742,
1982,    1895,    2234,    2325,
2295,    2459,    2461,    2185,
1974,    1968,    1799,    1637,
1602,    1728,    1566,    1781,
//Q43.txt
145,    329,    547,    633,
652,    737,    808,    860,
934,    1002,    1064,    1104,
1162,    1219,    1334,    1331,
1356,    1398,    1364,    1443,
1541,    1569,    1586,    1536,
1515,    1580,    1579,    1607,
1607,    1740,    1729,    1876,
1803,    1816,    1852,    1741,
1652,    1646,    1674,    1563,
1593,    1653,    1691,    1789,
1710,    1901,    1745,    1638,
1868,    1782,    2105,    2192,
2167,    2321,    2319,    2062,
1862,    1856,    1697,    1544,
1510,    1630,    1476,    1678,
//Q44.txt
132,    302,    507,    588,
603,    683,    750,    798,
868,    931,    990,    1028,
1083,    1136,    1245,    1243,
1269,    1309,    1277,    1350,
1443,    1471,    1488,    1440,
1422,    1483,    1483,    1509,
1510,    1637,    1628,    1766,
1697,    1710,    1746,    1639,
1556,    1550,    1575,    1473,
1499,    1556,    1595,    1685,
1612,    1797,    1646,    1545,
1763,    1682,    1988,    2072,
2048,    2195,    2191,    1951,
1761,    1752,    1602,    1453,
1426,    1536,    1395,    1585,
//Q45.txt
121,    277,    469,    543,
556,    630,    692,    738,
802,    861,    916,    953,
1004,    1054,    1158,    1156,
1181,    1220,    1190,    1259,
1345,    1372,    1389,    1346,
1329,    1386,    1386,    1411,
1414,    1532,    1524,    1653,
1589,    1602,    1636,    1535,
1459,    1454,    1476,    1383,
1406,    1461,    1498,    1581,
1514,    1687,    1545,    1451,
1656,    1582,    1872,    1951,
1929,    2066,    2062,    1836,
1657,    1646,    1509,    1368,
1341,    1444,    1312,    1491,
//Q46.txt
110,    255,    432,    503,
513,    582,    640,    683,
742,    796,    849,    884,
931,    978,    1073,    1074,
1098,    1135,    1110,    1172,
1254,    1278,    1297,    1257,
1241,    1295,    1295,    1317,
1321,    1433,    1427,    1548,
1488,    1501,    1534,    1438,
1368,    1362,    1384,    1298,
1317,    1370,    1406,    1485,
1421,    1586,    1452,    1361,
1556,    1485,    1762,    1835,
1815,    1945,    1943,    1730,
1557,    1551,    1419,    1285,
1262,    1357,    1237,    1402,
//Q47.txt
101,    235,    399,    465,
473,    537,    591,    631,
687,    737,    786,    820,
863,    907,    996,    998,
1021,    1059,    1036,    1093,
1170,    1193,    1210,    1174,
1161,    1211,    1211,    1234,
1237,    1343,    1337,    1450,
1395,    1408,    1438,    1348,
1284,    1279,    1298,    1218,
1236,    1287,    1321,    1397,
1335,    1491,    1364,    1281,
1464,    1397,    1658,    1729,
1715,    1834,    1836,    1628,
1466,    1463,    1339,    1209,
1191,    1279,    1165,    1321,
//Q48.txt
92,    216,    368,    430,
436,    496,    545,    583,
634,    680,    725,    760,
799,    839,    924,    927,
949,    985,    964,    1015,
1087,    1110,    1126,    1094,
1085,    1130,    1130,    1152,
1155,    1254,    1252,    1354,
1303,    1315,    1343,    1259,
1202,    1198,    1215,    1142,
1157,    1205,    1237,    1308,
1251,    1398,    1280,    1202,
1374,    1310,    1556,    1626,
1607,    1723,    1723,    1528,
1382,    1376,    1257,    1136,
1117,    1200,    1097,    1241,
//Q49.txt
84,    199,    338,    398,
401,    456,    502,    537,
583,    626,    669,    701,
738,    775,    851,    858,
880,    915,    897,    942,
1009,    1030,    1046,    1018,
1010,    1051,    1052,    1073,
1078,    1171,    1168,    1263,
1216,    1230,    1255,    1175,
1124,    1123,    1136,    1071,
1083,    1130,    1159,    1224,
1172,    1309,    1201,    1124,
1288,    1227,    1460,    1525,
1509,    1617,    1613,    1436,
1295,    1293,    1182,    1067,
1047,    1125,    1030,    1165,
//Q50.txt
76,    183,    313,    368,
370,    421,    464,    496,
538,    578,    618,    649,
682,    717,    787,    795,
816,    850,    834,    875,
937,    958,    973,    947,
939,    980,    981,    1000,
1006,    1091,    1090,    1178,
1134,    1148,    1174,    1097,
1053,    1052,    1064,    1003,
1012,    1056,    1086,    1146,
1097,    1228,    1124,    1054,
1207,    1150,    1368,    1428,
1416,    1517,    1514,    1347,
1217,    1213,    1110,    999,
986,    1056,    967,    1094,
//Q51.txt
70,    168,    290,    341,
341,    388,    427,    457,
495,    533,    569,    599,
630,    661,    726,    735,
754,    787,    775,    811,
868,    887,    902,    880,
873,    911,    913,    932,
937,    1018,    1017,    1097,
1057,    1070,    1093,    1022,
985,    983,    993,    940,
946,    988,    1016,    1071,
1027,    1148,    1053,    987,
1132,    1078,    1281,    1339,
1328,    1420,    1415,    1261,
1142,    1135,    1038,    940,
928,    991,    909,    1027,
//Q52.txt
64,    154,    267,    316,
313,    356,    393,    421,
455,    490,    523,    552,
581,    607,    668,    678,
697,    727,    718,    749,
801,    820,    835,    817,
811,    846,    849,    866,
870,    946,    946,    1020,
983,    998,    1020,    952,
918,    917,    926,    878,
882,    923,    950,    1002,
959,    1072,    984,    921,
1057,    1008,    1199,    1251,
1245,    1328,    1325,    1180,
1066,    1063,    975,    879,
871,    924,    854,    963,
//Q53.txt
59,    142,    245,    292,
288,    328,    362,    388,
418,    450,    480,    508,
534,    558,    614,    625,
641,    670,    665,    691,
740,    757,    771,    756,
751,    783,    787,    801,
807,    878,    879,    944,
914,    925,    948,    886,
855,    856,    863,    822,
824,    861,    887,    934,
895,    1000,    917,    860,
989,    940,    1117,    1169,
1162,    1240,    1239,    1104,
998,    995,    907,    822,
811,    869,    799,    904,
//Q54.txt
54,    130,    225,    270,
266,    302,    333,    357,
383,    412,    440,    467,
491,    512,    564,    575,
590,    620,    616,    638,
682,    697,    712,    699,
697,    727,    732,    743,
748,    814,    817,    876,
849,    858,    882,    819,
795,    798,    804,    767,
766,    802,    828,    872,
835,    929,    855,    802,
918,    877,    1044,    1089,
1084,    1153,    1154,    1029,
931,    928,    849,    768,
758,    813,    749,    846,
//Q55.txt
50,    118,    205,    249,
243,    275,    305,    326,
348,    374,    400,    427,
448,    468,    513,    525,
538,    568,    566,    583,
624,    637,    651,    642,
641,    669,    672,    683,
689,    749,    755,    807,
781,    791,    812,    755,
736,    738,    744,    710,
710,    745,    770,    808,
775,    866,    793,    745,
855,    813,    962,    1010,
1001,    1072,    1068,    950,
866,    862,    785,    711,
702,    752,    697,    787,
//Q56.txt
46,    108,    188,    229,
222,    252,    279,    298,
318,    341,    364,    389,
408,    427,    467,    478,
491,    520,    519,    533,
570,    581,    595,    589,
588,    614,    617,    628,
634,    690,    695,    739,
717,    726,    746,    694,
681,    683,    686,    659,
655,    691,    712,    747,
718,    798,    733,    690,
793,    753,    892,    933,
928,    988,    986,    881,
802,    801,    731,    662,
655,    696,    648,    731,
//Q57.txt
42,    97,    170,    210,
202,    229,    253,    271,
288,    309,    330,    353,
370,    386,    421,    432,
446,    474,    474,    483,
516,    527,    541,    537,
537,    561,    566,    575,
580,    629,    637,    675,
657,    665,    683,    635,
627,    627,    630,    609,
604,    635,    657,    685,
661,    733,    676,    636,
729,    695,    819,    860,
855,    905,    909,    809,
742,    738,    676,    613,
605,    643,    600,    678,
//Q58.txt
38,    87,    153,    191,
182,    206,    228,    245,
259,    279,    297,    319,
332,    347,    378,    388,
403,    429,    430,    433,
464,    473,    487,    484,
487,    508,    514,    520,
527,    569,    577,    612,
594,    603,    619,    573,
571,    572,    577,    558,
554,    579,    602,    627,
605,    669,    620,    586,
665,    635,    748,    784,
783,    828,    821,    740,
678,    674,    618,    562,
558,    595,    552,    625,
//Q59.txt
35,    78,    137,    172,
162,    184,    204,    219,
233,    250,    265,    285,
298,    310,    336,    346,
361,    385,    386,    386,
413,    420,    433,    433,
438,    457,    460,    468,
474,    510,    518,    550,
533,    543,    556,    517,
518,    519,    523,    507,
500,    525,    547,    570,
550,    608,    562,    533,
603,    576,    679,    706,
708,    743,    743,    674,
618,    614,    559,    514,
511,    541,    505,    574,
//Q60.txt
32,    68,    120,    153,
143,    163,    180,    195,
206,    221,    236,    253,
263,    274,    295,    305,
319,    338,    342,    339,
361,    367,    378,    383,
387,    406,    410,    416,
422,    453,    462,    487,
475,    483,    493,    461,
466,    464,    466,    455,
448,    471,    490,    510,
492,    539,    504,    480,
542,    517,    604,    632,
634,    664,    661,    607,
556,    553,    506,    464,
461,    487,    456,    520,
//Q61.txt
29,    59,    104,    134,
124,    142,    158,    170,
181,    194,    207,    221,
231,    240,    258,    267,
279,    294,    301,    296,
310,    315,    327,    333,
337,    354,    358,    364,
368,    394,    404,    423,
414,    423,    433,    403,
412,    408,    413,    405,
395,    416,    433,    450,
437,    471,    444,    424,
476,    459,    526,    552,
553,    581,    577,    533,
493,    492,    444,    414,
411,    436,    405,    465,
//Q62.txt
26,    50,    85,    113,
102,    117,    130,    141,
150,    163,    173,    184,
193,    201,    217,    222,
235,    248,    255,    248,
253,    257,    265,    273,
277,    289,    294,    300,
301,    318,    328,    336,
334,    342,    346,    335,
346,    336,    345,    342,
330,    351,    364,    377,
367,    391,    371,    357,
398,    385,    438,    460,
458,    481,    474,    443,
409,    411,    376,    354,
350,    375,    347,    400,
//Q63.txt
22,    39,    64,    89,
77,    89,    99,    108,
117,    126,    135,    144,
152,    158,    171,    176,
185,    195,    203,    197,
199,    201,    207,    216,
219,    226,    228,    233,
236,    243,    253,    258,
254,    265,    267,    268,
274,    260,    270,    270,
265,    276,    282,    291,
290,    307,    289,    286,
303,    302,    312,    328,
338,    346,    345,    334,
323,    325,    297,    283,
286,    305,    276,    321
};





/**************************************
 * Function Declarations
 **************************************/
EbErrorType rate_control_tables_ctor(
    RateControlTables *initial_rate_control_tables_array)
{
    int qp_index, interval_index, temporal_index;
    for (qp_index = 0; qp_index < 64; qp_index++) {
        for (interval_index = 0; interval_index < NUMBER_OF_SAD_INTERVALS; interval_index++) {
            for (temporal_index = 0; temporal_index < MAX_TEMPORAL_LAYERS; temporal_index++) {
                if (interval_index < (NUMBER_OF_SAD_INTERVALS >> 1)) {
                    // intrinsics used in initial RC are assuming signed 16 bits is the maximum
                    initial_rate_control_tables_array[qp_index].sad_bits_array[temporal_index][interval_index] =
                        CLIP3(1,
                        (uint16_t)((1 << 15) - 1),
                            (uint16_t)initial_rate_control_sad64x64_tables[qp_index*(NUMBER_OF_SAD_INTERVALS >> 1) + interval_index]);

                    initial_rate_control_tables_array[qp_index].intra_sad_bits_array[temporal_index][interval_index] =
                        CLIP3(1,
                        (uint16_t)((1 << 15) - 1),
                            (uint16_t)initial_rate_control_intra_sad64x64_tables[qp_index*(NUMBER_OF_SAD_INTERVALS >> 1) + interval_index]);

                }
                else {

                    initial_rate_control_tables_array[qp_index].sad_bits_array[temporal_index][interval_index] =
                        CLIP3(1,
                        (uint16_t)((1 << 15) - 1),
                            (uint16_t)initial_rate_control_sad64x64_tables[qp_index*(NUMBER_OF_SAD_INTERVALS >> 1) + ((NUMBER_OF_SAD_INTERVALS >> 1) - 1)]);
                    initial_rate_control_tables_array[qp_index].intra_sad_bits_array[temporal_index][interval_index] =
                        CLIP3(1,
                        (uint16_t)((1 << 15) - 1),
                            initial_rate_control_intra_sad64x64_tables[qp_index*(NUMBER_OF_SAD_INTERVALS >> 1) + ((NUMBER_OF_SAD_INTERVALS >> 1) - 1)]);

                }


            }
        }
    }
    return EB_ErrorNone;
}


#else

static const EbBitNumber initialRateControlSad64x64Tables[] = {
    // QP = 0 NEW
        0,        0,        0,        0,
        0,        0,    19064,    21410,
    21781,    22938,    23734,    24222,
    24242,    24233,    24377,    26487,
    26950,    28615,    29670,    29941,
    29857,    29336,    29130,    29572,
    29583,    29507,    29359,    29711,
    29789,    29753,    29766,    29528,
    29487,    29511,    29611,    29756,
    29758,    29933,    30202,    30579,
    30618,    30870,    31006,    31339,
    31364,    31566,    31687,    31982,
    32063,    32155,    32396,    32551,
    32640,    32651,    32787,    32978,
    32923,    33063,    33139,    33235,
    33288,    33350,    33382,    34440,
    // QP = 1 NEW
        0,        0,        0,        0,
        0,        0,    18221,    20496,
    20860,    21997,    22789,    23260,
    23283,    23277,    23417,    25456,
    25906,    27517,    28544,    28819,
    28739,    28240,    28046,    28479,
    28492,    28419,    28277,    28619,
    28697,    28662,    28675,    28443,
    28404,    28427,    28526,    28669,
    28671,    28841,    29104,    29474,
    29512,    29758,    29891,    30218,
    30243,    30439,    30558,    30847,
    30927,    31019,    31253,    31404,
    31492,    31504,    31635,    31824,
    31767,    31908,    31983,    32076,
    32126,    32187,    32217,    33261,
    // QP = 2 NEW
        0,        0,        0,        0,
        0,        0,    17109,    19287,
    19632,    20731,    21499,    21947,
    21966,    21954,    22094,    24133,
    24583,    26189,    27209,    27477,
    27395,    26896,    26700,    27132,
    27142,    27071,    26926,    27266,
    27342,    27305,    27318,    27087,
    27048,    27072,    27169,    27312,
    27313,    27485,    27746,    28114,
    28151,    28395,    28528,    28851,
    28878,    29072,    29189,    29478,
    29557,    29647,    29879,    30031,
    30118,    30128,    30259,    30446,
    30389,    30528,    30601,    30694,
    30746,    30806,    30837,    31865,
    // QP = 3 NEW
        0,        0,        0,        0,
        0,        0,    16145,    18267,
    18604,    19688,    20447,    20882,
    20904,    20894,    21032,    23054,
    23498,    25089,    26096,    26357,
    26277,    25781,    25590,    26017,
    26029,    25959,    25818,    26156,
    26232,    26196,    26208,    25979,
    25939,    25963,    26059,    26201,
    26202,    26371,    26629,    26993,
    27030,    27271,    27404,    27723,
    27751,    27942,    28058,    28343,
    28421,    28510,    28740,    28892,
    28977,    28987,    29117,    29301,
    29246,    29381,    29456,    29546,
    29596,    29656,    29687,    30703,
    // QP = 4 NEW
        0,        0,        0,        0,
        0,        0,    14466,    16764,
    17121,    18263,    19044,    19493,
    19515,    19505,    19640,    21686,
    22138,    23742,    24755,    25011,
    24929,    24429,    24236,    24666,
    24677,    24609,    24468,    24812,
    24888,    24855,    24869,    24642,
    24603,    24628,    24726,    24869,
    24871,    25041,    25302,    25665,
    25703,    25944,    26077,    26400,
    26424,    26617,    26734,    27020,
    27096,    27186,    27416,    27566,
    27651,    27663,    27794,    27979,
    27922,    28058,    28132,    28222,
    28273,    28332,    28363,    29381,
    // QP = 5 NEW
        0,        0,        0,        0,
        0,        0,    13448,    15643,
    16002,    17119,    17892,    18326,
    18349,    18336,    18472,    20515,
    20962,    22564,    23574,    23823,
    23740,    23238,    23043,    23466,
    23475,    23407,    23267,    23607,
    23683,    23650,    23666,    23441,
    23404,    23430,    23527,    23671,
    23673,    23842,    24099,    24461,
    24497,    24738,    24869,    25189,
    25214,    25405,    25520,    25804,
    25880,    25970,    26197,    26346,
    26430,    26441,    26571,    26752,
    26698,    26831,    26906,    26996,
    27046,    27104,    27136,    28145,
    // QP = 6
        0,        0,        0,        0,
        0,        0,    11823,    14174,
    14548,    15711,    16489,    16927,
    16944,    16927,    17066,    19162,
    19624,    21263,    22292,    22541,
    22456,    21939,    21736,    22163,
    22174,    22098,    21956,    22298,
    22374,    22342,    22357,    22134,
    22094,    22122,    22222,    22367,
    22370,    22543,    22805,    23170,
    23208,    23451,    23584,    23907,
    23931,    24126,    24243,    24529,
    24606,    24694,    24925,    25075,
    25161,    25172,    25302,    25486,
    25428,    25564,    25640,    25729,
    25779,    25838,    25869,    26882,
    // QP = 7 NEW
        0,        0,        0,        0,
        0,        0,    11047,    13263,
    13626,    14758,    15535,    15968,
    15989,    15973,    16111,    18171,
    18622,    20229,    21240,    21487,
    21403,    20895,    20697,    21116,
    21125,    21054,    20913,    21248,
    21322,    21290,    21305,    21086,
    21049,    21078,    21178,    21322,
    21325,    21495,    21752,    22112,
    22148,    22387,    22519,    22836,
    22860,    23051,    23166,    23447,
    23522,    23611,    23836,    23984,
    24068,    24079,    24208,    24387,
    24332,    24466,    24537,    24627,
    24677,    24735,    24764,    25766,
    // QP = 8 NEW
        0,        0,        0,        0,
        0,        0,     9513,    11784,
    12142,    13291,    14070,    14500,
    14519,    14503,    14642,    16742,
    17200,    18832,    19854,    20099,
    20014,    19498,    19297,    19720,
    19731,    19657,    19515,    19853,
    19926,    19893,    19907,    19687,
    19649,    19679,    19780,    19927,
    19930,    20102,    20362,    20726,
    20763,    21005,    21136,    21458,
    21482,    21675,    21791,    22074,
    22150,    22239,    22467,    22616,
    22699,    22712,    22840,    23022,
    22965,    23100,    23173,    23262,
    23313,    23371,    23401,    24404,
    // QP = 9
        0,        0,        0,        0,
        0,        0,     8757,    10863,
    11200,    12284,    13028,    13441,
    13460,    13449,    13589,    15669,
    16127,    17751,    18769,    19008,
    18923,    18408,    18205,    18625,
    18634,    18561,    18418,    18753,
    18828,    18795,    18807,    18587,
    18548,    18575,    18676,    18822,
    18826,    18997,    19255,    19619,
    19654,    19896,    20028,    20348,
    20372,    20564,    20679,    20963,
    21037,    21126,    21353,    21502,
    21584,    21596,    21725,    21906,
    21850,    21983,    22057,    22147,
    22195,    22254,    22284,    23283,
    // QP = 10 NEW

        0,        0,        0,        0,
        0,        0,     7397,     9510,
     9849,    10958,    11724,    12152,
    12174,    12162,    12304,    14418,
    14880,    16525,    17551,    17785,
    17697,    17172,    16963,    17382,
    17391,    17317,    17173,    17510,
    17585,    17553,    17566,    17348,
    17308,    17339,    17440,    17588,
    17592,    17764,    18025,    18389,
    18425,    18667,    18799,    19121,
    19145,    19337,    19453,    19735,
    19811,    19901,    20127,    20276,
    20361,    20370,    20500,    20680,
    20624,    20757,    20830,    20920,
    20969,    21028,    21057,    22059,
    // QP = 11 NEW
        0,        0,        0,        0,
        0,        0,     6115,     8119,
     8448,     9531,    10277,    10703,
    10726,    10716,    10862,    13003,
    13473,    15143,    16186,    16425,
    16335,    15800,    15587,    16006,
    16015,    15936,    15787,    16125,
    16201,    16167,    16181,    15959,
    15919,    15949,    16052,    16201,
    16205,    16379,    16643,    17012,
    17049,    17293,    17427,    17753,
    17775,    17971,    18089,    18375,
    18449,    18540,    18769,    18922,
    19006,    19015,    19146,    19329,
    19273,    19408,    19481,    19571,
    19620,    19679,    19709,    20724,

    // QP = 12 NEW
        0,        0,        0,        0,
        0,        0,     5252,     7138,
     7459,     8506,     9229,     9649,
     9671,     9663,     9813,    11944,
    12414,    14077,    15119,    15365,
    15276,    14745,    14532,    14951,
    14960,    14880,    14730,    15065,
    15140,    15105,    15117,    14895,
    14855,    14885,    14988,    15136,
    15139,    15314,    15578,    15944,
    15982,    16227,    16360,    16686,
    16709,    16904,    17022,    17309,
    17384,    17473,    17705,    17854,
    17939,    17949,    18080,    18263,
    18206,    18341,    18416,    18505,
    18554,    18613,    18644,    19661,

    // QP = 13 NEW
        0,        0,        0,        0,
        0,        0,     4362,     6083,
     6381,     7376,     8070,     8477,
     8501,     8497,     8654,    10759,
    11223,    12872,    13908,    14159,
    14073,    13550,    13343,    13759,
    13770,    13689,    13539,    13871,
    13947,    13909,    13919,    13694,
    13653,    13681,    13782,    13927,
    13931,    14103,    14365,    14731,
    14769,    15011,    15144,    15469,
    15492,    15686,    15803,    16089,
    16164,    16254,    16483,    16634,
    16717,    16728,    16860,    17041,
    16982,    17119,    17193,    17282,
    17332,    17391,    17421,    18442,

    // QP = 14
        0,        0,        0,        0,
        0,        0,     3448,     4986,
     5252,     6165,     6825,     7218,
     7242,     7246,     7404,     9462,
     9917,    11539,    12565,    12826,
    12742,    12232,    12031,    12452,
    12461,    12382,    12233,    12563,
    12640,    12601,    12608,    12376,
    12336,    12360,    12457,    12598,
    12601,    12771,    13030,    13394,
    13431,    13673,    13805,    14127,
    14150,    14343,    14461,    14745,
    14820,    14910,    15139,    15289,
    15374,    15384,    15515,    15699,
    15639,    15774,    15848,    15939,
    15987,    16047,    16078,    17105,

    // QP = 15 NEW
        0,        0,        0,        0,
        0,        0,     2694,     4201,
     4438,     5283,     5894,     6259,
     6284,     6296,     6451,     8442,
     8883,    10461,    11463,    11729,
    11648,    11161,    10973,    11386,
    11395,    11322,    11178,    11505,
    11581,    11542,    11548,    11314,
    11274,    11293,    11386,    11519,
    11521,    11687,    11940,    12297,
    12333,    12569,    12698,    13016,
    13037,    13227,    13343,    13622,
    13696,    13784,    14012,    14158,
    14243,    14251,    14381,    14562,
    14505,    14639,    14712,    14801,
    14852,    14909,    14940,    15967,

    // QP = 16 NEW
        0,        0,        0,        0,
        0,        0,     1798,     3038,
     3259,     4010,     4575,     4973,
     4994,     5035,     5185,     7159,
     7590,     9156,    10154,    10429,
    10350,     9874,     9691,    10106,
    10117,    10042,     9903,    10231,
    10305,    10266,    10272,    10034,
     9993,    10009,    10099,    10226,
    10228,    10391,    10643,    10994,
    11032,    11267,    11395,    11711,
    11732,    11922,    12035,    12315,
    12389,    12476,    12701,    12849,
    12935,    12942,    13073,    13253,
    13195,    13329,    13403,    13490,
    13543,    13600,    13631,    14672,

    // QP = 17 NEW
        0,        0,        0,        0,
        0,        0,     1179,     2079,
     2231,     2726,     2954,     3449,
     3505,     3620,     3838,     5806,
     6225,     7771,     8751,     9036,
     8968,     8503,     8335,     8755,
     8770,     8701,     8566,     8899,
     8970,     8941,     8944,     8707,
     8666,     8679,     8764,     8885,
     8887,     9045,     9293,     9637,
     9670,     9900,    10027,    10336,
    10357,    10544,    10655,    10929,
    11002,    11089,    11309,    11456,
    11541,    11547,    11679,    11858,
    11797,    11931,    12005,    12092,
    12145,    12201,    12232,    13285,

    // QP = 18 NEW
        0,        0,        0,        0,
        0,        0,      916,     1661,
     1767,     2096,     2049,     2022,
     2028,     2223,     2513,     4678,
     5145,     6780,     7769,     8045,
     7974,     7493,     7307,     7726,
     7747,     7679,     7536,     7890,
     7964,     7952,     7967,     7769,
     7725,     7758,     7857,     7998,
     8009,     8165,     8412,     8769,
     8795,     9028,     9151,     9460,
     9477,     9664,     9771,    10042,
    10110,    10199,    10413,    10558,
    10642,    10650,    10778,    10951,
    10893,    11025,    11095,    11183,
    11234,    11290,    11319,    12364,

    // QP = 19 NEW
        0,        0,        0,        0,
        0,        0,      542,     1148,
     1245,     1526,     1487,     1384,
     1361,     1477,     1698,     3622,
     4078,     5620,     6583,     6847,
     6773,     6303,     6124,     6529,
     6546,     6467,     6333,     6655,
     6731,     6712,     6712,     6514,
     6461,     6494,     6610,     6750,
     6765,     6927,     7178,     7536,
     7557,     7807,     7933,     8242,
     8252,     8442,     8548,     8811,
     8887,     8972,     9181,     9327,
     9410,     9414,     9543,     9715,
     9661,     9792,     9859,     9950,
     9996,    10055,    10084,    11139,

     // QP = 20 NEW
         0,        0,        0,        0,
             0,       0,     452,     957,
           729,     949,    1036,    1145,
          1146,    1291,    1514,    2966,
          3294,    4394,    5166,    5627,
          5612,    5435,    5459,    6029,
          6061,    6081,    6062,    6392,
          6459,    6467,    6465,    6331,
          6293,    6334,    6437,    6570,
          6584,    6724,    6941,    7248,
          7265,    7475,    7587,    7836,
          7859,    8017,    8103,    8324,
          8377,    8457,    8620,    8752,
          8813,    8825,    8918,    9078,
          9040,    9138,    9204,    9280,
          9310,    9358,    9389,    10165,

          // QP = 21 NEW
             0,        0,        0,        0,
                 0,       0,     376,     797,
               426,     590,     722,     947,
               965,    1129,    1350,    2429,
              2660,    3435,    4054,    4625,
              4649,    4687,    4867,    5566,
              5612,    5719,    5802,    6139,
              6197,    6231,    6226,    6153,
              6129,    6178,    6269,    6395,
              6408,    6527,    6712,    6970,
              6984,    7158,    7255,    7450,
              7484,    7613,    7680,    7863,
              7897,    7972,    8093,    8213,
              8254,    8273,    8334,    8483,
              8459,    8527,    8593,    8655,
              8670,    8709,    8741,    9277,

              // QP = 22 NEW
                 0,        0,        0,        0,
                     0,       0,     314,     664,
                   249,     366,     503,     783,
                   812,     987,    1204,    1989,
                  2149,    2685,    3182,    3801,
                  3852,    4041,    4339,    5140,
                  5196,    5378,    5553,    5896,
                  5947,    6003,    5997,    5980,
                  5969,    6026,    6105,    6224,
                  6236,    6336,    6490,    6704,
                  6713,    6854,    6939,    7084,
                  7128,    7229,    7280,    7429,
                  7444,    7515,    7598,    7707,
                  7731,    7755,    7788,    7928,
                  7915,    7958,    8022,    8072,
                  8075,    8105,    8138,    8466,

                  // QP = 23 NEW
                     0,        0,        0,        0,
                         0,       0,     261,     554,
                       146,     228,     350,     648,
                       684,     863,    1074,    1629,
                      1735,    2099,    2497,    3124,
                      3192,    3485,    3868,    4746,
                      4811,    5057,    5315,    5662,
                      5706,    5784,    5776,    5812,
                      5814,    5877,    5946,    6058,
                      6069,    6151,    6276,    6447,
                      6454,    6563,    6636,    6735,
                      6788,    6865,    6901,    7018,
                      7017,    7084,    7134,    7233,
                      7240,    7270,    7278,    7408,
                      7407,    7426,    7489,    7529,
                      7520,    7543,    7577,    7726,

                      // QP = 24 NEW
                         0,        0,        0,        0,
                             0,       0,     218,     461,
                            85,     142,     244,     536,
                           576,     755,     958,    1334,
                          1402,    1641,    1960,    2567,
                          2644,    3005,    3448,    4382,
                          4455,    4756,    5087,    5438,
                          5475,    5573,    5563,    5649,
                          5662,    5732,    5790,    5896,
                          5907,    5971,    6068,    6200,
                          6204,    6284,    6346,    6403,
                          6465,    6519,    6541,    6630,
                          6614,    6678,    6697,    6787,
                          6781,    6815,    6801,    6923,
                          6930,    6930,    6991,    7022,
                          7004,    7020,    7055,    7050,

                          // QP = 25 NEW
                              0,        0,        0,        0,
                              0,        7,       19,       48,
                             50,       88,      170,      443,
                            485,      660,      854,     1092,
                           1132,     1283,     1538,     2110,
                           2191,     2591,     3074,     4046,
                           4125,     4472,     4869,     5223,
                           5254,     5369,     5358,     5490,
                           5515,     5591,     5639,     5739,
                           5749,     5796,     5868,     5963,
                           5964,     6017,     6069,     6088,
                           6157,     6191,     6200,     6263,
                           6235,     6295,     6288,     6369,
                           6351,     6389,     6356,     6469,
                           6485,     6467,     6527,     6549,
                           6523,     6533,     6568,     6434,

                           // QP = 26 NEW
                               0,        0,        0,        0,
                               0,        2,       12,       29,
                              30,       53,      105,      283,
                             312,      427,      547,      665,
                             688,      779,      939,     1306,
                            1368,     1691,     2049,     2499,
                            2514,     2684,     3153,     3834,
                            3904,     4189,     4290,     4491,
                            4525,     4616,     4670,     4774,
                            4786,     4830,     4900,     4991,
                            4994,     5042,     5092,     5118,
                            5181,     5213,     5226,     5284,
                            5262,     5315,     5314,     5395,
                            5375,     5408,     5390,     5488,
                            5504,     5491,     5546,     5570,
                            5553,     5558,     5590,     5504,

                            // QP = 27 NEW
                                0,        0,        0,        0,
                                0,        2,        9,       20,
                               20,       35,       70,      190,
                              209,      286,      359,      385,
                              384,      393,      484,      662,
                              712,      968,     1221,     1573,
                             1587,     1801,     2134,     2454,
                             2505,     2685,     2843,     3315,
                             3389,     3633,     3793,     3968,
                             3984,     4036,     4110,     4205,
                             4205,     4255,     4304,     4332,
                             4386,     4419,     4433,     4492,
                             4477,     4522,     4530,     4603,
                             4583,     4616,     4602,     4693,
                             4707,     4702,     4745,     4770,
                             4759,     4766,     4795,     4750,

                             // QP = 28 NEW
                                 0,        0,        0,        0,
                                 0,        1,        7,       15,
                                15,       24,       49,      132,
                               145,      197,      245,      248,
                               243,      230,      276,      379,
                               412,      570,      733,     1049,
                              1069,     1175,     1285,     1532,
                              1586,     1759,     1918,     2225,
                              2276,     2507,     2752,     3096,
                              3114,     3240,     3344,     3460,
                              3463,     3518,     3571,     3606,
                              3650,     3684,     3704,     3760,
                              3746,     3788,     3800,     3872,
                              3854,     3885,     3877,     3961,
                              3973,     3972,     4010,     4031,
                              4032,     4037,     4067,     4060,

                              // QP = 29 NEW
                                  0,        0,        0,        0,
                                  0,        2,        6,       11,
                                 11,       18,       36,       94,
                                103,      139,      171,      169,
                                165,      151,      179,      245,
                                263,      363,      462,      673,
                                696,      790,      868,     1058,
                               1097,     1227,     1368,     1612,
                               1652,     1818,     2013,     2315,
                               2335,     2471,     2595,     2743,
                               2753,     2818,     2881,     2923,
                               2963,     2994,     3022,     3074,
                               3067,     3105,     3120,     3186,
                               3167,     3199,     3201,     3272,
                               3283,     3287,     3321,     3340,
                               3348,     3350,     3377,     3410,

                               // QP = 30 NEW
                                   0,        0,        0,        0,
                                   0,        0,        5,        9,
                                   9,       14,       28,       71,
                                  77,      104,      126,      123,
                                 120,      108,      128,      176,
                                 188,      257,      322,      473,
                                 496,      555,      585,      737,
                                 775,      902,     1049,     1262,
                                1293,     1425,     1590,     1842,
                                1865,     1994,     2118,     2279,
                                2297,     2371,     2451,     2514,
                                2548,     2589,     2620,     2679,
                                2677,     2714,     2729,     2789,
                                2777,     2809,     2809,     2881,
                                2887,     2891,     2920,     2936,
                                2958,     2954,     2978,     3037,

                                // QP = 31 NEW
                                    0,        0,        0,        0,
                                    0,        1,        4,        8,
                                    7,       11,       21,       52,
                                   57,       75,       91,       87,
                                   85,       76,       90,      122,
                                  129,      175,      219,      328,
                                  346,      395,      404,      511,
                                  537,      628,      759,      937,
                                  968,     1073,     1197,     1400,
                                 1418,     1520,     1622,     1771,
                                 1783,     1855,     1933,     2004,
                                 2030,     2070,     2114,     2175,
                                 2177,     2210,     2232,     2289,
                                 2277,     2305,     2313,     2378,
                                 2384,     2390,     2414,     2428,
                                 2454,     2450,     2475,     2562,

                                 // QP = 32 NEW
                                     0,        0,        0,        0,
                                     0,        0,        3,        6,
                                     6,        9,       16,       39,
                                    42,       55,       66,       63,
                                    61,       55,       65,       87,
                                    92,      123,      154,      234,
                                   247,      285,      289,      367,
                                   386,      456,      563,      704,
                                   728,      808,      906,     1061,
                                  1083,     1160,     1245,     1369,
                                  1376,     1443,     1516,     1590,
                                  1611,     1650,     1694,     1756,
                                  1763,     1793,     1815,     1870,
                                  1861,     1887,     1899,     1955,
                                  1959,     1968,     1986,     2004,
                                  2031,     2027,     2048,     2152,

                                  // QP = 33 NEW
                                      0,        0,        0,        0,
                                      0,        1,        3,        5,
                                      5,        7,       13,       30,
                                     32,       42,       50,       47,
                                     45,       41,       48,       65,
                                     68,       90,      113,      172,
                                    183,      211,      212,      271,
                                    285,      338,      426,      533,
                                    557,      619,      696,      818,
                                    835,      898,      966,     1067,
                                   1077,     1131,     1195,     1273,
                                   1286,     1329,     1381,     1443,
                                   1454,     1486,     1507,     1561,
                                   1553,     1580,     1592,     1641,
                                   1646,     1656,     1671,     1688,
                                   1713,     1712,     1733,     1841,

                                   // QP = 34 NEW
                                       0,        0,        0,        0,
                                       0,        0,        2,        4,
                                       4,        6,       10,       23,
                                      25,       32,       38,       35,
                                      34,       31,       36,       49,
                                      52,       68,       85,      130,
                                     139,      161,      161,      205,
                                     216,      258,      330,      414,
                                     435,      482,      546,      642,
                                     654,      705,      757,      840,
                                     847,      894,      949,     1017,
                                    1028,     1074,     1118,     1195,
                                    1199,     1239,     1262,     1318,
                                    1315,     1339,     1352,     1398,
                                    1402,     1410,     1425,     1440,
                                    1467,     1466,     1483,     1591,

                                    // QP = 35 NEW
                                        0,        0,        0,        0,
                                        0,        0,        2,        3,
                                        3,        5,        8,       19,
                                       20,       25,       30,       27,
                                       26,       23,       28,       38,
                                       41,       53,       66,      101,
                                      107,      125,      124,      160,
                                      169,      203,      262,      331,
                                      348,      387,      441,      523,
                                      529,      569,      616,      685,
                                      692,      729,      774,      838,
                                      841,      877,      925,      995,
                                     1004,     1051,     1076,     1132,
                                     1137,     1164,     1180,     1223,
                                     1228,     1237,     1249,     1266,
                                     1293,     1288,     1309,     1419,

                                     // QP = 36 NEW
                                         0,        0,        0,        0,
                                         0,        1,        1,        3,
                                         3,        4,        7,       15,
                                        16,       20,       23,       21,
                                        20,       18,       22,       30,
                                        32,       41,       51,       77,
                                        82,       96,       95,      124,
                                       130,      158,      204,      261,
                                       275,      307,      353,      422,
                                       428,      465,      503,      562,
                                       568,      601,      641,      700,
                                       700,      733,      772,      835,
                                       842,      887,      911,      961,
                                       972,      994,     1015,     1056,
                                      1060,     1072,     1083,     1099,
                                      1124,     1125,     1142,     1246,

                                      // QP = 37 NEW
                                          0,        0,        0,        0,
                                          0,        1,        1,        2,
                                          2,        3,        6,       12,
                                         13,       16,       19,       17,
                                         16,       15,       17,       24,
                                         26,       33,       41,       62,
                                         66,       77,       76,       98,
                                        104,      127,      165,      211,
                                        223,      250,      290,      349,
                                        356,      388,      422,      474,
                                        483,      511,      547,      604,
                                        602,      632,      668,      725,
                                        735,      772,      796,      840,
                                        853,      874,      894,      929,
                                        937,      951,      960,      977,
                                        999,     1001,     1018,     1120,

                                        // QP = 38 NEW
                                            0,        0,        0,        0,
                                            0,        0,        1,        2,
                                            2,        3,        5,       10,
                                           11,       13,       15,       14,
                                           13,       12,       14,       19,
                                           20,       26,       33,       48,
                                           51,       59,       58,       76,
                                           80,       98,      127,      163,
                                          174,      195,      229,      277,
                                          283,      310,      339,      383,
                                          392,      417,      448,      499,
                                          497,      524,      556,      605,
                                          615,      646,      669,      706,
                                          718,      736,      757,      787,
                                          795,      808,      816,      833,
                                          852,      853,      871,      965,

                                          // QP = 39 NEW
                                              0,        0,        0,        0,
                                              0,        1,        1,        2,
                                              2,        2,        4,        8,
                                              9,       11,       12,       11,
                                             11,        9,       11,       16,
                                             17,       21,       26,       39,
                                             41,       47,       46,       60,
                                             63,       77,      101,      130,
                                            137,      154,      183,      225,
                                            230,      252,      278,      317,
                                            326,      351,      376,      427,
                                            424,      447,      479,      524,
                                            534,      562,      583,      618,
                                            630,      647,      668,      698,
                                            703,      718,      727,      745,
                                            761,      763,      779,      873,

                                            // QP = 40 NEW
                                                0,        0,        0,        0,
                                                0,        0,        1,        1,
                                                1,        2,        3,        7,
                                                7,        9,       10,        9,
                                                8,        8,        9,       13,
                                               14,       17,       21,       30,
                                               32,       37,       36,       46,
                                               48,       59,       77,       99,
                                              105,      119,      141,      175,
                                              178,      200,      220,      251,
                                              261,      280,      301,      348,
                                              344,      365,      395,      432,
                                              440,      464,      488,      517,
                                              528,      544,      563,      592,
                                              597,      610,      620,      637,
                                              652,      655,      671,      759,

                                              // QP = 41 NEW
                                                  0,        0,        0,        0,
                                                  0,        0,        1,        1,
                                                  1,        2,        3,        6,
                                                  6,        7,        8,        7,
                                                  7,        6,        7,       10,
                                                 11,       14,       17,       25,
                                                 26,       30,       29,       36,
                                                 38,       46,       61,       77,
                                                 82,       92,      111,      137,
                                                141,      157,      174,      201,
                                                209,      227,      243,      286,
                                                280,      299,      326,      359,
                                                368,      390,      408,      437,
                                                446,      461,      481,      511,
                                                515,      529,      539,      556,
                                                571,      577,      591,      679,

                                                // QP = 42 NEW
                                                    0,        0,        0,        0,
                                                    0,        0,        1,        1,
                                                    1,        1,        2,        5,
                                                    5,        6,        7,        6,
                                                    6,        5,        6,        8,
                                                    9,       11,       14,       20,
                                                   20,       23,       22,       28,
                                                   29,       35,       47,       58,
                                                   63,       70,       85,      105,
                                                  108,      122,      133,      156,
                                                  162,      177,      188,      225,
                                                  220,      235,      259,      286,
                                                  296,      314,      328,      353,
                                                  363,      375,      395,      421,
                                                  426,      440,      448,      469,
                                                  478,      490,      500,      588,

                                                  // QP = 43 NEW
                                                      0,        0,        0,        0,
                                                      0,        0,        1,        1,
                                                      1,        1,        2,        4,
                                                      4,        5,        6,        5,
                                                      5,        4,        5,        7,
                                                      7,        9,       11,       16,
                                                     17,       19,       18,       23,
                                                     24,       28,       38,       46,
                                                     49,       55,       67,       83,
                                                     85,       97,      105,      123,
                                                    128,      141,      149,      180,
                                                    176,      188,      209,      230,
                                                    239,      256,      268,      290,
                                                    297,      311,      328,      349,
                                                    356,      367,      377,      396,
                                                    404,      418,      430,      521,

                                                    // QP = 44 NEW
                                                        0,        0,        0,        0,
                                                        0,        0,        1,        1,
                                                        1,        1,        2,        3,
                                                        3,        4,        5,        4,
                                                        4,        3,        4,        6,
                                                        6,        8,        9,       13,
                                                       13,       15,       14,       18,
                                                       19,       22,       29,       36,
                                                       38,       43,       51,       64,
                                                       66,       75,       82,       96,
                                                      100,      110,      115,      140,
                                                      137,      146,      163,      180,
                                                      189,      200,      211,      228,
                                                      234,      247,      261,      279,
                                                      282,      295,      301,      320,
                                                      328,      341,      349,      437,

                                                      // QP = 45 NEW
                                                          0,        0,        0,        0,
                                                          0,        0,        1,        1,
                                                          1,        1,        1,        3,
                                                          3,        3,        4,        3,
                                                          3,        3,        3,        5,
                                                          5,        6,        7,       10,
                                                         10,       12,       11,       14,
                                                         14,       17,       23,       28,
                                                         29,       33,       40,       49,
                                                         51,       59,       63,       74,
                                                         78,       85,       89,      110,
                                                        106,      114,      128,      141,
                                                        147,      157,      166,      180,
                                                        186,      196,      208,      223,
                                                        226,      238,      242,      260,
                                                        266,      278,      288,      371,

                                                        // QP = 46 NEW
                                                            0,        0,        0,        0,
                                                            0,        0,        0,        1,
                                                            1,        1,        1,        2,
                                                            2,        3,        3,        3,
                                                            3,        2,        3,        4,
                                                            4,        5,        6,        8,
                                                            8,       10,        9,       11,
                                                           12,       14,       18,       22,
                                                           23,       26,       31,       39,
                                                           41,       46,       50,       57,
                                                           61,       67,       70,       86,
                                                           84,       91,      102,      111,
                                                          117,      125,      131,      143,
                                                          149,      157,      167,      179,
                                                          180,      191,      197,      212,
                                                          215,      226,      235,      312,

                                                          // QP = 47 NEW
                                                              0,        0,        0,        0,
                                                              0,        0,        0,        1,
                                                              0,        1,        1,        2,
                                                              2,        2,        3,        2,
                                                              2,        2,        2,        3,
                                                              3,        4,        5,        7,
                                                              7,        8,        7,        9,
                                                              9,       11,       15,       18,
                                                             18,       20,       25,       31,
                                                             32,       36,       39,       46,
                                                             48,       52,       55,       68,
                                                             66,       71,       80,       88,
                                                             92,       97,      103,      113,
                                                            117,      123,      133,      143,
                                                            145,      154,      158,      170,
                                                            174,      184,      189,      260,

                                                            // QP = 48 NEW
                                                                0,        0,        0,        0,
                                                                0,        0,        0,        0,
                                                                0,        1,        1,        2,
                                                                2,        2,        2,        2,
                                                                2,        2,        2,        3,
                                                                3,        3,        4,        5,
                                                                5,        6,        6,        7,
                                                                8,        9,       12,       14,
                                                               15,       16,       20,       24,
                                                               25,       29,       31,       36,
                                                               38,       41,       44,       54,
                                                               52,       56,       64,       70,
                                                               73,       77,       82,       91,
                                                               94,      100,      106,      115,
                                                              116,      124,      129,      138,
                                                              141,      150,      155,      218,

                                                              // QP = 49 NEW
                                                                  0,        0,        0,        0,
                                                                  0,        0,        0,        0,
                                                                  0,        0,        1,        1,
                                                                  1,        2,        2,        2,
                                                                  1,        1,        2,        2,
                                                                  2,        3,        3,        4,
                                                                  4,        5,        5,        6,
                                                                  6,        7,        9,       11,
                                                                 12,       13,       16,       19,
                                                                 20,       23,       25,       29,
                                                                 30,       33,       35,       43,
                                                                 41,       45,       50,       55,
                                                                 59,       61,       65,       73,
                                                                 76,       80,       86,       92,
                                                                 93,       99,      104,      112,
                                                                114,      121,      127,      181,

                                                                // QP = 50
                                                                    0,        0,        0,        0,
                                                                    0,        0,        0,        0,
                                                                    0,        0,        1,        1,
                                                                    1,        1,        2,        1,
                                                                    1,        1,        1,        2,
                                                                    2,        2,        3,        4,
                                                                    4,        4,        4,        5,
                                                                    5,        6,        8,        9,
                                                                   10,       11,       13,       16,
                                                                   16,       18,       20,       23,
                                                                   24,       26,       28,       35,
                                                                   32,       35,       40,       44,
                                                                   46,       48,       52,       57,
                                                                   60,       64,       67,       73,
                                                                   74,       79,       83,       90,
                                                                   91,       97,      102,      148,

                                                                   // QP = 51
                                                                       0,        0,        0,        0,
                                                                       0,        0,        0,        0,
                                                                       0,        0,        0,        1,
                                                                       1,        1,        1,        1,
                                                                       1,        1,        1,        2,
                                                                       2,        2,        2,        3,
                                                                       3,        4,        3,        4,
                                                                       4,        5,        6,        7,
                                                                       8,        9,       11,       13,
                                                                      14,       15,       16,       19,
                                                                      20,       21,       22,       28,
                                                                      26,       29,       32,       35,
                                                                      38,       39,       42,       46,
                                                                      49,       52,       54,       60,
                                                                      61,       64,       67,       73,
                                                                      73,       77,       83,      122,
};



static const EbBitNumber initialRateControlIntraSad64x64Tables[] = {
    // QP = 0 NEW
        0,        0,        0,        0,
        0,        0,        0,    22636,
    22804,    23718,    23852,    24210,
    23882,    24027,    24723,    25937,
    24896,    27051,    30603,    31453,
    30784,    29404,    30546,    31836,
    32090,    31576,    31532,    32354,
    31761,    32869,    32349,    31100,
    32368,    32773,    31148,    31299,
    32400,    31203,    32530,    33114,
    31942,    32664,    33074,    32774,
    32967,    33796,    34026,    33873,
    34018,    33566,    33505,    33776,
    34656,    33412,    33047,    34654,
    34543,    33790,    34751,    34184,
    34744,    34563,    34510,    35474,
    // QP = 1 NEW
        0,        0,        0,        0,
        0,        0,        0,    21659,
    21816,    22686,    22860,    23146,
    22961,    22904,    23810,    24897,
    23850,    26033,    29440,    30276,
    29599,    28297,    29378,    30650,
    30930,    30445,    30407,    31191,
    30586,    31676,    31198,    30016,
    31223,    31615,    30048,    30194,
    31185,    30078,    31338,    31915,
    30882,    31510,    31926,    31660,
    31791,    32623,    32868,    32707,
    32824,    32408,    32327,    32611,
    33459,    32300,    31943,    33432,
    33331,    32635,    33511,    33026,
    33511,    33404,    33292,    34267,
    // QP = 2
        0,        0,        0,        0,
        0,        0,        0,    20399,
    20567,    21406,    21530,    21929,
    21604,    21684,    22474,    23556,
    22611,    24706,    28076,    28899,
    28275,    26929,    28047,    29297,
    29548,    29095,    29020,    29833,
    29249,    30324,    29833,    28626,
    29780,    30181,    28604,    28818,
    29824,    28750,    29998,    30512,
    29412,    30121,    30537,    30248,
    30429,    31252,    31414,    31288,
    31421,    30982,    30933,    31208,
    32051,    30854,    30518,    31943,
    31952,    31237,    32142,    31609,
    32102,    31959,    31906,    32837,
    // QP = 3
        0,        0,        0,        0,
        0,        0,        0,    19278,
    19449,    20318,    20495,    20815,
    20537,    20503,    21392,    22463,
    21541,    23616,    26914,    27740,
    27129,    25796,    26901,    28122,
    28442,    27938,    27874,    28713,
    28091,    29162,    28709,    27509,
    28679,    29114,    27560,    27700,
    28685,    27664,    28835,    29447,
    28371,    28998,    29423,    29193,
    29293,    30094,    30347,    30154,
    30299,    29876,    29795,    30090,
    30902,    29774,    29426,    30865,
    30778,    30106,    30959,    30464,
    30976,    30850,    30753,    31702,
    // QP = 4
        0,        0,        0,        0,
        0,        0,        0,    18171,
    18354,    19219,    19332,    19723,
    19474,    19490,    20348,    21392,
    20368,    22505,    25809,    26611,
    25991,    24661,    25761,    26942,
    27288,    26798,    26731,    27550,
    26911,    28042,    27558,    26384,
    27526,    27936,    26419,    26553,
    27574,    26480,    27685,    28267,
    27204,    27832,    28294,    28032,
    28155,    28976,    29137,    28959,
    29115,    28814,    28717,    28962,
    29719,    28627,    28291,    29654,
    29652,    28941,    29761,    29304,
    29797,    29674,    29572,    30538,
    // QP = 5
        0,        0,        0,        0,
        0,        0,        0,    17304,
    17457,    18373,    18467,    18776,
    18583,    18576,    19376,    20392,
    19573,    21570,    24793,    25581,
    24983,    23657,    24776,    25934,
    26202,    25721,    25718,    26507,
    25892,    26948,    26449,    25395,
    26469,    26895,    25391,    25548,
    26495,    25496,    26647,    27165,
    26147,    26758,    27200,    26942,
    27075,    27839,    28026,    27878,
    28012,    27638,    27560,    27891,
    28602,    27515,    27171,    28499,
    28483,    27837,    28660,    28174,
    28676,    28553,    28469,    29365,
    // QP = 6
        0,        0,        0,        0,
        0,        0,        0,    15929,
    16089,    16985,    17125,    17491,
    17251,    17283,    18054,    19104,
    18314,    20221,    23516,    24335,
    23720,    22396,    23479,    24639,
    24980,    24523,    24413,    25215,
    24647,    25710,    25220,    24072,
    25195,    25631,    24133,    24282,
    25225,    24149,    25378,    25927,
    24881,    25491,    25929,    25656,
    25833,    26621,    26803,    26604,
    26773,    26352,    26292,    26584,
    27341,    26252,    25940,    27300,
    27286,    26603,    27454,    26947,
    27432,    27279,    27167,    28112,
    // QP = 7
        0,        0,        0,        0,
        0,        0,        0,    14880,
    15069,    15956,    16137,    16474,
    16195,    16274,    17013,    18093,
    17175,    19187,    22485,    23231,
    22634,    21368,    22434,    23566,
    23858,    23427,    23355,    24114,
    23568,    24595,    24112,    23011,
    24110,    24575,    23075,    23184,
    24166,    23173,    24319,    24888,
    23815,    24442,    24833,    24637,
    24776,    25525,    25705,    25503,
    25659,    25296,    25215,    25490,
    26246,    25199,    24904,    26188,
    26180,    25489,    26316,    25833,
    26304,    26186,    26103,    27009,
    // QP = 8
        0,        0,        0,        0,
        0,        0,        0,    13746,
    13894,    14720,    14893,    15257,
    14973,    15025,    15803,    16851,
    15988,    17920,    21188,    21995,
    21377,    20093,    21107,    22309,
    22570,    22144,    22077,    22829,
    22295,    23282,    22820,    21751,
    22828,    23247,    21787,    21932,
    22876,    21875,    23024,    23546,
    22486,    23156,    23575,    23275,
    23442,    24200,    24380,    24242,
    24385,    23965,    23914,    24167,
    24947,    23860,    23570,    24889,
    24872,    24182,    25009,    24486,
    25011,    24872,    24812,    25682,
    // QP = 9 NEW
        0,        0,        0,        0,
        0,        0,        0,    12644,
    12844,    13728,    13872,    14304,
    14018,    13956,    14863,    15842,
    14974,    16981,    20166,    20918,
    20330,    19073,    20106,    21294,
    21529,    21121,    21044,    21784,
    21235,    22283,    21797,    20747,
    21782,    22261,    20823,    20944,
    21863,    20876,    22020,    22541,
    21425,    22116,    22537,    22261,
    22440,    23180,    23345,    23186,
    23330,    22950,    22880,    23167,
    23891,    22853,    22545,    23817,
    23831,    23158,    23965,    23527,
    23957,    23852,    23782,    24640,
    // QP = 10 NEW

        0,        0,        0,        0,
        0,        0,        0,    11514,
    11684,    12528,    12643,    13059,
    12783,    12779,    13652,    14690,
    13845,    15753,    18925,    19726,
    19150,    17862,    18913,    20057,
    20354,    19916,    19866,    20598,
    20056,    21068,    20616,    19489,
    20567,    21018,    19535,    19650,
    20618,    19626,    20761,    21328,
    20235,    20913,    21289,    21021,
    21183,    21922,    22118,    21999,
    22111,    21710,    21680,    21946,
    22663,    21580,    21278,    22568,
    22616,    21924,    22754,    22227,
    22784,    22604,    22541,    23392,
    // QP = 11 NEW
        0,        0,        0,        0,
        0,        0,        0,    10630,
    10786,    11619,    11781,    12167,
    11834,    11885,    12764,    13787,
    12899,    14895,    18047,    18837,
    18207,    16962,    17993,    19141,
    19397,    18970,    18891,    19631,
    19055,    20083,    19662,    18612,
    19654,    20150,    18668,    18764,
    19780,    18745,    19902,    20417,
    19290,    20002,    20427,    20163,
    20268,    21030,    21198,    21045,
    21230,    20798,    20725,    21031,
    21732,    20708,    20418,    21640,
    21691,    20988,    21828,    21315,
    21796,    21639,    21631,    22465,

    // QP = 12 NEW
        0,        0,        0,        0,
        0,        0,        0,     9344,
     9545,    10341,    10496,    10916,
    10660,    10698,    11527,    12506,
    11605,    13628,    16847,    17618,
    17024,    15743,    16781,    17898,
    18200,    17803,    17668,    18421,
    17851,    18901,    18406,    17358,
    18429,    18925,    17404,    17517,
    18516,    17530,    18701,    19254,
    18116,    18813,    19232,    18926,
    19081,    19815,    19993,    19899,
    20042,    19552,    19555,    19803,
    20554,    19543,    19182,    20473,
    20487,    19760,    20636,    20171,
    20629,    20462,    20377,    21271,

    // QP = 13 NEW
        0,        0,        0,        0,
        0,        0,        0,     8432,
     8573,     9428,     9562,     9983,
     9642,     9722,    10557,    11542,
    10651,    12611,    15744,    16537,
    15938,    14720,    15759,    16886,
    17132,    16736,    16634,    17395,
    16836,    17854,    17393,    16305,
    17394,    17815,    16345,    16498,
    17465,    16440,    17592,    18156,
    17035,    17698,    18106,    17828,
    17962,    18724,    18871,    18749,
    18871,    18503,    18497,    18697,
    19406,    18392,    18068,    19397,
    19393,    18734,    19512,    19065,
    19520,    19379,    19308,    20139,

    // QP = 14 NEW
        0,        0,        0,        0,
        0,        0,        0,     7285,
     7445,     8289,     8492,     8746,
     8455,     8574,     9369,    10346,
     9473,    11443,    14522,    15289,
    14716,    13523,    14566,    15683,
    15915,    15513,    15453,    16193,
    15665,    16634,    16164,    15107,
    16197,    16592,    15159,    15353,
    16256,    15203,    16417,    16928,
    15827,    16477,    16857,    16635,
    16703,    17512,    17632,    17548,
    17681,    17234,    17208,    17467,
    18197,    17164,    16858,    18147,
    18142,    17480,    18283,    17773,
    18286,    18110,    18084,    18902,

    // QP = 15 NEW
        0,        0,        0,        0,
        0,        0,        0,     6214,
     6406,     7229,     7436,     7675,
     7449,     7582,     8347,     9325,
     8482,    10387,    13458,    14232,
    13671,    12453,    13483,    14620,
    14823,    14430,    14398,    15153,
    14606,    15605,    15137,    14080,
    15145,    15569,    14115,    14300,
    15182,    14186,    15350,    15858,
    14756,    15452,    15763,    15516,
    15667,    16472,    16569,    16462,
    16563,    16178,    16134,    16424,
    17139,    16112,    15795,    17090,
    17063,    16422,    17253,    16707,
    17208,    17077,    17011,    17839,

    // QP = 16 NEW
        0,        0,        0,        0,
        0,        0,        0,     5089,
     5295,     6085,     6250,     6500,
     6352,     6344,     7187,     8204,
     7275,     9209,    12282,    13060,
    12449,    11293,    12320,    13458,
    13687,    13243,    13218,    13965,
    13458,    14422,    13950,    12890,
    13937,    14400,    12961,    13098,
    14038,    13030,    14174,    14678,
    13614,    14266,    14592,    14359,
    14528,    15266,    15432,    15313,
    15391,    15032,    14973,    15198,
    15971,    14933,    14689,    15883,
    15940,    15238,    16039,    15559,
    16021,    15913,    15859,    16669,

    // QP = 17 NEW
        0,        0,        0,        0,
        0,        0,        0,     4258,
     4410,     5177,     5338,     5619,
     5381,     5501,     6175,     7168,
     6335,     8238,    11256,    12062,
    11451,    10296,    11287,    12446,
    12658,    12254,    12223,    12948,
    12435,    13416,    12951,    11897,
    12955,    13370,    11964,    12147,
    13009,    12010,    13184,    13684,
    12626,    13289,    13645,    13353,
    13519,    14268,    14393,    14302,
    14362,    14079,    13991,    14218,
    14980,    13929,    13593,    14932,
    14914,    14211,    15021,    14514,
    15051,    14897,    14839,    15651,

    // QP = 18 NEW
        0,        0,        0,        0,
        0,        0,        0,     3353,
     3493,     4214,     4330,     4599,
     4420,     4486,     5191,     6224,
     5417,     7217,    10145,    10892,
    10338,     9231,    10181,    11268,
    11489,    11157,    11127,    11804,
    11248,    12314,    11820,    10808,
    11808,    12212,    10874,    11011,
    11873,    10888,    12050,    12523,
    11467,    12150,    12457,    12199,
    12363,    13104,    13245,    13158,
    13203,    12877,    12795,    13042,
    13775,    12697,    12444,    13776,
    13699,    13087,    13831,    13356,
    13842,    13685,    13659,    14495,

    // QP = 19 NEW
        0,        0,        0,        0,
        0,        0,        0,     2656,
     2789,     3394,     3522,     3849,
     3653,     3726,     4374,     5366,
     4579,     6257,     9138,     9873,
     9361,     8274,     9211,    10283,
    10512,    10161,    10125,    10819,
    10289,    11250,    10834,     9824,
    10812,    11198,     9848,    10057,
    10892,     9901,    11027,    11498,
    10424,    11180,    11421,    11178,
    11365,    12108,    12208,    12108,
    12181,    11846,    11802,    12052,
    12715,    11708,    11417,    12699,
    12698,    12094,    12816,    12368,
    12822,    12686,    12596,    13468,

    // QP = 20 NEW
        0,        0,        0,        0,
        0,        0,        0,     1940,
     2058,     2584,     2713,     3020,
     2842,     2981,     3498,     4392,
     3672,     5306,     8051,     8729,
     8210,     7210,     8107,     9179,
     9353,     8998,     9009,     9650,
     9133,    10105,     9694,     8749,
     9676,    10028,     8700,     8920,
     9732,     8790,     9903,    10317,
     9341,    10004,    10282,    10031,
    10174,    10903,    11012,    10965,
    10979,    10659,    10612,    10886,
    11532,    10521,    10271,    11524,
    11478,    10898,    11633,    11217,
    11601,    11546,    11426,    12284,

    // QP = 21 NEW
        0,        0,        0,        0,
        0,        0,        0,     1406,
     1508,     1943,     2045,     2362,
     2225,     2298,     2817,     3561,
     3002,     4491,     7094,     7752,
     7280,     6353,     7152,     8168,
     8358,     8050,     8010,     8731,
     8205,     9085,     8725,     7739,
     8685,     9004,     7794,     7939,
     8685,     7772,     8871,     9286,
     8443,     8992,     9232,     8986,
     9154,     9850,    10029,     9921,
     9928,     9675,     9598,     9874,
    10484,     9483,     9189,    10483,
    10406,     9902,    10581,    10189,
    10561,    10487,    10412,    11239,

    // QP = 22 NEW
        0,        0,        0,        0,
        0,        0,        0,      935,
     1011,     1343,     1472,     1733,
     1660,     1720,     2176,     2820,
     2348,     3666,     6111,     6765,
     6356,     5438,     6227,     7191,
     7333,     7061,     7035,     7716,
     7196,     8040,     7699,     6744,
     7653,     7934,     6760,     6927,
     7612,     6791,     7780,     8204,
     7379,     7950,     8184,     7917,
     8047,     8729,     8926,     8795,
     8828,     8569,     8493,     8741,
     9399,     8372,     8132,     9400,
     9335,     8789,     9462,     9097,
     9512,     9361,     9293,    10111,

     // QP = 23 NEW
         0,        0,        0,        0,
         0,        0,        0,      661,
       727,      969,     1068,     1324,
      1298,     1316,     1715,     2268,
      1927,     3027,     5217,     5826,
      5467,     4689,     5374,     6329,
      6449,     6197,     6175,     6850,
      6358,     7124,     6848,     5923,
      6775,     7011,     5927,     6044,
      6714,     5934,     6824,     7264,
      6566,     7040,     7216,     7010,
      7126,     7759,     8012,     7799,
      7878,     7670,     7532,     7778,
      8405,     7457,     7194,     8406,
      8305,     7845,     8424,     8076,
      8507,     8377,     8315,     9114,

      // QP = 24 NEW
          0,        0,        0,        0,
          0,        0,        0,      433,
        473,      640,      714,      997,
        974,      998,     1361,     1769,
       1582,     2469,     4379,     4973,
       4661,     4025,     4625,     5495,
       5638,     5381,     5373,     6007,
       5563,     6248,     6010,     5139,
       5912,     6132,     5076,     5265,
       5826,     5145,     5960,     6369,
       5749,     6104,     6263,     6131,
       6204,     6805,     7046,     6860,
       6895,     6746,     6630,     6825,
       7417,     6535,     6309,     7431,
       7362,     6959,     7490,     7128,
       7533,     7408,     7376,     8135,

       // QP = 25 NEW
           0,        0,        0,        0,
           0,        0,        0,      281,
         305,      428,      485,      759,
         712,      822,     1059,     1402,
        1277,     1989,     3535,     4091,
        3856,     3359,     3895,     4741,
        4823,     4637,     4664,     5243,
        4832,     5420,     5230,     4440,
        5157,     5255,     4338,     4474,
        5008,     4400,     5091,     5500,
        4920,     5251,     5424,     5279,
        5343,     5856,     6172,     5972,
        5938,     5857,     5724,     5987,
        6459,     5649,     5452,     6503,
        6372,     6088,     6481,     6208,
        6612,     6534,     6456,     7192,

        // QP = 26 NEW
            0,        0,        0,        0,
            0,        0,        0,      168,
          182,      253,      312,      561,
          527,      587,      820,     1060,
         1007,     1533,     2640,     3168,
         2976,     2677,     3140,     3886,
         3925,     3845,     3906,     4416,
         4100,     4581,     4474,     3714,
         4320,     4428,     3600,     3747,
         4104,     3643,     4239,     4590,
         4103,     4338,     4537,     4414,
         4477,     4908,     5168,     4950,
         4978,     4908,     4813,     5028,
         5468,     4758,     4631,     5521,
         5401,     5183,     5452,     5219,
         5575,     5535,     5480,     6192,

         // QP = 27 NEW
             0,        0,        0,        0,
             0,        0,        0,      121,
           126,      162,      208,      427,
           399,      484,      653,      857,
           833,     1176,     1954,     2409,
          2279,     2121,     2491,     3184,
          3186,     3190,     3264,     3753,
          3454,     3896,     3796,     3155,
          3670,     3713,     3026,     3121,
          3433,     3044,     3567,     3811,
          3430,     3652,     3769,     3682,
          3733,     4154,     4365,     4131,
          4206,     4147,     4064,     4280,
          4619,     3989,     3880,     4674,
          4623,     4438,     4639,     4398,
          4764,     4760,     4683,     5368,

          // QP = 28 NEW
              0,        0,        0,        0,
              0,        0,        0,       88,
             87,      110,      147,      316,
            323,      365,      518,      645,
            697,      890,     1300,     1660,
           1589,     1580,     1857,     2407,
           2430,     2486,     2580,     3032,
           2800,     3167,     3123,     2566,
           2982,     3011,     2438,     2555,
           2710,     2473,     2877,     3069,
           2758,     2947,     3036,     3008,
           3012,     3348,     3507,     3381,
           3433,     3353,     3291,     3511,
           3734,     3254,     3196,     3810,
           3805,     3686,     3766,     3622,
           3874,     3949,     3861,     4527,

           // QP = 29 NEW
               0,        0,        0,        0,
               0,        0,        0,       70,
              70,       82,      105,      257,
             262,      314,      427,      515,
             577,      686,      849,     1113,
            1086,     1166,     1360,     1798,
            1803,     1922,     2021,     2412,
            2214,     2553,     2572,     2127,
            2416,     2399,     1972,     2044,
            2154,     2022,     2334,     2447,
            2152,     2391,     2448,     2424,
            2450,     2706,     2882,     2713,
            2737,     2732,     2682,     2810,
            3021,     2630,     2690,     3092,
            3118,     3042,     3067,     2908,
            3158,     3250,     3187,     3812,

            // QP = 30 NEW
                0,        0,        0,        0,
                0,        0,        0,       58,
               62,       65,       88,      217,
              223,      283,      355,      420,
              482,      553,      557,      776,
              767,      895,     1043,     1381,
             1376,     1483,     1600,     1979,
             1767,     2107,     2175,     1787,
             2037,     1943,     1627,     1710,
             1752,     1711,     1926,     2039,
             1819,     1987,     2059,     2071,
             2027,     2256,     2376,     2231,
             2257,     2290,     2300,     2343,
             2522,     2199,     2278,     2595,
             2641,     2613,     2566,     2501,
             2601,     2743,     2741,     3315,

             // QP = 31 NEW
                 0,        0,        0,        0,
                 0,        0,        0,       52,
                52,       57,       75,      176,
               189,      239,      295,      353,
               412,      438,      336,      475,
               488,      636,      742,      957,
               954,     1084,     1195,     1457,
              1355,     1587,     1640,     1445,
              1565,     1522,     1295,     1377,
              1349,     1412,     1541,     1597,
              1403,     1586,     1618,     1644,
              1636,     1759,     1887,     1745,
              1758,     1840,     1821,     1836,
              1945,     1757,     1857,     2028,
              2138,     2102,     2059,     2018,
              2065,     2198,     2204,     2733,

              // QP = 32 NEW
                  0,        0,        0,        0,
                  0,        0,        0,       46,
                 44,       50,       69,      154,
                155,      198,      242,      290,
                335,      334,      189,      266,
                295,      428,      486,      608,
                612,      720,      823,     1013,
                936,     1104,     1173,     1119,
               1159,     1084,     1024,     1064,
               1014,     1101,     1176,     1197,
               1096,     1249,     1233,     1279,
               1268,     1360,     1426,     1326,
               1318,     1453,     1438,     1407,
               1490,     1344,     1505,     1539,
               1686,     1665,     1569,     1580,
               1625,     1698,     1766,     2206,

               // QP = 33 NEW
                   0,        0,        0,        0,
                   0,        0,        0,       43,
                  40,       45,       60,      135,
                 148,      175,      194,      228,
                 290,      273,      121,      159,
                 192,      308,      339,      408,
                 399,      489,      575,      694,
                 651,      753,      846,      873,
                 866,      799,      810,      870,
                 796,      898,      934,      950,
                 872,      983,     1000,     1009,
                1001,     1048,     1082,     1023,
                1032,     1144,     1171,     1111,
                1145,     1066,     1242,     1204,
                1335,     1360,     1294,     1299,
                1281,     1328,     1440,     1815,

                // QP = 34 NEW
                    0,        0,        0,        0,
                    0,        0,        0,       37,
                   35,       39,       55,      111,
                  136,      140,      169,      190,
                  249,      225,       86,      102,
                  138,      239,      250,      262,
                  270,      327,      405,      457,
                  458,      512,      590,      678,
                  636,      577,      651,      694,
                  623,      738,      744,      741,
                  699,      818,      803,      821,
                  815,      833,      846,      825,
                  812,      953,      932,      881,
                  885,      856,     1040,      954,
                 1069,     1077,     1039,     1062,
                 1041,     1069,     1200,     1503,

                 // QP = 35 NEW
                     0,        0,        0,        0,
                     0,        0,        0,       33,
                    32,       35,       47,      109,
                   114,      127,      147,      158,
                   201,      195,       75,       87,
                   112,      197,      209,      202,
                   210,      253,      314,      346,
                   355,      400,      456,      567,
                   511,      466,      559,      612,
                   524,      659,      638,      640,
                   603,      711,      668,      734,
                   695,      691,      701,      696,
                   693,      817,      820,      736,
                   750,      763,      919,      820,
                   925,      920,      911,      940,
                   892,      914,     1057,     1317,

                   // QP = 36 NEW
                       0,        0,        0,        0,
                       0,        0,        0,       30,
                      29,       32,       45,       85,
                      95,      100,      121,      143,
                     167,      164,       61,       71,
                      92,      155,      166,      158,
                     156,      195,      232,      246,
                     271,      296,      335,      471,
                     386,      363,      468,      508,
                     441,      558,      542,      526,
                     503,      613,      567,      614,
                     586,      590,      582,      591,
                     581,      697,      694,      619,
                     611,      657,      784,      697,
                     796,      771,      773,      785,
                     767,      781,      883,     1131,

                     // QP = 37 NEW
                         0,        0,        0,        0,
                         0,        0,        0,       28,
                        28,       29,       39,       81,
                        82,      102,      106,      119,
                       140,      137,       55,       62,
                        80,      142,      142,      136,
                       134,      170,      202,      213,
                       224,      247,      274,      402,
                       322,      319,      406,      448,
                       399,      499,      477,      466,
                       459,      539,      490,      553,
                       526,      510,      512,      532,
                       520,      623,      624,      564,
                       553,      587,      704,      609,
                       723,      691,      682,      704,
                       675,      680,      814,     1022,

                       // QP = 38 NEW
                           0,        0,        0,        0,
                           0,        0,        0,       25,
                          25,       26,       35,       70,
                          67,       88,       90,      100,
                         114,      117,       45,       52,
                          67,      114,      112,      104,
                         108,      133,      157,      167,
                         174,      192,      214,      323,
                         265,      250,      333,      373,
                         340,      416,      388,      402,
                         401,      453,      427,      465,
                         456,      441,      441,      458,
                         438,      522,      534,      490,
                         484,      513,      603,      519,
                         613,      587,      590,      608,
                         602,      580,      696,      888,

                         // QP = 39 NEW
                             0,        0,        0,        0,
                             0,        0,        0,       23,
                            23,       24,       30,       60,
                            60,       81,       82,       83,
                           102,      104,       40,       47,
                            60,       97,      101,       96,
                            95,      122,      136,      145,
                           160,      169,      185,      285,
                           228,      214,      301,      323,
                           301,      375,      362,      355,
                           359,      406,      388,      416,
                           422,      400,      397,      413,
                           392,      471,      487,      451,
                           432,      455,      543,      480,
                           562,      536,      527,      560,
                           550,      534,      639,      812,

                           // QP = 40 NEW
                               0,        0,        0,        0,
                               0,        0,        0,       22,
                              21,       22,       30,       59,
                              56,       66,       69,       68,
                              79,       83,       35,       41,
                              50,       80,       87,       81,
                              78,      100,      107,      116,
                             130,      133,      152,      238,
                             187,      185,      252,      279,
                             256,      314,      302,      308,
                             297,      341,      321,      365,
                             366,      347,      345,      346,
                             339,      403,      417,      392,
                             379,      413,      477,      419,
                             490,      455,      463,      474,
                             480,      463,      562,      714,

                             // QP = 41 NEW
                                 0,        0,        0,        0,
                                 0,        0,        0,       21,
                                20,       23,       28,       56,
                                51,       54,       56,       65,
                                65,       66,       33,       36,
                                45,       68,       75,       73,
                                68,       88,      101,      100,
                               107,      119,      134,      204,
                               161,      161,      225,      248,
                               234,      274,      273,      275,
                               275,      306,      288,      338,
                               322,      309,      318,      315,
                               307,      353,      379,      348,
                               352,      375,      425,      388,
                               438,      420,      418,      427,
                               450,      420,      497,      653,

                               // QP = 42 NEW
                                   0,        0,        0,        0,
                                   0,        0,        0,       19,
                                  18,       19,       27,       41,
                                  44,       49,       47,       54,
                                  52,       59,       30,       31,
                                  37,       59,       64,       62,
                                  55,       76,       82,       84,
                                  89,       96,      114,      167,
                                 141,      144,      189,      216,
                                 197,      235,      228,      233,
                                 235,      272,      252,      287,
                                 283,      270,      277,      277,
                                 265,      319,      334,      300,
                                 305,      325,      376,      340,
                                 376,      366,      363,      375,
                                 396,      370,      447,      574,

                                 // QP = 43 NEW
                                     0,        0,        0,        0,
                                     0,        0,        0,       19,
                                    18,       19,       23,       40,
                                    39,       41,       46,       49,
                                    41,       48,       26,       28,
                                    32,       50,       51,       53,
                                    50,       61,       74,       75,
                                    80,       84,       97,      151,
                                   128,      124,      168,      186,
                                   182,      208,      205,      204,
                                   207,      235,      223,      251,
                                   260,      244,      241,      243,
                                   242,      284,      289,      284,
                                   280,      296,      332,      308,
                                   333,      324,      316,      341,
                                   361,      335,      404,      524,

                                   // QP = 44 NEW
                                       0,        0,        0,        0,
                                       0,        0,        0,       17,
                                      16,       18,       20,       35,
                                      34,       40,       41,       37,
                                      43,       45,       23,       25,
                                      30,       41,       43,       42,
                                      40,       55,       60,       62,
                                      66,       74,       80,      120,
                                     100,      105,      140,      150,
                                     149,      172,      171,      177,
                                     171,      196,      192,      209,
                                     220,      211,      202,      204,
                                     206,      253,      251,      240,
                                     239,      255,      286,      275,
                                     273,      281,      284,      283,
                                     307,      281,      334,      453,

                                     // QP = 45 NEW
                                         0,        0,        0,        0,
                                         0,        0,        0,       15,
                                        15,       16,       21,       33,
                                        33,       34,       32,       32,
                                        40,       37,       19,       22,
                                        25,       36,       37,       36,
                                        35,       47,       51,       49,
                                        56,       59,       68,      102,
                                        86,       93,      114,      136,
                                       123,      156,      138,      142,
                                       147,      160,      157,      179,
                                       194,      182,      184,      190,
                                       176,      218,      213,      212,
                                       200,      224,      249,      239,
                                       246,      244,      240,      254,
                                       280,      247,      302,      395,

                                       // QP = 46 NEW
                                           0,        0,        0,        0,
                                           0,        0,        0,       14,
                                          15,       15,       17,       31,
                                          32,       34,       32,       31,
                                          33,       30,       18,       20,
                                          22,       31,       33,       32,
                                          30,       39,       42,       43,
                                          44,       49,       60,       87,
                                          71,       77,      104,      110,
                                         110,      126,      119,      131,
                                         128,      137,      138,      155,
                                         164,      149,      153,      154,
                                         150,      190,      179,      182,
                                         182,      193,      210,      207,
                                         220,      217,      220,      212,
                                         234,      218,      259,      343,

                                         // QP = 47 NEW
                                             0,        0,        0,        0,
                                             0,        0,        0,       13,
                                            15,       15,       19,       30,
                                            30,       28,       29,       28,
                                            28,       27,       16,       18,
                                            19,       25,       29,       27,
                                            26,       33,       35,       38,
                                            38,       39,       51,       73,
                                            58,       62,       82,       97,
                                            97,      104,       97,      107,
                                           106,      110,      121,      130,
                                           145,      134,      129,      136,
                                           124,      152,      153,      161,
                                           160,      163,      180,      182,
                                           185,      184,      183,      188,
                                           202,      183,      221,      297,

                                           // QP = 48 NEW
                                               0,        0,        0,        0,
                                               0,        0,        0,       12,
                                              12,       13,       17,       27,
                                              26,       29,       25,       26,
                                              26,       24,       15,       17,
                                              17,       24,       26,       25,
                                              28,       28,       30,       32,
                                              31,       35,       42,       58,
                                              50,       54,       65,       80,
                                              80,       87,       85,       93,
                                              87,       96,      100,      111,
                                             119,      118,      114,      117,
                                             115,      144,      127,      141,
                                             135,      145,      149,      158,
                                             158,      160,      151,      160,
                                             183,      160,      190,      259,

                                             // QP = 49 NEW
                                                 0,        0,        0,        0,
                                                 0,        0,        0,       11,
                                                12,       12,       16,       23,
                                                22,       23,       22,       23,
                                                23,       24,       13,       15,
                                                16,       21,       21,       22,
                                                22,       25,       28,       31,
                                                27,       29,       35,       46,
                                                45,       46,       58,       70,
                                                65,       74,       67,       80,
                                                78,       79,       80,       95,
                                               102,      100,       93,       97,
                                                95,      120,      106,      119,
                                               121,      128,      128,      142,
                                               132,      139,      137,      135,
                                               158,      139,      162,      223,

                                               // QP = 50 NEW
                                                   0,        0,        0,        0,
                                                   0,        0,        0,       11,
                                                  11,       12,       15,       22,
                                                  19,       22,       19,       20,
                                                  21,       21,       14,       14,
                                                  16,       18,       19,       19,
                                                  20,       21,       23,       24,
                                                  24,       26,       32,       40,
                                                  36,       40,       49,       56,
                                                  56,       59,       56,       69,
                                                  68,       63,       73,       80,
                                                  84,       86,       84,       81,
                                                  79,      103,       88,      100,
                                                 101,      105,      109,      124,
                                                 109,      109,      113,      111,
                                                 135,      120,      142,      191,

                                                 // QP = 51 NEW
                                                     0,        0,        0,        0,
                                                     0,        0,        0,       10,
                                                    11,       12,       14,       20,
                                                    18,       22,       18,       21,
                                                    21,       20,       11,       13,
                                                    14,       17,       16,       16,
                                                    19,       20,       24,       21,
                                                    22,       24,       28,       33,
                                                    34,       38,       42,       51,
                                                    42,       49,       47,       59,
                                                    62,       58,       62,       67,
                                                    68,       66,       73,       73,
                                                    65,       85,       78,       90,
                                                    92,      101,       91,      107,
                                                    96,      103,       96,       98,
                                                   122,      104,      119,      166,
};





/**************************************
 * Function Declarations
 **************************************/
EbErrorType rate_control_tables_ctor(
    RateControlTables *initialRateControlTablesArray)
{
    int32_t qp_index, intervalIndex, temporalIndex;
    for (qp_index = 0; qp_index < 52; qp_index++) {
        for (intervalIndex = 0; intervalIndex < NUMBER_OF_SAD_INTERVALS; intervalIndex++) {
            for (temporalIndex = 0; temporalIndex < MAX_TEMPORAL_LAYERS; temporalIndex++) {
                if (intervalIndex < (NUMBER_OF_SAD_INTERVALS >> 1)) {
                    // intrinsics used in initial RC are assuming signed 16 bits is the maximum
                    initialRateControlTablesArray[qp_index].sad_bits_array[temporalIndex][intervalIndex] =
                        CLIP3(1,
                        (uint16_t)((1 << 15) - 1),
                            (uint16_t)initialRateControlSad64x64Tables[qp_index*(NUMBER_OF_SAD_INTERVALS >> 1) + intervalIndex]);

                    initialRateControlTablesArray[qp_index].intra_sad_bits_array[temporalIndex][intervalIndex] =
                        CLIP3(1,
                        (uint16_t)((1 << 15) - 1),
                            (uint16_t)initialRateControlIntraSad64x64Tables[qp_index*(NUMBER_OF_SAD_INTERVALS >> 1) + intervalIndex]);

                }
                else {

                    initialRateControlTablesArray[qp_index].sad_bits_array[temporalIndex][intervalIndex] =
                        CLIP3(1,
                        (uint16_t)((1 << 15) - 1),
                            (uint16_t)initialRateControlSad64x64Tables[qp_index*(NUMBER_OF_SAD_INTERVALS >> 1) + ((NUMBER_OF_SAD_INTERVALS >> 1) - 1)]);
                    initialRateControlTablesArray[qp_index].intra_sad_bits_array[temporalIndex][intervalIndex] =
                        CLIP3(1,
                        (uint16_t)((1 << 15) - 1),
                            initialRateControlIntraSad64x64Tables[qp_index*(NUMBER_OF_SAD_INTERVALS >> 1) + ((NUMBER_OF_SAD_INTERVALS >> 1) - 1)]);

                }


            }
        }
    }
    return EB_ErrorNone;
}

#endif
