Home | History | Annotate | Download | only in x86
      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 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);
     42 void vp9_convolve8_sse2(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);
     43 #define vp9_convolve8 vp9_convolve8_sse2
     44 
     45 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);
     46 void vp9_convolve8_avg_sse2(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);
     47 #define vp9_convolve8_avg vp9_convolve8_avg_sse2
     48 
     49 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);
     50 void vp9_convolve8_avg_horiz_sse2(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);
     51 #define vp9_convolve8_avg_horiz vp9_convolve8_avg_horiz_sse2
     52 
     53 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);
     54 void vp9_convolve8_avg_vert_sse2(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);
     55 #define vp9_convolve8_avg_vert vp9_convolve8_avg_vert_sse2
     56 
     57 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);
     58 void vp9_convolve8_horiz_sse2(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);
     59 #define vp9_convolve8_horiz vp9_convolve8_horiz_sse2
     60 
     61 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);
     62 void vp9_convolve8_vert_sse2(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);
     63 #define vp9_convolve8_vert vp9_convolve8_vert_sse2
     64 
     65 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);
     66 void vp9_convolve_avg_sse2(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);
     67 #define vp9_convolve_avg vp9_convolve_avg_sse2
     68 
     69 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);
     70 void vp9_convolve_copy_sse2(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);
     71 #define vp9_convolve_copy vp9_convolve_copy_sse2
     72 
     73 void vp9_d117_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
     74 #define vp9_d117_predictor_16x16 vp9_d117_predictor_16x16_c
     75 
     76 void vp9_d117_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
     77 #define vp9_d117_predictor_32x32 vp9_d117_predictor_32x32_c
     78 
     79 void vp9_d117_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
     80 #define vp9_d117_predictor_4x4 vp9_d117_predictor_4x4_c
     81 
     82 void vp9_d117_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
     83 #define vp9_d117_predictor_8x8 vp9_d117_predictor_8x8_c
     84 
     85 void vp9_d135_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
     86 #define vp9_d135_predictor_16x16 vp9_d135_predictor_16x16_c
     87 
     88 void vp9_d135_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
     89 #define vp9_d135_predictor_32x32 vp9_d135_predictor_32x32_c
     90 
     91 void vp9_d135_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
     92 #define vp9_d135_predictor_4x4 vp9_d135_predictor_4x4_c
     93 
     94 void vp9_d135_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
     95 #define vp9_d135_predictor_8x8 vp9_d135_predictor_8x8_c
     96 
     97 void vp9_d153_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
     98 #define vp9_d153_predictor_16x16 vp9_d153_predictor_16x16_c
     99 
    100 void vp9_d153_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    101 #define vp9_d153_predictor_32x32 vp9_d153_predictor_32x32_c
    102 
    103 void vp9_d153_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    104 #define vp9_d153_predictor_4x4 vp9_d153_predictor_4x4_c
    105 
    106 void vp9_d153_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    107 #define vp9_d153_predictor_8x8 vp9_d153_predictor_8x8_c
    108 
    109 void vp9_d207_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    110 #define vp9_d207_predictor_16x16 vp9_d207_predictor_16x16_c
    111 
    112 void vp9_d207_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    113 #define vp9_d207_predictor_32x32 vp9_d207_predictor_32x32_c
    114 
    115 void vp9_d207_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    116 #define vp9_d207_predictor_4x4 vp9_d207_predictor_4x4_c
    117 
    118 void vp9_d207_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    119 #define vp9_d207_predictor_8x8 vp9_d207_predictor_8x8_c
    120 
    121 void vp9_d45_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    122 #define vp9_d45_predictor_16x16 vp9_d45_predictor_16x16_c
    123 
    124 void vp9_d45_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    125 #define vp9_d45_predictor_32x32 vp9_d45_predictor_32x32_c
    126 
    127 void vp9_d45_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    128 #define vp9_d45_predictor_4x4 vp9_d45_predictor_4x4_c
    129 
    130 void vp9_d45_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    131 #define vp9_d45_predictor_8x8 vp9_d45_predictor_8x8_c
    132 
    133 void vp9_d63_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    134 #define vp9_d63_predictor_16x16 vp9_d63_predictor_16x16_c
    135 
    136 void vp9_d63_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    137 #define vp9_d63_predictor_32x32 vp9_d63_predictor_32x32_c
    138 
    139 void vp9_d63_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    140 #define vp9_d63_predictor_4x4 vp9_d63_predictor_4x4_c
    141 
    142 void vp9_d63_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    143 #define vp9_d63_predictor_8x8 vp9_d63_predictor_8x8_c
    144 
    145 void vp9_dc_128_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    146 #define vp9_dc_128_predictor_16x16 vp9_dc_128_predictor_16x16_c
    147 
    148 void vp9_dc_128_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    149 #define vp9_dc_128_predictor_32x32 vp9_dc_128_predictor_32x32_c
    150 
    151 void vp9_dc_128_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    152 #define vp9_dc_128_predictor_4x4 vp9_dc_128_predictor_4x4_c
    153 
    154 void vp9_dc_128_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    155 #define vp9_dc_128_predictor_8x8 vp9_dc_128_predictor_8x8_c
    156 
    157 void vp9_dc_left_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    158 #define vp9_dc_left_predictor_16x16 vp9_dc_left_predictor_16x16_c
    159 
    160 void vp9_dc_left_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    161 #define vp9_dc_left_predictor_32x32 vp9_dc_left_predictor_32x32_c
    162 
    163 void vp9_dc_left_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    164 #define vp9_dc_left_predictor_4x4 vp9_dc_left_predictor_4x4_c
    165 
    166 void vp9_dc_left_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    167 #define vp9_dc_left_predictor_8x8 vp9_dc_left_predictor_8x8_c
    168 
    169 void vp9_dc_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    170 void vp9_dc_predictor_16x16_sse2(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    171 #define vp9_dc_predictor_16x16 vp9_dc_predictor_16x16_sse2
    172 
    173 void vp9_dc_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    174 void vp9_dc_predictor_32x32_sse2(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    175 #define vp9_dc_predictor_32x32 vp9_dc_predictor_32x32_sse2
    176 
    177 void vp9_dc_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    178 void vp9_dc_predictor_4x4_sse(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    179 #define vp9_dc_predictor_4x4 vp9_dc_predictor_4x4_sse
    180 
    181 void vp9_dc_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    182 void vp9_dc_predictor_8x8_sse(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    183 #define vp9_dc_predictor_8x8 vp9_dc_predictor_8x8_sse
    184 
    185 void vp9_dc_top_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    186 #define vp9_dc_top_predictor_16x16 vp9_dc_top_predictor_16x16_c
    187 
    188 void vp9_dc_top_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    189 #define vp9_dc_top_predictor_32x32 vp9_dc_top_predictor_32x32_c
    190 
    191 void vp9_dc_top_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    192 #define vp9_dc_top_predictor_4x4 vp9_dc_top_predictor_4x4_c
    193 
    194 void vp9_dc_top_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    195 #define vp9_dc_top_predictor_8x8 vp9_dc_top_predictor_8x8_c
    196 
    197 void vp9_h_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    198 #define vp9_h_predictor_16x16 vp9_h_predictor_16x16_c
    199 
    200 void vp9_h_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    201 #define vp9_h_predictor_32x32 vp9_h_predictor_32x32_c
    202 
    203 void vp9_h_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    204 #define vp9_h_predictor_4x4 vp9_h_predictor_4x4_c
    205 
    206 void vp9_h_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    207 #define vp9_h_predictor_8x8 vp9_h_predictor_8x8_c
    208 
    209 void vp9_idct16x16_10_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
    210 void vp9_idct16x16_10_add_sse2(const int16_t *input, uint8_t *dest, int dest_stride);
    211 #define vp9_idct16x16_10_add vp9_idct16x16_10_add_sse2
    212 
    213 void vp9_idct16x16_1_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
    214 void vp9_idct16x16_1_add_sse2(const int16_t *input, uint8_t *dest, int dest_stride);
    215 #define vp9_idct16x16_1_add vp9_idct16x16_1_add_sse2
    216 
    217 void vp9_idct16x16_256_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
    218 void vp9_idct16x16_256_add_sse2(const int16_t *input, uint8_t *dest, int dest_stride);
    219 #define vp9_idct16x16_256_add vp9_idct16x16_256_add_sse2
    220 
    221 void vp9_idct32x32_1024_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
    222 void vp9_idct32x32_1024_add_sse2(const int16_t *input, uint8_t *dest, int dest_stride);
    223 #define vp9_idct32x32_1024_add vp9_idct32x32_1024_add_sse2
    224 
    225 void vp9_idct32x32_1_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
    226 void vp9_idct32x32_1_add_sse2(const int16_t *input, uint8_t *dest, int dest_stride);
    227 #define vp9_idct32x32_1_add vp9_idct32x32_1_add_sse2
    228 
    229 void vp9_idct32x32_34_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
    230 void vp9_idct32x32_34_add_sse2(const int16_t *input, uint8_t *dest, int dest_stride);
    231 #define vp9_idct32x32_34_add vp9_idct32x32_34_add_sse2
    232 
    233 void vp9_idct4x4_16_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
    234 void vp9_idct4x4_16_add_sse2(const int16_t *input, uint8_t *dest, int dest_stride);
    235 #define vp9_idct4x4_16_add vp9_idct4x4_16_add_sse2
    236 
    237 void vp9_idct4x4_1_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
    238 void vp9_idct4x4_1_add_sse2(const int16_t *input, uint8_t *dest, int dest_stride);
    239 #define vp9_idct4x4_1_add vp9_idct4x4_1_add_sse2
    240 
    241 void vp9_idct8x8_10_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
    242 void vp9_idct8x8_10_add_sse2(const int16_t *input, uint8_t *dest, int dest_stride);
    243 #define vp9_idct8x8_10_add vp9_idct8x8_10_add_sse2
    244 
    245 void vp9_idct8x8_1_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
    246 void vp9_idct8x8_1_add_sse2(const int16_t *input, uint8_t *dest, int dest_stride);
    247 #define vp9_idct8x8_1_add vp9_idct8x8_1_add_sse2
    248 
    249 void vp9_idct8x8_64_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
    250 void vp9_idct8x8_64_add_sse2(const int16_t *input, uint8_t *dest, int dest_stride);
    251 #define vp9_idct8x8_64_add vp9_idct8x8_64_add_sse2
    252 
    253 void vp9_iht16x16_256_add_c(const int16_t *input, uint8_t *output, int pitch, int tx_type);
    254 void vp9_iht16x16_256_add_sse2(const int16_t *input, uint8_t *output, int pitch, int tx_type);
    255 #define vp9_iht16x16_256_add vp9_iht16x16_256_add_sse2
    256 
    257 void vp9_iht4x4_16_add_c(const int16_t *input, uint8_t *dest, int dest_stride, int tx_type);
    258 void vp9_iht4x4_16_add_sse2(const int16_t *input, uint8_t *dest, int dest_stride, int tx_type);
    259 #define vp9_iht4x4_16_add vp9_iht4x4_16_add_sse2
    260 
    261 void vp9_iht8x8_64_add_c(const int16_t *input, uint8_t *dest, int dest_stride, int tx_type);
    262 void vp9_iht8x8_64_add_sse2(const int16_t *input, uint8_t *dest, int dest_stride, int tx_type);
    263 #define vp9_iht8x8_64_add vp9_iht8x8_64_add_sse2
    264 
    265 void vp9_iwht4x4_16_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
    266 #define vp9_iwht4x4_16_add vp9_iwht4x4_16_add_c
    267 
    268 void vp9_iwht4x4_1_add_c(const int16_t *input, uint8_t *dest, int dest_stride);
    269 #define vp9_iwht4x4_1_add vp9_iwht4x4_1_add_c
    270 
    271 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);
    272 void vp9_lpf_horizontal_16_sse2(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int count);
    273 #define vp9_lpf_horizontal_16 vp9_lpf_horizontal_16_sse2
    274 
    275 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);
    276 void vp9_lpf_horizontal_4_mmx(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int count);
    277 #define vp9_lpf_horizontal_4 vp9_lpf_horizontal_4_mmx
    278 
    279 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);
    280 void vp9_lpf_horizontal_4_dual_sse2(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);
    281 #define vp9_lpf_horizontal_4_dual vp9_lpf_horizontal_4_dual_sse2
    282 
    283 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);
    284 void vp9_lpf_horizontal_8_sse2(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int count);
    285 #define vp9_lpf_horizontal_8 vp9_lpf_horizontal_8_sse2
    286 
    287 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);
    288 void vp9_lpf_horizontal_8_dual_sse2(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);
    289 #define vp9_lpf_horizontal_8_dual vp9_lpf_horizontal_8_dual_sse2
    290 
    291 void vp9_lpf_vertical_16_c(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh);
    292 void vp9_lpf_vertical_16_sse2(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh);
    293 #define vp9_lpf_vertical_16 vp9_lpf_vertical_16_sse2
    294 
    295 void vp9_lpf_vertical_16_dual_c(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh);
    296 void vp9_lpf_vertical_16_dual_sse2(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh);
    297 #define vp9_lpf_vertical_16_dual vp9_lpf_vertical_16_dual_sse2
    298 
    299 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);
    300 void vp9_lpf_vertical_4_mmx(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int count);
    301 #define vp9_lpf_vertical_4 vp9_lpf_vertical_4_mmx
    302 
    303 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);
    304 void vp9_lpf_vertical_4_dual_sse2(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);
    305 #define vp9_lpf_vertical_4_dual vp9_lpf_vertical_4_dual_sse2
    306 
    307 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);
    308 void vp9_lpf_vertical_8_sse2(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int count);
    309 #define vp9_lpf_vertical_8 vp9_lpf_vertical_8_sse2
    310 
    311 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);
    312 void vp9_lpf_vertical_8_dual_sse2(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);
    313 #define vp9_lpf_vertical_8_dual vp9_lpf_vertical_8_dual_sse2
    314 
    315 void vp9_tm_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    316 void vp9_tm_predictor_16x16_sse2(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    317 #define vp9_tm_predictor_16x16 vp9_tm_predictor_16x16_sse2
    318 
    319 void vp9_tm_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    320 #define vp9_tm_predictor_32x32 vp9_tm_predictor_32x32_c
    321 
    322 void vp9_tm_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    323 void vp9_tm_predictor_4x4_sse(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    324 #define vp9_tm_predictor_4x4 vp9_tm_predictor_4x4_sse
    325 
    326 void vp9_tm_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    327 void vp9_tm_predictor_8x8_sse2(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    328 #define vp9_tm_predictor_8x8 vp9_tm_predictor_8x8_sse2
    329 
    330 void vp9_v_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    331 void vp9_v_predictor_16x16_sse2(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    332 #define vp9_v_predictor_16x16 vp9_v_predictor_16x16_sse2
    333 
    334 void vp9_v_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    335 void vp9_v_predictor_32x32_sse2(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    336 #define vp9_v_predictor_32x32 vp9_v_predictor_32x32_sse2
    337 
    338 void vp9_v_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    339 void vp9_v_predictor_4x4_sse(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    340 #define vp9_v_predictor_4x4 vp9_v_predictor_4x4_sse
    341 
    342 void vp9_v_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    343 void vp9_v_predictor_8x8_sse(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
    344 #define vp9_v_predictor_8x8 vp9_v_predictor_8x8_sse
    345 
    346 void vp9_rtcd(void);
    347 
    348 #ifdef RTCD_C
    349 #include "vpx_ports/x86.h"
    350 static void setup_rtcd_internal(void)
    351 {
    352     int flags = x86_simd_caps();
    353 
    354     (void)flags;
    355 
    356 }
    357 #endif
    358 
    359 #ifdef __cplusplus
    360 }  // extern "C"
    361 #endif
    362 
    363 #endif
    364