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