Upstream version 5.34.92.0
[platform/framework/web/crosswalk.git] / src / third_party / libvpx / source / config / nacl / vp9_rtcd.h
1 #ifndef VP9_RTCD_H_
2 #define VP9_RTCD_H_
3
4 #ifdef RTCD_C
5 #define RTCD_EXTERN
6 #else
7 #define RTCD_EXTERN extern
8 #endif
9
10 /*
11  * VP9
12  */
13
14 #include "vpx/vpx_integer.h"
15 #include "vp9/common/vp9_enums.h"
16
17 struct macroblockd;
18
19 /* Encoder forward decls */
20 struct macroblock;
21 struct vp9_variance_vtable;
22
23 #define DEC_MVCOSTS int *mvjcost, int *mvcost[2]
24 struct mv;
25 union int_mv;
26 struct yv12_buffer_config;
27
28 void vp9_d207_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
29 #define vp9_d207_predictor_4x4 vp9_d207_predictor_4x4_c
30
31 void vp9_d45_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
32 #define vp9_d45_predictor_4x4 vp9_d45_predictor_4x4_c
33
34 void vp9_d63_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
35 #define vp9_d63_predictor_4x4 vp9_d63_predictor_4x4_c
36
37 void vp9_h_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
38 #define vp9_h_predictor_4x4 vp9_h_predictor_4x4_c
39
40 void vp9_d117_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
41 #define vp9_d117_predictor_4x4 vp9_d117_predictor_4x4_c
42
43 void vp9_d135_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
44 #define vp9_d135_predictor_4x4 vp9_d135_predictor_4x4_c
45
46 void vp9_d153_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
47 #define vp9_d153_predictor_4x4 vp9_d153_predictor_4x4_c
48
49 void vp9_v_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
50 #define vp9_v_predictor_4x4 vp9_v_predictor_4x4_c
51
52 void vp9_tm_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
53 #define vp9_tm_predictor_4x4 vp9_tm_predictor_4x4_c
54
55 void vp9_dc_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
56 #define vp9_dc_predictor_4x4 vp9_dc_predictor_4x4_c
57
58 void vp9_dc_top_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
59 #define vp9_dc_top_predictor_4x4 vp9_dc_top_predictor_4x4_c
60
61 void vp9_dc_left_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
62 #define vp9_dc_left_predictor_4x4 vp9_dc_left_predictor_4x4_c
63
64 void vp9_dc_128_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
65 #define vp9_dc_128_predictor_4x4 vp9_dc_128_predictor_4x4_c
66
67 void vp9_d207_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
68 #define vp9_d207_predictor_8x8 vp9_d207_predictor_8x8_c
69
70 void vp9_d45_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
71 #define vp9_d45_predictor_8x8 vp9_d45_predictor_8x8_c
72
73 void vp9_d63_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
74 #define vp9_d63_predictor_8x8 vp9_d63_predictor_8x8_c
75
76 void vp9_h_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
77 #define vp9_h_predictor_8x8 vp9_h_predictor_8x8_c
78
79 void vp9_d117_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
80 #define vp9_d117_predictor_8x8 vp9_d117_predictor_8x8_c
81
82 void vp9_d135_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
83 #define vp9_d135_predictor_8x8 vp9_d135_predictor_8x8_c
84
85 void vp9_d153_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
86 #define vp9_d153_predictor_8x8 vp9_d153_predictor_8x8_c
87
88 void vp9_v_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
89 #define vp9_v_predictor_8x8 vp9_v_predictor_8x8_c
90
91 void vp9_tm_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
92 #define vp9_tm_predictor_8x8 vp9_tm_predictor_8x8_c
93
94 void vp9_dc_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
95 #define vp9_dc_predictor_8x8 vp9_dc_predictor_8x8_c
96
97 void vp9_dc_top_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
98 #define vp9_dc_top_predictor_8x8 vp9_dc_top_predictor_8x8_c
99
100 void vp9_dc_left_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
101 #define vp9_dc_left_predictor_8x8 vp9_dc_left_predictor_8x8_c
102
103 void vp9_dc_128_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
104 #define vp9_dc_128_predictor_8x8 vp9_dc_128_predictor_8x8_c
105
106 void vp9_d207_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
107 #define vp9_d207_predictor_16x16 vp9_d207_predictor_16x16_c
108
109 void vp9_d45_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
110 #define vp9_d45_predictor_16x16 vp9_d45_predictor_16x16_c
111
112 void vp9_d63_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
113 #define vp9_d63_predictor_16x16 vp9_d63_predictor_16x16_c
114
115 void vp9_h_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
116 #define vp9_h_predictor_16x16 vp9_h_predictor_16x16_c
117
118 void vp9_d117_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
119 #define vp9_d117_predictor_16x16 vp9_d117_predictor_16x16_c
120
121 void vp9_d135_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
122 #define vp9_d135_predictor_16x16 vp9_d135_predictor_16x16_c
123
124 void vp9_d153_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
125 #define vp9_d153_predictor_16x16 vp9_d153_predictor_16x16_c
126
127 void vp9_v_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
128 #define vp9_v_predictor_16x16 vp9_v_predictor_16x16_c
129
130 void vp9_tm_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
131 #define vp9_tm_predictor_16x16 vp9_tm_predictor_16x16_c
132
133 void vp9_dc_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
134 #define vp9_dc_predictor_16x16 vp9_dc_predictor_16x16_c
135
136 void vp9_dc_top_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
137 #define vp9_dc_top_predictor_16x16 vp9_dc_top_predictor_16x16_c
138
139 void vp9_dc_left_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
140 #define vp9_dc_left_predictor_16x16 vp9_dc_left_predictor_16x16_c
141
142 void vp9_dc_128_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
143 #define vp9_dc_128_predictor_16x16 vp9_dc_128_predictor_16x16_c
144
145 void vp9_d207_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
146 #define vp9_d207_predictor_32x32 vp9_d207_predictor_32x32_c
147
148 void vp9_d45_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
149 #define vp9_d45_predictor_32x32 vp9_d45_predictor_32x32_c
150
151 void vp9_d63_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
152 #define vp9_d63_predictor_32x32 vp9_d63_predictor_32x32_c
153
154 void vp9_h_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
155 #define vp9_h_predictor_32x32 vp9_h_predictor_32x32_c
156
157 void vp9_d117_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
158 #define vp9_d117_predictor_32x32 vp9_d117_predictor_32x32_c
159
160 void vp9_d135_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
161 #define vp9_d135_predictor_32x32 vp9_d135_predictor_32x32_c
162
163 void vp9_d153_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
164 #define vp9_d153_predictor_32x32 vp9_d153_predictor_32x32_c
165
166 void vp9_v_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
167 #define vp9_v_predictor_32x32 vp9_v_predictor_32x32_c
168
169 void vp9_tm_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
170 #define vp9_tm_predictor_32x32 vp9_tm_predictor_32x32_c
171
172 void vp9_dc_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
173 #define vp9_dc_predictor_32x32 vp9_dc_predictor_32x32_c
174
175 void vp9_dc_top_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
176 #define vp9_dc_top_predictor_32x32 vp9_dc_top_predictor_32x32_c
177
178 void vp9_dc_left_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
179 #define vp9_dc_left_predictor_32x32 vp9_dc_left_predictor_32x32_c
180
181 void vp9_dc_128_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
182 #define vp9_dc_128_predictor_32x32 vp9_dc_128_predictor_32x32_c
183
184 void vp9_lpf_vertical_16_c(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh);
185 #define vp9_lpf_vertical_16 vp9_lpf_vertical_16_c
186
187 void vp9_lpf_vertical_16_dual_c(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh);
188 #define vp9_lpf_vertical_16_dual vp9_lpf_vertical_16_dual_c
189
190 void vp9_lpf_vertical_8_c(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int count);
191 #define vp9_lpf_vertical_8 vp9_lpf_vertical_8_c
192
193 void vp9_lpf_vertical_8_dual_c(uint8_t *s, int pitch, const uint8_t *blimit0, const uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const uint8_t *limit1, const uint8_t *thresh1);
194 #define vp9_lpf_vertical_8_dual vp9_lpf_vertical_8_dual_c
195
196 void vp9_lpf_vertical_4_c(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int count);
197 #define vp9_lpf_vertical_4 vp9_lpf_vertical_4_c
198
199 void vp9_lpf_vertical_4_dual_c(uint8_t *s, int pitch, const uint8_t *blimit0, const uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const uint8_t *limit1, const uint8_t *thresh1);
200 #define vp9_lpf_vertical_4_dual vp9_lpf_vertical_4_dual_c
201
202 void vp9_lpf_horizontal_16_c(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int count);
203 #define vp9_lpf_horizontal_16 vp9_lpf_horizontal_16_c
204
205 void vp9_lpf_horizontal_8_c(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int count);
206 #define vp9_lpf_horizontal_8 vp9_lpf_horizontal_8_c
207
208 void vp9_lpf_horizontal_8_dual_c(uint8_t *s, int pitch, const uint8_t *blimit0, const uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const uint8_t *limit1, const uint8_t *thresh1);
209 #define vp9_lpf_horizontal_8_dual vp9_lpf_horizontal_8_dual_c
210
211 void vp9_lpf_horizontal_4_c(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int count);
212 #define vp9_lpf_horizontal_4 vp9_lpf_horizontal_4_c
213
214 void vp9_lpf_horizontal_4_dual_c(uint8_t *s, int pitch, const uint8_t *blimit0, const uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const uint8_t *limit1, const uint8_t *thresh1);
215 #define vp9_lpf_horizontal_4_dual vp9_lpf_horizontal_4_dual_c
216
217 void vp9_blend_mb_inner_c(uint8_t *y, uint8_t *u, uint8_t *v, int y1, int u1, int v1, int alpha, int stride);
218 #define vp9_blend_mb_inner vp9_blend_mb_inner_c
219
220 void vp9_blend_mb_outer_c(uint8_t *y, uint8_t *u, uint8_t *v, int y1, int u1, int v1, int alpha, int stride);
221 #define vp9_blend_mb_outer vp9_blend_mb_outer_c
222
223 void vp9_blend_b_c(uint8_t *y, uint8_t *u, uint8_t *v, int y1, int u1, int v1, int alpha, int stride);
224 #define vp9_blend_b vp9_blend_b_c
225
226 void vp9_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);
227 #define vp9_convolve_copy vp9_convolve_copy_c
228
229 void vp9_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);
230 #define vp9_convolve_avg vp9_convolve_avg_c
231
232 void vp9_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);
233 #define vp9_convolve8 vp9_convolve8_c
234
235 void vp9_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);
236 #define vp9_convolve8_horiz vp9_convolve8_horiz_c
237
238 void vp9_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);
239 #define vp9_convolve8_vert vp9_convolve8_vert_c
240
241 void vp9_convolve8_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);
242 #define vp9_convolve8_avg vp9_convolve8_avg_c
243
244 void vp9_convolve8_avg_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);
245 #define vp9_convolve8_avg_horiz vp9_convolve8_avg_horiz_c
246
247 void vp9_convolve8_avg_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);
248 #define vp9_convolve8_avg_vert vp9_convolve8_avg_vert_c
249
250 void vp9_idct4x4_1_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
251 #define vp9_idct4x4_1_add vp9_idct4x4_1_add_c
252
253 void vp9_idct4x4_16_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
254 #define vp9_idct4x4_16_add vp9_idct4x4_16_add_c
255
256 void vp9_idct8x8_1_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
257 #define vp9_idct8x8_1_add vp9_idct8x8_1_add_c
258
259 void vp9_idct8x8_64_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
260 #define vp9_idct8x8_64_add vp9_idct8x8_64_add_c
261
262 void vp9_idct8x8_10_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
263 #define vp9_idct8x8_10_add vp9_idct8x8_10_add_c
264
265 void vp9_idct16x16_1_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
266 #define vp9_idct16x16_1_add vp9_idct16x16_1_add_c
267
268 void vp9_idct16x16_256_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
269 #define vp9_idct16x16_256_add vp9_idct16x16_256_add_c
270
271 void vp9_idct16x16_10_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
272 #define vp9_idct16x16_10_add vp9_idct16x16_10_add_c
273
274 void vp9_idct32x32_1024_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
275 #define vp9_idct32x32_1024_add vp9_idct32x32_1024_add_c
276
277 void vp9_idct32x32_34_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
278 #define vp9_idct32x32_34_add vp9_idct32x32_34_add_c
279
280 void vp9_idct32x32_1_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
281 #define vp9_idct32x32_1_add vp9_idct32x32_1_add_c
282
283 void vp9_iht4x4_16_add_c(const int16_t *input, uint8_t *dest, int dest_stride, int tx_type);
284 #define vp9_iht4x4_16_add vp9_iht4x4_16_add_c
285
286 void vp9_iht8x8_64_add_c(const int16_t *input, uint8_t *dest, int dest_stride, int tx_type);
287 #define vp9_iht8x8_64_add vp9_iht8x8_64_add_c
288
289 void vp9_iht16x16_256_add_c(const int16_t *input, uint8_t *output, int pitch, int tx_type);
290 #define vp9_iht16x16_256_add vp9_iht16x16_256_add_c
291
292 void vp9_iwht4x4_1_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
293 #define vp9_iwht4x4_1_add vp9_iwht4x4_1_add_c
294
295 void vp9_iwht4x4_16_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
296 #define vp9_iwht4x4_16_add vp9_iwht4x4_16_add_c
297
298 void vp9_rtcd(void);
299 #include "vpx_config.h"
300
301 #ifdef RTCD_C
302 static void setup_rtcd_internal(void)
303 {
304
305 }
306 #endif
307 #endif