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_blend_b_c(uint8_t *y, uint8_t *u, uint8_t *v, int y1, int u1, int v1, int alpha, int stride); 33 #define vp9_blend_b vp9_blend_b_c 34 35 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); 36 #define vp9_blend_mb_inner vp9_blend_mb_inner_c 37 38 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); 39 #define vp9_blend_mb_outer vp9_blend_mb_outer_c 40 41 int64_t vp9_block_error_c(const int16_t *coeff, const int16_t *dqcoeff, intptr_t block_size, int64_t *ssz); 42 #define vp9_block_error vp9_block_error_c 43 44 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); 45 void vp9_convolve8_dspr2(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); 46 #define vp9_convolve8 vp9_convolve8_dspr2 47 48 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); 49 void vp9_convolve8_avg_dspr2(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); 50 #define vp9_convolve8_avg vp9_convolve8_avg_dspr2 51 52 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); 53 void vp9_convolve8_avg_horiz_dspr2(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); 54 #define vp9_convolve8_avg_horiz vp9_convolve8_avg_horiz_dspr2 55 56 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); 57 void vp9_convolve8_avg_vert_dspr2(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); 58 #define vp9_convolve8_avg_vert vp9_convolve8_avg_vert_dspr2 59 60 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); 61 void vp9_convolve8_horiz_dspr2(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); 62 #define vp9_convolve8_horiz vp9_convolve8_horiz_dspr2 63 64 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); 65 void vp9_convolve8_vert_dspr2(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); 66 #define vp9_convolve8_vert vp9_convolve8_vert_dspr2 67 68 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); 69 void vp9_convolve_avg_dspr2(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); 70 #define vp9_convolve_avg vp9_convolve_avg_dspr2 71 72 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); 73 void vp9_convolve_copy_dspr2(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); 74 #define vp9_convolve_copy vp9_convolve_copy_dspr2 75 76 void vp9_d117_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 77 #define vp9_d117_predictor_16x16 vp9_d117_predictor_16x16_c 78 79 void vp9_d117_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 80 #define vp9_d117_predictor_32x32 vp9_d117_predictor_32x32_c 81 82 void vp9_d117_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 83 #define vp9_d117_predictor_4x4 vp9_d117_predictor_4x4_c 84 85 void vp9_d117_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 86 #define vp9_d117_predictor_8x8 vp9_d117_predictor_8x8_c 87 88 void vp9_d135_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 89 #define vp9_d135_predictor_16x16 vp9_d135_predictor_16x16_c 90 91 void vp9_d135_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 92 #define vp9_d135_predictor_32x32 vp9_d135_predictor_32x32_c 93 94 void vp9_d135_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 95 #define vp9_d135_predictor_4x4 vp9_d135_predictor_4x4_c 96 97 void vp9_d135_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 98 #define vp9_d135_predictor_8x8 vp9_d135_predictor_8x8_c 99 100 void vp9_d153_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 101 #define vp9_d153_predictor_16x16 vp9_d153_predictor_16x16_c 102 103 void vp9_d153_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 104 #define vp9_d153_predictor_32x32 vp9_d153_predictor_32x32_c 105 106 void vp9_d153_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 107 #define vp9_d153_predictor_4x4 vp9_d153_predictor_4x4_c 108 109 void vp9_d153_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 110 #define vp9_d153_predictor_8x8 vp9_d153_predictor_8x8_c 111 112 void vp9_d207_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 113 #define vp9_d207_predictor_16x16 vp9_d207_predictor_16x16_c 114 115 void vp9_d207_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 116 #define vp9_d207_predictor_32x32 vp9_d207_predictor_32x32_c 117 118 void vp9_d207_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 119 #define vp9_d207_predictor_4x4 vp9_d207_predictor_4x4_c 120 121 void vp9_d207_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 122 #define vp9_d207_predictor_8x8 vp9_d207_predictor_8x8_c 123 124 void vp9_d45_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 125 #define vp9_d45_predictor_16x16 vp9_d45_predictor_16x16_c 126 127 void vp9_d45_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 128 #define vp9_d45_predictor_32x32 vp9_d45_predictor_32x32_c 129 130 void vp9_d45_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 131 #define vp9_d45_predictor_4x4 vp9_d45_predictor_4x4_c 132 133 void vp9_d45_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 134 #define vp9_d45_predictor_8x8 vp9_d45_predictor_8x8_c 135 136 void vp9_d63_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 137 #define vp9_d63_predictor_16x16 vp9_d63_predictor_16x16_c 138 139 void vp9_d63_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 140 #define vp9_d63_predictor_32x32 vp9_d63_predictor_32x32_c 141 142 void vp9_d63_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 143 #define vp9_d63_predictor_4x4 vp9_d63_predictor_4x4_c 144 145 void vp9_d63_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 146 #define vp9_d63_predictor_8x8 vp9_d63_predictor_8x8_c 147 148 void vp9_dc_128_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 149 #define vp9_dc_128_predictor_16x16 vp9_dc_128_predictor_16x16_c 150 151 void vp9_dc_128_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 152 #define vp9_dc_128_predictor_32x32 vp9_dc_128_predictor_32x32_c 153 154 void vp9_dc_128_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 155 #define vp9_dc_128_predictor_4x4 vp9_dc_128_predictor_4x4_c 156 157 void vp9_dc_128_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 158 #define vp9_dc_128_predictor_8x8 vp9_dc_128_predictor_8x8_c 159 160 void vp9_dc_left_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 161 #define vp9_dc_left_predictor_16x16 vp9_dc_left_predictor_16x16_c 162 163 void vp9_dc_left_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 164 #define vp9_dc_left_predictor_32x32 vp9_dc_left_predictor_32x32_c 165 166 void vp9_dc_left_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 167 #define vp9_dc_left_predictor_4x4 vp9_dc_left_predictor_4x4_c 168 169 void vp9_dc_left_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 170 #define vp9_dc_left_predictor_8x8 vp9_dc_left_predictor_8x8_c 171 172 void vp9_dc_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 173 void vp9_dc_predictor_16x16_dspr2(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 174 #define vp9_dc_predictor_16x16 vp9_dc_predictor_16x16_dspr2 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_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 180 void vp9_dc_predictor_4x4_dspr2(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 181 #define vp9_dc_predictor_4x4 vp9_dc_predictor_4x4_dspr2 182 183 void vp9_dc_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 184 void vp9_dc_predictor_8x8_dspr2(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 185 #define vp9_dc_predictor_8x8 vp9_dc_predictor_8x8_dspr2 186 187 void vp9_dc_top_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 188 #define vp9_dc_top_predictor_16x16 vp9_dc_top_predictor_16x16_c 189 190 void vp9_dc_top_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 191 #define vp9_dc_top_predictor_32x32 vp9_dc_top_predictor_32x32_c 192 193 void vp9_dc_top_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 194 #define vp9_dc_top_predictor_4x4 vp9_dc_top_predictor_4x4_c 195 196 void vp9_dc_top_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 197 #define vp9_dc_top_predictor_8x8 vp9_dc_top_predictor_8x8_c 198 199 int vp9_diamond_search_sad_c(const struct macroblock *x, struct mv *ref_mv, struct mv *best_mv, int search_param, int sad_per_bit, int *num00, const struct vp9_variance_vtable *fn_ptr, DEC_MVCOSTS, const struct mv *center_mv); 200 #define vp9_diamond_search_sad vp9_diamond_search_sad_c 201 202 void vp9_fdct16x16_c(const int16_t *input, int16_t *output, int stride); 203 #define vp9_fdct16x16 vp9_fdct16x16_c 204 205 void vp9_fdct32x32_c(const int16_t *input, int16_t *output, int stride); 206 #define vp9_fdct32x32 vp9_fdct32x32_c 207 208 void vp9_fdct32x32_rd_c(const int16_t *input, int16_t *output, int stride); 209 #define vp9_fdct32x32_rd vp9_fdct32x32_rd_c 210 211 void vp9_fdct4x4_c(const int16_t *input, int16_t *output, int stride); 212 #define vp9_fdct4x4 vp9_fdct4x4_c 213 214 void vp9_fdct8x8_c(const int16_t *input, int16_t *output, int stride); 215 #define vp9_fdct8x8 vp9_fdct8x8_c 216 217 void vp9_fht16x16_c(const int16_t *input, int16_t *output, int stride, int tx_type); 218 #define vp9_fht16x16 vp9_fht16x16_c 219 220 void vp9_fht4x4_c(const int16_t *input, int16_t *output, int stride, int tx_type); 221 #define vp9_fht4x4 vp9_fht4x4_c 222 223 void vp9_fht8x8_c(const int16_t *input, int16_t *output, int stride, int tx_type); 224 #define vp9_fht8x8 vp9_fht8x8_c 225 226 int vp9_full_range_search_c(const struct macroblock *x, struct mv *ref_mv, struct mv *best_mv, int search_param, int sad_per_bit, int *num00, const struct vp9_variance_vtable *fn_ptr, DEC_MVCOSTS, const struct mv *center_mv); 227 #define vp9_full_range_search vp9_full_range_search_c 228 229 int vp9_full_search_sad_c(const struct macroblock *x, const struct mv *ref_mv, int sad_per_bit, int distance, const struct vp9_variance_vtable *fn_ptr, DEC_MVCOSTS, const struct mv *center_mv, struct mv *best_mv); 230 #define vp9_full_search_sad vp9_full_search_sad_c 231 232 void vp9_fwht4x4_c(const int16_t *input, int16_t *output, int stride); 233 #define vp9_fwht4x4 vp9_fwht4x4_c 234 235 unsigned int vp9_get_mb_ss_c(const int16_t *); 236 #define vp9_get_mb_ss vp9_get_mb_ss_c 237 238 void vp9_get_sse_sum_16x16_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, int *sum); 239 #define vp9_get_sse_sum_16x16 vp9_get_sse_sum_16x16_c 240 241 void vp9_get_sse_sum_8x8_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, int *sum); 242 #define vp9_get_sse_sum_8x8 vp9_get_sse_sum_8x8_c 243 244 void vp9_h_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 245 void vp9_h_predictor_16x16_dspr2(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 246 #define vp9_h_predictor_16x16 vp9_h_predictor_16x16_dspr2 247 248 void vp9_h_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 249 #define vp9_h_predictor_32x32 vp9_h_predictor_32x32_c 250 251 void vp9_h_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 252 void vp9_h_predictor_4x4_dspr2(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 253 #define vp9_h_predictor_4x4 vp9_h_predictor_4x4_dspr2 254 255 void vp9_h_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 256 void vp9_h_predictor_8x8_dspr2(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 257 #define vp9_h_predictor_8x8 vp9_h_predictor_8x8_dspr2 258 259 void vp9_idct16x16_10_add_c(const int16_t *input, uint8_t *dest, int dest_stride); 260 void vp9_idct16x16_10_add_dspr2(const int16_t *input, uint8_t *dest, int dest_stride); 261 #define vp9_idct16x16_10_add vp9_idct16x16_10_add_dspr2 262 263 void vp9_idct16x16_1_add_c(const int16_t *input, uint8_t *dest, int dest_stride); 264 void vp9_idct16x16_1_add_dspr2(const int16_t *input, uint8_t *dest, int dest_stride); 265 #define vp9_idct16x16_1_add vp9_idct16x16_1_add_dspr2 266 267 void vp9_idct16x16_256_add_c(const int16_t *input, uint8_t *dest, int dest_stride); 268 void vp9_idct16x16_256_add_dspr2(const int16_t *input, uint8_t *dest, int dest_stride); 269 #define vp9_idct16x16_256_add vp9_idct16x16_256_add_dspr2 270 271 void vp9_idct32x32_1024_add_c(const int16_t *input, uint8_t *dest, int dest_stride); 272 void vp9_idct32x32_1024_add_dspr2(const int16_t *input, uint8_t *dest, int dest_stride); 273 #define vp9_idct32x32_1024_add vp9_idct32x32_1024_add_dspr2 274 275 void vp9_idct32x32_1_add_c(const int16_t *input, uint8_t *dest, int dest_stride); 276 void vp9_idct32x32_1_add_dspr2(const int16_t *input, uint8_t *dest, int dest_stride); 277 #define vp9_idct32x32_1_add vp9_idct32x32_1_add_dspr2 278 279 void vp9_idct32x32_34_add_c(const int16_t *input, uint8_t *dest, int dest_stride); 280 void vp9_idct32x32_34_add_dspr2(const int16_t *input, uint8_t *dest, int dest_stride); 281 #define vp9_idct32x32_34_add vp9_idct32x32_34_add_dspr2 282 283 void vp9_idct4x4_16_add_c(const int16_t *input, uint8_t *dest, int dest_stride); 284 void vp9_idct4x4_16_add_dspr2(const int16_t *input, uint8_t *dest, int dest_stride); 285 #define vp9_idct4x4_16_add vp9_idct4x4_16_add_dspr2 286 287 void vp9_idct4x4_1_add_c(const int16_t *input, uint8_t *dest, int dest_stride); 288 void vp9_idct4x4_1_add_dspr2(const int16_t *input, uint8_t *dest, int dest_stride); 289 #define vp9_idct4x4_1_add vp9_idct4x4_1_add_dspr2 290 291 void vp9_idct8x8_10_add_c(const int16_t *input, uint8_t *dest, int dest_stride); 292 void vp9_idct8x8_10_add_dspr2(const int16_t *input, uint8_t *dest, int dest_stride); 293 #define vp9_idct8x8_10_add vp9_idct8x8_10_add_dspr2 294 295 void vp9_idct8x8_1_add_c(const int16_t *input, uint8_t *dest, int dest_stride); 296 void vp9_idct8x8_1_add_dspr2(const int16_t *input, uint8_t *dest, int dest_stride); 297 #define vp9_idct8x8_1_add vp9_idct8x8_1_add_dspr2 298 299 void vp9_idct8x8_64_add_c(const int16_t *input, uint8_t *dest, int dest_stride); 300 void vp9_idct8x8_64_add_dspr2(const int16_t *input, uint8_t *dest, int dest_stride); 301 #define vp9_idct8x8_64_add vp9_idct8x8_64_add_dspr2 302 303 void vp9_iht16x16_256_add_c(const int16_t *input, uint8_t *output, int pitch, int tx_type); 304 void vp9_iht16x16_256_add_dspr2(const int16_t *input, uint8_t *output, int pitch, int tx_type); 305 #define vp9_iht16x16_256_add vp9_iht16x16_256_add_dspr2 306 307 void vp9_iht4x4_16_add_c(const int16_t *input, uint8_t *dest, int dest_stride, int tx_type); 308 void vp9_iht4x4_16_add_dspr2(const int16_t *input, uint8_t *dest, int dest_stride, int tx_type); 309 #define vp9_iht4x4_16_add vp9_iht4x4_16_add_dspr2 310 311 void vp9_iht8x8_64_add_c(const int16_t *input, uint8_t *dest, int dest_stride, int tx_type); 312 void vp9_iht8x8_64_add_dspr2(const int16_t *input, uint8_t *dest, int dest_stride, int tx_type); 313 #define vp9_iht8x8_64_add vp9_iht8x8_64_add_dspr2 314 315 void vp9_iwht4x4_16_add_c(const int16_t *input, uint8_t *dest, int dest_stride); 316 #define vp9_iwht4x4_16_add vp9_iwht4x4_16_add_c 317 318 void vp9_iwht4x4_1_add_c(const int16_t *input, uint8_t *dest, int dest_stride); 319 #define vp9_iwht4x4_1_add vp9_iwht4x4_1_add_c 320 321 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); 322 void vp9_lpf_horizontal_16_dspr2(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int count); 323 #define vp9_lpf_horizontal_16 vp9_lpf_horizontal_16_dspr2 324 325 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); 326 void vp9_lpf_horizontal_4_dspr2(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int count); 327 #define vp9_lpf_horizontal_4 vp9_lpf_horizontal_4_dspr2 328 329 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); 330 void vp9_lpf_horizontal_4_dual_dspr2(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); 331 #define vp9_lpf_horizontal_4_dual vp9_lpf_horizontal_4_dual_dspr2 332 333 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); 334 void vp9_lpf_horizontal_8_dspr2(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int count); 335 #define vp9_lpf_horizontal_8 vp9_lpf_horizontal_8_dspr2 336 337 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); 338 void vp9_lpf_horizontal_8_dual_dspr2(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); 339 #define vp9_lpf_horizontal_8_dual vp9_lpf_horizontal_8_dual_dspr2 340 341 void vp9_lpf_vertical_16_c(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh); 342 void vp9_lpf_vertical_16_dspr2(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh); 343 #define vp9_lpf_vertical_16 vp9_lpf_vertical_16_dspr2 344 345 void vp9_lpf_vertical_16_dual_c(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh); 346 void vp9_lpf_vertical_16_dual_dspr2(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh); 347 #define vp9_lpf_vertical_16_dual vp9_lpf_vertical_16_dual_dspr2 348 349 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); 350 void vp9_lpf_vertical_4_dspr2(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int count); 351 #define vp9_lpf_vertical_4 vp9_lpf_vertical_4_dspr2 352 353 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); 354 void vp9_lpf_vertical_4_dual_dspr2(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); 355 #define vp9_lpf_vertical_4_dual vp9_lpf_vertical_4_dual_dspr2 356 357 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); 358 void vp9_lpf_vertical_8_dspr2(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int count); 359 #define vp9_lpf_vertical_8 vp9_lpf_vertical_8_dspr2 360 361 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); 362 void vp9_lpf_vertical_8_dual_dspr2(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); 363 #define vp9_lpf_vertical_8_dual vp9_lpf_vertical_8_dual_dspr2 364 365 unsigned int vp9_mse16x16_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int recon_stride, unsigned int *sse); 366 #define vp9_mse16x16 vp9_mse16x16_c 367 368 unsigned int vp9_mse16x8_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int recon_stride, unsigned int *sse); 369 #define vp9_mse16x8 vp9_mse16x8_c 370 371 unsigned int vp9_mse8x16_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int recon_stride, unsigned int *sse); 372 #define vp9_mse8x16 vp9_mse8x16_c 373 374 unsigned int vp9_mse8x8_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int recon_stride, unsigned int *sse); 375 #define vp9_mse8x8 vp9_mse8x8_c 376 377 void vp9_quantize_b_c(const int16_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_ptr, const int16_t *quant_shift_ptr, int16_t *qcoeff_ptr, int16_t *dqcoeff_ptr, const int16_t *dequant_ptr, int zbin_oq_value, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan); 378 #define vp9_quantize_b vp9_quantize_b_c 379 380 void vp9_quantize_b_32x32_c(const int16_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_ptr, const int16_t *quant_shift_ptr, int16_t *qcoeff_ptr, int16_t *dqcoeff_ptr, const int16_t *dequant_ptr, int zbin_oq_value, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan); 381 #define vp9_quantize_b_32x32 vp9_quantize_b_32x32_c 382 383 int vp9_refining_search_sad_c(const struct macroblock *x, struct mv *ref_mv, int sad_per_bit, int distance, const struct vp9_variance_vtable *fn_ptr, DEC_MVCOSTS, const struct mv *center_mv); 384 #define vp9_refining_search_sad vp9_refining_search_sad_c 385 386 unsigned int vp9_sad16x16_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int max_sad); 387 #define vp9_sad16x16 vp9_sad16x16_c 388 389 unsigned int vp9_sad16x16_avg_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, unsigned int max_sad); 390 #define vp9_sad16x16_avg vp9_sad16x16_avg_c 391 392 void vp9_sad16x16x3_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sad_array); 393 #define vp9_sad16x16x3 vp9_sad16x16x3_c 394 395 void vp9_sad16x16x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_ptr[], int ref_stride, unsigned int *sad_array); 396 #define vp9_sad16x16x4d vp9_sad16x16x4d_c 397 398 void vp9_sad16x16x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array); 399 #define vp9_sad16x16x8 vp9_sad16x16x8_c 400 401 unsigned int vp9_sad16x32_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int max_sad); 402 #define vp9_sad16x32 vp9_sad16x32_c 403 404 unsigned int vp9_sad16x32_avg_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, unsigned int max_sad); 405 #define vp9_sad16x32_avg vp9_sad16x32_avg_c 406 407 void vp9_sad16x32x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_ptr[], int ref_stride, unsigned int *sad_array); 408 #define vp9_sad16x32x4d vp9_sad16x32x4d_c 409 410 unsigned int vp9_sad16x8_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int max_sad); 411 #define vp9_sad16x8 vp9_sad16x8_c 412 413 unsigned int vp9_sad16x8_avg_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, unsigned int max_sad); 414 #define vp9_sad16x8_avg vp9_sad16x8_avg_c 415 416 void vp9_sad16x8x3_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sad_array); 417 #define vp9_sad16x8x3 vp9_sad16x8x3_c 418 419 void vp9_sad16x8x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_ptr[], int ref_stride, unsigned int *sad_array); 420 #define vp9_sad16x8x4d vp9_sad16x8x4d_c 421 422 void vp9_sad16x8x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array); 423 #define vp9_sad16x8x8 vp9_sad16x8x8_c 424 425 unsigned int vp9_sad32x16_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int max_sad); 426 #define vp9_sad32x16 vp9_sad32x16_c 427 428 unsigned int vp9_sad32x16_avg_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, unsigned int max_sad); 429 #define vp9_sad32x16_avg vp9_sad32x16_avg_c 430 431 void vp9_sad32x16x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_ptr[], int ref_stride, unsigned int *sad_array); 432 #define vp9_sad32x16x4d vp9_sad32x16x4d_c 433 434 unsigned int vp9_sad32x32_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int max_sad); 435 #define vp9_sad32x32 vp9_sad32x32_c 436 437 unsigned int vp9_sad32x32_avg_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, unsigned int max_sad); 438 #define vp9_sad32x32_avg vp9_sad32x32_avg_c 439 440 void vp9_sad32x32x3_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sad_array); 441 #define vp9_sad32x32x3 vp9_sad32x32x3_c 442 443 void vp9_sad32x32x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_ptr[], int ref_stride, unsigned int *sad_array); 444 #define vp9_sad32x32x4d vp9_sad32x32x4d_c 445 446 void vp9_sad32x32x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array); 447 #define vp9_sad32x32x8 vp9_sad32x32x8_c 448 449 unsigned int vp9_sad32x64_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int max_sad); 450 #define vp9_sad32x64 vp9_sad32x64_c 451 452 unsigned int vp9_sad32x64_avg_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, unsigned int max_sad); 453 #define vp9_sad32x64_avg vp9_sad32x64_avg_c 454 455 void vp9_sad32x64x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_ptr[], int ref_stride, unsigned int *sad_array); 456 #define vp9_sad32x64x4d vp9_sad32x64x4d_c 457 458 unsigned int vp9_sad4x4_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int max_sad); 459 #define vp9_sad4x4 vp9_sad4x4_c 460 461 unsigned int vp9_sad4x4_avg_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, unsigned int max_sad); 462 #define vp9_sad4x4_avg vp9_sad4x4_avg_c 463 464 void vp9_sad4x4x3_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sad_array); 465 #define vp9_sad4x4x3 vp9_sad4x4x3_c 466 467 void vp9_sad4x4x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_ptr[], int ref_stride, unsigned int *sad_array); 468 #define vp9_sad4x4x4d vp9_sad4x4x4d_c 469 470 void vp9_sad4x4x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array); 471 #define vp9_sad4x4x8 vp9_sad4x4x8_c 472 473 unsigned int vp9_sad4x8_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int max_sad); 474 #define vp9_sad4x8 vp9_sad4x8_c 475 476 unsigned int vp9_sad4x8_avg_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, unsigned int max_sad); 477 #define vp9_sad4x8_avg vp9_sad4x8_avg_c 478 479 void vp9_sad4x8x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_ptr[], int ref_stride, unsigned int *sad_array); 480 #define vp9_sad4x8x4d vp9_sad4x8x4d_c 481 482 void vp9_sad4x8x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array); 483 #define vp9_sad4x8x8 vp9_sad4x8x8_c 484 485 unsigned int vp9_sad64x32_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int max_sad); 486 #define vp9_sad64x32 vp9_sad64x32_c 487 488 unsigned int vp9_sad64x32_avg_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, unsigned int max_sad); 489 #define vp9_sad64x32_avg vp9_sad64x32_avg_c 490 491 void vp9_sad64x32x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_ptr[], int ref_stride, unsigned int *sad_array); 492 #define vp9_sad64x32x4d vp9_sad64x32x4d_c 493 494 unsigned int vp9_sad64x64_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int max_sad); 495 #define vp9_sad64x64 vp9_sad64x64_c 496 497 unsigned int vp9_sad64x64_avg_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, unsigned int max_sad); 498 #define vp9_sad64x64_avg vp9_sad64x64_avg_c 499 500 void vp9_sad64x64x3_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sad_array); 501 #define vp9_sad64x64x3 vp9_sad64x64x3_c 502 503 void vp9_sad64x64x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_ptr[], int ref_stride, unsigned int *sad_array); 504 #define vp9_sad64x64x4d vp9_sad64x64x4d_c 505 506 void vp9_sad64x64x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array); 507 #define vp9_sad64x64x8 vp9_sad64x64x8_c 508 509 unsigned int vp9_sad8x16_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int max_sad); 510 #define vp9_sad8x16 vp9_sad8x16_c 511 512 unsigned int vp9_sad8x16_avg_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, unsigned int max_sad); 513 #define vp9_sad8x16_avg vp9_sad8x16_avg_c 514 515 void vp9_sad8x16x3_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sad_array); 516 #define vp9_sad8x16x3 vp9_sad8x16x3_c 517 518 void vp9_sad8x16x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_ptr[], int ref_stride, unsigned int *sad_array); 519 #define vp9_sad8x16x4d vp9_sad8x16x4d_c 520 521 void vp9_sad8x16x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array); 522 #define vp9_sad8x16x8 vp9_sad8x16x8_c 523 524 unsigned int vp9_sad8x4_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int max_sad); 525 #define vp9_sad8x4 vp9_sad8x4_c 526 527 unsigned int vp9_sad8x4_avg_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, unsigned int max_sad); 528 #define vp9_sad8x4_avg vp9_sad8x4_avg_c 529 530 void vp9_sad8x4x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_ptr[], int ref_stride, unsigned int *sad_array); 531 #define vp9_sad8x4x4d vp9_sad8x4x4d_c 532 533 void vp9_sad8x4x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array); 534 #define vp9_sad8x4x8 vp9_sad8x4x8_c 535 536 unsigned int vp9_sad8x8_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int max_sad); 537 #define vp9_sad8x8 vp9_sad8x8_c 538 539 unsigned int vp9_sad8x8_avg_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred, unsigned int max_sad); 540 #define vp9_sad8x8_avg vp9_sad8x8_avg_c 541 542 void vp9_sad8x8x3_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sad_array); 543 #define vp9_sad8x8x3 vp9_sad8x8x3_c 544 545 void vp9_sad8x8x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t* const ref_ptr[], int ref_stride, unsigned int *sad_array); 546 #define vp9_sad8x8x4d vp9_sad8x8x4d_c 547 548 void vp9_sad8x8x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *ref_ptr, int ref_stride, uint32_t *sad_array); 549 #define vp9_sad8x8x8 vp9_sad8x8x8_c 550 551 unsigned int vp9_sub_pixel_avg_variance16x16_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred); 552 #define vp9_sub_pixel_avg_variance16x16 vp9_sub_pixel_avg_variance16x16_c 553 554 unsigned int vp9_sub_pixel_avg_variance16x32_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred); 555 #define vp9_sub_pixel_avg_variance16x32 vp9_sub_pixel_avg_variance16x32_c 556 557 unsigned int vp9_sub_pixel_avg_variance16x8_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred); 558 #define vp9_sub_pixel_avg_variance16x8 vp9_sub_pixel_avg_variance16x8_c 559 560 unsigned int vp9_sub_pixel_avg_variance32x16_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred); 561 #define vp9_sub_pixel_avg_variance32x16 vp9_sub_pixel_avg_variance32x16_c 562 563 unsigned int vp9_sub_pixel_avg_variance32x32_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred); 564 #define vp9_sub_pixel_avg_variance32x32 vp9_sub_pixel_avg_variance32x32_c 565 566 unsigned int vp9_sub_pixel_avg_variance32x64_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred); 567 #define vp9_sub_pixel_avg_variance32x64 vp9_sub_pixel_avg_variance32x64_c 568 569 unsigned int vp9_sub_pixel_avg_variance4x4_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred); 570 #define vp9_sub_pixel_avg_variance4x4 vp9_sub_pixel_avg_variance4x4_c 571 572 unsigned int vp9_sub_pixel_avg_variance4x8_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred); 573 #define vp9_sub_pixel_avg_variance4x8 vp9_sub_pixel_avg_variance4x8_c 574 575 unsigned int vp9_sub_pixel_avg_variance64x32_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred); 576 #define vp9_sub_pixel_avg_variance64x32 vp9_sub_pixel_avg_variance64x32_c 577 578 unsigned int vp9_sub_pixel_avg_variance64x64_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred); 579 #define vp9_sub_pixel_avg_variance64x64 vp9_sub_pixel_avg_variance64x64_c 580 581 unsigned int vp9_sub_pixel_avg_variance8x16_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred); 582 #define vp9_sub_pixel_avg_variance8x16 vp9_sub_pixel_avg_variance8x16_c 583 584 unsigned int vp9_sub_pixel_avg_variance8x4_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred); 585 #define vp9_sub_pixel_avg_variance8x4 vp9_sub_pixel_avg_variance8x4_c 586 587 unsigned int vp9_sub_pixel_avg_variance8x8_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred); 588 #define vp9_sub_pixel_avg_variance8x8 vp9_sub_pixel_avg_variance8x8_c 589 590 unsigned int vp9_sub_pixel_mse32x32_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 591 #define vp9_sub_pixel_mse32x32 vp9_sub_pixel_mse32x32_c 592 593 unsigned int vp9_sub_pixel_mse64x64_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 594 #define vp9_sub_pixel_mse64x64 vp9_sub_pixel_mse64x64_c 595 596 unsigned int vp9_sub_pixel_variance16x16_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 597 #define vp9_sub_pixel_variance16x16 vp9_sub_pixel_variance16x16_c 598 599 unsigned int vp9_sub_pixel_variance16x32_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 600 #define vp9_sub_pixel_variance16x32 vp9_sub_pixel_variance16x32_c 601 602 unsigned int vp9_sub_pixel_variance16x8_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 603 #define vp9_sub_pixel_variance16x8 vp9_sub_pixel_variance16x8_c 604 605 unsigned int vp9_sub_pixel_variance32x16_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 606 #define vp9_sub_pixel_variance32x16 vp9_sub_pixel_variance32x16_c 607 608 unsigned int vp9_sub_pixel_variance32x32_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 609 #define vp9_sub_pixel_variance32x32 vp9_sub_pixel_variance32x32_c 610 611 unsigned int vp9_sub_pixel_variance32x64_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 612 #define vp9_sub_pixel_variance32x64 vp9_sub_pixel_variance32x64_c 613 614 unsigned int vp9_sub_pixel_variance4x4_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 615 #define vp9_sub_pixel_variance4x4 vp9_sub_pixel_variance4x4_c 616 617 unsigned int vp9_sub_pixel_variance4x8_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 618 #define vp9_sub_pixel_variance4x8 vp9_sub_pixel_variance4x8_c 619 620 unsigned int vp9_sub_pixel_variance64x32_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 621 #define vp9_sub_pixel_variance64x32 vp9_sub_pixel_variance64x32_c 622 623 unsigned int vp9_sub_pixel_variance64x64_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 624 #define vp9_sub_pixel_variance64x64 vp9_sub_pixel_variance64x64_c 625 626 unsigned int vp9_sub_pixel_variance8x16_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 627 #define vp9_sub_pixel_variance8x16 vp9_sub_pixel_variance8x16_c 628 629 unsigned int vp9_sub_pixel_variance8x4_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 630 #define vp9_sub_pixel_variance8x4 vp9_sub_pixel_variance8x4_c 631 632 unsigned int vp9_sub_pixel_variance8x8_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 633 #define vp9_sub_pixel_variance8x8 vp9_sub_pixel_variance8x8_c 634 635 void vp9_subtract_block_c(int rows, int cols, int16_t *diff_ptr, ptrdiff_t diff_stride, const uint8_t *src_ptr, ptrdiff_t src_stride, const uint8_t *pred_ptr, ptrdiff_t pred_stride); 636 #define vp9_subtract_block vp9_subtract_block_c 637 638 void vp9_temporal_filter_apply_c(uint8_t *frame1, unsigned int stride, uint8_t *frame2, unsigned int block_size, int strength, int filter_weight, unsigned int *accumulator, uint16_t *count); 639 #define vp9_temporal_filter_apply vp9_temporal_filter_apply_c 640 641 void vp9_tm_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 642 #define vp9_tm_predictor_16x16 vp9_tm_predictor_16x16_c 643 644 void vp9_tm_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 645 #define vp9_tm_predictor_32x32 vp9_tm_predictor_32x32_c 646 647 void vp9_tm_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 648 void vp9_tm_predictor_4x4_dspr2(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 649 #define vp9_tm_predictor_4x4 vp9_tm_predictor_4x4_dspr2 650 651 void vp9_tm_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 652 void vp9_tm_predictor_8x8_dspr2(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 653 #define vp9_tm_predictor_8x8 vp9_tm_predictor_8x8_dspr2 654 655 void vp9_v_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 656 #define vp9_v_predictor_16x16 vp9_v_predictor_16x16_c 657 658 void vp9_v_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 659 #define vp9_v_predictor_32x32 vp9_v_predictor_32x32_c 660 661 void vp9_v_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 662 #define vp9_v_predictor_4x4 vp9_v_predictor_4x4_c 663 664 void vp9_v_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left); 665 #define vp9_v_predictor_8x8 vp9_v_predictor_8x8_c 666 667 unsigned int vp9_variance16x16_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 668 #define vp9_variance16x16 vp9_variance16x16_c 669 670 unsigned int vp9_variance16x32_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 671 #define vp9_variance16x32 vp9_variance16x32_c 672 673 unsigned int vp9_variance16x8_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 674 #define vp9_variance16x8 vp9_variance16x8_c 675 676 unsigned int vp9_variance32x16_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 677 #define vp9_variance32x16 vp9_variance32x16_c 678 679 unsigned int vp9_variance32x32_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 680 #define vp9_variance32x32 vp9_variance32x32_c 681 682 unsigned int vp9_variance32x64_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 683 #define vp9_variance32x64 vp9_variance32x64_c 684 685 unsigned int vp9_variance4x4_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 686 #define vp9_variance4x4 vp9_variance4x4_c 687 688 unsigned int vp9_variance4x8_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 689 #define vp9_variance4x8 vp9_variance4x8_c 690 691 unsigned int vp9_variance64x32_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 692 #define vp9_variance64x32 vp9_variance64x32_c 693 694 unsigned int vp9_variance64x64_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 695 #define vp9_variance64x64 vp9_variance64x64_c 696 697 unsigned int vp9_variance8x16_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 698 #define vp9_variance8x16 vp9_variance8x16_c 699 700 unsigned int vp9_variance8x4_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 701 #define vp9_variance8x4 vp9_variance8x4_c 702 703 unsigned int vp9_variance8x8_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 704 #define vp9_variance8x8 vp9_variance8x8_c 705 706 unsigned int vp9_variance_halfpixvar16x16_h_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 707 #define vp9_variance_halfpixvar16x16_h vp9_variance_halfpixvar16x16_h_c 708 709 unsigned int vp9_variance_halfpixvar16x16_hv_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 710 #define vp9_variance_halfpixvar16x16_hv vp9_variance_halfpixvar16x16_hv_c 711 712 unsigned int vp9_variance_halfpixvar16x16_v_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 713 #define vp9_variance_halfpixvar16x16_v vp9_variance_halfpixvar16x16_v_c 714 715 unsigned int vp9_variance_halfpixvar32x32_h_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 716 #define vp9_variance_halfpixvar32x32_h vp9_variance_halfpixvar32x32_h_c 717 718 unsigned int vp9_variance_halfpixvar32x32_hv_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 719 #define vp9_variance_halfpixvar32x32_hv vp9_variance_halfpixvar32x32_hv_c 720 721 unsigned int vp9_variance_halfpixvar32x32_v_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 722 #define vp9_variance_halfpixvar32x32_v vp9_variance_halfpixvar32x32_v_c 723 724 unsigned int vp9_variance_halfpixvar64x64_h_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 725 #define vp9_variance_halfpixvar64x64_h vp9_variance_halfpixvar64x64_h_c 726 727 unsigned int vp9_variance_halfpixvar64x64_hv_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 728 #define vp9_variance_halfpixvar64x64_hv vp9_variance_halfpixvar64x64_hv_c 729 730 unsigned int vp9_variance_halfpixvar64x64_v_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 731 #define vp9_variance_halfpixvar64x64_v vp9_variance_halfpixvar64x64_v_c 732 733 void vp9_rtcd(void); 734 735 #include "vpx_config.h" 736 737 #ifdef RTCD_C 738 static void setup_rtcd_internal(void) 739 { 740 #if HAVE_DSPR2 741 #if CONFIG_VP8 742 void dsputil_static_init(); 743 dsputil_static_init(); 744 #endif 745 #if CONFIG_VP9 746 void vp9_dsputil_static_init(); 747 vp9_dsputil_static_init(); 748 #endif 749 #endif 750 } 751 #endif 752 753 #ifdef __cplusplus 754 } // extern "C" 755 #endif 756 757 #endif 758