blob: fb10f3ecfc95d6b0945c43872af88183a50f3bad [file] [log] [blame]
/******************************************************************************
*
* Copyright (C) 2012 Ittiam Systems Pvt Ltd, Bangalore
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
******************************************************************************/
/**
******************************************************************************
* @file
* ihevc_cabac_tables.c
*
* @brief
* This file contains HEVC cabac tables for init contexts, rlps and
* cabac state trasnitions
*
* @author
* Ittiam
*
* @par List of Tables
* - gau1_ihevc_cabac_rlps[]
* - gau1_ihevc_next_state[]
* - gau1_ihevc_cab_ctxts[]
*
******************************************************************************
*/
/*****************************************************************************/
/* File Includes */
/*****************************************************************************/
#include "ihevc_typedefs.h"
#include "ihevc_cabac_tables.h"
/**
******************************************************************************
* @brief Table for rangeTabLPS depending on pStateIdx and qCodIRangeIdx
* input : pStateIdx(0-63) and qCodIRangeIdx(0-3) [(Range >> 6) & 0x3]
* output : RLps
*
* @remarks See Table 9-40 of HEVC spec for rangeTabLPS
******************************************************************************
*/
const UWORD8 gau1_ihevc_cabac_rlps[64][4] =
{
{ 128, 176, 208, 240 },
{ 128, 167, 197, 227 },
{ 128, 158, 187, 216 },
{ 123, 150, 178, 205 },
{ 116, 142, 169, 195 },
{ 111, 135, 160, 185 },
{ 105, 128, 152, 175 },
{ 100, 122, 144, 166 },
{ 95, 116, 137, 158 },
{ 90, 110, 130, 150 },
{ 85, 104, 123, 142 },
{ 81, 99, 117, 135 },
{ 77, 94, 111, 128 },
{ 73, 89, 105, 122 },
{ 69, 85, 100, 116 },
{ 66, 80, 95, 110 },
{ 62, 76, 90, 104 },
{ 59, 72, 86, 99 },
{ 56, 69, 81, 94 },
{ 53, 65, 77, 89 },
{ 51, 62, 73, 85 },
{ 48, 59, 69, 80 },
{ 46, 56, 66, 76 },
{ 43, 53, 63, 72 },
{ 41, 50, 59, 69 },
{ 39, 48, 56, 65 },
{ 37, 45, 54, 62 },
{ 35, 43, 51, 59 },
{ 33, 41, 48, 56 },
{ 32, 39, 46, 53 },
{ 30, 37, 43, 50 },
{ 29, 35, 41, 48 },
{ 27, 33, 39, 45 },
{ 26, 31, 37, 43 },
{ 24, 30, 35, 41 },
{ 23, 28, 33, 39 },
{ 22, 27, 32, 37 },
{ 21, 26, 30, 35 },
{ 20, 24, 29, 33 },
{ 19, 23, 27, 31 },
{ 18, 22, 26, 30 },
{ 17, 21, 25, 28 },
{ 16, 20, 23, 27 },
{ 15, 19, 22, 25 },
{ 14, 18, 21, 24 },
{ 14, 17, 20, 23 },
{ 13, 16, 19, 22 },
{ 12, 15, 18, 21 },
{ 12, 14, 17, 20 },
{ 11, 14, 16, 19 },
{ 11, 13, 15, 18 },
{ 10, 12, 15, 17 },
{ 10, 12, 14, 16 },
{ 9, 11, 13, 15 },
{ 9, 11, 12, 14 },
{ 8, 10, 12, 14 },
{ 8, 9, 11, 13 },
{ 7, 9, 11, 12 },
{ 7, 9, 10, 12 },
{ 7, 8, 10, 11 },
{ 6, 8, 9, 11 },
{ 6, 7, 9, 10 },
{ 6, 7, 8, 9 },
{ 2, 2, 2, 2 }
};
/**
******************************************************************************
* @brief probaility+MPS state transition tables based on cur State and bin
* input : curpState[bits7-2] | curMPS[bit1] | decodedBin[bit0]
* output : nextpState[bits6-1] | nextMPS[bit0]
* @remarks Modified form of Table-9-41 State Transition table in HEVC spec
******************************************************************************
*/
const UWORD8 gau1_ihevc_next_state[64 * 2 * 2] =
{
/*****************************************************************************/
/* m=0,b=0 | m=0,b=1 | m=1,b=0 | m=1,b=1 */
/*****************************************************************************/
2, 1, 0, 3, /* mps reversal for m=0,b=1 / m=1,b=0 */
4, 0, 1, 5,
6, 2, 3, 7,
8, 4, 5, 9,
10, 4, 5, 11,
12, 8, 9, 13,
14, 8, 9, 15,
16, 10, 11, 17,
18, 12, 13, 19,
20, 14, 15, 21,
22, 16, 17, 23,
24, 18, 19, 25,
26, 18, 19, 27,
28, 22, 23, 29,
30, 22, 23, 31,
32, 24, 25, 33,
34, 26, 27, 35,
36, 26, 27, 37,
38, 30, 31, 39,
40, 30, 31, 41,
42, 32, 33, 43,
44, 32, 33, 45,
46, 36, 37, 47,
48, 36, 37, 49,
50, 38, 39, 51,
52, 38, 39, 53,
54, 42, 43, 55,
56, 42, 43, 57,
58, 44, 45, 59,
60, 44, 45, 61,
62, 46, 47, 63,
64, 48, 49, 65,
66, 48, 49, 67,
68, 50, 51, 69,
70, 52, 53, 71,
72, 52, 53, 73,
74, 54, 55, 75,
76, 54, 55, 77,
78, 56, 57, 79,
80, 58, 59, 81,
82, 58, 59, 83,
84, 60, 61, 85,
86, 60, 61, 87,
88, 60, 61, 89,
90, 62, 63, 91,
92, 64, 65, 93,
94, 64, 65, 95,
96, 66, 67, 97,
98, 66, 67, 99,
100, 66, 67, 101,
102, 68, 69, 103,
104, 68, 69, 105,
106, 70, 71, 107,
108, 70, 71, 109,
110, 70, 71, 111,
112, 72, 73, 113,
114, 72, 73, 115,
116, 72, 73, 117,
118, 74, 75, 119,
120, 74, 75, 121,
122, 74, 75, 123,
124, 76, 77, 125,
124, 76, 77, 125,
126, 126, 127, 127
};
/*
******************************************************************************
* As per HEVC standard the Cabac values are generated using following logic
* (ref: section 9.3.1.1 of JCTVC-J1003_d7_DIS)
* From the 8 bit table entry initValue, the two 4 bit variables slopeIdx and
* intersecIdx are derived according to the following pseudo-code process
* slopeIdx = initValue >> 4
* intersecIdx = initValue & 15
*
* Slope m and Intersec n are derived from the indices as follows:
* m = slopeIdx*5 - 45
* n = ( intersecIdx << 3 ) - 16
*
* The two values assigned to pStateIdx and valMPS for the initialization
* are derived from SliceQPY, which is derived in Equation 7 35.
*
* Given the variable m and n, the initialization is specified by the following
* pseudo-code process
*
* preCtxState = Clip3( 1, 126, ( ( m * Clip3( 0, 51, SliceQPY ) ) >> 4 ) + n )
* valMPS = ( preCtxState <= 63) ? 0 : 1
* pStateIdx = valMPS ? (preCtxState - 64) : (63 - preCtxState)
******************************************************************************
*/
/**
******************************************************************************
* @brief Init context tables for all combinations of qp and cabac_init_idc
* @remarks Packing format MPS in lsb and pState in bits[1-6]
******************************************************************************
*/
const UWORD8 gau1_ihevc_cab_ctxts[IHEVC_NUM_CAB_IDC][IHEVC_MAX_QP][IHEVC_CAB_CTXT_END] =
{
{
{
/* Context Tables for init_idc = 0, qp = 0 */
14, 30, 17, 49, 49, 1, 81, 81, 81, 1,
1, 81, 30, 81, 81, 81, 30, 81, 81, 81,
81, 81, 81, 81, 81, 81, 81, 81, 81, 81,
81, 14, 1, 1, 81, 49, 65, 1, 62, 1,
17, 17, 65, 65, 33, 49, 33, 14, 49, 81,
33, 49, 81, 81, 81, 81, 81, 33, 17, 81,
65, 65, 33, 49, 33, 14, 49, 81, 33, 49,
81, 81, 81, 81, 81, 33, 17, 81, 17, 17,
62, 49, 81, 81, 49, 65, 65, 65, 33, 33,
33, 17, 49, 49, 110, 14, 49, 17, 49, 49,
110, 14, 49, 17, 49, 49, 110, 14, 49, 33,
17, 62, 62, 30, 30, 30, 30, 14, 30, 17,
81, 30, 17, 81, 33, 33, 14, 1, 33, 30,
1, 17, 14, 1, 78, 33, 17, 17, 1, 30,
33, 110, 62, 62, 33, 110, 1, 78, 1, 14,
30, 46, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 1 */
14, 30, 15, 47, 49, 1, 83, 83, 83, 1,
1, 83, 30, 83, 83, 83, 30, 77, 83, 83,
83, 83, 83, 83, 83, 83, 83, 83, 83, 83,
83, 14, 0, 0, 79, 47, 61, 0, 62, 1,
15, 15, 63, 63, 31, 47, 31, 14, 47, 79,
31, 47, 79, 79, 79, 79, 77, 31, 15, 77,
63, 63, 31, 47, 31, 14, 47, 79, 31, 47,
79, 79, 79, 79, 77, 31, 15, 77, 13, 17,
64, 47, 79, 79, 47, 63, 63, 61, 31, 31,
31, 15, 47, 47, 110, 14, 47, 15, 47, 47,
110, 14, 47, 15, 47, 47, 110, 14, 47, 31,
15, 62, 62, 30, 32, 30, 32, 14, 32, 15,
79, 32, 15, 79, 31, 29, 16, 0, 31, 30,
0, 15, 14, 2, 78, 29, 15, 15, 0, 30,
31, 110, 62, 62, 31, 108, 0, 78, 0, 14,
32, 46, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 2 */
14, 28, 15, 47, 49, 1, 87, 87, 87, 1,
1, 87, 28, 87, 87, 87, 28, 73, 87, 87,
87, 87, 87, 87, 87, 87, 87, 87, 87, 87,
87, 14, 0, 0, 77, 47, 59, 0, 60, 1,
15, 15, 61, 61, 29, 45, 31, 14, 45, 77,
31, 45, 77, 79, 77, 77, 73, 29, 13, 73,
61, 61, 29, 45, 31, 14, 45, 77, 31, 45,
77, 79, 77, 77, 73, 29, 13, 73, 11, 17,
64, 47, 77, 77, 45, 61, 61, 59, 29, 29,
29, 13, 45, 47, 108, 14, 45, 13, 45, 47,
108, 14, 45, 13, 45, 47, 108, 14, 45, 31,
15, 60, 60, 30, 32, 30, 32, 14, 32, 15,
77, 32, 15, 77, 31, 27, 16, 0, 31, 30,
0, 15, 14, 6, 78, 27, 15, 13, 2, 30,
31, 108, 62, 60, 31, 104, 2, 76, 0, 14,
32, 46, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 3 */
14, 26, 15, 47, 49, 1, 91, 91, 91, 1,
1, 91, 28, 91, 91, 91, 28, 69, 91, 91,
91, 91, 91, 91, 91, 91, 91, 91, 91, 91,
91, 14, 0, 0, 75, 47, 57, 0, 60, 1,
15, 15, 59, 59, 29, 45, 31, 14, 45, 77,
31, 43, 75, 79, 77, 75, 71, 27, 13, 69,
59, 59, 29, 45, 31, 14, 45, 77, 31, 43,
75, 79, 77, 75, 71, 27, 13, 69, 9, 17,
64, 47, 75, 75, 45, 59, 59, 57, 29, 27,
29, 11, 45, 47, 108, 14, 45, 11, 45, 47,
108, 14, 45, 11, 45, 47, 108, 14, 45, 31,
15, 60, 60, 30, 32, 30, 32, 14, 32, 15,
75, 32, 15, 75, 31, 25, 16, 0, 31, 30,
0, 15, 14, 8, 78, 25, 15, 11, 2, 30,
31, 108, 62, 60, 31, 102, 2, 74, 0, 14,
32, 46, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 4 */
14, 24, 13, 45, 49, 1, 95, 95, 95, 1,
1, 95, 26, 95, 95, 95, 26, 65, 95, 95,
95, 95, 95, 95, 95, 95, 95, 95, 95, 95,
95, 14, 2, 2, 73, 45, 55, 2, 58, 1,
13, 13, 57, 57, 27, 43, 29, 14, 43, 75,
29, 41, 73, 77, 75, 73, 67, 25, 11, 65,
57, 57, 27, 43, 29, 14, 43, 75, 29, 41,
73, 77, 75, 73, 67, 25, 11, 65, 7, 19,
66, 45, 73, 73, 43, 57, 57, 55, 27, 25,
27, 9, 43, 45, 106, 14, 43, 9, 43, 45,
106, 14, 43, 9, 43, 45, 106, 14, 43, 29,
13, 58, 58, 30, 34, 30, 34, 14, 34, 13,
73, 34, 13, 73, 29, 23, 18, 2, 29, 30,
2, 13, 14, 12, 78, 23, 13, 9, 4, 30,
29, 106, 60, 58, 29, 98, 4, 72, 2, 14,
34, 44, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 5 */
14, 22, 13, 45, 49, 1, 99, 99, 99, 1,
1, 99, 24, 99, 99, 99, 24, 61, 99, 99,
99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
99, 14, 2, 2, 71, 45, 51, 2, 56, 1,
13, 13, 55, 55, 25, 41, 29, 14, 41, 73,
29, 39, 71, 77, 73, 71, 65, 23, 9, 61,
55, 55, 25, 41, 29, 14, 41, 73, 29, 39,
71, 77, 73, 71, 65, 23, 9, 61, 3, 19,
66, 45, 71, 71, 41, 55, 55, 51, 25, 23,
25, 7, 41, 45, 104, 14, 41, 7, 41, 45,
104, 14, 41, 7, 41, 45, 104, 14, 41, 29,
13, 56, 56, 30, 34, 30, 34, 14, 34, 13,
71, 34, 13, 71, 29, 19, 18, 2, 29, 30,
2, 13, 14, 14, 78, 19, 13, 7, 6, 30,
29, 104, 60, 56, 29, 96, 6, 70, 2, 14,
34, 44, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 6 */
14, 20, 13, 45, 49, 1, 103, 103, 103, 1,
1, 103, 24, 103, 103, 103, 24, 57, 103, 103,
103, 103, 103, 103, 103, 103, 103, 103, 103, 103,
103, 14, 2, 2, 69, 45, 49, 2, 56, 1,
13, 13, 53, 53, 25, 41, 29, 14, 41, 73,
29, 37, 69, 77, 73, 69, 61, 21, 9, 57,
53, 53, 25, 41, 29, 14, 41, 73, 29, 37,
69, 77, 73, 69, 61, 21, 9, 57, 1, 19,
66, 45, 69, 69, 41, 53, 53, 49, 25, 21,
25, 5, 41, 45, 104, 14, 41, 5, 41, 45,
104, 14, 41, 5, 41, 45, 104, 14, 41, 29,
13, 56, 56, 30, 34, 30, 34, 14, 34, 13,
69, 34, 13, 69, 29, 17, 18, 2, 29, 30,
2, 13, 14, 18, 78, 17, 13, 5, 6, 30,
29, 104, 60, 56, 29, 92, 6, 68, 2, 14,
34, 44, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 7 */
14, 18, 11, 43, 49, 1, 107, 107, 107, 1,
1, 107, 22, 107, 107, 107, 22, 53, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 14, 4, 4, 67, 43, 47, 4, 54, 1,
11, 11, 51, 51, 23, 39, 27, 14, 39, 71,
27, 35, 67, 75, 71, 67, 59, 19, 7, 53,
51, 51, 23, 39, 27, 14, 39, 71, 27, 35,
67, 75, 71, 67, 59, 19, 7, 53, 0, 21,
68, 43, 67, 67, 39, 51, 51, 47, 23, 19,
23, 3, 39, 43, 102, 14, 39, 3, 39, 43,
102, 14, 39, 3, 39, 43, 102, 14, 39, 27,
11, 54, 54, 30, 36, 30, 36, 14, 36, 11,
67, 36, 11, 67, 27, 15, 20, 4, 27, 30,
4, 11, 14, 20, 78, 15, 11, 3, 8, 30,
27, 102, 58, 54, 27, 90, 8, 66, 4, 14,
36, 42, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 8 */
14, 16, 11, 43, 49, 1, 111, 111, 111, 1,
1, 111, 20, 111, 111, 111, 20, 51, 111, 111,
111, 111, 111, 111, 111, 111, 111, 111, 111, 111,
111, 14, 4, 4, 65, 43, 45, 4, 52, 1,
11, 11, 49, 49, 23, 39, 27, 14, 39, 71,
27, 33, 65, 75, 71, 65, 55, 17, 7, 51,
49, 49, 23, 39, 27, 14, 39, 71, 27, 33,
65, 75, 71, 65, 55, 17, 7, 51, 2, 21,
68, 43, 65, 65, 39, 49, 49, 45, 23, 17,
23, 1, 39, 43, 100, 14, 39, 1, 39, 43,
100, 14, 39, 1, 39, 43, 100, 14, 39, 27,
11, 52, 52, 30, 36, 30, 36, 14, 36, 11,
65, 36, 11, 65, 27, 13, 20, 4, 27, 30,
4, 11, 14, 24, 78, 13, 11, 1, 8, 30,
27, 100, 58, 52, 27, 86, 8, 64, 4, 14,
36, 42, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 9 */
14, 14, 11, 43, 49, 1, 113, 113, 113, 1,
1, 113, 20, 113, 113, 113, 20, 47, 113, 113,
113, 113, 113, 113, 113, 113, 113, 113, 113, 113,
113, 14, 4, 4, 63, 43, 41, 4, 52, 1,
11, 11, 47, 47, 21, 37, 27, 14, 37, 69,
27, 31, 63, 75, 69, 63, 51, 15, 5, 47,
47, 47, 21, 37, 27, 14, 37, 69, 27, 31,
63, 75, 69, 63, 51, 15, 5, 47, 6, 21,
68, 43, 63, 63, 37, 47, 47, 41, 21, 15,
21, 0, 37, 43, 100, 14, 37, 0, 37, 43,
100, 14, 37, 0, 37, 43, 100, 14, 37, 27,
11, 52, 52, 30, 36, 30, 36, 14, 36, 11,
63, 36, 11, 63, 27, 9, 20, 4, 27, 30,
4, 11, 14, 28, 78, 9, 11, 0, 10, 30,
27, 100, 58, 52, 27, 82, 10, 62, 4, 14,
36, 42, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 10 */
14, 12, 9, 41, 49, 1, 117, 117, 117, 1,
1, 117, 18, 117, 117, 117, 18, 43, 117, 117,
117, 117, 117, 117, 117, 117, 117, 117, 117, 117,
117, 14, 6, 6, 61, 41, 39, 6, 50, 1,
9, 9, 45, 45, 19, 35, 25, 14, 35, 67,
25, 29, 61, 73, 67, 61, 49, 13, 3, 43,
45, 45, 19, 35, 25, 14, 35, 67, 25, 29,
61, 73, 67, 61, 49, 13, 3, 43, 8, 23,
70, 41, 61, 61, 35, 45, 45, 39, 19, 13,
19, 2, 35, 41, 98, 14, 35, 2, 35, 41,
98, 14, 35, 2, 35, 41, 98, 14, 35, 25,
9, 50, 50, 30, 38, 30, 38, 14, 38, 9,
61, 38, 9, 61, 25, 7, 22, 6, 25, 30,
6, 9, 14, 30, 78, 7, 9, 2, 12, 30,
25, 98, 56, 50, 25, 80, 12, 60, 6, 14,
38, 40, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 11 */
14, 10, 9, 41, 49, 1, 121, 121, 121, 1,
1, 121, 18, 121, 121, 121, 18, 39, 121, 121,
121, 121, 121, 121, 121, 121, 121, 121, 121, 121,
121, 14, 6, 6, 59, 41, 37, 6, 50, 1,
9, 9, 43, 43, 19, 35, 25, 14, 35, 67,
25, 27, 59, 73, 67, 59, 45, 11, 3, 39,
43, 43, 19, 35, 25, 14, 35, 67, 25, 27,
59, 73, 67, 59, 45, 11, 3, 39, 10, 23,
70, 41, 59, 59, 35, 43, 43, 37, 19, 11,
19, 4, 35, 41, 98, 14, 35, 4, 35, 41,
98, 14, 35, 4, 35, 41, 98, 14, 35, 25,
9, 50, 50, 30, 38, 30, 38, 14, 38, 9,
59, 38, 9, 59, 25, 5, 22, 6, 25, 30,
6, 9, 14, 34, 78, 5, 9, 4, 12, 30,
25, 98, 56, 50, 25, 76, 12, 58, 6, 14,
38, 40, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 12 */
14, 8, 9, 41, 49, 1, 125, 125, 125, 1,
1, 125, 16, 125, 125, 125, 16, 35, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 6, 6, 57, 41, 35, 6, 48, 1,
9, 9, 41, 41, 17, 33, 25, 14, 33, 65,
25, 25, 57, 73, 65, 57, 43, 9, 1, 35,
41, 41, 17, 33, 25, 14, 33, 65, 25, 25,
57, 73, 65, 57, 43, 9, 1, 35, 12, 23,
70, 41, 57, 57, 33, 41, 41, 35, 17, 9,
17, 6, 33, 41, 96, 14, 33, 6, 33, 41,
96, 14, 33, 6, 33, 41, 96, 14, 33, 25,
9, 48, 48, 30, 38, 30, 38, 14, 38, 9,
57, 38, 9, 57, 25, 3, 22, 6, 25, 30,
6, 9, 14, 36, 78, 3, 9, 6, 14, 30,
25, 96, 56, 48, 25, 74, 14, 56, 6, 14,
38, 40, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 13 */
14, 6, 7, 39, 49, 1, 125, 125, 125, 1,
1, 125, 14, 125, 125, 125, 14, 31, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 8, 8, 55, 39, 31, 8, 46, 1,
7, 7, 39, 39, 15, 31, 23, 14, 31, 63,
23, 23, 55, 71, 63, 55, 39, 7, 0, 31,
39, 39, 15, 31, 23, 14, 31, 63, 23, 23,
55, 71, 63, 55, 39, 7, 0, 31, 16, 25,
72, 39, 55, 55, 31, 39, 39, 31, 15, 7,
15, 8, 31, 39, 94, 14, 31, 8, 31, 39,
94, 14, 31, 8, 31, 39, 94, 14, 31, 23,
7, 46, 46, 30, 40, 30, 40, 14, 40, 7,
55, 40, 7, 55, 23, 0, 24, 8, 23, 30,
8, 7, 14, 40, 78, 0, 7, 8, 16, 30,
23, 94, 54, 46, 23, 70, 16, 54, 8, 14,
40, 38, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 14 */
14, 4, 7, 39, 49, 1, 125, 125, 125, 1,
1, 125, 14, 125, 125, 125, 14, 27, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 8, 8, 53, 39, 29, 8, 46, 1,
7, 7, 37, 37, 15, 31, 23, 14, 31, 63,
23, 21, 53, 71, 63, 53, 37, 5, 0, 27,
37, 37, 15, 31, 23, 14, 31, 63, 23, 21,
53, 71, 63, 53, 37, 5, 0, 27, 18, 25,
72, 39, 53, 53, 31, 37, 37, 29, 15, 5,
15, 10, 31, 39, 94, 14, 31, 10, 31, 39,
94, 14, 31, 10, 31, 39, 94, 14, 31, 23,
7, 46, 46, 30, 40, 30, 40, 14, 40, 7,
53, 40, 7, 53, 23, 2, 24, 8, 23, 30,
8, 7, 14, 42, 78, 2, 7, 10, 16, 30,
23, 94, 54, 46, 23, 68, 16, 52, 8, 14,
40, 38, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 15 */
14, 2, 7, 39, 49, 1, 125, 125, 125, 1,
1, 125, 12, 125, 125, 125, 12, 23, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 8, 8, 51, 39, 27, 8, 44, 1,
7, 7, 35, 35, 13, 29, 23, 14, 29, 61,
23, 19, 51, 71, 61, 51, 33, 3, 2, 23,
35, 35, 13, 29, 23, 14, 29, 61, 23, 19,
51, 71, 61, 51, 33, 3, 2, 23, 20, 25,
72, 39, 51, 51, 29, 35, 35, 27, 13, 3,
13, 12, 29, 39, 92, 14, 29, 12, 29, 39,
92, 14, 29, 12, 29, 39, 92, 14, 29, 23,
7, 44, 44, 30, 40, 30, 40, 14, 40, 7,
51, 40, 7, 51, 23, 4, 24, 8, 23, 30,
8, 7, 14, 46, 78, 4, 7, 12, 18, 30,
23, 92, 54, 44, 23, 64, 18, 50, 8, 14,
40, 38, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 16 */
14, 0, 7, 39, 49, 1, 125, 125, 125, 1,
1, 125, 10, 125, 125, 125, 10, 21, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 8, 8, 51, 39, 25, 8, 42, 1,
7, 7, 35, 35, 13, 29, 23, 14, 29, 61,
23, 19, 51, 71, 61, 51, 31, 3, 2, 21,
35, 35, 13, 29, 23, 14, 29, 61, 23, 19,
51, 71, 61, 51, 31, 3, 2, 21, 22, 27,
72, 39, 51, 51, 29, 35, 35, 25, 13, 3,
13, 12, 29, 39, 90, 14, 29, 12, 29, 39,
90, 14, 29, 12, 29, 39, 90, 14, 29, 23,
7, 42, 42, 30, 40, 30, 40, 14, 40, 7,
51, 40, 7, 51, 23, 6, 24, 8, 23, 30,
8, 7, 14, 48, 78, 6, 7, 12, 18, 30,
23, 90, 52, 42, 23, 60, 18, 48, 8, 14,
40, 36, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 17 */
14, 0, 5, 37, 49, 1, 125, 125, 125, 1,
1, 125, 10, 125, 125, 125, 10, 17, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 10, 10, 49, 37, 21, 10, 42, 1,
5, 5, 33, 33, 11, 27, 21, 14, 27, 59,
21, 17, 49, 69, 59, 49, 27, 1, 4, 17,
33, 33, 11, 27, 21, 14, 27, 59, 21, 17,
49, 69, 59, 49, 27, 1, 4, 17, 26, 27,
74, 37, 49, 49, 27, 33, 33, 21, 11, 1,
11, 14, 27, 37, 90, 14, 27, 14, 27, 37,
90, 14, 27, 14, 27, 37, 90, 14, 27, 21,
5, 42, 42, 30, 42, 30, 42, 14, 42, 5,
49, 42, 5, 49, 21, 10, 26, 10, 21, 30,
10, 5, 14, 52, 78, 10, 5, 14, 20, 30,
21, 90, 52, 42, 21, 58, 20, 48, 10, 14,
42, 36, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 18 */
14, 1, 5, 37, 49, 1, 125, 125, 125, 1,
1, 125, 8, 125, 125, 125, 8, 13, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 10, 10, 47, 37, 19, 10, 40, 1,
5, 5, 31, 31, 9, 25, 21, 14, 25, 57,
21, 15, 47, 69, 57, 47, 23, 0, 6, 13,
31, 31, 9, 25, 21, 14, 25, 57, 21, 15,
47, 69, 57, 47, 23, 0, 6, 13, 28, 27,
74, 37, 47, 47, 25, 31, 31, 19, 9, 0,
9, 16, 25, 37, 88, 14, 25, 16, 25, 37,
88, 14, 25, 16, 25, 37, 88, 14, 25, 21,
5, 40, 40, 30, 42, 30, 42, 14, 42, 5,
47, 42, 5, 47, 21, 12, 26, 10, 21, 30,
10, 5, 14, 56, 78, 12, 5, 16, 22, 30,
21, 88, 52, 40, 21, 54, 22, 46, 10, 14,
42, 36, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 19 */
14, 3, 5, 37, 49, 1, 125, 125, 125, 1,
1, 125, 8, 125, 125, 125, 8, 9, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 10, 10, 45, 37, 17, 10, 40, 1,
5, 5, 29, 29, 9, 25, 21, 14, 25, 57,
21, 13, 45, 69, 57, 45, 21, 2, 6, 9,
29, 29, 9, 25, 21, 14, 25, 57, 21, 13,
45, 69, 57, 45, 21, 2, 6, 9, 30, 27,
74, 37, 45, 45, 25, 29, 29, 17, 9, 2,
9, 18, 25, 37, 88, 14, 25, 18, 25, 37,
88, 14, 25, 18, 25, 37, 88, 14, 25, 21,
5, 40, 40, 30, 42, 30, 42, 14, 42, 5,
45, 42, 5, 45, 21, 14, 26, 10, 21, 30,
10, 5, 14, 58, 78, 14, 5, 18, 22, 30,
21, 88, 52, 40, 21, 52, 22, 44, 10, 14,
42, 36, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 20 */
14, 5, 3, 35, 49, 1, 125, 125, 125, 1,
1, 125, 6, 125, 125, 125, 6, 5, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 12, 12, 43, 35, 15, 12, 38, 1,
3, 3, 27, 27, 7, 23, 19, 14, 23, 55,
19, 11, 43, 67, 55, 43, 17, 4, 8, 5,
27, 27, 7, 23, 19, 14, 23, 55, 19, 11,
43, 67, 55, 43, 17, 4, 8, 5, 32, 29,
76, 35, 43, 43, 23, 27, 27, 15, 7, 4,
7, 20, 23, 35, 86, 14, 23, 20, 23, 35,
86, 14, 23, 20, 23, 35, 86, 14, 23, 19,
3, 38, 38, 30, 44, 30, 44, 14, 44, 3,
43, 44, 3, 43, 19, 16, 28, 12, 19, 30,
12, 3, 14, 62, 78, 16, 3, 20, 24, 30,
19, 86, 50, 38, 19, 48, 24, 42, 12, 14,
44, 34, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 21 */
14, 7, 3, 35, 49, 1, 125, 125, 125, 1,
1, 125, 4, 125, 125, 125, 4, 1, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 12, 12, 41, 35, 11, 12, 36, 1,
3, 3, 25, 25, 5, 21, 19, 14, 21, 53,
19, 9, 41, 67, 53, 41, 15, 6, 10, 1,
25, 25, 5, 21, 19, 14, 21, 53, 19, 9,
41, 67, 53, 41, 15, 6, 10, 1, 36, 29,
76, 35, 41, 41, 21, 25, 25, 11, 5, 6,
5, 22, 21, 35, 84, 14, 21, 22, 21, 35,
84, 14, 21, 22, 21, 35, 84, 14, 21, 19,
3, 36, 36, 30, 44, 30, 44, 14, 44, 3,
41, 44, 3, 41, 19, 20, 28, 12, 19, 30,
12, 3, 14, 64, 78, 20, 3, 22, 26, 30,
19, 84, 50, 36, 19, 46, 26, 40, 12, 14,
44, 34, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 22 */
14, 9, 3, 35, 49, 1, 125, 125, 125, 1,
1, 125, 4, 125, 125, 125, 4, 2, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 12, 12, 39, 35, 9, 12, 36, 1,
3, 3, 23, 23, 5, 21, 19, 14, 21, 53,
19, 7, 39, 67, 53, 39, 11, 8, 10, 2,
23, 23, 5, 21, 19, 14, 21, 53, 19, 7,
39, 67, 53, 39, 11, 8, 10, 2, 38, 29,
76, 35, 39, 39, 21, 23, 23, 9, 5, 8,
5, 24, 21, 35, 84, 14, 21, 24, 21, 35,
84, 14, 21, 24, 21, 35, 84, 14, 21, 19,
3, 36, 36, 30, 44, 30, 44, 14, 44, 3,
39, 44, 3, 39, 19, 22, 28, 12, 19, 30,
12, 3, 14, 68, 78, 22, 3, 24, 26, 30,
19, 84, 50, 36, 19, 42, 26, 38, 12, 14,
44, 34, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 23 */
14, 11, 1, 33, 49, 1, 125, 125, 125, 1,
1, 125, 2, 125, 125, 125, 2, 6, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 14, 14, 37, 33, 7, 14, 34, 1,
1, 1, 21, 21, 3, 19, 17, 14, 19, 51,
17, 5, 37, 65, 51, 37, 9, 10, 12, 6,
21, 21, 3, 19, 17, 14, 19, 51, 17, 5,
37, 65, 51, 37, 9, 10, 12, 6, 40, 31,
78, 33, 37, 37, 19, 21, 21, 7, 3, 10,
3, 26, 19, 33, 82, 14, 19, 26, 19, 33,
82, 14, 19, 26, 19, 33, 82, 14, 19, 17,
1, 34, 34, 30, 46, 30, 46, 14, 46, 1,
37, 46, 1, 37, 17, 24, 30, 14, 17, 30,
14, 1, 14, 70, 78, 24, 1, 26, 28, 30,
17, 82, 48, 34, 17, 40, 28, 36, 14, 14,
46, 32, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 24 */
14, 13, 1, 33, 49, 1, 125, 125, 125, 1,
1, 125, 0, 125, 125, 125, 0, 8, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 14, 14, 35, 33, 5, 14, 32, 1,
1, 1, 19, 19, 3, 19, 17, 14, 19, 51,
17, 3, 35, 65, 51, 35, 5, 12, 12, 8,
19, 19, 3, 19, 17, 14, 19, 51, 17, 3,
35, 65, 51, 35, 5, 12, 12, 8, 42, 31,
78, 33, 35, 35, 19, 19, 19, 5, 3, 12,
3, 28, 19, 33, 80, 14, 19, 28, 19, 33,
80, 14, 19, 28, 19, 33, 80, 14, 19, 17,
1, 32, 32, 30, 46, 30, 46, 14, 46, 1,
35, 46, 1, 35, 17, 26, 30, 14, 17, 30,
14, 1, 14, 74, 78, 26, 1, 28, 28, 30,
17, 80, 48, 32, 17, 36, 28, 34, 14, 14,
46, 32, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 25 */
14, 15, 1, 33, 49, 1, 125, 125, 125, 1,
1, 125, 0, 125, 125, 125, 0, 12, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 14, 14, 33, 33, 1, 14, 32, 1,
1, 1, 17, 17, 1, 17, 17, 14, 17, 49,
17, 1, 33, 65, 49, 33, 1, 14, 14, 12,
17, 17, 1, 17, 17, 14, 17, 49, 17, 1,
33, 65, 49, 33, 1, 14, 14, 12, 46, 31,
78, 33, 33, 33, 17, 17, 17, 1, 1, 14,
1, 30, 17, 33, 80, 14, 17, 30, 17, 33,
80, 14, 17, 30, 17, 33, 80, 14, 17, 17,
1, 32, 32, 30, 46, 30, 46, 14, 46, 1,
33, 46, 1, 33, 17, 30, 30, 14, 17, 30,
14, 1, 14, 78, 78, 30, 1, 30, 30, 30,
17, 80, 48, 32, 17, 32, 30, 32, 14, 14,
46, 32, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 26 */
14, 17, 0, 31, 49, 1, 125, 125, 125, 1,
1, 125, 1, 125, 125, 125, 1, 16, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 16, 16, 31, 31, 0, 16, 30, 1,
0, 0, 15, 15, 0, 15, 15, 14, 15, 47,
15, 0, 31, 63, 47, 31, 0, 16, 16, 16,
15, 15, 0, 15, 15, 14, 15, 47, 15, 0,
31, 63, 47, 31, 0, 16, 16, 16, 48, 33,
80, 31, 31, 31, 15, 15, 15, 0, 0, 16,
0, 32, 15, 31, 78, 14, 15, 32, 15, 31,
78, 14, 15, 32, 15, 31, 78, 14, 15, 15,
0, 30, 30, 30, 48, 30, 48, 14, 48, 0,
31, 48, 0, 31, 15, 32, 32, 16, 15, 30,
16, 0, 14, 80, 78, 32, 0, 32, 32, 30,
15, 78, 46, 30, 15, 30, 32, 30, 16, 14,
48, 30, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 27 */
14, 19, 0, 31, 49, 1, 125, 125, 125, 1,
1, 125, 1, 125, 125, 125, 1, 20, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 16, 16, 29, 31, 2, 16, 30, 1,
0, 0, 13, 13, 0, 15, 15, 14, 15, 47,
15, 2, 29, 63, 47, 29, 4, 18, 16, 20,
13, 13, 0, 15, 15, 14, 15, 47, 15, 2,
29, 63, 47, 29, 4, 18, 16, 20, 50, 33,
80, 31, 29, 29, 15, 13, 13, 2, 0, 18,
0, 34, 15, 31, 78, 14, 15, 34, 15, 31,
78, 14, 15, 34, 15, 31, 78, 14, 15, 15,
0, 30, 30, 30, 48, 30, 48, 14, 48, 0,
29, 48, 0, 29, 15, 34, 32, 16, 15, 30,
16, 0, 14, 84, 78, 34, 0, 34, 32, 30,
15, 78, 46, 30, 15, 26, 32, 28, 16, 14,
48, 30, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 28 */
14, 21, 0, 31, 49, 1, 125, 125, 125, 1,
1, 125, 3, 125, 125, 125, 3, 24, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 16, 16, 27, 31, 4, 16, 28, 1,
0, 0, 11, 11, 2, 13, 15, 14, 13, 45,
15, 4, 27, 63, 45, 27, 6, 20, 18, 24,
11, 11, 2, 13, 15, 14, 13, 45, 15, 4,
27, 63, 45, 27, 6, 20, 18, 24, 52, 33,
80, 31, 27, 27, 13, 11, 11, 4, 2, 20,
2, 36, 13, 31, 76, 14, 13, 36, 13, 31,
76, 14, 13, 36, 13, 31, 76, 14, 13, 15,
0, 28, 28, 30, 48, 30, 48, 14, 48, 0,
27, 48, 0, 27, 15, 36, 32, 16, 15, 30,
16, 0, 14, 86, 78, 36, 0, 36, 34, 30,
15, 76, 46, 28, 15, 24, 34, 26, 16, 14,
48, 30, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 29 */
14, 23, 2, 29, 49, 1, 125, 125, 125, 1,
1, 125, 5, 125, 125, 125, 5, 28, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 18, 18, 25, 29, 8, 18, 26, 1,
2, 2, 9, 9, 4, 11, 13, 14, 11, 43,
13, 6, 25, 61, 43, 25, 10, 22, 20, 28,
9, 9, 4, 11, 13, 14, 11, 43, 13, 6,
25, 61, 43, 25, 10, 22, 20, 28, 56, 35,
82, 29, 25, 25, 11, 9, 9, 8, 4, 22,
4, 38, 11, 29, 74, 14, 11, 38, 11, 29,
74, 14, 11, 38, 11, 29, 74, 14, 11, 13,
2, 26, 26, 30, 50, 30, 50, 14, 50, 2,
25, 50, 2, 25, 13, 40, 34, 18, 13, 30,
18, 2, 14, 90, 78, 40, 2, 38, 36, 30,
13, 74, 44, 26, 13, 20, 36, 24, 18, 14,
50, 28, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 30 */
14, 25, 2, 29, 49, 1, 125, 125, 125, 1,
1, 125, 5, 125, 125, 125, 5, 32, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 18, 18, 23, 29, 10, 18, 26, 1,
2, 2, 7, 7, 4, 11, 13, 14, 11, 43,
13, 8, 23, 61, 43, 23, 12, 24, 20, 32,
7, 7, 4, 11, 13, 14, 11, 43, 13, 8,
23, 61, 43, 23, 12, 24, 20, 32, 58, 35,
82, 29, 23, 23, 11, 7, 7, 10, 4, 24,
4, 40, 11, 29, 74, 14, 11, 40, 11, 29,
74, 14, 11, 40, 11, 29, 74, 14, 11, 13,
2, 26, 26, 30, 50, 30, 50, 14, 50, 2,
23, 50, 2, 23, 13, 42, 34, 18, 13, 30,
18, 2, 14, 92, 78, 42, 2, 40, 36, 30,
13, 74, 44, 26, 13, 18, 36, 22, 18, 14,
50, 28, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 31 */
14, 27, 2, 29, 49, 1, 125, 125, 125, 1,
1, 125, 7, 125, 125, 125, 7, 36, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 18, 18, 21, 29, 12, 18, 24, 1,
2, 2, 5, 5, 6, 9, 13, 14, 9, 41,
13, 10, 21, 61, 41, 21, 16, 26, 22, 36,
5, 5, 6, 9, 13, 14, 9, 41, 13, 10,
21, 61, 41, 21, 16, 26, 22, 36, 60, 35,
82, 29, 21, 21, 9, 5, 5, 12, 6, 26,
6, 42, 9, 29, 72, 14, 9, 42, 9, 29,
72, 14, 9, 42, 9, 29, 72, 14, 9, 13,
2, 24, 24, 30, 50, 30, 50, 14, 50, 2,
21, 50, 2, 21, 13, 44, 34, 18, 13, 30,
18, 2, 14, 96, 78, 44, 2, 42, 38, 30,
13, 72, 44, 24, 13, 14, 38, 20, 18, 14,
50, 28, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 32 */
14, 29, 2, 29, 49, 1, 125, 125, 125, 1,
1, 125, 9, 125, 125, 125, 9, 38, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 18, 18, 21, 29, 14, 18, 22, 1,
2, 2, 5, 5, 6, 9, 13, 14, 9, 41,
13, 10, 21, 61, 41, 21, 18, 26, 22, 38,
5, 5, 6, 9, 13, 14, 9, 41, 13, 10,
21, 61, 41, 21, 18, 26, 22, 38, 62, 37,
82, 29, 21, 21, 9, 5, 5, 14, 6, 26,
6, 42, 9, 29, 70, 14, 9, 42, 9, 29,
70, 14, 9, 42, 9, 29, 70, 14, 9, 13,
2, 22, 22, 30, 50, 30, 50, 14, 50, 2,
21, 50, 2, 21, 13, 46, 34, 18, 13, 30,
18, 2, 14, 98, 78, 46, 2, 42, 38, 30,
13, 70, 42, 22, 13, 10, 38, 18, 18, 14,
50, 26, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 33 */
14, 29, 4, 27, 49, 1, 125, 125, 125, 1,
1, 125, 9, 125, 125, 125, 9, 42, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 20, 20, 19, 27, 18, 20, 22, 1,
4, 4, 3, 3, 8, 7, 11, 14, 7, 39,
11, 12, 19, 59, 39, 19, 22, 28, 24, 42,
3, 3, 8, 7, 11, 14, 7, 39, 11, 12,
19, 59, 39, 19, 22, 28, 24, 42, 66, 37,
84, 27, 19, 19, 7, 3, 3, 18, 8, 28,
8, 44, 7, 27, 70, 14, 7, 44, 7, 27,
70, 14, 7, 44, 7, 27, 70, 14, 7, 11,
4, 22, 22, 30, 52, 30, 52, 14, 52, 4,
19, 52, 4, 19, 11, 50, 36, 20, 11, 30,
20, 4, 14, 102, 78, 50, 4, 44, 40, 30,
11, 70, 42, 22, 11, 8, 40, 18, 20, 14,
52, 26, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 34 */
14, 31, 4, 27, 49, 1, 125, 125, 125, 1,
1, 125, 11, 125, 125, 125, 11, 46, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 20, 20, 17, 27, 20, 20, 20, 1,
4, 4, 1, 1, 10, 5, 11, 14, 5, 37,
11, 14, 17, 59, 37, 17, 26, 30, 26, 46,
1, 1, 10, 5, 11, 14, 5, 37, 11, 14,
17, 59, 37, 17, 26, 30, 26, 46, 68, 37,
84, 27, 17, 17, 5, 1, 1, 20, 10, 30,
10, 46, 5, 27, 68, 14, 5, 46, 5, 27,
68, 14, 5, 46, 5, 27, 68, 14, 5, 11,
4, 20, 20, 30, 52, 30, 52, 14, 52, 4,
17, 52, 4, 17, 11, 52, 36, 20, 11, 30,
20, 4, 14, 106, 78, 52, 4, 46, 42, 30,
11, 68, 42, 20, 11, 4, 42, 16, 20, 14,
52, 26, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 35 */
14, 33, 4, 27, 49, 1, 125, 125, 125, 1,
1, 125, 11, 125, 125, 125, 11, 50, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 20, 20, 15, 27, 22, 20, 20, 1,
4, 4, 0, 0, 10, 5, 11, 14, 5, 37,
11, 16, 15, 59, 37, 15, 28, 32, 26, 50,
0, 0, 10, 5, 11, 14, 5, 37, 11, 16,
15, 59, 37, 15, 28, 32, 26, 50, 70, 37,
84, 27, 15, 15, 5, 0, 0, 22, 10, 32,
10, 48, 5, 27, 68, 14, 5, 48, 5, 27,
68, 14, 5, 48, 5, 27, 68, 14, 5, 11,
4, 20, 20, 30, 52, 30, 52, 14, 52, 4,
15, 52, 4, 15, 11, 54, 36, 20, 11, 30,
20, 4, 14, 108, 78, 54, 4, 48, 42, 30,
11, 68, 42, 20, 11, 2, 42, 14, 20, 14,
52, 26, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 36 */
14, 35, 6, 25, 49, 1, 125, 125, 125, 1,
1, 125, 13, 125, 125, 125, 13, 54, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 22, 22, 13, 25, 24, 22, 18, 1,
6, 6, 2, 2, 12, 3, 9, 14, 3, 35,
9, 18, 13, 57, 35, 13, 32, 34, 28, 54,
2, 2, 12, 3, 9, 14, 3, 35, 9, 18,
13, 57, 35, 13, 32, 34, 28, 54, 72, 39,
86, 25, 13, 13, 3, 2, 2, 24, 12, 34,
12, 50, 3, 25, 66, 14, 3, 50, 3, 25,
66, 14, 3, 50, 3, 25, 66, 14, 3, 9,
6, 18, 18, 30, 54, 30, 54, 14, 54, 6,
13, 54, 6, 13, 9, 56, 38, 22, 9, 30,
22, 6, 14, 112, 78, 56, 6, 50, 44, 30,
9, 66, 40, 18, 9, 1, 44, 12, 22, 14,
54, 24, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 37 */
14, 37, 6, 25, 49, 1, 125, 125, 125, 1,
1, 125, 15, 125, 125, 125, 15, 58, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 22, 22, 11, 25, 28, 22, 16, 1,
6, 6, 4, 4, 14, 1, 9, 14, 1, 33,
9, 20, 11, 57, 33, 11, 34, 36, 30, 58,
4, 4, 14, 1, 9, 14, 1, 33, 9, 20,
11, 57, 33, 11, 34, 36, 30, 58, 76, 39,
86, 25, 11, 11, 1, 4, 4, 28, 14, 36,
14, 52, 1, 25, 64, 14, 1, 52, 1, 25,
64, 14, 1, 52, 1, 25, 64, 14, 1, 9,
6, 16, 16, 30, 54, 30, 54, 14, 54, 6,
11, 54, 6, 11, 9, 60, 38, 22, 9, 30,
22, 6, 14, 114, 78, 60, 6, 52, 46, 30,
9, 64, 40, 16, 9, 3, 46, 10, 22, 14,
54, 24, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 38 */
14, 39, 6, 25, 49, 1, 125, 125, 125, 1,
1, 125, 15, 125, 125, 125, 15, 62, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 22, 22, 9, 25, 30, 22, 16, 1,
6, 6, 6, 6, 14, 1, 9, 14, 1, 33,
9, 22, 9, 57, 33, 9, 38, 38, 30, 62,
6, 6, 14, 1, 9, 14, 1, 33, 9, 22,
9, 57, 33, 9, 38, 38, 30, 62, 78, 39,
86, 25, 9, 9, 1, 6, 6, 30, 14, 38,
14, 54, 1, 25, 64, 14, 1, 54, 1, 25,
64, 14, 1, 54, 1, 25, 64, 14, 1, 9,
6, 16, 16, 30, 54, 30, 54, 14, 54, 6,
9, 54, 6, 9, 9, 62, 38, 22, 9, 30,
22, 6, 14, 118, 78, 62, 6, 54, 46, 30,
9, 64, 40, 16, 9, 7, 46, 8, 22, 14,
54, 24, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 39 */
14, 41, 8, 23, 49, 1, 125, 125, 125, 1,
1, 125, 17, 125, 125, 125, 17, 66, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 24, 24, 7, 23, 32, 24, 14, 1,
8, 8, 8, 8, 16, 0, 7, 14, 0, 31,
7, 24, 7, 55, 31, 7, 40, 40, 32, 66,
8, 8, 16, 0, 7, 14, 0, 31, 7, 24,
7, 55, 31, 7, 40, 40, 32, 66, 80, 41,
88, 23, 7, 7, 0, 8, 8, 32, 16, 40,
16, 56, 0, 23, 62, 14, 0, 56, 0, 23,
62, 14, 0, 56, 0, 23, 62, 14, 0, 7,
8, 14, 14, 30, 56, 30, 56, 14, 56, 8,
7, 56, 8, 7, 7, 64, 40, 24, 7, 30,
24, 8, 14, 120, 78, 64, 8, 56, 48, 30,
7, 62, 38, 14, 7, 9, 48, 6, 24, 14,
56, 22, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 40 */
14, 43, 8, 23, 49, 1, 125, 125, 125, 1,
1, 125, 19, 125, 125, 125, 19, 68, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 24, 24, 5, 23, 34, 24, 12, 1,
8, 8, 10, 10, 16, 0, 7, 14, 0, 31,
7, 26, 5, 55, 31, 5, 44, 42, 32, 68,
10, 10, 16, 0, 7, 14, 0, 31, 7, 26,
5, 55, 31, 5, 44, 42, 32, 68, 82, 41,
88, 23, 5, 5, 0, 10, 10, 34, 16, 42,
16, 58, 0, 23, 60, 14, 0, 58, 0, 23,
60, 14, 0, 58, 0, 23, 60, 14, 0, 7,
8, 12, 12, 30, 56, 30, 56, 14, 56, 8,
5, 56, 8, 5, 7, 66, 40, 24, 7, 30,
24, 8, 14, 124, 78, 66, 8, 58, 48, 30,
7, 60, 38, 12, 7, 13, 48, 4, 24, 14,
56, 22, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 41 */
14, 45, 8, 23, 49, 1, 125, 125, 125, 1,
1, 125, 19, 125, 125, 125, 19, 72, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 24, 24, 3, 23, 38, 24, 12, 1,
8, 8, 12, 12, 18, 2, 7, 14, 2, 29,
7, 28, 3, 55, 29, 3, 48, 44, 34, 72,
12, 12, 18, 2, 7, 14, 2, 29, 7, 28,
3, 55, 29, 3, 48, 44, 34, 72, 86, 41,
88, 23, 3, 3, 2, 12, 12, 38, 18, 44,
18, 60, 2, 23, 60, 14, 2, 60, 2, 23,
60, 14, 2, 60, 2, 23, 60, 14, 2, 7,
8, 12, 12, 30, 56, 30, 56, 14, 56, 8,
3, 56, 8, 3, 7, 70, 40, 24, 7, 30,
24, 8, 14, 124, 78, 70, 8, 60, 50, 30,
7, 60, 38, 12, 7, 17, 50, 2, 24, 14,
56, 22, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 42 */
14, 47, 10, 21, 49, 1, 125, 125, 125, 1,
1, 125, 21, 125, 125, 125, 21, 76, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 26, 26, 1, 21, 40, 26, 10, 1,
10, 10, 14, 14, 20, 4, 5, 14, 4, 27,
5, 30, 1, 53, 27, 1, 50, 46, 36, 76,
14, 14, 20, 4, 5, 14, 4, 27, 5, 30,
1, 53, 27, 1, 50, 46, 36, 76, 88, 43,
90, 21, 1, 1, 4, 14, 14, 40, 20, 46,
20, 62, 4, 21, 58, 14, 4, 62, 4, 21,
58, 14, 4, 62, 4, 21, 58, 14, 4, 5,
10, 10, 10, 30, 58, 30, 58, 14, 58, 10,
1, 58, 10, 1, 5, 72, 42, 26, 5, 30,
26, 10, 14, 124, 78, 72, 10, 62, 52, 30,
5, 58, 36, 10, 5, 19, 52, 0, 26, 14,
58, 20, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 43 */
14, 49, 10, 21, 49, 1, 125, 125, 125, 1,
1, 125, 21, 125, 125, 125, 21, 80, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 26, 26, 0, 21, 42, 26, 10, 1,
10, 10, 16, 16, 20, 4, 5, 14, 4, 27,
5, 32, 0, 53, 27, 0, 54, 48, 36, 80,
16, 16, 20, 4, 5, 14, 4, 27, 5, 32,
0, 53, 27, 0, 54, 48, 36, 80, 90, 43,
90, 21, 0, 0, 4, 16, 16, 42, 20, 48,
20, 64, 4, 21, 58, 14, 4, 64, 4, 21,
58, 14, 4, 64, 4, 21, 58, 14, 4, 5,
10, 10, 10, 30, 58, 30, 58, 14, 58, 10,
0, 58, 10, 0, 5, 74, 42, 26, 5, 30,
26, 10, 14, 124, 78, 74, 10, 64, 52, 30,
5, 58, 36, 10, 5, 23, 52, 1, 26, 14,
58, 20, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 44 */
14, 51, 10, 21, 49, 1, 125, 125, 125, 1,
1, 125, 23, 125, 125, 125, 23, 84, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 26, 26, 2, 21, 44, 26, 8, 1,
10, 10, 18, 18, 22, 6, 5, 14, 6, 25,
5, 34, 2, 53, 25, 2, 56, 50, 38, 84,
18, 18, 22, 6, 5, 14, 6, 25, 5, 34,
2, 53, 25, 2, 56, 50, 38, 84, 92, 43,
90, 21, 2, 2, 6, 18, 18, 44, 22, 50,
22, 66, 6, 21, 56, 14, 6, 66, 6, 21,
56, 14, 6, 66, 6, 21, 56, 14, 6, 5,
10, 8, 8, 30, 58, 30, 58, 14, 58, 10,
2, 58, 10, 2, 5, 76, 42, 26, 5, 30,
26, 10, 14, 124, 78, 76, 10, 66, 54, 30,
5, 56, 36, 8, 5, 25, 54, 3, 26, 14,
58, 20, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 45 */
14, 53, 12, 19, 49, 1, 125, 125, 125, 1,
1, 125, 25, 125, 125, 125, 25, 88, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 28, 28, 4, 19, 48, 28, 6, 1,
12, 12, 20, 20, 24, 8, 3, 14, 8, 23,
3, 36, 4, 51, 23, 4, 60, 52, 40, 88,
20, 20, 24, 8, 3, 14, 8, 23, 3, 36,
4, 51, 23, 4, 60, 52, 40, 88, 96, 45,
92, 19, 4, 4, 8, 20, 20, 48, 24, 52,
24, 68, 8, 19, 54, 14, 8, 68, 8, 19,
54, 14, 8, 68, 8, 19, 54, 14, 8, 3,
12, 6, 6, 30, 60, 30, 60, 14, 60, 12,
4, 60, 12, 4, 3, 80, 44, 28, 3, 30,
28, 12, 14, 124, 78, 80, 12, 68, 56, 30,
3, 54, 34, 6, 3, 29, 56, 5, 28, 14,
60, 18, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 46 */
14, 55, 12, 19, 49, 1, 125, 125, 125, 1,
1, 125, 25, 125, 125, 125, 25, 92, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 28, 28, 6, 19, 50, 28, 6, 1,
12, 12, 22, 22, 24, 8, 3, 14, 8, 23,
3, 38, 6, 51, 23, 6, 62, 54, 40, 92,
22, 22, 24, 8, 3, 14, 8, 23, 3, 38,
6, 51, 23, 6, 62, 54, 40, 92, 98, 45,
92, 19, 6, 6, 8, 22, 22, 50, 24, 54,
24, 70, 8, 19, 54, 14, 8, 70, 8, 19,
54, 14, 8, 70, 8, 19, 54, 14, 8, 3,
12, 6, 6, 30, 60, 30, 60, 14, 60, 12,
6, 60, 12, 6, 3, 82, 44, 28, 3, 30,
28, 12, 14, 124, 78, 82, 12, 70, 56, 30,
3, 54, 34, 6, 3, 31, 56, 7, 28, 14,
60, 18, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 47 */
14, 57, 12, 19, 49, 1, 125, 125, 125, 1,
1, 125, 27, 125, 125, 125, 27, 96, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 28, 28, 8, 19, 52, 28, 4, 1,
12, 12, 24, 24, 26, 10, 3, 14, 10, 21,
3, 40, 8, 51, 21, 8, 66, 56, 42, 96,
24, 24, 26, 10, 3, 14, 10, 21, 3, 40,
8, 51, 21, 8, 66, 56, 42, 96, 100, 45,
92, 19, 8, 8, 10, 24, 24, 52, 26, 56,
26, 72, 10, 19, 52, 14, 10, 72, 10, 19,
52, 14, 10, 72, 10, 19, 52, 14, 10, 3,
12, 4, 4, 30, 60, 30, 60, 14, 60, 12,
8, 60, 12, 8, 3, 84, 44, 28, 3, 30,
28, 12, 14, 124, 78, 84, 12, 72, 58, 30,
3, 52, 34, 4, 3, 35, 58, 9, 28, 14,
60, 18, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 48 */
14, 59, 12, 19, 49, 1, 125, 125, 125, 1,
1, 125, 29, 125, 125, 125, 29, 98, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 28, 28, 8, 19, 54, 28, 2, 1,
12, 12, 24, 24, 26, 10, 3, 14, 10, 21,
3, 40, 8, 51, 21, 8, 68, 56, 42, 98,
24, 24, 26, 10, 3, 14, 10, 21, 3, 40,
8, 51, 21, 8, 68, 56, 42, 98, 102, 47,
92, 19, 8, 8, 10, 24, 24, 54, 26, 56,
26, 72, 10, 19, 50, 14, 10, 72, 10, 19,
50, 14, 10, 72, 10, 19, 50, 14, 10, 3,
12, 2, 2, 30, 60, 30, 60, 14, 60, 12,
8, 60, 12, 8, 3, 86, 44, 28, 3, 30,
28, 12, 14, 124, 78, 86, 12, 72, 58, 30,
3, 50, 32, 2, 3, 39, 58, 11, 28, 14,
60, 16, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 49 */
14, 59, 14, 17, 49, 1, 125, 125, 125, 1,
1, 125, 29, 125, 125, 125, 29, 102, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 30, 30, 10, 17, 58, 30, 2, 1,
14, 14, 26, 26, 28, 12, 1, 14, 12, 19,
1, 42, 10, 49, 19, 10, 72, 58, 44, 102,
26, 26, 28, 12, 1, 14, 12, 19, 1, 42,
10, 49, 19, 10, 72, 58, 44, 102, 106, 47,
94, 17, 10, 10, 12, 26, 26, 58, 28, 58,
28, 74, 12, 17, 50, 14, 12, 74, 12, 17,
50, 14, 12, 74, 12, 17, 50, 14, 12, 1,
14, 2, 2, 30, 62, 30, 62, 14, 62, 14,
10, 62, 14, 10, 1, 90, 46, 30, 1, 30,
30, 14, 14, 124, 78, 90, 14, 74, 60, 30,
1, 50, 32, 2, 1, 41, 60, 11, 30, 14,
62, 16, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 50 */
14, 61, 14, 17, 49, 1, 125, 125, 125, 1,
1, 125, 31, 125, 125, 125, 31, 106, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 30, 30, 12, 17, 60, 30, 0, 1,
14, 14, 28, 28, 30, 14, 1, 14, 14, 17,
1, 44, 12, 49, 17, 12, 76, 60, 46, 106,
28, 28, 30, 14, 1, 14, 14, 17, 1, 44,
12, 49, 17, 12, 76, 60, 46, 106, 108, 47,
94, 17, 12, 12, 14, 28, 28, 60, 30, 60,
30, 76, 14, 17, 48, 14, 14, 76, 14, 17,
48, 14, 14, 76, 14, 17, 48, 14, 14, 1,
14, 0, 0, 30, 62, 30, 62, 14, 62, 14,
12, 62, 14, 12, 1, 92, 46, 30, 1, 30,
30, 14, 14, 124, 78, 92, 14, 76, 62, 30,
1, 48, 32, 0, 1, 45, 62, 13, 30, 14,
62, 16, 30, 30,
},
{
/* Context Tables for init_idc = 0, qp = 51 */
14, 63, 14, 17, 49, 1, 125, 125, 125, 1,
1, 125, 31, 125, 125, 125, 31, 110, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 14, 30, 30, 14, 17, 62, 30, 0, 1,
14, 14, 30, 30, 30, 14, 1, 14, 14, 17,
1, 46, 14, 49, 17, 14, 78, 62, 46, 110,
30, 30, 30, 14, 1, 14, 14, 17, 1, 46,
14, 49, 17, 14, 78, 62, 46, 110, 110, 47,
94, 17, 14, 14, 14, 30, 30, 62, 30, 62,
30, 78, 14, 17, 48, 14, 14, 78, 14, 17,
48, 14, 14, 78, 14, 17, 48, 14, 14, 1,
14, 0, 0, 30, 62, 30, 62, 14, 62, 14,
14, 62, 14, 14, 1, 94, 46, 30, 1, 30,
30, 14, 14, 124, 78, 94, 14, 78, 62, 30,
1, 48, 32, 0, 1, 47, 62, 15, 30, 14,
62, 16, 30, 30,
},
},
{
{
/* Context Tables for init_idc = 1, qp = 0 */
14, 14, 17, 17, 65, 1, 78, 14, 14, 1,
1, 78, 1, 17, 1, 1, 1, 30, 65, 1,
81, 81, 81, 81, 81, 14, 14, 33, 62, 30,
81, 33, 1, 65, 14, 81, 78, 17, 46, 1,
17, 17, 49, 65, 65, 65, 81, 81, 49, 81,
65, 65, 65, 81, 81, 81, 65, 33, 17, 33,
49, 65, 65, 65, 81, 81, 49, 81, 65, 65,
65, 81, 81, 81, 65, 33, 17, 33, 14, 33,
49, 1, 17, 1, 17, 14, 17, 17, 17, 81,
14, 62, 46, 33, 30, 14, 1, 62, 46, 33,
30, 14, 1, 62, 46, 33, 30, 14, 1, 1,
14, 17, 17, 17, 14, 17, 14, 46, 46, 46,
33, 46, 46, 33, 1, 94, 94, 46, 1, 30,
46, 62, 62, 62, 78, 30, 14, 14, 30, 14,
14, 124, 62, 46, 1, 46, 14, 62, 17, 46,
17, 1, 17, 46,
},
{
/* Context Tables for init_idc = 1, qp = 1 */
14, 14, 15, 15, 63, 1, 78, 14, 14, 1,
1, 78, 1, 15, 1, 1, 1, 30, 63, 0,
77, 77, 77, 75,