• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /******************************************************************************
2 *
3 * Copyright (C) 2012 Ittiam Systems Pvt Ltd, Bangalore
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at:
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 ******************************************************************************/
18 /**
19 *******************************************************************************
20 * @file
21 *  ihevc_deblk_tables.c
22 *
23 * @brief
24 *  Contains tables used for deblock filters
25 *
26 * @author
27 *  Srinivas T
28 *
29 * @par List of Tables:
30 * gai4_ihevc_beta_table
31 * gai4_ihevc_tc_table
32 * gai4_ihevc_qp_table
33 *
34 * @remarks
35 *  None
36 *
37 *******************************************************************************
38 */
39 #include "ihevc_typedefs.h"
40 #include "ihevc_deblk_tables.h"
41 
42 /**
43  * Beta table for deblocking
44  * Table 8-10 - Derivation of threshold variables beta and tc from input Q
45  */
46 const WORD32 gai4_ihevc_beta_table[52] =
47 {    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
48      0,  0,  0,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15,
49     16, 17, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38,
50     40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64
51 };
52 
53 
54 /**
55  * Tc table for deblocking
56  * Table 8-10 - Derivation of threshold variables beta and tc from input Q
57  */
58 const WORD32 gai4_ihevc_tc_table[54] =
59 {
60      0,  0,  0,  0,  0,  0,  0,  0,  0,
61      0,  0,  0,  0,  0,  0,  0,  0,  0,
62      1,  1,  1,  1,  1,  1,  1,  1,  1,
63      2,  2,  2,  2,  3,  3,  3,  3,  4,
64      4,  4,  5,  5,  6,  6,  7,  8,  9,
65     10, 11, 13, 14, 16, 18, 20, 22, 24
66 };
67 
68 /**
69  * QP table for deblocking
70  * Table 8-9  Specification of QPC as a function of qPi
71  */
72 const WORD32 gai4_ihevc_qp_table[58] =
73 {
74      0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15, 16,
75     17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 29, 30, 31, 32,
76     33, 33, 34, 34, 35, 35, 36, 36, 37, 37, 38, 39, 40, 41, 42, 43, 44,
77     45, 46, 47, 48, 49, 50, 51
78 };
79