1 // This file is generated. Do not edit.
2 #ifndef AV1_RTCD_H_
3 #define AV1_RTCD_H_
4 
5 #ifdef RTCD_C
6 #define RTCD_EXTERN
7 #else
8 #define RTCD_EXTERN extern
9 #endif
10 
11 /*
12  * AV1
13  */
14 
15 #include "aom/aom_integer.h"
16 #include "aom_dsp/txfm_common.h"
17 #include "av1/common/common.h"
18 #include "av1/common/enums.h"
19 #include "av1/common/quant_common.h"
20 #include "av1/common/filter.h"
21 #include "av1/common/convolve.h"
22 #include "av1/common/av1_txfm.h"
23 #include "av1/common/odintrin.h"
24 #include "av1/common/restoration.h"
25 
26 struct macroblockd;
27 
28 /* Encoder forward decls */
29 struct macroblock;
30 struct txfm_param;
31 struct aom_variance_vtable;
32 struct search_site_config;
33 struct yv12_buffer_config;
34 
35 /* Function pointers return by CfL functions */
36 typedef void (*cfl_subsample_lbd_fn)(const uint8_t *input, int input_stride,
37                                      uint16_t *output_q3);
38 
39 typedef void (*cfl_subsample_hbd_fn)(const uint16_t *input, int input_stride,
40                                      uint16_t *output_q3);
41 
42 typedef void (*cfl_subtract_average_fn)(const uint16_t *src, int16_t *dst);
43 
44 typedef void (*cfl_predict_lbd_fn)(const int16_t *src, uint8_t *dst,
45                                    int dst_stride, int alpha_q3);
46 
47 typedef void (*cfl_predict_hbd_fn)(const int16_t *src, uint16_t *dst,
48                                    int dst_stride, int alpha_q3, int bd);
49 
50 #ifdef __cplusplus
51 extern "C" {
52 #endif
53 
54 void apply_selfguided_restoration_c(const uint8_t *dat, int width, int height, int stride, int eps, const int *xqd, uint8_t *dst, int dst_stride, int32_t *tmpbuf, int bit_depth, int highbd);
55 #define apply_selfguided_restoration apply_selfguided_restoration_c
56 
57 void av1_build_compound_diffwtd_mask_c(uint8_t *mask, DIFFWTD_MASK_TYPE mask_type, const uint8_t *src0, int src0_stride, const uint8_t *src1, int src1_stride, int h, int w);
58 #define av1_build_compound_diffwtd_mask av1_build_compound_diffwtd_mask_c
59 
60 void av1_build_compound_diffwtd_mask_d16_c(uint8_t *mask, DIFFWTD_MASK_TYPE mask_type, const CONV_BUF_TYPE *src0, int src0_stride, const CONV_BUF_TYPE *src1, int src1_stride, int h, int w, ConvolveParams *conv_params, int bd);
61 #define av1_build_compound_diffwtd_mask_d16 av1_build_compound_diffwtd_mask_d16_c
62 
63 void av1_build_compound_diffwtd_mask_highbd_c(uint8_t *mask, DIFFWTD_MASK_TYPE mask_type, const uint8_t *src0, int src0_stride, const uint8_t *src1, int src1_stride, int h, int w, int bd);
64 #define av1_build_compound_diffwtd_mask_highbd av1_build_compound_diffwtd_mask_highbd_c
65 
66 void av1_convolve_2d_copy_sr_c(const uint8_t *src, int src_stride, uint8_t *dst, int dst_stride, int w, int h, const InterpFilterParams *filter_params_x, const InterpFilterParams *filter_params_y, const int subpel_x_q4, const int subpel_y_q4, ConvolveParams *conv_params);
67 #define av1_convolve_2d_copy_sr av1_convolve_2d_copy_sr_c
68 
69 void av1_convolve_2d_scale_c(const uint8_t *src, int src_stride, uint8_t *dst, int dst_stride, int w, int h, const InterpFilterParams *filter_params_x, const InterpFilterParams *filter_params_y, const int subpel_x_qn, const int x_step_qn, const int subpel_y_q4, const int y_step_qn, ConvolveParams *conv_params);
70 #define av1_convolve_2d_scale av1_convolve_2d_scale_c
71 
72 void av1_convolve_2d_sr_c(const uint8_t *src, int src_stride, uint8_t *dst, int dst_stride, int w, int h, const InterpFilterParams *filter_params_x, const InterpFilterParams *filter_params_y, const int subpel_x_q4, const int subpel_y_q4, ConvolveParams *conv_params);
73 #define av1_convolve_2d_sr av1_convolve_2d_sr_c
74 
75 void av1_convolve_horiz_rs_c(const uint8_t *src, int src_stride, uint8_t *dst, int dst_stride, int w, int h, const int16_t *x_filters, int x0_qn, int x_step_qn);
76 #define av1_convolve_horiz_rs av1_convolve_horiz_rs_c
77 
78 void av1_convolve_x_sr_c(const uint8_t *src, int src_stride, uint8_t *dst, int dst_stride, int w, int h, const InterpFilterParams *filter_params_x, const InterpFilterParams *filter_params_y, const int subpel_x_q4, const int subpel_y_q4, ConvolveParams *conv_params);
79 #define av1_convolve_x_sr av1_convolve_x_sr_c
80 
81 void av1_convolve_y_sr_c(const uint8_t *src, int src_stride, uint8_t *dst, int dst_stride, int w, int h, const InterpFilterParams *filter_params_x, const InterpFilterParams *filter_params_y, const int subpel_x_q4, const int subpel_y_q4, ConvolveParams *conv_params);
82 #define av1_convolve_y_sr av1_convolve_y_sr_c
83 
84 void av1_dr_prediction_z1_c(uint8_t *dst, ptrdiff_t stride, int bw, int bh, const uint8_t *above, const uint8_t *left, int upsample_above, int dx, int dy);
85 #define av1_dr_prediction_z1 av1_dr_prediction_z1_c
86 
87 void av1_dr_prediction_z2_c(uint8_t *dst, ptrdiff_t stride, int bw, int bh, const uint8_t *above, const uint8_t *left, int upsample_above, int upsample_left, int dx, int dy);
88 #define av1_dr_prediction_z2 av1_dr_prediction_z2_c
89 
90 void av1_dr_prediction_z3_c(uint8_t *dst, ptrdiff_t stride, int bw, int bh, const uint8_t *above, const uint8_t *left, int upsample_left, int dx, int dy);
91 #define av1_dr_prediction_z3 av1_dr_prediction_z3_c
92 
93 void av1_filter_intra_edge_c(uint8_t *p, int sz, int strength);
94 #define av1_filter_intra_edge av1_filter_intra_edge_c
95 
96 void av1_filter_intra_edge_high_c(uint16_t *p, int sz, int strength);
97 #define av1_filter_intra_edge_high av1_filter_intra_edge_high_c
98 
99 void av1_filter_intra_predictor_c(uint8_t *dst, ptrdiff_t stride, TX_SIZE tx_size, const uint8_t *above, const uint8_t *left, int mode);
100 #define av1_filter_intra_predictor av1_filter_intra_predictor_c
101 
102 void av1_highbd_convolve8_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h, int bps);
103 #define av1_highbd_convolve8 av1_highbd_convolve8_c
104 
105 void av1_highbd_convolve8_horiz_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h, int bps);
106 #define av1_highbd_convolve8_horiz av1_highbd_convolve8_horiz_c
107 
108 void av1_highbd_convolve8_vert_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h, int bps);
109 #define av1_highbd_convolve8_vert av1_highbd_convolve8_vert_c
110 
111 void av1_highbd_convolve_2d_copy_sr_c(const uint16_t *src, int src_stride, uint16_t *dst, int dst_stride, int w, int h, const InterpFilterParams *filter_params_x, const InterpFilterParams *filter_params_y, const int subpel_x_q4, const int subpel_y_q4, ConvolveParams *conv_params, int bd);
112 #define av1_highbd_convolve_2d_copy_sr av1_highbd_convolve_2d_copy_sr_c
113 
114 void av1_highbd_convolve_2d_scale_c(const uint16_t *src, int src_stride, uint16_t *dst, int dst_stride, int w, int h, const InterpFilterParams *filter_params_x, const InterpFilterParams *filter_params_y, const int subpel_x_q4, const int x_step_qn, const int subpel_y_q4, const int y_step_qn, ConvolveParams *conv_params, int bd);
115 #define av1_highbd_convolve_2d_scale av1_highbd_convolve_2d_scale_c
116 
117 void av1_highbd_convolve_2d_sr_c(const uint16_t *src, int src_stride, uint16_t *dst, int dst_stride, int w, int h, const InterpFilterParams *filter_params_x, const InterpFilterParams *filter_params_y, const int subpel_x_q4, const int subpel_y_q4, ConvolveParams *conv_params, int bd);
118 #define av1_highbd_convolve_2d_sr av1_highbd_convolve_2d_sr_c
119 
120 void av1_highbd_convolve_avg_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h, int bps);
121 #define av1_highbd_convolve_avg av1_highbd_convolve_avg_c
122 
123 void av1_highbd_convolve_copy_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h, int bps);
124 #define av1_highbd_convolve_copy av1_highbd_convolve_copy_c
125 
126 void av1_highbd_convolve_horiz_rs_c(const uint16_t *src, int src_stride, uint16_t *dst, int dst_stride, int w, int h, const int16_t *x_filters, int x0_qn, int x_step_qn, int bd);
127 #define av1_highbd_convolve_horiz_rs av1_highbd_convolve_horiz_rs_c
128 
129 void av1_highbd_convolve_x_sr_c(const uint16_t *src, int src_stride, uint16_t *dst, int dst_stride, int w, int h, const InterpFilterParams *filter_params_x, const InterpFilterParams *filter_params_y, const int subpel_x_q4, const int subpel_y_q4, ConvolveParams *conv_params, int bd);
130 #define av1_highbd_convolve_x_sr av1_highbd_convolve_x_sr_c
131 
132 void av1_highbd_convolve_y_sr_c(const uint16_t *src, int src_stride, uint16_t *dst, int dst_stride, int w, int h, const InterpFilterParams *filter_params_x, const InterpFilterParams *filter_params_y, const int subpel_x_q4, const int subpel_y_q4, ConvolveParams *conv_params, int bd);
133 #define av1_highbd_convolve_y_sr av1_highbd_convolve_y_sr_c
134 
135 void av1_highbd_dr_prediction_z1_c(uint16_t *dst, ptrdiff_t stride, int bw, int bh, const uint16_t *above, const uint16_t *left, int upsample_above, int dx, int dy, int bd);
136 #define av1_highbd_dr_prediction_z1 av1_highbd_dr_prediction_z1_c
137 
138 void av1_highbd_dr_prediction_z2_c(uint16_t *dst, ptrdiff_t stride, int bw, int bh, const uint16_t *above, const uint16_t *left, int upsample_above, int upsample_left, int dx, int dy, int bd);
139 #define av1_highbd_dr_prediction_z2 av1_highbd_dr_prediction_z2_c
140 
141 void av1_highbd_dr_prediction_z3_c(uint16_t *dst, ptrdiff_t stride, int bw, int bh, const uint16_t *above, const uint16_t *left, int upsample_left, int dx, int dy, int bd);
142 #define av1_highbd_dr_prediction_z3 av1_highbd_dr_prediction_z3_c
143 
144 void av1_highbd_inv_txfm_add_c(const tran_low_t *dqcoeff, uint8_t *dst, int stride, const TxfmParam *txfm_param);
145 #define av1_highbd_inv_txfm_add av1_highbd_inv_txfm_add_c
146 
147 void av1_highbd_inv_txfm_add_16x16_c(const tran_low_t *dqcoeff, uint8_t *dst, int stride, const TxfmParam *txfm_param);
148 #define av1_highbd_inv_txfm_add_16x16 av1_highbd_inv_txfm_add_16x16_c
149 
150 void av1_highbd_inv_txfm_add_16x8_c(const tran_low_t *dqcoeff, uint8_t *dst, int stride, const TxfmParam *txfm_param);
151 #define av1_highbd_inv_txfm_add_16x8 av1_highbd_inv_txfm_add_16x8_c
152 
153 void av1_highbd_inv_txfm_add_32x32_c(const tran_low_t *dqcoeff, uint8_t *dst, int stride, const TxfmParam *txfm_param);
154 #define av1_highbd_inv_txfm_add_32x32 av1_highbd_inv_txfm_add_32x32_c
155 
156 void av1_highbd_inv_txfm_add_4x4_c(const tran_low_t *dqcoeff, uint8_t *dst, int stride, const TxfmParam *txfm_param);
157 #define av1_highbd_inv_txfm_add_4x4 av1_highbd_inv_txfm_add_4x4_c
158 
159 void av1_highbd_inv_txfm_add_8x16_c(const tran_low_t *dqcoeff, uint8_t *dst, int stride, const TxfmParam *txfm_param);
160 #define av1_highbd_inv_txfm_add_8x16 av1_highbd_inv_txfm_add_8x16_c
161 
162 void av1_highbd_inv_txfm_add_8x8_c(const tran_low_t *dqcoeff, uint8_t *dst, int stride, const TxfmParam *txfm_param);
163 #define av1_highbd_inv_txfm_add_8x8 av1_highbd_inv_txfm_add_8x8_c
164 
165 void av1_highbd_iwht4x4_16_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride, int bd);
166 #define av1_highbd_iwht4x4_16_add av1_highbd_iwht4x4_16_add_c
167 
168 void av1_highbd_iwht4x4_1_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride, int bd);
169 #define av1_highbd_iwht4x4_1_add av1_highbd_iwht4x4_1_add_c
170 
171 void av1_highbd_jnt_convolve_2d_c(const uint16_t *src, int src_stride, uint16_t *dst, int dst_stride, int w, int h, const InterpFilterParams *filter_params_x, const InterpFilterParams *filter_params_y, const int subpel_x_q4, const int subpel_y_q4, ConvolveParams *conv_params, int bd);
172 #define av1_highbd_jnt_convolve_2d av1_highbd_jnt_convolve_2d_c
173 
174 void av1_highbd_jnt_convolve_2d_copy_c(const uint16_t *src, int src_stride, uint16_t *dst, int dst_stride, int w, int h, const InterpFilterParams *filter_params_x, const InterpFilterParams *filter_params_y, const int subpel_x_q4, const int subpel_y_q4, ConvolveParams *conv_params, int bd);
175 #define av1_highbd_jnt_convolve_2d_copy av1_highbd_jnt_convolve_2d_copy_c
176 
177 void av1_highbd_jnt_convolve_x_c(const uint16_t *src, int src_stride, uint16_t *dst, int dst_stride, int w, int h, const InterpFilterParams *filter_params_x, const InterpFilterParams *filter_params_y, const int subpel_x_q4, const int subpel_y_q4, ConvolveParams *conv_params, int bd);
178 #define av1_highbd_jnt_convolve_x av1_highbd_jnt_convolve_x_c
179 
180 void av1_highbd_jnt_convolve_y_c(const uint16_t *src, int src_stride, uint16_t *dst, int dst_stride, int w, int h, const InterpFilterParams *filter_params_x, const InterpFilterParams *filter_params_y, const int subpel_x_q4, const int subpel_y_q4, ConvolveParams *conv_params, int bd);
181 #define av1_highbd_jnt_convolve_y av1_highbd_jnt_convolve_y_c
182 
183 void av1_highbd_warp_affine_c(const int32_t *mat, const uint16_t *ref, int width, int height, int stride, uint16_t *pred, int p_col, int p_row, int p_width, int p_height, int p_stride, int subsampling_x, int subsampling_y, int bd, ConvolveParams *conv_params, int16_t alpha, int16_t beta, int16_t gamma, int16_t delta);
184 #define av1_highbd_warp_affine av1_highbd_warp_affine_c
185 
186 void av1_highbd_wiener_convolve_add_src_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h, const ConvolveParams *conv_params, int bps);
187 #define av1_highbd_wiener_convolve_add_src av1_highbd_wiener_convolve_add_src_c
188 
189 void av1_inv_txfm2d_add_16x16_c(const int32_t *input, uint16_t *output, int stride, TX_TYPE tx_type, int bd);
190 #define av1_inv_txfm2d_add_16x16 av1_inv_txfm2d_add_16x16_c
191 
192 void av1_inv_txfm2d_add_16x32_c(const int32_t *input, uint16_t *output, int stride, TX_TYPE tx_type, int bd);
193 #define av1_inv_txfm2d_add_16x32 av1_inv_txfm2d_add_16x32_c
194 
195 void av1_inv_txfm2d_add_16x4_c(const int32_t *input, uint16_t *output, int stride, TX_TYPE tx_type, int bd);
196 #define av1_inv_txfm2d_add_16x4 av1_inv_txfm2d_add_16x4_c
197 
198 void av1_inv_txfm2d_add_16x64_c(const int32_t *input, uint16_t *output, int stride, TX_TYPE tx_type, int bd);
199 #define av1_inv_txfm2d_add_16x64 av1_inv_txfm2d_add_16x64_c
200 
201 void av1_inv_txfm2d_add_16x8_c(const int32_t *input, uint16_t *output, int stride, TX_TYPE tx_type, int bd);
202 #define av1_inv_txfm2d_add_16x8 av1_inv_txfm2d_add_16x8_c
203 
204 void av1_inv_txfm2d_add_32x16_c(const int32_t *input, uint16_t *output, int stride, TX_TYPE tx_type, int bd);
205 #define av1_inv_txfm2d_add_32x16 av1_inv_txfm2d_add_32x16_c
206 
207 void av1_inv_txfm2d_add_32x32_c(const int32_t *input, uint16_t *output, int stride, TX_TYPE tx_type, int bd);
208 #define av1_inv_txfm2d_add_32x32 av1_inv_txfm2d_add_32x32_c
209 
210 void av1_inv_txfm2d_add_32x64_c(const int32_t *input, uint16_t *output, int stride, TX_TYPE tx_type, int bd);
211 #define av1_inv_txfm2d_add_32x64 av1_inv_txfm2d_add_32x64_c
212 
213 void av1_inv_txfm2d_add_32x8_c(const int32_t *input, uint16_t *output, int stride, TX_TYPE tx_type, int bd);
214 #define av1_inv_txfm2d_add_32x8 av1_inv_txfm2d_add_32x8_c
215 
216 void av1_inv_txfm2d_add_4x16_c(const int32_t *input, uint16_t *output, int stride, TX_TYPE tx_type, int bd);
217 #define av1_inv_txfm2d_add_4x16 av1_inv_txfm2d_add_4x16_c
218 
219 void av1_inv_txfm2d_add_4x4_c(const int32_t *input, uint16_t *output, int stride, TX_TYPE tx_type, int bd);
220 #define av1_inv_txfm2d_add_4x4 av1_inv_txfm2d_add_4x4_c
221 
222 void av1_inv_txfm2d_add_4x8_c(const int32_t *input, uint16_t *output, int stride, TX_TYPE tx_type, int bd);
223 #define av1_inv_txfm2d_add_4x8 av1_inv_txfm2d_add_4x8_c
224 
225 void av1_inv_txfm2d_add_64x16_c(const int32_t *input, uint16_t *output, int stride, TX_TYPE tx_type, int bd);
226 #define av1_inv_txfm2d_add_64x16 av1_inv_txfm2d_add_64x16_c
227 
228 void av1_inv_txfm2d_add_64x32_c(const int32_t *input, uint16_t *output, int stride, TX_TYPE tx_type, int bd);
229 #define av1_inv_txfm2d_add_64x32 av1_inv_txfm2d_add_64x32_c
230 
231 void av1_inv_txfm2d_add_64x64_c(const int32_t *input, uint16_t *output, int stride, TX_TYPE tx_type, int bd);
232 #define av1_inv_txfm2d_add_64x64 av1_inv_txfm2d_add_64x64_c
233 
234 void av1_inv_txfm2d_add_8x16_c(const int32_t *input, uint16_t *output, int stride, TX_TYPE tx_type, int bd);
235 #define av1_inv_txfm2d_add_8x16 av1_inv_txfm2d_add_8x16_c
236 
237 void av1_inv_txfm2d_add_8x32_c(const int32_t *input, uint16_t *output, int stride, TX_TYPE tx_type, int bd);
238 #define av1_inv_txfm2d_add_8x32 av1_inv_txfm2d_add_8x32_c
239 
240 void av1_inv_txfm2d_add_8x4_c(const int32_t *input, uint16_t *output, int stride, TX_TYPE tx_type, int bd);
241 #define av1_inv_txfm2d_add_8x4 av1_inv_txfm2d_add_8x4_c
242 
243 void av1_inv_txfm2d_add_8x8_c(const int32_t *input, uint16_t *output, int stride, TX_TYPE tx_type, int bd);
244 #define av1_inv_txfm2d_add_8x8 av1_inv_txfm2d_add_8x8_c
245 
246 void av1_inv_txfm_add_c(const tran_low_t *dqcoeff, uint8_t *dst, int stride, const TxfmParam *txfm_param);
247 #define av1_inv_txfm_add av1_inv_txfm_add_c
248 
249 void av1_jnt_convolve_2d_c(const uint8_t *src, int src_stride, uint8_t *dst, int dst_stride, int w, int h, const InterpFilterParams *filter_params_x, const InterpFilterParams *filter_params_y, const int subpel_x_q4, const int subpel_y_q4, ConvolveParams *conv_params);
250 #define av1_jnt_convolve_2d av1_jnt_convolve_2d_c
251 
252 void av1_jnt_convolve_2d_copy_c(const uint8_t *src, int src_stride, uint8_t *dst, int dst_stride, int w, int h, const InterpFilterParams *filter_params_x, const InterpFilterParams *filter_params_y, const int subpel_x_q4, const int subpel_y_q4, ConvolveParams *conv_params);
253 #define av1_jnt_convolve_2d_copy av1_jnt_convolve_2d_copy_c
254 
255 void av1_jnt_convolve_x_c(const uint8_t *src, int src_stride, uint8_t *dst, int dst_stride, int w, int h, const InterpFilterParams *filter_params_x, const InterpFilterParams *filter_params_y, const int subpel_x_q4, const int subpel_y_q4, ConvolveParams *conv_params);
256 #define av1_jnt_convolve_x av1_jnt_convolve_x_c
257 
258 void av1_jnt_convolve_y_c(const uint8_t *src, int src_stride, uint8_t *dst, int dst_stride, int w, int h, const InterpFilterParams *filter_params_x, const InterpFilterParams *filter_params_y, const int subpel_x_q4, const int subpel_y_q4, ConvolveParams *conv_params);
259 #define av1_jnt_convolve_y av1_jnt_convolve_y_c
260 
261 int av1_selfguided_restoration_c(const uint8_t *dgd8, int width, int height,
262                                  int dgd_stride, int32_t *flt0, int32_t *flt1, int flt_stride,
263                                  int sgr_params_idx, int bit_depth, int highbd);
264 #define av1_selfguided_restoration av1_selfguided_restoration_c
265 
266 void av1_upsample_intra_edge_c(uint8_t *p, int sz);
267 #define av1_upsample_intra_edge av1_upsample_intra_edge_c
268 
269 void av1_upsample_intra_edge_high_c(uint16_t *p, int sz, int bd);
270 #define av1_upsample_intra_edge_high av1_upsample_intra_edge_high_c
271 
272 void av1_warp_affine_c(const int32_t *mat, const uint8_t *ref, int width, int height, int stride, uint8_t *pred, int p_col, int p_row, int p_width, int p_height, int p_stride, int subsampling_x, int subsampling_y, ConvolveParams *conv_params, int16_t alpha, int16_t beta, int16_t gamma, int16_t delta);
273 #define av1_warp_affine av1_warp_affine_c
274 
275 void av1_wiener_convolve_add_src_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h, const ConvolveParams *conv_params);
276 #define av1_wiener_convolve_add_src av1_wiener_convolve_add_src_c
277 
278 void cdef_filter_block_c(uint8_t *dst8, uint16_t *dst16, int dstride, const uint16_t *in, int pri_strength, int sec_strength, int dir, int pri_damping, int sec_damping, int bsize, int max, int coeff_shift);
279 #define cdef_filter_block cdef_filter_block_c
280 
281 int cdef_find_dir_c(const uint16_t *img, int stride, int32_t *var, int coeff_shift);
282 #define cdef_find_dir cdef_find_dir_c
283 
284 cfl_subsample_hbd_fn cfl_get_luma_subsampling_420_hbd_c(TX_SIZE tx_size);
285 #define cfl_get_luma_subsampling_420_hbd cfl_get_luma_subsampling_420_hbd_c
286 
287 cfl_subsample_lbd_fn cfl_get_luma_subsampling_420_lbd_c(TX_SIZE tx_size);
288 #define cfl_get_luma_subsampling_420_lbd cfl_get_luma_subsampling_420_lbd_c
289 
290 cfl_subsample_hbd_fn cfl_get_luma_subsampling_422_hbd_c(TX_SIZE tx_size);
291 #define cfl_get_luma_subsampling_422_hbd cfl_get_luma_subsampling_422_hbd_c
292 
293 cfl_subsample_lbd_fn cfl_get_luma_subsampling_422_lbd_c(TX_SIZE tx_size);
294 #define cfl_get_luma_subsampling_422_lbd cfl_get_luma_subsampling_422_lbd_c
295 
296 cfl_subsample_hbd_fn cfl_get_luma_subsampling_444_hbd_c(TX_SIZE tx_size);
297 #define cfl_get_luma_subsampling_444_hbd cfl_get_luma_subsampling_444_hbd_c
298 
299 cfl_subsample_lbd_fn cfl_get_luma_subsampling_444_lbd_c(TX_SIZE tx_size);
300 #define cfl_get_luma_subsampling_444_lbd cfl_get_luma_subsampling_444_lbd_c
301 
302 void copy_rect8_16bit_to_16bit_c(uint16_t *dst, int dstride, const uint16_t *src, int sstride, int v, int h);
303 #define copy_rect8_16bit_to_16bit copy_rect8_16bit_to_16bit_c
304 
305 void copy_rect8_8bit_to_16bit_c(uint16_t *dst, int dstride, const uint8_t *src, int sstride, int v, int h);
306 #define copy_rect8_8bit_to_16bit copy_rect8_8bit_to_16bit_c
307 
308 cfl_predict_hbd_fn get_predict_hbd_fn_c(TX_SIZE tx_size);
309 #define get_predict_hbd_fn get_predict_hbd_fn_c
310 
311 cfl_predict_lbd_fn get_predict_lbd_fn_c(TX_SIZE tx_size);
312 #define get_predict_lbd_fn get_predict_lbd_fn_c
313 
314 cfl_subtract_average_fn get_subtract_average_fn_c(TX_SIZE tx_size);
315 #define get_subtract_average_fn get_subtract_average_fn_c
316 
317 void av1_rtcd(void);
318 
319 #include "config/aom_config.h"
320 
321 #ifdef RTCD_C
setup_rtcd_internal(void)322 static void setup_rtcd_internal(void)
323 {
324 }
325 #endif
326 
327 #ifdef __cplusplus
328 }  // extern "C"
329 #endif
330 
331 #endif
332