1 // This file is generated. Do not edit.
2 #ifndef VP8_RTCD_H_
3 #define VP8_RTCD_H_
4
5 #ifdef RTCD_C
6 #define RTCD_EXTERN
7 #else
8 #define RTCD_EXTERN extern
9 #endif
10
11 /*
12 * VP8
13 */
14
15 struct blockd;
16 struct macroblockd;
17 struct loop_filter_info;
18
19 /* Encoder forward decls */
20 struct block;
21 struct macroblock;
22 struct variance_vtable;
23 union int_mv;
24 struct yv12_buffer_config;
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29
30 void vp8_bilinear_predict16x16_c(unsigned char* src_ptr,
31 int src_pixels_per_line,
32 int xoffset,
33 int yoffset,
34 unsigned char* dst_ptr,
35 int dst_pitch);
36 #define vp8_bilinear_predict16x16 vp8_bilinear_predict16x16_c
37
38 void vp8_bilinear_predict4x4_c(unsigned char* src_ptr,
39 int src_pixels_per_line,
40 int xoffset,
41 int yoffset,
42 unsigned char* dst_ptr,
43 int dst_pitch);
44 #define vp8_bilinear_predict4x4 vp8_bilinear_predict4x4_c
45
46 void vp8_bilinear_predict8x4_c(unsigned char* src_ptr,
47 int src_pixels_per_line,
48 int xoffset,
49 int yoffset,
50 unsigned char* dst_ptr,
51 int dst_pitch);
52 #define vp8_bilinear_predict8x4 vp8_bilinear_predict8x4_c
53
54 void vp8_bilinear_predict8x8_c(unsigned char* src_ptr,
55 int src_pixels_per_line,
56 int xoffset,
57 int yoffset,
58 unsigned char* dst_ptr,
59 int dst_pitch);
60 #define vp8_bilinear_predict8x8 vp8_bilinear_predict8x8_c
61
62 void vp8_blend_b_c(unsigned char* y,
63 unsigned char* u,
64 unsigned char* v,
65 int y_1,
66 int u_1,
67 int v_1,
68 int alpha,
69 int stride);
70 #define vp8_blend_b vp8_blend_b_c
71
72 void vp8_blend_mb_inner_c(unsigned char* y,
73 unsigned char* u,
74 unsigned char* v,
75 int y_1,
76 int u_1,
77 int v_1,
78 int alpha,
79 int stride);
80 #define vp8_blend_mb_inner vp8_blend_mb_inner_c
81
82 void vp8_blend_mb_outer_c(unsigned char* y,
83 unsigned char* u,
84 unsigned char* v,
85 int y_1,
86 int u_1,
87 int v_1,
88 int alpha,
89 int stride);
90 #define vp8_blend_mb_outer vp8_blend_mb_outer_c
91
92 int vp8_block_error_c(short* coeff, short* dqcoeff);
93 #define vp8_block_error vp8_block_error_c
94
95 void vp8_copy32xn_c(const unsigned char* src_ptr,
96 int src_stride,
97 unsigned char* dst_ptr,
98 int dst_stride,
99 int height);
100 #define vp8_copy32xn vp8_copy32xn_c
101
102 void vp8_copy_mem16x16_c(unsigned char* src,
103 int src_stride,
104 unsigned char* dst,
105 int dst_stride);
106 #define vp8_copy_mem16x16 vp8_copy_mem16x16_c
107
108 void vp8_copy_mem8x4_c(unsigned char* src,
109 int src_stride,
110 unsigned char* dst,
111 int dst_stride);
112 #define vp8_copy_mem8x4 vp8_copy_mem8x4_c
113
114 void vp8_copy_mem8x8_c(unsigned char* src,
115 int src_stride,
116 unsigned char* dst,
117 int dst_stride);
118 #define vp8_copy_mem8x8 vp8_copy_mem8x8_c
119
120 void vp8_dc_only_idct_add_c(short input_dc,
121 unsigned char* pred_ptr,
122 int pred_stride,
123 unsigned char* dst_ptr,
124 int dst_stride);
125 #define vp8_dc_only_idct_add vp8_dc_only_idct_add_c
126
127 int vp8_denoiser_filter_c(unsigned char* mc_running_avg_y,
128 int mc_avg_y_stride,
129 unsigned char* running_avg_y,
130 int avg_y_stride,
131 unsigned char* sig,
132 int sig_stride,
133 unsigned int motion_magnitude,
134 int increase_denoising);
135 #define vp8_denoiser_filter vp8_denoiser_filter_c
136
137 int vp8_denoiser_filter_uv_c(unsigned char* mc_running_avg,
138 int mc_avg_stride,
139 unsigned char* running_avg,
140 int avg_stride,
141 unsigned char* sig,
142 int sig_stride,
143 unsigned int motion_magnitude,
144 int increase_denoising);
145 #define vp8_denoiser_filter_uv vp8_denoiser_filter_uv_c
146
147 void vp8_dequant_idct_add_c(short* input,
148 short* dq,
149 unsigned char* dest,
150 int stride);
151 #define vp8_dequant_idct_add vp8_dequant_idct_add_c
152
153 void vp8_dequant_idct_add_uv_block_c(short* q,
154 short* dq,
155 unsigned char* dst_u,
156 unsigned char* dst_v,
157 int stride,
158 char* eobs);
159 #define vp8_dequant_idct_add_uv_block vp8_dequant_idct_add_uv_block_c
160
161 void vp8_dequant_idct_add_y_block_c(short* q,
162 short* dq,
163 unsigned char* dst,
164 int stride,
165 char* eobs);
166 #define vp8_dequant_idct_add_y_block vp8_dequant_idct_add_y_block_c
167
168 void vp8_dequantize_b_c(struct blockd*, short* DQC);
169 #define vp8_dequantize_b vp8_dequantize_b_c
170
171 int vp8_diamond_search_sad_c(struct macroblock* x,
172 struct block* b,
173 struct blockd* d,
174 union int_mv* ref_mv,
175 union int_mv* best_mv,
176 int search_param,
177 int sad_per_bit,
178 int* num00,
179 struct variance_vtable* fn_ptr,
180 int* mvcost[2],
181 union int_mv* center_mv);
182 #define vp8_diamond_search_sad vp8_diamond_search_sad_c
183
184 void vp8_fast_quantize_b_c(struct block*, struct blockd*);
185 #define vp8_fast_quantize_b vp8_fast_quantize_b_c
186
187 void vp8_filter_by_weight16x16_c(unsigned char* src,
188 int src_stride,
189 unsigned char* dst,
190 int dst_stride,
191 int src_weight);
192 #define vp8_filter_by_weight16x16 vp8_filter_by_weight16x16_c
193
194 void vp8_filter_by_weight4x4_c(unsigned char* src,
195 int src_stride,
196 unsigned char* dst,
197 int dst_stride,
198 int src_weight);
199 #define vp8_filter_by_weight4x4 vp8_filter_by_weight4x4_c
200
201 void vp8_filter_by_weight8x8_c(unsigned char* src,
202 int src_stride,
203 unsigned char* dst,
204 int dst_stride,
205 int src_weight);
206 #define vp8_filter_by_weight8x8 vp8_filter_by_weight8x8_c
207
208 int vp8_full_search_sad_c(struct macroblock* x,
209 struct block* b,
210 struct blockd* d,
211 union int_mv* ref_mv,
212 int sad_per_bit,
213 int distance,
214 struct variance_vtable* fn_ptr,
215 int* mvcost[2],
216 union int_mv* center_mv);
217 #define vp8_full_search_sad vp8_full_search_sad_c
218
219 void vp8_loop_filter_bh_c(unsigned char* y_ptr,
220 unsigned char* u_ptr,
221 unsigned char* v_ptr,
222 int y_stride,
223 int uv_stride,
224 struct loop_filter_info* lfi);
225 #define vp8_loop_filter_bh vp8_loop_filter_bh_c
226
227 void vp8_loop_filter_bv_c(unsigned char* y_ptr,
228 unsigned char* u_ptr,
229 unsigned char* v_ptr,
230 int y_stride,
231 int uv_stride,
232 struct loop_filter_info* lfi);
233 #define vp8_loop_filter_bv vp8_loop_filter_bv_c
234
235 void vp8_loop_filter_mbh_c(unsigned char* y_ptr,
236 unsigned char* u_ptr,
237 unsigned char* v_ptr,
238 int y_stride,
239 int uv_stride,
240 struct loop_filter_info* lfi);
241 #define vp8_loop_filter_mbh vp8_loop_filter_mbh_c
242
243 void vp8_loop_filter_mbv_c(unsigned char* y_ptr,
244 unsigned char* u_ptr,
245 unsigned char* v_ptr,
246 int y_stride,
247 int uv_stride,
248 struct loop_filter_info* lfi);
249 #define vp8_loop_filter_mbv vp8_loop_filter_mbv_c
250
251 void vp8_loop_filter_bhs_c(unsigned char* y_ptr,
252 int y_stride,
253 const unsigned char* blimit);
254 #define vp8_loop_filter_simple_bh vp8_loop_filter_bhs_c
255
256 void vp8_loop_filter_bvs_c(unsigned char* y_ptr,
257 int y_stride,
258 const unsigned char* blimit);
259 #define vp8_loop_filter_simple_bv vp8_loop_filter_bvs_c
260
261 void vp8_loop_filter_simple_horizontal_edge_c(unsigned char* y_ptr,
262 int y_stride,
263 const unsigned char* blimit);
264 #define vp8_loop_filter_simple_mbh vp8_loop_filter_simple_horizontal_edge_c
265
266 void vp8_loop_filter_simple_vertical_edge_c(unsigned char* y_ptr,
267 int y_stride,
268 const unsigned char* blimit);
269 #define vp8_loop_filter_simple_mbv vp8_loop_filter_simple_vertical_edge_c
270
271 int vp8_mbblock_error_c(struct macroblock* mb, int dc);
272 #define vp8_mbblock_error vp8_mbblock_error_c
273
274 int vp8_mbuverror_c(struct macroblock* mb);
275 #define vp8_mbuverror vp8_mbuverror_c
276
277 int vp8_refining_search_sad_c(struct macroblock* x,
278 struct block* b,
279 struct blockd* d,
280 union int_mv* ref_mv,
281 int error_per_bit,
282 int search_range,
283 struct variance_vtable* fn_ptr,
284 int* mvcost[2],
285 union int_mv* center_mv);
286 #define vp8_refining_search_sad vp8_refining_search_sad_c
287
288 void vp8_regular_quantize_b_c(struct block*, struct blockd*);
289 #define vp8_regular_quantize_b vp8_regular_quantize_b_c
290
291 void vp8_short_fdct4x4_c(short* input, short* output, int pitch);
292 #define vp8_short_fdct4x4 vp8_short_fdct4x4_c
293
294 void vp8_short_fdct8x4_c(short* input, short* output, int pitch);
295 #define vp8_short_fdct8x4 vp8_short_fdct8x4_c
296
297 void vp8_short_idct4x4llm_c(short* input,
298 unsigned char* pred_ptr,
299 int pred_stride,
300 unsigned char* dst_ptr,
301 int dst_stride);
302 #define vp8_short_idct4x4llm vp8_short_idct4x4llm_c
303
304 void vp8_short_inv_walsh4x4_c(short* input, short* mb_dqcoeff);
305 #define vp8_short_inv_walsh4x4 vp8_short_inv_walsh4x4_c
306
307 void vp8_short_inv_walsh4x4_1_c(short* input, short* mb_dqcoeff);
308 #define vp8_short_inv_walsh4x4_1 vp8_short_inv_walsh4x4_1_c
309
310 void vp8_short_walsh4x4_c(short* input, short* output, int pitch);
311 #define vp8_short_walsh4x4 vp8_short_walsh4x4_c
312
313 void vp8_sixtap_predict16x16_c(unsigned char* src_ptr,
314 int src_pixels_per_line,
315 int xoffset,
316 int yoffset,
317 unsigned char* dst_ptr,
318 int dst_pitch);
319 #define vp8_sixtap_predict16x16 vp8_sixtap_predict16x16_c
320
321 void vp8_sixtap_predict4x4_c(unsigned char* src_ptr,
322 int src_pixels_per_line,
323 int xoffset,
324 int yoffset,
325 unsigned char* dst_ptr,
326 int dst_pitch);
327 #define vp8_sixtap_predict4x4 vp8_sixtap_predict4x4_c
328
329 void vp8_sixtap_predict8x4_c(unsigned char* src_ptr,
330 int src_pixels_per_line,
331 int xoffset,
332 int yoffset,
333 unsigned char* dst_ptr,
334 int dst_pitch);
335 #define vp8_sixtap_predict8x4 vp8_sixtap_predict8x4_c
336
337 void vp8_sixtap_predict8x8_c(unsigned char* src_ptr,
338 int src_pixels_per_line,
339 int xoffset,
340 int yoffset,
341 unsigned char* dst_ptr,
342 int dst_pitch);
343 #define vp8_sixtap_predict8x8 vp8_sixtap_predict8x8_c
344
345 void vp8_rtcd(void);
346
347 #include "vpx_config.h"
348
349 #ifdef RTCD_C
setup_rtcd_internal(void)350 static void setup_rtcd_internal(void) {}
351 #endif
352
353 #ifdef __cplusplus
354 } // extern "C"
355 #endif
356
357 #endif
358