HEVC Test Model (HM)  HM-16.18
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TComCABACTables.cpp
Go to the documentation of this file.
1 /* The copyright in this software is being made available under the BSD
2  * License, included below. This software may be subject to other third party
3  * and contributor rights, including patent rights, and no such rights are
4  * granted under this license.
5  *
6  * Copyright (c) 2010-2017, ITU/ISO/IEC
7  * All rights reserved.
8  *
9  * Redistribution and use in source and binary forms, with or without
10  * modification, are permitted provided that the following conditions are met:
11  *
12  * * Redistributions of source code must retain the above copyright notice,
13  * this list of conditions and the following disclaimer.
14  * * Redistributions in binary form must reproduce the above copyright notice,
15  * this list of conditions and the following disclaimer in the documentation
16  * and/or other materials provided with the distribution.
17  * * Neither the name of the ITU/ISO/IEC nor the names of its contributors may
18  * be used to endorse or promote products derived from this software without
19  * specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
25  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
31  * THE POSSIBILITY OF SUCH DAMAGE.
32  */
33 
38 #include "TComCABACTables.h"
39 
42 
44 {
45  { 128, 176, 208, 240},
46  { 128, 167, 197, 227},
47  { 128, 158, 187, 216},
48  { 123, 150, 178, 205},
49  { 116, 142, 169, 195},
50  { 111, 135, 160, 185},
51  { 105, 128, 152, 175},
52  { 100, 122, 144, 166},
53  { 95, 116, 137, 158},
54  { 90, 110, 130, 150},
55  { 85, 104, 123, 142},
56  { 81, 99, 117, 135},
57  { 77, 94, 111, 128},
58  { 73, 89, 105, 122},
59  { 69, 85, 100, 116},
60  { 66, 80, 95, 110},
61  { 62, 76, 90, 104},
62  { 59, 72, 86, 99},
63  { 56, 69, 81, 94},
64  { 53, 65, 77, 89},
65  { 51, 62, 73, 85},
66  { 48, 59, 69, 80},
67  { 46, 56, 66, 76},
68  { 43, 53, 63, 72},
69  { 41, 50, 59, 69},
70  { 39, 48, 56, 65},
71  { 37, 45, 54, 62},
72  { 35, 43, 51, 59},
73  { 33, 41, 48, 56},
74  { 32, 39, 46, 53},
75  { 30, 37, 43, 50},
76  { 29, 35, 41, 48},
77  { 27, 33, 39, 45},
78  { 26, 31, 37, 43},
79  { 24, 30, 35, 41},
80  { 23, 28, 33, 39},
81  { 22, 27, 32, 37},
82  { 21, 26, 30, 35},
83  { 20, 24, 29, 33},
84  { 19, 23, 27, 31},
85  { 18, 22, 26, 30},
86  { 17, 21, 25, 28},
87  { 16, 20, 23, 27},
88  { 15, 19, 22, 25},
89  { 14, 18, 21, 24},
90  { 14, 17, 20, 23},
91  { 13, 16, 19, 22},
92  { 12, 15, 18, 21},
93  { 12, 14, 17, 20},
94  { 11, 14, 16, 19},
95  { 11, 13, 15, 18},
96  { 10, 12, 15, 17},
97  { 10, 12, 14, 16},
98  { 9, 11, 13, 15},
99  { 9, 11, 12, 14},
100  { 8, 10, 12, 14},
101  { 8, 9, 11, 13},
102  { 7, 9, 11, 12},
103  { 7, 9, 10, 12},
104  { 7, 8, 10, 11},
105  { 6, 8, 9, 11},
106  { 6, 7, 9, 10},
107  { 6, 7, 8, 9},
108  { 2, 2, 2, 2}
109 };
110 
112 {
113  6, 5, 4, 4,
114  3, 3, 3, 3,
115  2, 2, 2, 2,
116  2, 2, 2, 2,
117  1, 1, 1, 1,
118  1, 1, 1, 1,
119  1, 1, 1, 1,
120  1, 1, 1, 1
121 };
122 
static const UChar sm_aucLPSTable[1<< CONTEXT_STATE_BITS][4]
unsigned char UChar
Definition: TypeDef.h:208
static const Int CONTEXT_STATE_BITS
Definition: CommonDef.h:241
static class for CABAC tables
static const UChar sm_aucRenormTable[32]