OLD | NEW |
(Empty) | |
| 1 #ifndef VP__RTCD_ |
| 2 #define VP__RTCD_ |
| 3 |
| 4 #ifdef RTCD_C |
| 5 #define RTCD_EXTERN |
| 6 #else |
| 7 #define RTCD_EXTERN extern |
| 8 #endif |
| 9 |
| 10 /* |
| 11 * VP8 |
| 12 */ |
| 13 |
| 14 struct blockd; |
| 15 struct macroblockd; |
| 16 struct loop_filter_info; |
| 17 |
| 18 /* Encoder forward decls */ |
| 19 struct block; |
| 20 struct macroblock; |
| 21 struct variance_vtable; |
| 22 union int_mv; |
| 23 struct yv12_buffer_config; |
| 24 |
| 25 void vp8_dequantize_b_c(struct blockd*, short *dqc); |
| 26 void vp8_dequantize_b_mmx(struct blockd*, short *dqc); |
| 27 #define vp8_dequantize_b vp8_dequantize_b_mmx |
| 28 |
| 29 void vp8_dequant_idct_add_c(short *input, short *dq, unsigned char *output, int
stride); |
| 30 void vp8_dequant_idct_add_mmx(short *input, short *dq, unsigned char *output, in
t stride); |
| 31 #define vp8_dequant_idct_add vp8_dequant_idct_add_mmx |
| 32 |
| 33 void vp8_dequant_idct_add_y_block_c(short *q, short *dq, unsigned char *dst, int
stride, char *eobs); |
| 34 void vp8_dequant_idct_add_y_block_mmx(short *q, short *dq, unsigned char *dst, i
nt stride, char *eobs); |
| 35 void vp8_dequant_idct_add_y_block_sse2(short *q, short *dq, unsigned char *dst,
int stride, char *eobs); |
| 36 #define vp8_dequant_idct_add_y_block vp8_dequant_idct_add_y_block_sse2 |
| 37 |
| 38 void vp8_dequant_idct_add_uv_block_c(short *q, short *dq, unsigned char *dst_u,
unsigned char *dst_v, int stride, char *eobs); |
| 39 void vp8_dequant_idct_add_uv_block_mmx(short *q, short *dq, unsigned char *dst_u
, unsigned char *dst_v, int stride, char *eobs); |
| 40 void vp8_dequant_idct_add_uv_block_sse2(short *q, short *dq, unsigned char *dst_
u, unsigned char *dst_v, int stride, char *eobs); |
| 41 #define vp8_dequant_idct_add_uv_block vp8_dequant_idct_add_uv_block_sse2 |
| 42 |
| 43 void vp8_loop_filter_mbv_c(unsigned char *y, unsigned char *u, unsigned char *v,
int ystride, int uv_stride, struct loop_filter_info *lfi); |
| 44 void vp8_loop_filter_mbv_mmx(unsigned char *y, unsigned char *u, unsigned char *
v, int ystride, int uv_stride, struct loop_filter_info *lfi); |
| 45 void vp8_loop_filter_mbv_sse2(unsigned char *y, unsigned char *u, unsigned char
*v, int ystride, int uv_stride, struct loop_filter_info *lfi); |
| 46 #define vp8_loop_filter_mbv vp8_loop_filter_mbv_sse2 |
| 47 |
| 48 void vp8_loop_filter_bv_c(unsigned char *y, unsigned char *u, unsigned char *v,
int ystride, int uv_stride, struct loop_filter_info *lfi); |
| 49 void vp8_loop_filter_bv_mmx(unsigned char *y, unsigned char *u, unsigned char *v
, int ystride, int uv_stride, struct loop_filter_info *lfi); |
| 50 void vp8_loop_filter_bv_sse2(unsigned char *y, unsigned char *u, unsigned char *
v, int ystride, int uv_stride, struct loop_filter_info *lfi); |
| 51 #define vp8_loop_filter_bv vp8_loop_filter_bv_sse2 |
| 52 |
| 53 void vp8_loop_filter_mbh_c(unsigned char *y, unsigned char *u, unsigned char *v,
int ystride, int uv_stride, struct loop_filter_info *lfi); |
| 54 void vp8_loop_filter_mbh_mmx(unsigned char *y, unsigned char *u, unsigned char *
v, int ystride, int uv_stride, struct loop_filter_info *lfi); |
| 55 void vp8_loop_filter_mbh_sse2(unsigned char *y, unsigned char *u, unsigned char
*v, int ystride, int uv_stride, struct loop_filter_info *lfi); |
| 56 #define vp8_loop_filter_mbh vp8_loop_filter_mbh_sse2 |
| 57 |
| 58 void vp8_loop_filter_bh_c(unsigned char *y, unsigned char *u, unsigned char *v,
int ystride, int uv_stride, struct loop_filter_info *lfi); |
| 59 void vp8_loop_filter_bh_mmx(unsigned char *y, unsigned char *u, unsigned char *v
, int ystride, int uv_stride, struct loop_filter_info *lfi); |
| 60 void vp8_loop_filter_bh_sse2(unsigned char *y, unsigned char *u, unsigned char *
v, int ystride, int uv_stride, struct loop_filter_info *lfi); |
| 61 #define vp8_loop_filter_bh vp8_loop_filter_bh_sse2 |
| 62 |
| 63 void vp8_loop_filter_simple_vertical_edge_c(unsigned char *y, int ystride, const
unsigned char *blimit); |
| 64 void vp8_loop_filter_simple_vertical_edge_mmx(unsigned char *y, int ystride, con
st unsigned char *blimit); |
| 65 void vp8_loop_filter_simple_vertical_edge_sse2(unsigned char *y, int ystride, co
nst unsigned char *blimit); |
| 66 #define vp8_loop_filter_simple_mbv vp8_loop_filter_simple_vertical_edge_sse2 |
| 67 |
| 68 void vp8_loop_filter_simple_horizontal_edge_c(unsigned char *y, int ystride, con
st unsigned char *blimit); |
| 69 void vp8_loop_filter_simple_horizontal_edge_mmx(unsigned char *y, int ystride, c
onst unsigned char *blimit); |
| 70 void vp8_loop_filter_simple_horizontal_edge_sse2(unsigned char *y, int ystride,
const unsigned char *blimit); |
| 71 #define vp8_loop_filter_simple_mbh vp8_loop_filter_simple_horizontal_edge_sse2 |
| 72 |
| 73 void vp8_loop_filter_bvs_c(unsigned char *y, int ystride, const unsigned char *b
limit); |
| 74 void vp8_loop_filter_bvs_mmx(unsigned char *y, int ystride, const unsigned char
*blimit); |
| 75 void vp8_loop_filter_bvs_sse2(unsigned char *y, int ystride, const unsigned char
*blimit); |
| 76 #define vp8_loop_filter_simple_bv vp8_loop_filter_bvs_sse2 |
| 77 |
| 78 void vp8_loop_filter_bhs_c(unsigned char *y, int ystride, const unsigned char *b
limit); |
| 79 void vp8_loop_filter_bhs_mmx(unsigned char *y, int ystride, const unsigned char
*blimit); |
| 80 void vp8_loop_filter_bhs_sse2(unsigned char *y, int ystride, const unsigned char
*blimit); |
| 81 #define vp8_loop_filter_simple_bh vp8_loop_filter_bhs_sse2 |
| 82 |
| 83 void vp8_short_idct4x4llm_c(short *input, unsigned char *pred, int pitch, unsign
ed char *dst, int dst_stride); |
| 84 void vp8_short_idct4x4llm_mmx(short *input, unsigned char *pred, int pitch, unsi
gned char *dst, int dst_stride); |
| 85 #define vp8_short_idct4x4llm vp8_short_idct4x4llm_mmx |
| 86 |
| 87 void vp8_short_inv_walsh4x4_1_c(short *input, short *output); |
| 88 #define vp8_short_inv_walsh4x4_1 vp8_short_inv_walsh4x4_1_c |
| 89 |
| 90 void vp8_short_inv_walsh4x4_c(short *input, short *output); |
| 91 void vp8_short_inv_walsh4x4_mmx(short *input, short *output); |
| 92 void vp8_short_inv_walsh4x4_sse2(short *input, short *output); |
| 93 #define vp8_short_inv_walsh4x4 vp8_short_inv_walsh4x4_sse2 |
| 94 |
| 95 void vp8_dc_only_idct_add_c(short input, unsigned char *pred, int pred_stride, u
nsigned char *dst, int dst_stride); |
| 96 void vp8_dc_only_idct_add_mmx(short input, unsigned char *pred, int pred_stride,
unsigned char *dst, int dst_stride); |
| 97 #define vp8_dc_only_idct_add vp8_dc_only_idct_add_mmx |
| 98 |
| 99 void vp8_copy_mem16x16_c(unsigned char *src, int src_pitch, unsigned char *dst,
int dst_pitch); |
| 100 void vp8_copy_mem16x16_mmx(unsigned char *src, int src_pitch, unsigned char *dst
, int dst_pitch); |
| 101 void vp8_copy_mem16x16_sse2(unsigned char *src, int src_pitch, unsigned char *ds
t, int dst_pitch); |
| 102 #define vp8_copy_mem16x16 vp8_copy_mem16x16_sse2 |
| 103 |
| 104 void vp8_copy_mem8x8_c(unsigned char *src, int src_pitch, unsigned char *dst, in
t dst_pitch); |
| 105 void vp8_copy_mem8x8_mmx(unsigned char *src, int src_pitch, unsigned char *dst,
int dst_pitch); |
| 106 #define vp8_copy_mem8x8 vp8_copy_mem8x8_mmx |
| 107 |
| 108 void vp8_copy_mem8x4_c(unsigned char *src, int src_pitch, unsigned char *dst, in
t dst_pitch); |
| 109 void vp8_copy_mem8x4_mmx(unsigned char *src, int src_pitch, unsigned char *dst,
int dst_pitch); |
| 110 #define vp8_copy_mem8x4 vp8_copy_mem8x4_mmx |
| 111 |
| 112 void vp8_build_intra_predictors_mby_s_c(struct macroblockd *x, unsigned char * y
above_row, unsigned char * yleft, int left_stride, unsigned char * ypred_ptr, in
t y_stride); |
| 113 void vp8_build_intra_predictors_mby_s_sse2(struct macroblockd *x, unsigned char
* yabove_row, unsigned char * yleft, int left_stride, unsigned char * ypred_ptr,
int y_stride); |
| 114 void vp8_build_intra_predictors_mby_s_ssse3(struct macroblockd *x, unsigned char
* yabove_row, unsigned char * yleft, int left_stride, unsigned char * ypred_ptr
, int y_stride); |
| 115 RTCD_EXTERN void (*vp8_build_intra_predictors_mby_s)(struct macroblockd *x, unsi
gned char * yabove_row, unsigned char * yleft, int left_stride, unsigned char *
ypred_ptr, int y_stride); |
| 116 |
| 117 void vp8_build_intra_predictors_mbuv_s_c(struct macroblockd *x, unsigned char *
uabove_row, unsigned char * vabove_row, unsigned char *uleft, unsigned char *vl
eft, int left_stride, unsigned char * upred_ptr, unsigned char * vpred_ptr, int
pred_stride); |
| 118 void vp8_build_intra_predictors_mbuv_s_sse2(struct macroblockd *x, unsigned char
* uabove_row, unsigned char * vabove_row, unsigned char *uleft, unsigned char
*vleft, int left_stride, unsigned char * upred_ptr, unsigned char * vpred_ptr, i
nt pred_stride); |
| 119 void vp8_build_intra_predictors_mbuv_s_ssse3(struct macroblockd *x, unsigned cha
r * uabove_row, unsigned char * vabove_row, unsigned char *uleft, unsigned char
*vleft, int left_stride, unsigned char * upred_ptr, unsigned char * vpred_ptr,
int pred_stride); |
| 120 RTCD_EXTERN void (*vp8_build_intra_predictors_mbuv_s)(struct macroblockd *x, uns
igned char * uabove_row, unsigned char * vabove_row, unsigned char *uleft, unsi
gned char *vleft, int left_stride, unsigned char * upred_ptr, unsigned char * vp
red_ptr, int pred_stride); |
| 121 |
| 122 void vp8_intra4x4_predict_c(unsigned char *Above, unsigned char *yleft, int left
_stride, int b_mode, unsigned char *dst, int dst_stride, unsigned char top_left)
; |
| 123 #define vp8_intra4x4_predict vp8_intra4x4_predict_c |
| 124 |
| 125 void vp8_mbpost_proc_down_c(unsigned char *dst, int pitch, int rows, int cols,in
t flimit); |
| 126 void vp8_mbpost_proc_down_mmx(unsigned char *dst, int pitch, int rows, int cols,
int flimit); |
| 127 void vp8_mbpost_proc_down_xmm(unsigned char *dst, int pitch, int rows, int cols,
int flimit); |
| 128 #define vp8_mbpost_proc_down vp8_mbpost_proc_down_xmm |
| 129 |
| 130 void vp8_mbpost_proc_across_ip_c(unsigned char *dst, int pitch, int rows, int co
ls,int flimit); |
| 131 void vp8_mbpost_proc_across_ip_xmm(unsigned char *dst, int pitch, int rows, int
cols,int flimit); |
| 132 #define vp8_mbpost_proc_across_ip vp8_mbpost_proc_across_ip_xmm |
| 133 |
| 134 void vp8_post_proc_down_and_across_mb_row_c(unsigned char *src, unsigned char *d
st, int src_pitch, int dst_pitch, int cols, unsigned char *flimits, int size); |
| 135 void vp8_post_proc_down_and_across_mb_row_sse2(unsigned char *src, unsigned char
*dst, int src_pitch, int dst_pitch, int cols, unsigned char *flimits, int size)
; |
| 136 #define vp8_post_proc_down_and_across_mb_row vp8_post_proc_down_and_across_mb_ro
w_sse2 |
| 137 |
| 138 void vp8_plane_add_noise_c(unsigned char *s, char *noise, char blackclamp[16], c
har whiteclamp[16], char bothclamp[16], unsigned int w, unsigned int h, int pitc
h); |
| 139 void vp8_plane_add_noise_mmx(unsigned char *s, char *noise, char blackclamp[16],
char whiteclamp[16], char bothclamp[16], unsigned int w, unsigned int h, int pi
tch); |
| 140 void vp8_plane_add_noise_wmt(unsigned char *s, char *noise, char blackclamp[16],
char whiteclamp[16], char bothclamp[16], unsigned int w, unsigned int h, int pi
tch); |
| 141 #define vp8_plane_add_noise vp8_plane_add_noise_wmt |
| 142 |
| 143 void vp8_blend_mb_inner_c(unsigned char *y, unsigned char *u, unsigned char *v,
int y1, int u1, int v1, int alpha, int stride); |
| 144 #define vp8_blend_mb_inner vp8_blend_mb_inner_c |
| 145 |
| 146 void vp8_blend_mb_outer_c(unsigned char *y, unsigned char *u, unsigned char *v,
int y1, int u1, int v1, int alpha, int stride); |
| 147 #define vp8_blend_mb_outer vp8_blend_mb_outer_c |
| 148 |
| 149 void vp8_blend_b_c(unsigned char *y, unsigned char *u, unsigned char *v, int y1,
int u1, int v1, int alpha, int stride); |
| 150 #define vp8_blend_b vp8_blend_b_c |
| 151 |
| 152 void vp8_filter_by_weight16x16_c(unsigned char *src, int src_stride, unsigned ch
ar *dst, int dst_stride, int src_weight); |
| 153 void vp8_filter_by_weight16x16_sse2(unsigned char *src, int src_stride, unsigned
char *dst, int dst_stride, int src_weight); |
| 154 #define vp8_filter_by_weight16x16 vp8_filter_by_weight16x16_sse2 |
| 155 |
| 156 void vp8_filter_by_weight8x8_c(unsigned char *src, int src_stride, unsigned char
*dst, int dst_stride, int src_weight); |
| 157 void vp8_filter_by_weight8x8_sse2(unsigned char *src, int src_stride, unsigned c
har *dst, int dst_stride, int src_weight); |
| 158 #define vp8_filter_by_weight8x8 vp8_filter_by_weight8x8_sse2 |
| 159 |
| 160 void vp8_filter_by_weight4x4_c(unsigned char *src, int src_stride, unsigned char
*dst, int dst_stride, int src_weight); |
| 161 #define vp8_filter_by_weight4x4 vp8_filter_by_weight4x4_c |
| 162 |
| 163 void vp8_sixtap_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int
yofst, unsigned char *dst, int dst_pitch); |
| 164 void vp8_sixtap_predict16x16_mmx(unsigned char *src, int src_pitch, int xofst, i
nt yofst, unsigned char *dst, int dst_pitch); |
| 165 void vp8_sixtap_predict16x16_sse2(unsigned char *src, int src_pitch, int xofst,
int yofst, unsigned char *dst, int dst_pitch); |
| 166 void vp8_sixtap_predict16x16_ssse3(unsigned char *src, int src_pitch, int xofst,
int yofst, unsigned char *dst, int dst_pitch); |
| 167 RTCD_EXTERN void (*vp8_sixtap_predict16x16)(unsigned char *src, int src_pitch, i
nt xofst, int yofst, unsigned char *dst, int dst_pitch); |
| 168 |
| 169 void vp8_sixtap_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int y
ofst, unsigned char *dst, int dst_pitch); |
| 170 void vp8_sixtap_predict8x8_mmx(unsigned char *src, int src_pitch, int xofst, int
yofst, unsigned char *dst, int dst_pitch); |
| 171 void vp8_sixtap_predict8x8_sse2(unsigned char *src, int src_pitch, int xofst, in
t yofst, unsigned char *dst, int dst_pitch); |
| 172 void vp8_sixtap_predict8x8_ssse3(unsigned char *src, int src_pitch, int xofst, i
nt yofst, unsigned char *dst, int dst_pitch); |
| 173 RTCD_EXTERN void (*vp8_sixtap_predict8x8)(unsigned char *src, int src_pitch, int
xofst, int yofst, unsigned char *dst, int dst_pitch); |
| 174 |
| 175 void vp8_sixtap_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int y
ofst, unsigned char *dst, int dst_pitch); |
| 176 void vp8_sixtap_predict8x4_mmx(unsigned char *src, int src_pitch, int xofst, int
yofst, unsigned char *dst, int dst_pitch); |
| 177 void vp8_sixtap_predict8x4_sse2(unsigned char *src, int src_pitch, int xofst, in
t yofst, unsigned char *dst, int dst_pitch); |
| 178 void vp8_sixtap_predict8x4_ssse3(unsigned char *src, int src_pitch, int xofst, i
nt yofst, unsigned char *dst, int dst_pitch); |
| 179 RTCD_EXTERN void (*vp8_sixtap_predict8x4)(unsigned char *src, int src_pitch, int
xofst, int yofst, unsigned char *dst, int dst_pitch); |
| 180 |
| 181 void vp8_sixtap_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int y
ofst, unsigned char *dst, int dst_pitch); |
| 182 void vp8_sixtap_predict4x4_mmx(unsigned char *src, int src_pitch, int xofst, int
yofst, unsigned char *dst, int dst_pitch); |
| 183 void vp8_sixtap_predict4x4_ssse3(unsigned char *src, int src_pitch, int xofst, i
nt yofst, unsigned char *dst, int dst_pitch); |
| 184 RTCD_EXTERN void (*vp8_sixtap_predict4x4)(unsigned char *src, int src_pitch, int
xofst, int yofst, unsigned char *dst, int dst_pitch); |
| 185 |
| 186 void vp8_bilinear_predict16x16_c(unsigned char *src, int src_pitch, int xofst, i
nt yofst, unsigned char *dst, int dst_pitch); |
| 187 void vp8_bilinear_predict16x16_mmx(unsigned char *src, int src_pitch, int xofst,
int yofst, unsigned char *dst, int dst_pitch); |
| 188 void vp8_bilinear_predict16x16_sse2(unsigned char *src, int src_pitch, int xofst
, int yofst, unsigned char *dst, int dst_pitch); |
| 189 void vp8_bilinear_predict16x16_ssse3(unsigned char *src, int src_pitch, int xofs
t, int yofst, unsigned char *dst, int dst_pitch); |
| 190 RTCD_EXTERN void (*vp8_bilinear_predict16x16)(unsigned char *src, int src_pitch,
int xofst, int yofst, unsigned char *dst, int dst_pitch); |
| 191 |
| 192 void vp8_bilinear_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int
yofst, unsigned char *dst, int dst_pitch); |
| 193 void vp8_bilinear_predict8x8_mmx(unsigned char *src, int src_pitch, int xofst, i
nt yofst, unsigned char *dst, int dst_pitch); |
| 194 void vp8_bilinear_predict8x8_sse2(unsigned char *src, int src_pitch, int xofst,
int yofst, unsigned char *dst, int dst_pitch); |
| 195 void vp8_bilinear_predict8x8_ssse3(unsigned char *src, int src_pitch, int xofst,
int yofst, unsigned char *dst, int dst_pitch); |
| 196 RTCD_EXTERN void (*vp8_bilinear_predict8x8)(unsigned char *src, int src_pitch, i
nt xofst, int yofst, unsigned char *dst, int dst_pitch); |
| 197 |
| 198 void vp8_bilinear_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int
yofst, unsigned char *dst, int dst_pitch); |
| 199 void vp8_bilinear_predict8x4_mmx(unsigned char *src, int src_pitch, int xofst, i
nt yofst, unsigned char *dst, int dst_pitch); |
| 200 #define vp8_bilinear_predict8x4 vp8_bilinear_predict8x4_mmx |
| 201 |
| 202 void vp8_bilinear_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int
yofst, unsigned char *dst, int dst_pitch); |
| 203 void vp8_bilinear_predict4x4_mmx(unsigned char *src, int src_pitch, int xofst, i
nt yofst, unsigned char *dst, int dst_pitch); |
| 204 #define vp8_bilinear_predict4x4 vp8_bilinear_predict4x4_mmx |
| 205 |
| 206 unsigned int vp8_variance4x4_c(const unsigned char *src_ptr, int source_stride,
const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
| 207 unsigned int vp8_variance4x4_mmx(const unsigned char *src_ptr, int source_stride
, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
| 208 unsigned int vp8_variance4x4_wmt(const unsigned char *src_ptr, int source_stride
, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
| 209 #define vp8_variance4x4 vp8_variance4x4_wmt |
| 210 |
| 211 unsigned int vp8_variance8x8_c(const unsigned char *src_ptr, int source_stride,
const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
| 212 unsigned int vp8_variance8x8_mmx(const unsigned char *src_ptr, int source_stride
, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
| 213 unsigned int vp8_variance8x8_wmt(const unsigned char *src_ptr, int source_stride
, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
| 214 #define vp8_variance8x8 vp8_variance8x8_wmt |
| 215 |
| 216 unsigned int vp8_variance8x16_c(const unsigned char *src_ptr, int source_stride,
const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
| 217 unsigned int vp8_variance8x16_mmx(const unsigned char *src_ptr, int source_strid
e, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
| 218 unsigned int vp8_variance8x16_wmt(const unsigned char *src_ptr, int source_strid
e, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
| 219 #define vp8_variance8x16 vp8_variance8x16_wmt |
| 220 |
| 221 unsigned int vp8_variance16x8_c(const unsigned char *src_ptr, int source_stride,
const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
| 222 unsigned int vp8_variance16x8_mmx(const unsigned char *src_ptr, int source_strid
e, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
| 223 unsigned int vp8_variance16x8_wmt(const unsigned char *src_ptr, int source_strid
e, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
| 224 #define vp8_variance16x8 vp8_variance16x8_wmt |
| 225 |
| 226 unsigned int vp8_variance16x16_c(const unsigned char *src_ptr, int source_stride
, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
| 227 unsigned int vp8_variance16x16_mmx(const unsigned char *src_ptr, int source_stri
de, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
| 228 unsigned int vp8_variance16x16_wmt(const unsigned char *src_ptr, int source_stri
de, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
| 229 #define vp8_variance16x16 vp8_variance16x16_wmt |
| 230 |
| 231 unsigned int vp8_sub_pixel_variance4x4_c(const unsigned char *src_ptr, int sou
rce_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstr
ide, unsigned int *sse); |
| 232 unsigned int vp8_sub_pixel_variance4x4_mmx(const unsigned char *src_ptr, int s
ource_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refs
tride, unsigned int *sse); |
| 233 unsigned int vp8_sub_pixel_variance4x4_wmt(const unsigned char *src_ptr, int s
ource_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refs
tride, unsigned int *sse); |
| 234 #define vp8_sub_pixel_variance4x4 vp8_sub_pixel_variance4x4_wmt |
| 235 |
| 236 unsigned int vp8_sub_pixel_variance8x8_c(const unsigned char *src_ptr, int sou
rce_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstr
ide, unsigned int *sse); |
| 237 unsigned int vp8_sub_pixel_variance8x8_mmx(const unsigned char *src_ptr, int s
ource_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refs
tride, unsigned int *sse); |
| 238 unsigned int vp8_sub_pixel_variance8x8_wmt(const unsigned char *src_ptr, int s
ource_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refs
tride, unsigned int *sse); |
| 239 #define vp8_sub_pixel_variance8x8 vp8_sub_pixel_variance8x8_wmt |
| 240 |
| 241 unsigned int vp8_sub_pixel_variance8x16_c(const unsigned char *src_ptr, int so
urce_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refst
ride, unsigned int *sse); |
| 242 unsigned int vp8_sub_pixel_variance8x16_mmx(const unsigned char *src_ptr, int
source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Ref
stride, unsigned int *sse); |
| 243 unsigned int vp8_sub_pixel_variance8x16_wmt(const unsigned char *src_ptr, int
source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Ref
stride, unsigned int *sse); |
| 244 #define vp8_sub_pixel_variance8x16 vp8_sub_pixel_variance8x16_wmt |
| 245 |
| 246 unsigned int vp8_sub_pixel_variance16x8_c(const unsigned char *src_ptr, int so
urce_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refst
ride, unsigned int *sse); |
| 247 unsigned int vp8_sub_pixel_variance16x8_mmx(const unsigned char *src_ptr, int
source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Ref
stride, unsigned int *sse); |
| 248 unsigned int vp8_sub_pixel_variance16x8_wmt(const unsigned char *src_ptr, int
source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Ref
stride, unsigned int *sse); |
| 249 unsigned int vp8_sub_pixel_variance16x8_ssse3(const unsigned char *src_ptr, int
source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int R
efstride, unsigned int *sse); |
| 250 RTCD_EXTERN unsigned int (*vp8_sub_pixel_variance16x8)(const unsigned char *src
_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_p
tr, int Refstride, unsigned int *sse); |
| 251 |
| 252 unsigned int vp8_sub_pixel_variance16x16_c(const unsigned char *src_ptr, int s
ource_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refs
tride, unsigned int *sse); |
| 253 unsigned int vp8_sub_pixel_variance16x16_mmx(const unsigned char *src_ptr, int
source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Re
fstride, unsigned int *sse); |
| 254 unsigned int vp8_sub_pixel_variance16x16_wmt(const unsigned char *src_ptr, int
source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Re
fstride, unsigned int *sse); |
| 255 unsigned int vp8_sub_pixel_variance16x16_ssse3(const unsigned char *src_ptr, in
t source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int
Refstride, unsigned int *sse); |
| 256 RTCD_EXTERN unsigned int (*vp8_sub_pixel_variance16x16)(const unsigned char *sr
c_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_
ptr, int Refstride, unsigned int *sse); |
| 257 |
| 258 unsigned int vp8_variance_halfpixvar16x16_h_c(const unsigned char *src_ptr, int
source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse)
; |
| 259 unsigned int vp8_variance_halfpixvar16x16_h_mmx(const unsigned char *src_ptr, in
t source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *ss
e); |
| 260 unsigned int vp8_variance_halfpixvar16x16_h_wmt(const unsigned char *src_ptr, in
t source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *ss
e); |
| 261 #define vp8_variance_halfpixvar16x16_h vp8_variance_halfpixvar16x16_h_wmt |
| 262 |
| 263 unsigned int vp8_variance_halfpixvar16x16_v_c(const unsigned char *src_ptr, int
source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse)
; |
| 264 unsigned int vp8_variance_halfpixvar16x16_v_mmx(const unsigned char *src_ptr, in
t source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *ss
e); |
| 265 unsigned int vp8_variance_halfpixvar16x16_v_wmt(const unsigned char *src_ptr, in
t source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *ss
e); |
| 266 #define vp8_variance_halfpixvar16x16_v vp8_variance_halfpixvar16x16_v_wmt |
| 267 |
| 268 unsigned int vp8_variance_halfpixvar16x16_hv_c(const unsigned char *src_ptr, int
source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse
); |
| 269 unsigned int vp8_variance_halfpixvar16x16_hv_mmx(const unsigned char *src_ptr, i
nt source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *s
se); |
| 270 unsigned int vp8_variance_halfpixvar16x16_hv_wmt(const unsigned char *src_ptr, i
nt source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *s
se); |
| 271 #define vp8_variance_halfpixvar16x16_hv vp8_variance_halfpixvar16x16_hv_wmt |
| 272 |
| 273 unsigned int vp8_sad4x4_c(const unsigned char *src_ptr, int src_stride, const un
signed char *ref_ptr, int ref_stride, unsigned int max_sad); |
| 274 unsigned int vp8_sad4x4_mmx(const unsigned char *src_ptr, int src_stride, const
unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
| 275 unsigned int vp8_sad4x4_wmt(const unsigned char *src_ptr, int src_stride, const
unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
| 276 #define vp8_sad4x4 vp8_sad4x4_wmt |
| 277 |
| 278 unsigned int vp8_sad8x8_c(const unsigned char *src_ptr, int src_stride, const un
signed char *ref_ptr, int ref_stride, unsigned int max_sad); |
| 279 unsigned int vp8_sad8x8_mmx(const unsigned char *src_ptr, int src_stride, const
unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
| 280 unsigned int vp8_sad8x8_wmt(const unsigned char *src_ptr, int src_stride, const
unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
| 281 #define vp8_sad8x8 vp8_sad8x8_wmt |
| 282 |
| 283 unsigned int vp8_sad8x16_c(const unsigned char *src_ptr, int src_stride, const u
nsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
| 284 unsigned int vp8_sad8x16_mmx(const unsigned char *src_ptr, int src_stride, const
unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
| 285 unsigned int vp8_sad8x16_wmt(const unsigned char *src_ptr, int src_stride, const
unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
| 286 #define vp8_sad8x16 vp8_sad8x16_wmt |
| 287 |
| 288 unsigned int vp8_sad16x8_c(const unsigned char *src_ptr, int src_stride, const u
nsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
| 289 unsigned int vp8_sad16x8_mmx(const unsigned char *src_ptr, int src_stride, const
unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
| 290 unsigned int vp8_sad16x8_wmt(const unsigned char *src_ptr, int src_stride, const
unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
| 291 #define vp8_sad16x8 vp8_sad16x8_wmt |
| 292 |
| 293 unsigned int vp8_sad16x16_c(const unsigned char *src_ptr, int src_stride, const
unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
| 294 unsigned int vp8_sad16x16_mmx(const unsigned char *src_ptr, int src_stride, cons
t unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
| 295 unsigned int vp8_sad16x16_wmt(const unsigned char *src_ptr, int src_stride, cons
t unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
| 296 unsigned int vp8_sad16x16_sse3(const unsigned char *src_ptr, int src_stride, con
st unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
| 297 RTCD_EXTERN unsigned int (*vp8_sad16x16)(const unsigned char *src_ptr, int src_s
tride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); |
| 298 |
| 299 void vp8_sad4x4x3_c(const unsigned char *src_ptr, int src_stride, const unsigned
char *ref_ptr, int ref_stride, unsigned int *sad_array); |
| 300 void vp8_sad4x4x3_sse3(const unsigned char *src_ptr, int src_stride, const unsig
ned char *ref_ptr, int ref_stride, unsigned int *sad_array); |
| 301 RTCD_EXTERN void (*vp8_sad4x4x3)(const unsigned char *src_ptr, int src_stride, c
onst unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array); |
| 302 |
| 303 void vp8_sad8x8x3_c(const unsigned char *src_ptr, int src_stride, const unsigned
char *ref_ptr, int ref_stride, unsigned int *sad_array); |
| 304 void vp8_sad8x8x3_sse3(const unsigned char *src_ptr, int src_stride, const unsig
ned char *ref_ptr, int ref_stride, unsigned int *sad_array); |
| 305 RTCD_EXTERN void (*vp8_sad8x8x3)(const unsigned char *src_ptr, int src_stride, c
onst unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array); |
| 306 |
| 307 void vp8_sad8x16x3_c(const unsigned char *src_ptr, int src_stride, const unsigne
d char *ref_ptr, int ref_stride, unsigned int *sad_array); |
| 308 void vp8_sad8x16x3_sse3(const unsigned char *src_ptr, int src_stride, const unsi
gned char *ref_ptr, int ref_stride, unsigned int *sad_array); |
| 309 RTCD_EXTERN void (*vp8_sad8x16x3)(const unsigned char *src_ptr, int src_stride,
const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array); |
| 310 |
| 311 void vp8_sad16x8x3_c(const unsigned char *src_ptr, int src_stride, const unsigne
d char *ref_ptr, int ref_stride, unsigned int *sad_array); |
| 312 void vp8_sad16x8x3_sse3(const unsigned char *src_ptr, int src_stride, const unsi
gned char *ref_ptr, int ref_stride, unsigned int *sad_array); |
| 313 void vp8_sad16x8x3_ssse3(const unsigned char *src_ptr, int src_stride, const uns
igned char *ref_ptr, int ref_stride, unsigned int *sad_array); |
| 314 RTCD_EXTERN void (*vp8_sad16x8x3)(const unsigned char *src_ptr, int src_stride,
const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array); |
| 315 |
| 316 void vp8_sad16x16x3_c(const unsigned char *src_ptr, int src_stride, const unsign
ed char *ref_ptr, int ref_stride, unsigned int *sad_array); |
| 317 void vp8_sad16x16x3_sse3(const unsigned char *src_ptr, int src_stride, const uns
igned char *ref_ptr, int ref_stride, unsigned int *sad_array); |
| 318 void vp8_sad16x16x3_ssse3(const unsigned char *src_ptr, int src_stride, const un
signed char *ref_ptr, int ref_stride, unsigned int *sad_array); |
| 319 RTCD_EXTERN void (*vp8_sad16x16x3)(const unsigned char *src_ptr, int src_stride,
const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array); |
| 320 |
| 321 void vp8_sad4x4x8_c(const unsigned char *src_ptr, int src_stride, const unsigned
char *ref_ptr, int ref_stride, unsigned short *sad_array); |
| 322 void vp8_sad4x4x8_sse4(const unsigned char *src_ptr, int src_stride, const unsig
ned char *ref_ptr, int ref_stride, unsigned short *sad_array); |
| 323 RTCD_EXTERN void (*vp8_sad4x4x8)(const unsigned char *src_ptr, int src_stride, c
onst unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array); |
| 324 |
| 325 void vp8_sad8x8x8_c(const unsigned char *src_ptr, int src_stride, const unsigned
char *ref_ptr, int ref_stride, unsigned short *sad_array); |
| 326 void vp8_sad8x8x8_sse4(const unsigned char *src_ptr, int src_stride, const unsig
ned char *ref_ptr, int ref_stride, unsigned short *sad_array); |
| 327 RTCD_EXTERN void (*vp8_sad8x8x8)(const unsigned char *src_ptr, int src_stride, c
onst unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array); |
| 328 |
| 329 void vp8_sad8x16x8_c(const unsigned char *src_ptr, int src_stride, const unsigne
d char *ref_ptr, int ref_stride, unsigned short *sad_array); |
| 330 void vp8_sad8x16x8_sse4(const unsigned char *src_ptr, int src_stride, const unsi
gned char *ref_ptr, int ref_stride, unsigned short *sad_array); |
| 331 RTCD_EXTERN void (*vp8_sad8x16x8)(const unsigned char *src_ptr, int src_stride,
const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array); |
| 332 |
| 333 void vp8_sad16x8x8_c(const unsigned char *src_ptr, int src_stride, const unsigne
d char *ref_ptr, int ref_stride, unsigned short *sad_array); |
| 334 void vp8_sad16x8x8_sse4(const unsigned char *src_ptr, int src_stride, const unsi
gned char *ref_ptr, int ref_stride, unsigned short *sad_array); |
| 335 RTCD_EXTERN void (*vp8_sad16x8x8)(const unsigned char *src_ptr, int src_stride,
const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array); |
| 336 |
| 337 void vp8_sad16x16x8_c(const unsigned char *src_ptr, int src_stride, const unsign
ed char *ref_ptr, int ref_stride, unsigned short *sad_array); |
| 338 void vp8_sad16x16x8_sse4(const unsigned char *src_ptr, int src_stride, const uns
igned char *ref_ptr, int ref_stride, unsigned short *sad_array); |
| 339 RTCD_EXTERN void (*vp8_sad16x16x8)(const unsigned char *src_ptr, int src_stride,
const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array); |
| 340 |
| 341 void vp8_sad4x4x4d_c(const unsigned char *src_ptr, int src_stride, const unsigne
d char * const ref_ptr[], int ref_stride, unsigned int *sad_array); |
| 342 void vp8_sad4x4x4d_sse3(const unsigned char *src_ptr, int src_stride, const unsi
gned char * const ref_ptr[], int ref_stride, unsigned int *sad_array); |
| 343 RTCD_EXTERN void (*vp8_sad4x4x4d)(const unsigned char *src_ptr, int src_stride,
const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array)
; |
| 344 |
| 345 void vp8_sad8x8x4d_c(const unsigned char *src_ptr, int src_stride, const unsigne
d char * const ref_ptr[], int ref_stride, unsigned int *sad_array); |
| 346 void vp8_sad8x8x4d_sse3(const unsigned char *src_ptr, int src_stride, const unsi
gned char * const ref_ptr[], int ref_stride, unsigned int *sad_array); |
| 347 RTCD_EXTERN void (*vp8_sad8x8x4d)(const unsigned char *src_ptr, int src_stride,
const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array)
; |
| 348 |
| 349 void vp8_sad8x16x4d_c(const unsigned char *src_ptr, int src_stride, const unsign
ed char * const ref_ptr[], int ref_stride, unsigned int *sad_array); |
| 350 void vp8_sad8x16x4d_sse3(const unsigned char *src_ptr, int src_stride, const uns
igned char * const ref_ptr[], int ref_stride, unsigned int *sad_array); |
| 351 RTCD_EXTERN void (*vp8_sad8x16x4d)(const unsigned char *src_ptr, int src_stride,
const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array
); |
| 352 |
| 353 void vp8_sad16x8x4d_c(const unsigned char *src_ptr, int src_stride, const unsign
ed char * const ref_ptr[], int ref_stride, unsigned int *sad_array); |
| 354 void vp8_sad16x8x4d_sse3(const unsigned char *src_ptr, int src_stride, const uns
igned char * const ref_ptr[], int ref_stride, unsigned int *sad_array); |
| 355 RTCD_EXTERN void (*vp8_sad16x8x4d)(const unsigned char *src_ptr, int src_stride,
const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array
); |
| 356 |
| 357 void vp8_sad16x16x4d_c(const unsigned char *src_ptr, int src_stride, const unsig
ned char * const ref_ptr[], int ref_stride, unsigned int *sad_array); |
| 358 void vp8_sad16x16x4d_sse3(const unsigned char *src_ptr, int src_stride, const un
signed char * const ref_ptr[], int ref_stride, unsigned int *sad_array); |
| 359 RTCD_EXTERN void (*vp8_sad16x16x4d)(const unsigned char *src_ptr, int src_stride
, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_arra
y); |
| 360 |
| 361 unsigned int vp8_get_mb_ss_c(const short *); |
| 362 unsigned int vp8_get_mb_ss_mmx(const short *); |
| 363 unsigned int vp8_get_mb_ss_sse2(const short *); |
| 364 #define vp8_get_mb_ss vp8_get_mb_ss_sse2 |
| 365 |
| 366 unsigned int vp8_sub_pixel_mse16x16_c(const unsigned char *src_ptr, int source
_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride
, unsigned int *sse); |
| 367 unsigned int vp8_sub_pixel_mse16x16_mmx(const unsigned char *src_ptr, int sour
ce_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstri
de, unsigned int *sse); |
| 368 unsigned int vp8_sub_pixel_mse16x16_wmt(const unsigned char *src_ptr, int sour
ce_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstri
de, unsigned int *sse); |
| 369 #define vp8_sub_pixel_mse16x16 vp8_sub_pixel_mse16x16_wmt |
| 370 |
| 371 unsigned int vp8_mse16x16_c(const unsigned char *src_ptr, int source_stride, con
st unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
| 372 unsigned int vp8_mse16x16_mmx(const unsigned char *src_ptr, int source_stride, c
onst unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
| 373 unsigned int vp8_mse16x16_wmt(const unsigned char *src_ptr, int source_stride, c
onst unsigned char *ref_ptr, int ref_stride, unsigned int *sse); |
| 374 #define vp8_mse16x16 vp8_mse16x16_wmt |
| 375 |
| 376 unsigned int vp8_get4x4sse_cs_c(const unsigned char *src_ptr, int source_stride,
const unsigned char *ref_ptr, int ref_stride); |
| 377 unsigned int vp8_get4x4sse_cs_mmx(const unsigned char *src_ptr, int source_strid
e, const unsigned char *ref_ptr, int ref_stride); |
| 378 #define vp8_get4x4sse_cs vp8_get4x4sse_cs_mmx |
| 379 |
| 380 void vp8_copy32xn_c(const unsigned char *src_ptr, int source_stride, const unsig
ned char *ref_ptr, int ref_stride, int n); |
| 381 void vp8_copy32xn_sse2(const unsigned char *src_ptr, int source_stride, const un
signed char *ref_ptr, int ref_stride, int n); |
| 382 void vp8_copy32xn_sse3(const unsigned char *src_ptr, int source_stride, const un
signed char *ref_ptr, int ref_stride, int n); |
| 383 RTCD_EXTERN void (*vp8_copy32xn)(const unsigned char *src_ptr, int source_stride
, const unsigned char *ref_ptr, int ref_stride, int n); |
| 384 |
| 385 void vp8_short_fdct4x4_c(short *input, short *output, int pitch); |
| 386 void vp8_short_fdct4x4_mmx(short *input, short *output, int pitch); |
| 387 void vp8_short_fdct4x4_sse2(short *input, short *output, int pitch); |
| 388 #define vp8_short_fdct4x4 vp8_short_fdct4x4_sse2 |
| 389 |
| 390 void vp8_short_fdct8x4_c(short *input, short *output, int pitch); |
| 391 void vp8_short_fdct8x4_mmx(short *input, short *output, int pitch); |
| 392 void vp8_short_fdct8x4_sse2(short *input, short *output, int pitch); |
| 393 #define vp8_short_fdct8x4 vp8_short_fdct8x4_sse2 |
| 394 |
| 395 void vp8_short_walsh4x4_c(short *input, short *output, int pitch); |
| 396 void vp8_short_walsh4x4_sse2(short *input, short *output, int pitch); |
| 397 #define vp8_short_walsh4x4 vp8_short_walsh4x4_sse2 |
| 398 |
| 399 void vp8_regular_quantize_b_c(struct block *, struct blockd *); |
| 400 void vp8_regular_quantize_b_sse2(struct block *, struct blockd *); |
| 401 void vp8_regular_quantize_b_sse4(struct block *, struct blockd *); |
| 402 RTCD_EXTERN void (*vp8_regular_quantize_b)(struct block *, struct blockd *); |
| 403 |
| 404 void vp8_fast_quantize_b_c(struct block *, struct blockd *); |
| 405 void vp8_fast_quantize_b_sse2(struct block *, struct blockd *); |
| 406 void vp8_fast_quantize_b_ssse3(struct block *, struct blockd *); |
| 407 RTCD_EXTERN void (*vp8_fast_quantize_b)(struct block *, struct blockd *); |
| 408 |
| 409 void vp8_regular_quantize_b_pair_c(struct block *b1, struct block *b2, struct bl
ockd *d1, struct blockd *d2); |
| 410 #define vp8_regular_quantize_b_pair vp8_regular_quantize_b_pair_c |
| 411 |
| 412 void vp8_fast_quantize_b_pair_c(struct block *b1, struct block *b2, struct block
d *d1, struct blockd *d2); |
| 413 #define vp8_fast_quantize_b_pair vp8_fast_quantize_b_pair_c |
| 414 |
| 415 void vp8_quantize_mb_c(struct macroblock *); |
| 416 #define vp8_quantize_mb vp8_quantize_mb_c |
| 417 |
| 418 void vp8_quantize_mby_c(struct macroblock *); |
| 419 #define vp8_quantize_mby vp8_quantize_mby_c |
| 420 |
| 421 void vp8_quantize_mbuv_c(struct macroblock *); |
| 422 #define vp8_quantize_mbuv vp8_quantize_mbuv_c |
| 423 |
| 424 int vp8_block_error_c(short *coeff, short *dqcoeff); |
| 425 int vp8_block_error_mmx(short *coeff, short *dqcoeff); |
| 426 int vp8_block_error_xmm(short *coeff, short *dqcoeff); |
| 427 #define vp8_block_error vp8_block_error_xmm |
| 428 |
| 429 int vp8_mbblock_error_c(struct macroblock *mb, int dc); |
| 430 int vp8_mbblock_error_mmx(struct macroblock *mb, int dc); |
| 431 int vp8_mbblock_error_xmm(struct macroblock *mb, int dc); |
| 432 #define vp8_mbblock_error vp8_mbblock_error_xmm |
| 433 |
| 434 int vp8_mbuverror_c(struct macroblock *mb); |
| 435 int vp8_mbuverror_mmx(struct macroblock *mb); |
| 436 int vp8_mbuverror_xmm(struct macroblock *mb); |
| 437 #define vp8_mbuverror vp8_mbuverror_xmm |
| 438 |
| 439 void vp8_subtract_b_c(struct block *be, struct blockd *bd, int pitch); |
| 440 void vp8_subtract_b_mmx(struct block *be, struct blockd *bd, int pitch); |
| 441 void vp8_subtract_b_sse2(struct block *be, struct blockd *bd, int pitch); |
| 442 #define vp8_subtract_b vp8_subtract_b_sse2 |
| 443 |
| 444 void vp8_subtract_mby_c(short *diff, unsigned char *src, int src_stride, unsigne
d char *pred, int pred_stride); |
| 445 void vp8_subtract_mby_mmx(short *diff, unsigned char *src, int src_stride, unsig
ned char *pred, int pred_stride); |
| 446 void vp8_subtract_mby_sse2(short *diff, unsigned char *src, int src_stride, unsi
gned char *pred, int pred_stride); |
| 447 #define vp8_subtract_mby vp8_subtract_mby_sse2 |
| 448 |
| 449 void vp8_subtract_mbuv_c(short *diff, unsigned char *usrc, unsigned char *vsrc,
int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride); |
| 450 void vp8_subtract_mbuv_mmx(short *diff, unsigned char *usrc, unsigned char *vsrc
, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride); |
| 451 void vp8_subtract_mbuv_sse2(short *diff, unsigned char *usrc, unsigned char *vsr
c, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride); |
| 452 #define vp8_subtract_mbuv vp8_subtract_mbuv_sse2 |
| 453 |
| 454 int vp8_full_search_sad_c(struct macroblock *x, struct block *b, struct blockd *
d, union int_mv *ref_mv, int sad_per_bit, int distance, struct variance_vtable *
fn_ptr, int *mvcost[2], union int_mv *center_mv); |
| 455 int vp8_full_search_sadx3(struct macroblock *x, struct block *b, struct blockd *
d, union int_mv *ref_mv, int sad_per_bit, int distance, struct variance_vtable *
fn_ptr, int *mvcost[2], union int_mv *center_mv); |
| 456 int vp8_full_search_sadx8(struct macroblock *x, struct block *b, struct blockd *
d, union int_mv *ref_mv, int sad_per_bit, int distance, struct variance_vtable *
fn_ptr, int *mvcost[2], union int_mv *center_mv); |
| 457 RTCD_EXTERN int (*vp8_full_search_sad)(struct macroblock *x, struct block *b, st
ruct blockd *d, union int_mv *ref_mv, int sad_per_bit, int distance, struct vari
ance_vtable *fn_ptr, int *mvcost[2], union int_mv *center_mv); |
| 458 |
| 459 int vp8_refining_search_sad_c(struct macroblock *x, struct block *b, struct bloc
kd *d, union int_mv *ref_mv, int sad_per_bit, int distance, struct variance_vtab
le *fn_ptr, int *mvcost[2], union int_mv *center_mv); |
| 460 int vp8_refining_search_sadx4(struct macroblock *x, struct block *b, struct bloc
kd *d, union int_mv *ref_mv, int sad_per_bit, int distance, struct variance_vtab
le *fn_ptr, int *mvcost[2], union int_mv *center_mv); |
| 461 RTCD_EXTERN int (*vp8_refining_search_sad)(struct macroblock *x, struct block *b
, struct blockd *d, union int_mv *ref_mv, int sad_per_bit, int distance, struct
variance_vtable *fn_ptr, int *mvcost[2], union int_mv *center_mv); |
| 462 |
| 463 int vp8_diamond_search_sad_c(struct macroblock *x, struct block *b, struct block
d *d, union int_mv *ref_mv, union int_mv *best_mv, int search_param, int sad_per
_bit, int *num00, struct variance_vtable *fn_ptr, int *mvcost[2], union int_mv *
center_mv); |
| 464 int vp8_diamond_search_sadx4(struct macroblock *x, struct block *b, struct block
d *d, union int_mv *ref_mv, union int_mv *best_mv, int search_param, int sad_per
_bit, int *num00, struct variance_vtable *fn_ptr, int *mvcost[2], union int_mv *
center_mv); |
| 465 RTCD_EXTERN int (*vp8_diamond_search_sad)(struct macroblock *x, struct block *b,
struct blockd *d, union int_mv *ref_mv, union int_mv *best_mv, int search_param
, int sad_per_bit, int *num00, struct variance_vtable *fn_ptr, int *mvcost[2], u
nion int_mv *center_mv); |
| 466 |
| 467 void vp8_yv12_copy_partial_frame_c(struct yv12_buffer_config *src_ybc, struct yv
12_buffer_config *dst_ybc); |
| 468 #define vp8_yv12_copy_partial_frame vp8_yv12_copy_partial_frame_c |
| 469 |
| 470 int vp8_denoiser_filter_c(struct yv12_buffer_config* mc_running_avg, struct yv12
_buffer_config* running_avg, struct macroblock* signal, unsigned int motion_magn
itude2, int y_offset, int uv_offset); |
| 471 int vp8_denoiser_filter_sse2(struct yv12_buffer_config* mc_running_avg, struct y
v12_buffer_config* running_avg, struct macroblock* signal, unsigned int motion_m
agnitude2, int y_offset, int uv_offset); |
| 472 #define vp8_denoiser_filter vp8_denoiser_filter_sse2 |
| 473 |
| 474 void vp8_rtcd(void); |
| 475 |
| 476 #ifdef RTCD_C |
| 477 #include "vpx_ports/x86.h" |
| 478 static void setup_rtcd_internal(void) |
| 479 { |
| 480 int flags = x86_simd_caps(); |
| 481 |
| 482 (void)flags; |
| 483 |
| 484 |
| 485 |
| 486 |
| 487 |
| 488 |
| 489 |
| 490 |
| 491 |
| 492 |
| 493 |
| 494 |
| 495 |
| 496 |
| 497 |
| 498 |
| 499 |
| 500 |
| 501 |
| 502 |
| 503 vp8_build_intra_predictors_mby_s = vp8_build_intra_predictors_mby_s_sse2; |
| 504 if (flags & HAS_SSSE3) vp8_build_intra_predictors_mby_s = vp8_build_intra_pr
edictors_mby_s_ssse3; |
| 505 |
| 506 vp8_build_intra_predictors_mbuv_s = vp8_build_intra_predictors_mbuv_s_sse2; |
| 507 if (flags & HAS_SSSE3) vp8_build_intra_predictors_mbuv_s = vp8_build_intra_p
redictors_mbuv_s_ssse3; |
| 508 |
| 509 |
| 510 |
| 511 |
| 512 |
| 513 |
| 514 |
| 515 |
| 516 |
| 517 |
| 518 |
| 519 |
| 520 vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_sse2; |
| 521 if (flags & HAS_SSSE3) vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_sss
e3; |
| 522 |
| 523 vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_sse2; |
| 524 if (flags & HAS_SSSE3) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_ssse3; |
| 525 |
| 526 vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_sse2; |
| 527 if (flags & HAS_SSSE3) vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_ssse3; |
| 528 |
| 529 vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_mmx; |
| 530 if (flags & HAS_SSSE3) vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_ssse3; |
| 531 |
| 532 vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_sse2; |
| 533 if (flags & HAS_SSSE3) vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16
_ssse3; |
| 534 |
| 535 vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_sse2; |
| 536 if (flags & HAS_SSSE3) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_sss
e3; |
| 537 |
| 538 |
| 539 |
| 540 |
| 541 |
| 542 |
| 543 |
| 544 |
| 545 |
| 546 |
| 547 |
| 548 vp8_sub_pixel_variance16x8 = vp8_sub_pixel_variance16x8_wmt; |
| 549 if (flags & HAS_SSSE3) vp8_sub_pixel_variance16x8 = vp8_sub_pixel_variance16
x8_ssse3; |
| 550 |
| 551 vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance16x16_wmt; |
| 552 if (flags & HAS_SSSE3) vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance1
6x16_ssse3; |
| 553 |
| 554 |
| 555 |
| 556 |
| 557 |
| 558 |
| 559 |
| 560 |
| 561 vp8_sad16x16 = vp8_sad16x16_wmt; |
| 562 if (flags & HAS_SSE3) vp8_sad16x16 = vp8_sad16x16_sse3; |
| 563 |
| 564 vp8_sad4x4x3 = vp8_sad4x4x3_c; |
| 565 if (flags & HAS_SSE3) vp8_sad4x4x3 = vp8_sad4x4x3_sse3; |
| 566 |
| 567 vp8_sad8x8x3 = vp8_sad8x8x3_c; |
| 568 if (flags & HAS_SSE3) vp8_sad8x8x3 = vp8_sad8x8x3_sse3; |
| 569 |
| 570 vp8_sad8x16x3 = vp8_sad8x16x3_c; |
| 571 if (flags & HAS_SSE3) vp8_sad8x16x3 = vp8_sad8x16x3_sse3; |
| 572 |
| 573 vp8_sad16x8x3 = vp8_sad16x8x3_c; |
| 574 if (flags & HAS_SSE3) vp8_sad16x8x3 = vp8_sad16x8x3_sse3; |
| 575 if (flags & HAS_SSSE3) vp8_sad16x8x3 = vp8_sad16x8x3_ssse3; |
| 576 |
| 577 vp8_sad16x16x3 = vp8_sad16x16x3_c; |
| 578 if (flags & HAS_SSE3) vp8_sad16x16x3 = vp8_sad16x16x3_sse3; |
| 579 if (flags & HAS_SSSE3) vp8_sad16x16x3 = vp8_sad16x16x3_ssse3; |
| 580 |
| 581 vp8_sad4x4x8 = vp8_sad4x4x8_c; |
| 582 if (flags & HAS_SSE4_1) vp8_sad4x4x8 = vp8_sad4x4x8_sse4; |
| 583 |
| 584 vp8_sad8x8x8 = vp8_sad8x8x8_c; |
| 585 if (flags & HAS_SSE4_1) vp8_sad8x8x8 = vp8_sad8x8x8_sse4; |
| 586 |
| 587 vp8_sad8x16x8 = vp8_sad8x16x8_c; |
| 588 if (flags & HAS_SSE4_1) vp8_sad8x16x8 = vp8_sad8x16x8_sse4; |
| 589 |
| 590 vp8_sad16x8x8 = vp8_sad16x8x8_c; |
| 591 if (flags & HAS_SSE4_1) vp8_sad16x8x8 = vp8_sad16x8x8_sse4; |
| 592 |
| 593 vp8_sad16x16x8 = vp8_sad16x16x8_c; |
| 594 if (flags & HAS_SSE4_1) vp8_sad16x16x8 = vp8_sad16x16x8_sse4; |
| 595 |
| 596 vp8_sad4x4x4d = vp8_sad4x4x4d_c; |
| 597 if (flags & HAS_SSE3) vp8_sad4x4x4d = vp8_sad4x4x4d_sse3; |
| 598 |
| 599 vp8_sad8x8x4d = vp8_sad8x8x4d_c; |
| 600 if (flags & HAS_SSE3) vp8_sad8x8x4d = vp8_sad8x8x4d_sse3; |
| 601 |
| 602 vp8_sad8x16x4d = vp8_sad8x16x4d_c; |
| 603 if (flags & HAS_SSE3) vp8_sad8x16x4d = vp8_sad8x16x4d_sse3; |
| 604 |
| 605 vp8_sad16x8x4d = vp8_sad16x8x4d_c; |
| 606 if (flags & HAS_SSE3) vp8_sad16x8x4d = vp8_sad16x8x4d_sse3; |
| 607 |
| 608 vp8_sad16x16x4d = vp8_sad16x16x4d_c; |
| 609 if (flags & HAS_SSE3) vp8_sad16x16x4d = vp8_sad16x16x4d_sse3; |
| 610 |
| 611 |
| 612 |
| 613 |
| 614 |
| 615 vp8_copy32xn = vp8_copy32xn_sse2; |
| 616 if (flags & HAS_SSE3) vp8_copy32xn = vp8_copy32xn_sse3; |
| 617 |
| 618 |
| 619 |
| 620 |
| 621 vp8_regular_quantize_b = vp8_regular_quantize_b_sse2; |
| 622 if (flags & HAS_SSE4_1) vp8_regular_quantize_b = vp8_regular_quantize_b_sse4
; |
| 623 |
| 624 vp8_fast_quantize_b = vp8_fast_quantize_b_sse2; |
| 625 if (flags & HAS_SSSE3) vp8_fast_quantize_b = vp8_fast_quantize_b_ssse3; |
| 626 |
| 627 |
| 628 |
| 629 |
| 630 |
| 631 |
| 632 |
| 633 |
| 634 |
| 635 |
| 636 |
| 637 |
| 638 vp8_full_search_sad = vp8_full_search_sad_c; |
| 639 if (flags & HAS_SSE3) vp8_full_search_sad = vp8_full_search_sadx3; |
| 640 if (flags & HAS_SSE4_1) vp8_full_search_sad = vp8_full_search_sadx8; |
| 641 |
| 642 vp8_refining_search_sad = vp8_refining_search_sad_c; |
| 643 if (flags & HAS_SSE3) vp8_refining_search_sad = vp8_refining_search_sadx4; |
| 644 |
| 645 vp8_diamond_search_sad = vp8_diamond_search_sad_c; |
| 646 if (flags & HAS_SSE3) vp8_diamond_search_sad = vp8_diamond_search_sadx4; |
| 647 } |
| 648 #endif |
| 649 #endif |
OLD | NEW |