• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /******************************************************************************
2  *
3  * Copyright (C) 2018 The Android Open Source Project
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  * Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore
19 */
20 
21 /**
22 *******************************************************************************
23 * @file
24 *  ihevce_function_selector.h
25 *
26 * @brief
27 *  Structure definitions used in the decoder
28 *
29 * @author
30 *  ittiam
31 *
32 * @par List of Functions:
33 *
34 * @remarks
35 *  None
36 *
37 *******************************************************************************
38 */
39 
40 #ifndef _IHEVCE_FUNCTION_SELECTOR_H_
41 #define _IHEVCE_FUNCTION_SELECTOR_H_
42 
43 /*****************************************************************************/
44 /* Structure                                                                 */
45 /*****************************************************************************/
46 typedef struct
47 {
48     ihevc_deblk_chroma_horz_ft *ihevc_deblk_chroma_horz_fptr;
49     ihevc_deblk_chroma_vert_ft *ihevc_deblk_chroma_vert_fptr;
50     ihevc_deblk_chroma_horz_ft *ihevc_deblk_422chroma_horz_fptr;
51     ihevc_deblk_chroma_vert_ft *ihevc_deblk_422chroma_vert_fptr;
52     ihevc_deblk_luma_vert_ft *ihevc_deblk_luma_vert_fptr;
53     ihevc_deblk_luma_horz_ft *ihevc_deblk_luma_horz_fptr;
54     ihevc_inter_pred_ft *ihevc_inter_pred_chroma_copy_fptr;
55     ihevc_inter_pred_w16out_ft *ihevc_inter_pred_chroma_copy_w16out_fptr;
56     ihevc_inter_pred_ft *ihevc_inter_pred_chroma_horz_fptr;
57     ihevc_inter_pred_w16out_ft *ihevc_inter_pred_chroma_horz_w16out_fptr;
58     ihevc_inter_pred_ft *ihevc_inter_pred_chroma_vert_fptr;
59     ihevc_inter_pred_w16inp_ft *ihevc_inter_pred_chroma_vert_w16inp_fptr;
60     ihevc_inter_pred_w16inp_w16out_ft *ihevc_inter_pred_chroma_vert_w16inp_w16out_fptr;
61     ihevc_inter_pred_w16out_ft *ihevc_inter_pred_chroma_vert_w16out_fptr;
62     ihevc_inter_pred_ft *ihevc_inter_pred_luma_horz_fptr;
63     ihevc_inter_pred_ft *ihevc_inter_pred_luma_vert_fptr;
64     ihevc_inter_pred_w16out_ft *ihevc_inter_pred_luma_vert_w16out_fptr;
65     ihevc_inter_pred_w16inp_ft *ihevc_inter_pred_luma_vert_w16inp_fptr;
66     ihevc_inter_pred_ft *ihevc_inter_pred_luma_copy_fptr;
67     ihevc_inter_pred_w16out_ft *ihevc_inter_pred_luma_copy_w16out_fptr;
68     ihevc_inter_pred_w16out_ft *ihevc_inter_pred_luma_horz_w16out_fptr;
69     ihevc_inter_pred_w16inp_w16out_ft *ihevc_inter_pred_luma_vert_w16inp_w16out_fptr;
70     ihevc_intra_pred_chroma_ref_substitution_ft *ihevc_intra_pred_chroma_ref_substitution_fptr;
71     ihevc_intra_pred_luma_ref_substitution_ft *ihevc_intra_pred_luma_ref_substitution_fptr;
72     ihevc_intra_pred_ref_filtering_ft *ihevc_intra_pred_ref_filtering_fptr;
73     ihevc_intra_pred_chroma_dc_ft *ihevc_intra_pred_chroma_dc_fptr;
74     ihevc_intra_pred_chroma_horz_ft *ihevc_intra_pred_chroma_horz_fptr;
75     ihevc_intra_pred_chroma_mode2_ft *ihevc_intra_pred_chroma_mode2_fptr;
76     ihevc_intra_pred_chroma_mode_18_34_ft *ihevc_intra_pred_chroma_mode_18_34_fptr;
77     ihevc_intra_pred_chroma_mode_27_to_33_ft *ihevc_intra_pred_chroma_mode_27_to_33_fptr;
78     ihevc_intra_pred_chroma_mode_3_to_9_ft *ihevc_intra_pred_chroma_mode_3_to_9_fptr;
79     ihevc_intra_pred_chroma_planar_ft *ihevc_intra_pred_chroma_planar_fptr;
80     ihevc_intra_pred_chroma_ver_ft *ihevc_intra_pred_chroma_ver_fptr;
81     ihevc_intra_pred_chroma_mode_11_to_17_ft *ihevc_intra_pred_chroma_mode_11_to_17_fptr;
82     ihevc_intra_pred_chroma_mode_19_to_25_ft *ihevc_intra_pred_chroma_mode_19_to_25_fptr;
83     ihevc_intra_pred_luma_mode_11_to_17_ft *ihevc_intra_pred_luma_mode_11_to_17_fptr;
84     ihevc_intra_pred_luma_mode_19_to_25_ft *ihevc_intra_pred_luma_mode_19_to_25_fptr;
85     ihevc_intra_pred_luma_dc_ft *ihevc_intra_pred_luma_dc_fptr;
86     ihevc_intra_pred_luma_horz_ft *ihevc_intra_pred_luma_horz_fptr;
87     ihevc_intra_pred_luma_mode2_ft *ihevc_intra_pred_luma_mode2_fptr;
88     ihevc_intra_pred_luma_mode_18_34_ft *ihevc_intra_pred_luma_mode_18_34_fptr;
89     ihevc_intra_pred_luma_mode_27_to_33_ft *ihevc_intra_pred_luma_mode_27_to_33_fptr;
90     ihevc_intra_pred_luma_mode_3_to_9_ft *ihevc_intra_pred_luma_mode_3_to_9_fptr;
91     ihevc_intra_pred_luma_planar_ft *ihevc_intra_pred_luma_planar_fptr;
92     ihevc_intra_pred_luma_ver_ft *ihevc_intra_pred_luma_ver_fptr;
93     ihevc_itrans_recon_4x4_ttype1_ft *ihevc_itrans_recon_4x4_ttype1_fptr;
94     ihevc_itrans_recon_4x4_ft *ihevc_itrans_recon_4x4_fptr;
95     ihevc_itrans_recon_8x8_ft *ihevc_itrans_recon_8x8_fptr;
96     ihevc_itrans_recon_16x16_ft *ihevc_itrans_recon_16x16_fptr;
97     ihevc_itrans_recon_32x32_ft *ihevc_itrans_recon_32x32_fptr;
98     ihevc_chroma_itrans_recon_4x4_ft *ihevc_chroma_itrans_recon_4x4_fptr;
99     ihevc_chroma_itrans_recon_8x8_ft *ihevc_chroma_itrans_recon_8x8_fptr;
100     ihevc_chroma_itrans_recon_16x16_ft *ihevc_chroma_itrans_recon_16x16_fptr;
101     ihevc_memcpy_mul_8_ft *ihevc_memcpy_mul_8_fptr;
102     ihevc_memcpy_ft *ihevc_memcpy_fptr;
103     ihevc_memset_mul_8_ft *ihevc_memset_mul_8_fptr;
104     ihevc_memset_ft *ihevc_memset_fptr;
105     ihevc_memset_16bit_mul_8_ft *ihevc_memset_16bit_mul_8_fptr;
106     ihevc_memset_16bit_ft *ihevc_memset_16bit_fptr;
107 
108     ihevc_weighted_pred_bi_ft *ihevc_weighted_pred_bi_fptr;
109     ihevc_weighted_pred_bi_default_ft *ihevc_weighted_pred_bi_default_fptr;
110     ihevc_weighted_pred_uni_ft *ihevc_weighted_pred_uni_fptr;
111     ihevc_weighted_pred_chroma_bi_ft *ihevc_weighted_pred_chroma_bi_fptr;
112     ihevc_weighted_pred_chroma_bi_default_ft *ihevc_weighted_pred_chroma_bi_default_fptr;
113     ihevc_weighted_pred_chroma_uni_ft *ihevc_weighted_pred_chroma_uni_fptr;
114     ihevc_resi_trans_4x4_ttype1_ft *ihevc_resi_trans_4x4_ttype1_fptr;
115     ihevc_resi_trans_4x4_ft *ihevc_resi_trans_4x4_fptr;
116     ihevc_resi_trans_8x8_ft *ihevc_resi_trans_8x8_fptr;
117     ihevc_resi_trans_16x16_ft *ihevc_resi_trans_16x16_fptr;
118     ihevc_resi_trans_32x32_ft *ihevc_resi_trans_32x32_fptr;
119     ihevc_quant_iquant_ssd_ft *ihevc_quant_iquant_ssd_fptr;
120     ihevc_quant_iquant_ssd_rdoq_ft *ihevc_quant_iquant_ssd_rdoq_fptr;
121     ihevc_quant_iquant_ssd_flat_scale_mat_ft *ihevc_quant_iquant_ssd_flat_scale_mat_fptr;
122     ihevc_quant_iquant_ssd_flat_scale_mat_rdoq_ft *ihevc_quant_iquant_ssd_flat_scale_mat_rdoq_fptr;
123     ihevc_q_iq_ssd_var_rnd_fact_ft *ihevc_q_iq_ssd_var_rnd_fact_fptr;
124     ihevc_q_iq_ssd_flat_scale_mat_var_rnd_fact_ft *ihevc_q_iq_ssd_flat_scale_mat_var_rnd_fact_fptr;
125     ihevc_quant_iquant_ssd_ft *ihevc_quant_iquant_fptr;
126     ihevc_quant_iquant_ssd_rdoq_ft *ihevc_quant_iquant_rdoq_fptr;
127     ihevc_quant_iquant_ssd_flat_scale_mat_ft *ihevc_quant_iquant_flat_scale_mat_fptr;
128     ihevc_quant_iquant_ssd_flat_scale_mat_rdoq_ft *ihevc_quant_iquant_flat_scale_mat_rdoq_fptr;
129     ihevc_q_iq_ssd_var_rnd_fact_ft *ihevc_q_iq_var_rnd_fact_fptr;
130     ihevc_q_iq_ssd_flat_scale_mat_var_rnd_fact_ft *ihevc_q_iq_flat_scale_mat_var_rnd_fact_fptr;
131     ihevc_pad_horz_luma_ft *ihevc_pad_horz_luma_fptr;
132     ihevc_pad_horz_chroma_ft *ihevc_pad_horz_chroma_fptr;
133     ihevc_pad_vert_ft *ihevc_pad_vert_fptr;
134     ihevc_pad_top_ft *ihevc_pad_top_fptr;
135     ihevc_pad_bottom_ft *ihevc_pad_bottom_fptr;
136     ihevc_pad_left_luma_ft *ihevc_pad_left_luma_fptr;
137     ihevc_pad_left_chroma_ft *ihevc_pad_left_chroma_fptr;
138     ihevc_pad_right_luma_ft *ihevc_pad_right_luma_fptr;
139     ihevc_pad_right_chroma_ft *ihevc_pad_right_chroma_fptr;
140     ihevc_sao_edge_offset_class0_ft *ihevc_sao_edge_offset_class0_fptr;
141     ihevc_sao_edge_offset_class1_ft *ihevc_sao_edge_offset_class1_fptr;
142     ihevc_sao_edge_offset_class2_ft *ihevc_sao_edge_offset_class2_fptr;
143     ihevc_sao_edge_offset_class3_ft *ihevc_sao_edge_offset_class3_fptr;
144 
145     ihevc_sao_edge_offset_class0_chroma_ft *ihevc_sao_edge_offset_class0_chroma_fptr;
146     ihevc_sao_edge_offset_class1_chroma_ft *ihevc_sao_edge_offset_class1_chroma_fptr;
147     ihevc_sao_edge_offset_class2_chroma_ft *ihevc_sao_edge_offset_class2_chroma_fptr;
148     ihevc_sao_edge_offset_class3_chroma_ft *ihevc_sao_edge_offset_class3_chroma_fptr;
149 } func_selector_t;
150 
151 /*****************************************************************************/
152 /* Extern Function Declarations                                              */
153 /*****************************************************************************/
154 IV_ARCH_T ihevce_default_arch(void);
155 
156 void ihevce_init_function_ptr(void *pv_enc_ctxt, IV_ARCH_T e_processor_arch);
157 
158 #endif /* _IHEVCE_FUNCTION_SELECTOR_H_ */
159