• 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_trans_tables.h
22 *
23 * @brief
24 *  Tables for forward and inverse transform
25 *
26 * @author
27 *  Ittiam
28 *
29 * @remarks
30 *  None
31 *
32 *******************************************************************************
33 */
34 #ifndef _IHEVC_TRANS_TABLES_H_
35 #define _IHEVC_TRANS_TABLES_H_
36 
37 
38 #include "ihevc_defs.h"
39 
40 extern const WORD32 g_ihevc_iquant_scales[6];
41 
42 extern const WORD16 g_ihevc_iquant_intr_scales[6][8];
43 
44 extern const WORD32 g_ihevc_iquant_scales_flat_scale[6];
45 
46 extern const WORD32 g_ihevc_quant_scales[6];
47 
48 extern const WORD16 g_ai2_ihevc_trans_dst_4[4][4];
49 
50 extern const WORD16 g_ai2_ihevc_trans_4[4][4];
51 
52 extern const WORD16 g_ai2_ihevc_trans_4_transpose[4][4];
53 
54 extern const WORD16 g_ai2_ihevc_trans_8[8][8];
55 
56 extern const WORD16 g_ai2_ihevc_trans_16[16][16];
57 extern const WORD32 g_ai4_ihevc_trans_16[16][8];
58 extern const WORD16 g_ai2_ihevc_trans_16_transpose[1][16];
59 extern const WORD16 g_ai2_ihevc_trans_32_transpose[1][32];
60 extern const WORD16 g_ai2_ihevc_trans_32[32][32];
61 extern const WORD32 g_ai4_ihevc_trans_32[32][16];
62 
63 extern const WORD32 g_ai4_ihevc_trans_dst_intr_4[3][4];
64 
65 extern const WORD32 g_ai4_ihevc_trans_4_intr[3][4];
66 extern const WORD16 g_ai2_ihevc_trans_4_intr[8];
67 
68 extern const WORD32 g_ai4_ihevc_trans_8_intr[7][4];
69 extern const WORD16 g_ai2_ihevc_trans_8_intr[8][8];
70 
71 
72 extern const WORD32 g_ai4_ihevc_trans_4_ttype1[3][4];
73 
74 extern const WORD32 g_ai4_ihevc_trans_4_ttype0[3][4];
75 
76 extern const WORD32 g_ai4_ihevc_trans_intr_even_8[3][4];
77 
78 extern const WORD32 g_ai4_ihevc_trans_intr_odd_8[4][4];
79 
80 extern const WORD32 g_ai4_ihevc_trans_16_even[7][4];
81 
82 extern const WORD32 g_ai4_ihevc_trans_16_odd[8][4];
83 
84 extern const WORD32 g_ai2_ihevc_trans_32_intr_8[8][4];
85 extern const WORD32 g_ai2_ihevc_trans_32_intr_16[15][4];
86 
87 extern const WORD16 g_ai2_ihevc_trans_16_intr_even[12][8];
88 
89 extern const WORD16 g_ai2_ihevc_trans_16_intr_odd[32][8];
90 
91 
92 extern const WORD16 g_ai2_ihevc_trans_32_intr_odd[32][16];
93 
94 extern const WORD16 g_ai2_ihevc_trans_32_intr_even[22][8];
95 
96 #ifndef DISABLE_AVX2
97 extern const WORD16 g_ai2_ihevc_trans_8_intr_avx2[8][16];
98 extern const WORD32 g_ai4_ihevc_trans_8_intr_avx2[7][8];
99 extern const WORD16 g_ai2_ihevc_trans_16_intr_odd_avx2[32][16];
100 extern const WORD16 g_ai2_ihevc_trans_16_intr_even_avx2[12][16];
101 extern const WORD32 g_ai2_ihevc_trans_32_intr_8_avx2[8][8];
102 extern const WORD32 g_ai2_ihevc_trans_32_intr_16_avx2[15][8];
103 #endif
104 
105 extern MEM_ALIGN16 const WORD16 g_ai2_ihevc_trans_16_even_packed[12][8];
106 extern MEM_ALIGN16 const WORD16 g_ai2_ihevc_trans_32_intr_packed[32][8];
107 extern MEM_ALIGN16 const WORD16 g_ai2_ihevc_trans_32_intr_odd_packed[128][8];
108 
109 extern MEM_ALIGN16 const WORD16 g_ai2_ihevc_trans_16_even[12][8];
110 extern MEM_ALIGN16 const WORD16 g_ai2_ihevc_trans_16_odd[32][8];
111 
112 extern MEM_ALIGN16 const WORD16 g_ai2_ihevc_trans_intr_even_8[4][8];
113 extern MEM_ALIGN16 const WORD16 g_ai2_ihevc_trans_intr_odd_8[8][8];
114 
115 extern const WORD16 g_ai2_ihevc_trans_intr_4[4][8];
116 
117 extern const UWORD8 IHEVCE_CHROMA_SHUFFLEMASK_HBD[8];
118 
119 #endif /*_IHEVC_TRANS_TABLES_H_*/
120