Home | History | Annotate | Download | only in common
      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_quant_scales[6];
     45 
     46 extern const WORD16 g_ai2_ihevc_trans_dst_4[4][4];
     47 
     48 extern const WORD16 g_ai2_ihevc_trans_4[4][4];
     49 
     50 extern const WORD16 g_ai2_ihevc_trans_4_transpose[4][4];
     51 
     52 extern const WORD16 g_ai2_ihevc_trans_8[8][8];
     53 
     54 extern const WORD16 g_ai2_ihevc_trans_16[16][16];
     55 extern const WORD16 g_ai2_ihevc_trans_16_transpose[1][16];
     56 extern const WORD16 g_ai2_ihevc_trans_32_transpose[1][32];
     57 extern const WORD16 g_ai2_ihevc_trans_32[32][32];
     58 
     59 
     60 extern const WORD32 g_ai4_ihevc_trans_dst_intr_4[3][4];
     61 
     62 extern const WORD32 g_ai4_ihevc_trans_4_intr[3][4];
     63 extern const WORD16 g_ai2_ihevc_trans_4_intr[8];
     64 
     65 extern const WORD32 g_ai4_ihevc_trans_8_intr[7][4];
     66 extern const WORD16 g_ai2_ihevc_trans_8_intr[8][8];
     67 
     68 
     69 extern const WORD32 g_ai4_ihevc_trans_4_ttype1[3][4];
     70 
     71 extern const WORD32 g_ai4_ihevc_trans_4_ttype0[3][4];
     72 
     73 extern const WORD32 g_ai4_ihevc_trans_intr_even_8[3][4];
     74 
     75 extern const WORD32 g_ai4_ihevc_trans_intr_odd_8[4][4];
     76 
     77 extern const WORD32 g_ai4_ihevc_trans_16_even[7][4];
     78 
     79 extern const WORD32 g_ai4_ihevc_trans_16_odd[8][4];
     80 
     81 extern const WORD32 g_ai2_ihevc_trans_32_intr_8[8][4];
     82 extern const WORD32 g_ai2_ihevc_trans_32_intr_16[15][4];
     83 
     84 extern const WORD16 g_ai2_ihevc_trans_16_intr_even[12][8];
     85 
     86 extern const WORD16 g_ai2_ihevc_trans_16_intr_odd[32][8];
     87 
     88 
     89 extern const WORD16 g_ai2_ihevc_trans_32_intr_odd[32][16];
     90 
     91 extern const WORD16 g_ai2_ihevc_trans_32_intr_even[22][8];
     92 
     93 #ifndef DISABLE_AVX2
     94 extern const WORD16 g_ai2_ihevc_trans_8_intr_avx2[8][16];
     95 extern const WORD32 g_ai4_ihevc_trans_8_intr_avx2[7][8];
     96 extern const WORD16 g_ai2_ihevc_trans_16_intr_odd_avx2[32][16];
     97 extern const WORD16 g_ai2_ihevc_trans_16_intr_even_avx2[12][16];
     98 extern const WORD32 g_ai2_ihevc_trans_32_intr_8_avx2[8][8];
     99 extern const WORD32 g_ai2_ihevc_trans_32_intr_16_avx2[15][8];
    100 #endif
    101 
    102 extern MEM_ALIGN16 const WORD16 g_ai2_ihevc_trans_16_even_packed[12][8];
    103 extern MEM_ALIGN16 const WORD16 g_ai2_ihevc_trans_32_intr_packed[32][8];
    104 extern MEM_ALIGN16 const WORD16 g_ai2_ihevc_trans_32_intr_odd_packed[128][8];
    105 
    106 extern MEM_ALIGN16 const WORD16 g_ai2_ihevc_trans_16_even[12][8];
    107 extern MEM_ALIGN16 const WORD16 g_ai2_ihevc_trans_16_odd[32][8];
    108 
    109 extern MEM_ALIGN16 const WORD16 g_ai2_ihevc_trans_intr_even_8[4][8];
    110 extern MEM_ALIGN16 const WORD16 g_ai2_ihevc_trans_intr_odd_8[8][8];
    111 
    112 extern const WORD16 g_ai2_ihevc_trans_intr_4[4][8];
    113 
    114 extern const UWORD8 IHEVCE_CHROMA_SHUFFLEMASK_HBD[8];
    115 
    116 #endif /*_IHEVC_TRANS_TABLES_H_*/
    117