OLD | NEW |
1 #ifndef VP8_RTCD_H_ | 1 #ifndef VP8_RTCD_H_ |
2 #define VP8_RTCD_H_ | 2 #define VP8_RTCD_H_ |
3 | 3 |
4 #ifdef RTCD_C | 4 #ifdef RTCD_C |
5 #define RTCD_EXTERN | 5 #define RTCD_EXTERN |
6 #else | 6 #else |
7 #define RTCD_EXTERN extern | 7 #define RTCD_EXTERN extern |
8 #endif | 8 #endif |
9 | 9 |
10 /* | 10 /* |
11 * VP8 | 11 * VP8 |
12 */ | 12 */ |
13 | 13 |
14 struct blockd; | 14 struct blockd; |
15 struct macroblockd; | 15 struct macroblockd; |
16 struct loop_filter_info; | 16 struct loop_filter_info; |
17 | 17 |
18 /* Encoder forward decls */ | 18 /* Encoder forward decls */ |
19 struct block; | 19 struct block; |
20 struct macroblock; | 20 struct macroblock; |
21 struct variance_vtable; | 21 struct variance_vtable; |
22 union int_mv; | 22 union int_mv; |
23 struct yv12_buffer_config; | 23 struct yv12_buffer_config; |
24 | 24 |
25 #ifdef __cplusplus | 25 #ifdef __cplusplus |
26 extern "C" { | 26 extern "C" { |
27 #endif | 27 #endif |
28 | 28 |
29 void vp8_bilinear_predict16x16_c(unsigned char *src, int src_pitch, int xofst, i
nt yofst, unsigned char *dst, int dst_pitch); | 29 void vp8_bilinear_predict16x16_c(unsigned char *src, int src_pitch, int xofst, i
nt yofst, unsigned char *dst, int dst_pitch); |
30 void vp8_bilinear_predict16x16_mmx(unsigned char *src, int src_pitch, int xofst,
int yofst, unsigned char *dst, int dst_pitch); | |
31 void vp8_bilinear_predict16x16_sse2(unsigned char *src, int src_pitch, int xofst
, int yofst, unsigned char *dst, int dst_pitch); | 30 void vp8_bilinear_predict16x16_sse2(unsigned char *src, int src_pitch, int xofst
, int yofst, unsigned char *dst, int dst_pitch); |
32 void vp8_bilinear_predict16x16_ssse3(unsigned char *src, int src_pitch, int xofs
t, int yofst, unsigned char *dst, int dst_pitch); | 31 void vp8_bilinear_predict16x16_ssse3(unsigned char *src, int src_pitch, int xofs
t, int yofst, unsigned char *dst, int dst_pitch); |
33 RTCD_EXTERN void (*vp8_bilinear_predict16x16)(unsigned char *src, int src_pitch,
int xofst, int yofst, unsigned char *dst, int dst_pitch); | 32 RTCD_EXTERN void (*vp8_bilinear_predict16x16)(unsigned char *src, int src_pitch,
int xofst, int yofst, unsigned char *dst, int dst_pitch); |
34 | 33 |
35 void vp8_bilinear_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int
yofst, unsigned char *dst, int dst_pitch); | 34 void vp8_bilinear_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int
yofst, unsigned char *dst, int dst_pitch); |
36 void vp8_bilinear_predict4x4_mmx(unsigned char *src, int src_pitch, int xofst, i
nt yofst, unsigned char *dst, int dst_pitch); | 35 void vp8_bilinear_predict4x4_mmx(unsigned char *src, int src_pitch, int xofst, i
nt yofst, unsigned char *dst, int dst_pitch); |
37 RTCD_EXTERN void (*vp8_bilinear_predict4x4)(unsigned char *src, int src_pitch, i
nt xofst, int yofst, unsigned char *dst, int dst_pitch); | 36 RTCD_EXTERN void (*vp8_bilinear_predict4x4)(unsigned char *src, int src_pitch, i
nt xofst, int yofst, unsigned char *dst, int dst_pitch); |
38 | 37 |
39 void vp8_bilinear_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int
yofst, unsigned char *dst, int dst_pitch); | 38 void vp8_bilinear_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int
yofst, unsigned char *dst, int dst_pitch); |
40 void vp8_bilinear_predict8x4_mmx(unsigned char *src, int src_pitch, int xofst, i
nt yofst, unsigned char *dst, int dst_pitch); | 39 void vp8_bilinear_predict8x4_mmx(unsigned char *src, int src_pitch, int xofst, i
nt yofst, unsigned char *dst, int dst_pitch); |
41 RTCD_EXTERN void (*vp8_bilinear_predict8x4)(unsigned char *src, int src_pitch, i
nt xofst, int yofst, unsigned char *dst, int dst_pitch); | 40 RTCD_EXTERN void (*vp8_bilinear_predict8x4)(unsigned char *src, int src_pitch, i
nt xofst, int yofst, unsigned char *dst, int dst_pitch); |
42 | 41 |
43 void vp8_bilinear_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int
yofst, unsigned char *dst, int dst_pitch); | 42 void vp8_bilinear_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int
yofst, unsigned char *dst, int dst_pitch); |
44 void vp8_bilinear_predict8x8_mmx(unsigned char *src, int src_pitch, int xofst, i
nt yofst, unsigned char *dst, int dst_pitch); | |
45 void vp8_bilinear_predict8x8_sse2(unsigned char *src, int src_pitch, int xofst,
int yofst, unsigned char *dst, int dst_pitch); | 43 void vp8_bilinear_predict8x8_sse2(unsigned char *src, int src_pitch, int xofst,
int yofst, unsigned char *dst, int dst_pitch); |
46 void vp8_bilinear_predict8x8_ssse3(unsigned char *src, int src_pitch, int xofst,
int yofst, unsigned char *dst, int dst_pitch); | 44 void vp8_bilinear_predict8x8_ssse3(unsigned char *src, int src_pitch, int xofst,
int yofst, unsigned char *dst, int dst_pitch); |
47 RTCD_EXTERN void (*vp8_bilinear_predict8x8)(unsigned char *src, int src_pitch, i
nt xofst, int yofst, unsigned char *dst, int dst_pitch); | 45 RTCD_EXTERN void (*vp8_bilinear_predict8x8)(unsigned char *src, int src_pitch, i
nt xofst, int yofst, unsigned char *dst, int dst_pitch); |
48 | 46 |
49 void vp8_blend_b_c(unsigned char *y, unsigned char *u, unsigned char *v, int y1,
int u1, int v1, int alpha, int stride); | 47 void vp8_blend_b_c(unsigned char *y, unsigned char *u, unsigned char *v, int y1,
int u1, int v1, int alpha, int stride); |
50 #define vp8_blend_b vp8_blend_b_c | 48 #define vp8_blend_b vp8_blend_b_c |
51 | 49 |
52 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); | 50 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); |
53 #define vp8_blend_mb_inner vp8_blend_mb_inner_c | 51 #define vp8_blend_mb_inner vp8_blend_mb_inner_c |
54 | 52 |
55 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); | 53 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); |
56 #define vp8_blend_mb_outer vp8_blend_mb_outer_c | 54 #define vp8_blend_mb_outer vp8_blend_mb_outer_c |
57 | 55 |
58 int vp8_block_error_c(short *coeff, short *dqcoeff); | 56 int vp8_block_error_c(short *coeff, short *dqcoeff); |
59 int vp8_block_error_mmx(short *coeff, short *dqcoeff); | 57 int vp8_block_error_sse2(short *coeff, short *dqcoeff); |
60 int vp8_block_error_xmm(short *coeff, short *dqcoeff); | |
61 RTCD_EXTERN int (*vp8_block_error)(short *coeff, short *dqcoeff); | 58 RTCD_EXTERN int (*vp8_block_error)(short *coeff, short *dqcoeff); |
62 | 59 |
63 void vp8_clear_system_state_c(); | |
64 void vpx_reset_mmx_state(); | |
65 RTCD_EXTERN void (*vp8_clear_system_state)(); | |
66 | |
67 void vp8_copy32xn_c(const unsigned char *src_ptr, int source_stride, unsigned ch
ar *dst_ptr, int dst_stride, int n); | 60 void vp8_copy32xn_c(const unsigned char *src_ptr, int source_stride, unsigned ch
ar *dst_ptr, int dst_stride, int n); |
68 void vp8_copy32xn_sse2(const unsigned char *src_ptr, int source_stride, unsigned
char *dst_ptr, int dst_stride, int n); | 61 void vp8_copy32xn_sse2(const unsigned char *src_ptr, int source_stride, unsigned
char *dst_ptr, int dst_stride, int n); |
69 void vp8_copy32xn_sse3(const unsigned char *src_ptr, int source_stride, unsigned
char *dst_ptr, int dst_stride, int n); | 62 void vp8_copy32xn_sse3(const unsigned char *src_ptr, int source_stride, unsigned
char *dst_ptr, int dst_stride, int n); |
70 RTCD_EXTERN void (*vp8_copy32xn)(const unsigned char *src_ptr, int source_stride
, unsigned char *dst_ptr, int dst_stride, int n); | 63 RTCD_EXTERN void (*vp8_copy32xn)(const unsigned char *src_ptr, int source_stride
, unsigned char *dst_ptr, int dst_stride, int n); |
71 | 64 |
72 void vp8_copy_mem16x16_c(unsigned char *src, int src_pitch, unsigned char *dst,
int dst_pitch); | 65 void vp8_copy_mem16x16_c(unsigned char *src, int src_pitch, unsigned char *dst,
int dst_pitch); |
73 void vp8_copy_mem16x16_mmx(unsigned char *src, int src_pitch, unsigned char *dst
, int dst_pitch); | |
74 void vp8_copy_mem16x16_sse2(unsigned char *src, int src_pitch, unsigned char *ds
t, int dst_pitch); | 66 void vp8_copy_mem16x16_sse2(unsigned char *src, int src_pitch, unsigned char *ds
t, int dst_pitch); |
75 RTCD_EXTERN void (*vp8_copy_mem16x16)(unsigned char *src, int src_pitch, unsigne
d char *dst, int dst_pitch); | 67 RTCD_EXTERN void (*vp8_copy_mem16x16)(unsigned char *src, int src_pitch, unsigne
d char *dst, int dst_pitch); |
76 | 68 |
77 void vp8_copy_mem8x4_c(unsigned char *src, int src_pitch, unsigned char *dst, in
t dst_pitch); | 69 void vp8_copy_mem8x4_c(unsigned char *src, int src_pitch, unsigned char *dst, in
t dst_pitch); |
78 void vp8_copy_mem8x4_mmx(unsigned char *src, int src_pitch, unsigned char *dst,
int dst_pitch); | 70 void vp8_copy_mem8x4_mmx(unsigned char *src, int src_pitch, unsigned char *dst,
int dst_pitch); |
79 RTCD_EXTERN void (*vp8_copy_mem8x4)(unsigned char *src, int src_pitch, unsigned
char *dst, int dst_pitch); | 71 RTCD_EXTERN void (*vp8_copy_mem8x4)(unsigned char *src, int src_pitch, unsigned
char *dst, int dst_pitch); |
80 | 72 |
81 void vp8_copy_mem8x8_c(unsigned char *src, int src_pitch, unsigned char *dst, in
t dst_pitch); | 73 void vp8_copy_mem8x8_c(unsigned char *src, int src_pitch, unsigned char *dst, in
t dst_pitch); |
82 void vp8_copy_mem8x8_mmx(unsigned char *src, int src_pitch, unsigned char *dst,
int dst_pitch); | 74 void vp8_copy_mem8x8_mmx(unsigned char *src, int src_pitch, unsigned char *dst,
int dst_pitch); |
83 RTCD_EXTERN void (*vp8_copy_mem8x8)(unsigned char *src, int src_pitch, unsigned
char *dst, int dst_pitch); | 75 RTCD_EXTERN void (*vp8_copy_mem8x8)(unsigned char *src, int src_pitch, unsigned
char *dst, int dst_pitch); |
84 | 76 |
85 void vp8_dc_only_idct_add_c(short input, unsigned char *pred, int pred_stride, u
nsigned char *dst, int dst_stride); | 77 void vp8_dc_only_idct_add_c(short input, unsigned char *pred, int pred_stride, u
nsigned char *dst, int dst_stride); |
86 void vp8_dc_only_idct_add_mmx(short input, unsigned char *pred, int pred_stride,
unsigned char *dst, int dst_stride); | 78 void vp8_dc_only_idct_add_mmx(short input, unsigned char *pred, int pred_stride,
unsigned char *dst, int dst_stride); |
87 RTCD_EXTERN void (*vp8_dc_only_idct_add)(short input, unsigned char *pred, int p
red_stride, unsigned char *dst, int dst_stride); | 79 RTCD_EXTERN void (*vp8_dc_only_idct_add)(short input, unsigned char *pred, int p
red_stride, unsigned char *dst, int dst_stride); |
88 | 80 |
89 int vp8_denoiser_filter_c(unsigned char *mc_running_avg_y, int mc_avg_y_stride,
unsigned char *running_avg_y, int avg_y_stride, unsigned char *sig, int sig_stri
de, unsigned int motion_magnitude, int increase_denoising); | 81 int vp8_denoiser_filter_c(unsigned char *mc_running_avg_y, int mc_avg_y_stride,
unsigned char *running_avg_y, int avg_y_stride, unsigned char *sig, int sig_stri
de, unsigned int motion_magnitude, int increase_denoising); |
90 int vp8_denoiser_filter_sse2(unsigned char *mc_running_avg_y, int mc_avg_y_strid
e, unsigned char *running_avg_y, int avg_y_stride, unsigned char *sig, int sig_s
tride, unsigned int motion_magnitude, int increase_denoising); | 82 int vp8_denoiser_filter_sse2(unsigned char *mc_running_avg_y, int mc_avg_y_strid
e, unsigned char *running_avg_y, int avg_y_stride, unsigned char *sig, int sig_s
tride, unsigned int motion_magnitude, int increase_denoising); |
91 RTCD_EXTERN int (*vp8_denoiser_filter)(unsigned char *mc_running_avg_y, int mc_a
vg_y_stride, unsigned char *running_avg_y, int avg_y_stride, unsigned char *sig,
int sig_stride, unsigned int motion_magnitude, int increase_denoising); | 83 RTCD_EXTERN int (*vp8_denoiser_filter)(unsigned char *mc_running_avg_y, int mc_a
vg_y_stride, unsigned char *running_avg_y, int avg_y_stride, unsigned char *sig,
int sig_stride, unsigned int motion_magnitude, int increase_denoising); |
92 | 84 |
93 int vp8_denoiser_filter_uv_c(unsigned char *mc_running_avg, int mc_avg_stride, u
nsigned char *running_avg, int avg_stride, unsigned char *sig, int sig_stride, u
nsigned int motion_magnitude, int increase_denoising); | 85 int vp8_denoiser_filter_uv_c(unsigned char *mc_running_avg, int mc_avg_stride, u
nsigned char *running_avg, int avg_stride, unsigned char *sig, int sig_stride, u
nsigned int motion_magnitude, int increase_denoising); |
94 int vp8_denoiser_filter_uv_sse2(unsigned char *mc_running_avg, int mc_avg_stride
, unsigned char *running_avg, int avg_stride, unsigned char *sig, int sig_stride
, unsigned int motion_magnitude, int increase_denoising); | 86 int vp8_denoiser_filter_uv_sse2(unsigned char *mc_running_avg, int mc_avg_stride
, unsigned char *running_avg, int avg_stride, unsigned char *sig, int sig_stride
, unsigned int motion_magnitude, int increase_denoising); |
95 RTCD_EXTERN int (*vp8_denoiser_filter_uv)(unsigned char *mc_running_avg, int mc_
avg_stride, unsigned char *running_avg, int avg_stride, unsigned char *sig, int
sig_stride, unsigned int motion_magnitude, int increase_denoising); | 87 RTCD_EXTERN int (*vp8_denoiser_filter_uv)(unsigned char *mc_running_avg, int mc_
avg_stride, unsigned char *running_avg, int avg_stride, unsigned char *sig, int
sig_stride, unsigned int motion_magnitude, int increase_denoising); |
96 | 88 |
97 void vp8_dequant_idct_add_c(short *input, short *dq, unsigned char *output, int
stride); | 89 void vp8_dequant_idct_add_c(short *input, short *dq, unsigned char *output, int
stride); |
98 void vp8_dequant_idct_add_mmx(short *input, short *dq, unsigned char *output, in
t stride); | 90 void vp8_dequant_idct_add_mmx(short *input, short *dq, unsigned char *output, in
t stride); |
99 RTCD_EXTERN void (*vp8_dequant_idct_add)(short *input, short *dq, unsigned char
*output, int stride); | 91 RTCD_EXTERN void (*vp8_dequant_idct_add)(short *input, short *dq, unsigned char
*output, int stride); |
100 | 92 |
101 void vp8_dequant_idct_add_uv_block_c(short *q, short *dq, unsigned char *dst_u,
unsigned char *dst_v, int stride, char *eobs); | 93 void vp8_dequant_idct_add_uv_block_c(short *q, short *dq, unsigned char *dst_u,
unsigned char *dst_v, int stride, char *eobs); |
102 void vp8_dequant_idct_add_uv_block_mmx(short *q, short *dq, unsigned char *dst_u
, unsigned char *dst_v, int stride, char *eobs); | |
103 void vp8_dequant_idct_add_uv_block_sse2(short *q, short *dq, unsigned char *dst_
u, unsigned char *dst_v, int stride, char *eobs); | 94 void vp8_dequant_idct_add_uv_block_sse2(short *q, short *dq, unsigned char *dst_
u, unsigned char *dst_v, int stride, char *eobs); |
104 RTCD_EXTERN void (*vp8_dequant_idct_add_uv_block)(short *q, short *dq, unsigned
char *dst_u, unsigned char *dst_v, int stride, char *eobs); | 95 RTCD_EXTERN void (*vp8_dequant_idct_add_uv_block)(short *q, short *dq, unsigned
char *dst_u, unsigned char *dst_v, int stride, char *eobs); |
105 | 96 |
106 void vp8_dequant_idct_add_y_block_c(short *q, short *dq, unsigned char *dst, int
stride, char *eobs); | 97 void vp8_dequant_idct_add_y_block_c(short *q, short *dq, unsigned char *dst, int
stride, char *eobs); |
107 void vp8_dequant_idct_add_y_block_mmx(short *q, short *dq, unsigned char *dst, i
nt stride, char *eobs); | |
108 void vp8_dequant_idct_add_y_block_sse2(short *q, short *dq, unsigned char *dst,
int stride, char *eobs); | 98 void vp8_dequant_idct_add_y_block_sse2(short *q, short *dq, unsigned char *dst,
int stride, char *eobs); |
109 RTCD_EXTERN void (*vp8_dequant_idct_add_y_block)(short *q, short *dq, unsigned c
har *dst, int stride, char *eobs); | 99 RTCD_EXTERN void (*vp8_dequant_idct_add_y_block)(short *q, short *dq, unsigned c
har *dst, int stride, char *eobs); |
110 | 100 |
111 void vp8_dequantize_b_c(struct blockd*, short *dqc); | 101 void vp8_dequantize_b_c(struct blockd*, short *dqc); |
112 void vp8_dequantize_b_mmx(struct blockd*, short *dqc); | 102 void vp8_dequantize_b_mmx(struct blockd*, short *dqc); |
113 RTCD_EXTERN void (*vp8_dequantize_b)(struct blockd*, short *dqc); | 103 RTCD_EXTERN void (*vp8_dequantize_b)(struct blockd*, short *dqc); |
114 | 104 |
115 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); | 105 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); |
116 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); | 106 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); |
117 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); | 107 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); |
(...skipping 13 matching lines...) Expand all Loading... |
131 void vp8_filter_by_weight8x8_c(unsigned char *src, int src_stride, unsigned char
*dst, int dst_stride, int src_weight); | 121 void vp8_filter_by_weight8x8_c(unsigned char *src, int src_stride, unsigned char
*dst, int dst_stride, int src_weight); |
132 void vp8_filter_by_weight8x8_sse2(unsigned char *src, int src_stride, unsigned c
har *dst, int dst_stride, int src_weight); | 122 void vp8_filter_by_weight8x8_sse2(unsigned char *src, int src_stride, unsigned c
har *dst, int dst_stride, int src_weight); |
133 RTCD_EXTERN void (*vp8_filter_by_weight8x8)(unsigned char *src, int src_stride,
unsigned char *dst, int dst_stride, int src_weight); | 123 RTCD_EXTERN void (*vp8_filter_by_weight8x8)(unsigned char *src, int src_stride,
unsigned char *dst, int dst_stride, int src_weight); |
134 | 124 |
135 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); | 125 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); |
136 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); | 126 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); |
137 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); | 127 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); |
138 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); | 128 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); |
139 | 129 |
140 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); | 130 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); |
141 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); | |
142 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); | 131 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); |
143 RTCD_EXTERN void (*vp8_loop_filter_bh)(unsigned char *y, unsigned char *u, unsig
ned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi); | 132 RTCD_EXTERN void (*vp8_loop_filter_bh)(unsigned char *y, unsigned char *u, unsig
ned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi); |
144 | 133 |
145 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); | 134 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); |
146 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); | |
147 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); | 135 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); |
148 RTCD_EXTERN void (*vp8_loop_filter_bv)(unsigned char *y, unsigned char *u, unsig
ned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi); | 136 RTCD_EXTERN void (*vp8_loop_filter_bv)(unsigned char *y, unsigned char *u, unsig
ned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi); |
149 | 137 |
150 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); | 138 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); |
151 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); | |
152 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); | 139 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); |
153 RTCD_EXTERN void (*vp8_loop_filter_mbh)(unsigned char *y, unsigned char *u, unsi
gned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi); | 140 RTCD_EXTERN void (*vp8_loop_filter_mbh)(unsigned char *y, unsigned char *u, unsi
gned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi); |
154 | 141 |
155 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); | 142 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); |
156 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); | |
157 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); | 143 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); |
158 RTCD_EXTERN void (*vp8_loop_filter_mbv)(unsigned char *y, unsigned char *u, unsi
gned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi); | 144 RTCD_EXTERN void (*vp8_loop_filter_mbv)(unsigned char *y, unsigned char *u, unsi
gned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi); |
159 | 145 |
160 void vp8_loop_filter_bhs_c(unsigned char *y, int ystride, const unsigned char *b
limit); | 146 void vp8_loop_filter_bhs_c(unsigned char *y, int ystride, const unsigned char *b
limit); |
161 void vp8_loop_filter_bhs_mmx(unsigned char *y, int ystride, const unsigned char
*blimit); | |
162 void vp8_loop_filter_bhs_sse2(unsigned char *y, int ystride, const unsigned char
*blimit); | 147 void vp8_loop_filter_bhs_sse2(unsigned char *y, int ystride, const unsigned char
*blimit); |
163 RTCD_EXTERN void (*vp8_loop_filter_simple_bh)(unsigned char *y, int ystride, con
st unsigned char *blimit); | 148 RTCD_EXTERN void (*vp8_loop_filter_simple_bh)(unsigned char *y, int ystride, con
st unsigned char *blimit); |
164 | 149 |
165 void vp8_loop_filter_bvs_c(unsigned char *y, int ystride, const unsigned char *b
limit); | 150 void vp8_loop_filter_bvs_c(unsigned char *y, int ystride, const unsigned char *b
limit); |
166 void vp8_loop_filter_bvs_mmx(unsigned char *y, int ystride, const unsigned char
*blimit); | |
167 void vp8_loop_filter_bvs_sse2(unsigned char *y, int ystride, const unsigned char
*blimit); | 151 void vp8_loop_filter_bvs_sse2(unsigned char *y, int ystride, const unsigned char
*blimit); |
168 RTCD_EXTERN void (*vp8_loop_filter_simple_bv)(unsigned char *y, int ystride, con
st unsigned char *blimit); | 152 RTCD_EXTERN void (*vp8_loop_filter_simple_bv)(unsigned char *y, int ystride, con
st unsigned char *blimit); |
169 | 153 |
170 void vp8_loop_filter_simple_horizontal_edge_c(unsigned char *y, int ystride, con
st unsigned char *blimit); | 154 void vp8_loop_filter_simple_horizontal_edge_c(unsigned char *y, int ystride, con
st unsigned char *blimit); |
171 void vp8_loop_filter_simple_horizontal_edge_mmx(unsigned char *y, int ystride, c
onst unsigned char *blimit); | |
172 void vp8_loop_filter_simple_horizontal_edge_sse2(unsigned char *y, int ystride,
const unsigned char *blimit); | 155 void vp8_loop_filter_simple_horizontal_edge_sse2(unsigned char *y, int ystride,
const unsigned char *blimit); |
173 RTCD_EXTERN void (*vp8_loop_filter_simple_mbh)(unsigned char *y, int ystride, co
nst unsigned char *blimit); | 156 RTCD_EXTERN void (*vp8_loop_filter_simple_mbh)(unsigned char *y, int ystride, co
nst unsigned char *blimit); |
174 | 157 |
175 void vp8_loop_filter_simple_vertical_edge_c(unsigned char *y, int ystride, const
unsigned char *blimit); | 158 void vp8_loop_filter_simple_vertical_edge_c(unsigned char *y, int ystride, const
unsigned char *blimit); |
176 void vp8_loop_filter_simple_vertical_edge_mmx(unsigned char *y, int ystride, con
st unsigned char *blimit); | |
177 void vp8_loop_filter_simple_vertical_edge_sse2(unsigned char *y, int ystride, co
nst unsigned char *blimit); | 159 void vp8_loop_filter_simple_vertical_edge_sse2(unsigned char *y, int ystride, co
nst unsigned char *blimit); |
178 RTCD_EXTERN void (*vp8_loop_filter_simple_mbv)(unsigned char *y, int ystride, co
nst unsigned char *blimit); | 160 RTCD_EXTERN void (*vp8_loop_filter_simple_mbv)(unsigned char *y, int ystride, co
nst unsigned char *blimit); |
179 | 161 |
180 int vp8_mbblock_error_c(struct macroblock *mb, int dc); | 162 int vp8_mbblock_error_c(struct macroblock *mb, int dc); |
181 int vp8_mbblock_error_mmx(struct macroblock *mb, int dc); | 163 int vp8_mbblock_error_sse2(struct macroblock *mb, int dc); |
182 int vp8_mbblock_error_xmm(struct macroblock *mb, int dc); | |
183 RTCD_EXTERN int (*vp8_mbblock_error)(struct macroblock *mb, int dc); | 164 RTCD_EXTERN int (*vp8_mbblock_error)(struct macroblock *mb, int dc); |
184 | 165 |
185 int vp8_mbuverror_c(struct macroblock *mb); | 166 int vp8_mbuverror_c(struct macroblock *mb); |
186 int vp8_mbuverror_mmx(struct macroblock *mb); | 167 int vp8_mbuverror_sse2(struct macroblock *mb); |
187 int vp8_mbuverror_xmm(struct macroblock *mb); | |
188 RTCD_EXTERN int (*vp8_mbuverror)(struct macroblock *mb); | 168 RTCD_EXTERN int (*vp8_mbuverror)(struct macroblock *mb); |
189 | 169 |
190 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); | 170 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); |
191 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); | 171 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); |
192 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); | 172 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); |
193 | 173 |
194 void vp8_regular_quantize_b_c(struct block *, struct blockd *); | 174 void vp8_regular_quantize_b_c(struct block *, struct blockd *); |
195 void vp8_regular_quantize_b_sse2(struct block *, struct blockd *); | 175 void vp8_regular_quantize_b_sse2(struct block *, struct blockd *); |
196 void vp8_regular_quantize_b_sse4_1(struct block *, struct blockd *); | 176 void vp8_regular_quantize_b_sse4_1(struct block *, struct blockd *); |
197 RTCD_EXTERN void (*vp8_regular_quantize_b)(struct block *, struct blockd *); | 177 RTCD_EXTERN void (*vp8_regular_quantize_b)(struct block *, struct blockd *); |
198 | 178 |
199 void vp8_short_fdct4x4_c(short *input, short *output, int pitch); | 179 void vp8_short_fdct4x4_c(short *input, short *output, int pitch); |
200 void vp8_short_fdct4x4_mmx(short *input, short *output, int pitch); | |
201 void vp8_short_fdct4x4_sse2(short *input, short *output, int pitch); | 180 void vp8_short_fdct4x4_sse2(short *input, short *output, int pitch); |
202 RTCD_EXTERN void (*vp8_short_fdct4x4)(short *input, short *output, int pitch); | 181 RTCD_EXTERN void (*vp8_short_fdct4x4)(short *input, short *output, int pitch); |
203 | 182 |
204 void vp8_short_fdct8x4_c(short *input, short *output, int pitch); | 183 void vp8_short_fdct8x4_c(short *input, short *output, int pitch); |
205 void vp8_short_fdct8x4_mmx(short *input, short *output, int pitch); | |
206 void vp8_short_fdct8x4_sse2(short *input, short *output, int pitch); | 184 void vp8_short_fdct8x4_sse2(short *input, short *output, int pitch); |
207 RTCD_EXTERN void (*vp8_short_fdct8x4)(short *input, short *output, int pitch); | 185 RTCD_EXTERN void (*vp8_short_fdct8x4)(short *input, short *output, int pitch); |
208 | 186 |
209 void vp8_short_idct4x4llm_c(short *input, unsigned char *pred, int pitch, unsign
ed char *dst, int dst_stride); | 187 void vp8_short_idct4x4llm_c(short *input, unsigned char *pred, int pitch, unsign
ed char *dst, int dst_stride); |
210 void vp8_short_idct4x4llm_mmx(short *input, unsigned char *pred, int pitch, unsi
gned char *dst, int dst_stride); | 188 void vp8_short_idct4x4llm_mmx(short *input, unsigned char *pred, int pitch, unsi
gned char *dst, int dst_stride); |
211 RTCD_EXTERN void (*vp8_short_idct4x4llm)(short *input, unsigned char *pred, int
pitch, unsigned char *dst, int dst_stride); | 189 RTCD_EXTERN void (*vp8_short_idct4x4llm)(short *input, unsigned char *pred, int
pitch, unsigned char *dst, int dst_stride); |
212 | 190 |
213 void vp8_short_inv_walsh4x4_c(short *input, short *output); | 191 void vp8_short_inv_walsh4x4_c(short *input, short *output); |
214 void vp8_short_inv_walsh4x4_mmx(short *input, short *output); | |
215 void vp8_short_inv_walsh4x4_sse2(short *input, short *output); | 192 void vp8_short_inv_walsh4x4_sse2(short *input, short *output); |
216 RTCD_EXTERN void (*vp8_short_inv_walsh4x4)(short *input, short *output); | 193 RTCD_EXTERN void (*vp8_short_inv_walsh4x4)(short *input, short *output); |
217 | 194 |
218 void vp8_short_inv_walsh4x4_1_c(short *input, short *output); | 195 void vp8_short_inv_walsh4x4_1_c(short *input, short *output); |
219 #define vp8_short_inv_walsh4x4_1 vp8_short_inv_walsh4x4_1_c | 196 #define vp8_short_inv_walsh4x4_1 vp8_short_inv_walsh4x4_1_c |
220 | 197 |
221 void vp8_short_walsh4x4_c(short *input, short *output, int pitch); | 198 void vp8_short_walsh4x4_c(short *input, short *output, int pitch); |
222 void vp8_short_walsh4x4_sse2(short *input, short *output, int pitch); | 199 void vp8_short_walsh4x4_sse2(short *input, short *output, int pitch); |
223 RTCD_EXTERN void (*vp8_short_walsh4x4)(short *input, short *output, int pitch); | 200 RTCD_EXTERN void (*vp8_short_walsh4x4)(short *input, short *output, int pitch); |
224 | 201 |
225 void vp8_sixtap_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int
yofst, unsigned char *dst, int dst_pitch); | 202 void vp8_sixtap_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int
yofst, unsigned char *dst, int dst_pitch); |
226 void vp8_sixtap_predict16x16_mmx(unsigned char *src, int src_pitch, int xofst, i
nt yofst, unsigned char *dst, int dst_pitch); | |
227 void vp8_sixtap_predict16x16_sse2(unsigned char *src, int src_pitch, int xofst,
int yofst, unsigned char *dst, int dst_pitch); | 203 void vp8_sixtap_predict16x16_sse2(unsigned char *src, int src_pitch, int xofst,
int yofst, unsigned char *dst, int dst_pitch); |
228 void vp8_sixtap_predict16x16_ssse3(unsigned char *src, int src_pitch, int xofst,
int yofst, unsigned char *dst, int dst_pitch); | 204 void vp8_sixtap_predict16x16_ssse3(unsigned char *src, int src_pitch, int xofst,
int yofst, unsigned char *dst, int dst_pitch); |
229 RTCD_EXTERN void (*vp8_sixtap_predict16x16)(unsigned char *src, int src_pitch, i
nt xofst, int yofst, unsigned char *dst, int dst_pitch); | 205 RTCD_EXTERN void (*vp8_sixtap_predict16x16)(unsigned char *src, int src_pitch, i
nt xofst, int yofst, unsigned char *dst, int dst_pitch); |
230 | 206 |
231 void vp8_sixtap_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int y
ofst, unsigned char *dst, int dst_pitch); | 207 void vp8_sixtap_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int y
ofst, unsigned char *dst, int dst_pitch); |
232 void vp8_sixtap_predict4x4_mmx(unsigned char *src, int src_pitch, int xofst, int
yofst, unsigned char *dst, int dst_pitch); | 208 void vp8_sixtap_predict4x4_mmx(unsigned char *src, int src_pitch, int xofst, int
yofst, unsigned char *dst, int dst_pitch); |
233 void vp8_sixtap_predict4x4_ssse3(unsigned char *src, int src_pitch, int xofst, i
nt yofst, unsigned char *dst, int dst_pitch); | 209 void vp8_sixtap_predict4x4_ssse3(unsigned char *src, int src_pitch, int xofst, i
nt yofst, unsigned char *dst, int dst_pitch); |
234 RTCD_EXTERN void (*vp8_sixtap_predict4x4)(unsigned char *src, int src_pitch, int
xofst, int yofst, unsigned char *dst, int dst_pitch); | 210 RTCD_EXTERN void (*vp8_sixtap_predict4x4)(unsigned char *src, int src_pitch, int
xofst, int yofst, unsigned char *dst, int dst_pitch); |
235 | 211 |
236 void vp8_sixtap_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int y
ofst, unsigned char *dst, int dst_pitch); | 212 void vp8_sixtap_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int y
ofst, unsigned char *dst, int dst_pitch); |
237 void vp8_sixtap_predict8x4_mmx(unsigned char *src, int src_pitch, int xofst, int
yofst, unsigned char *dst, int dst_pitch); | |
238 void vp8_sixtap_predict8x4_sse2(unsigned char *src, int src_pitch, int xofst, in
t yofst, unsigned char *dst, int dst_pitch); | 213 void vp8_sixtap_predict8x4_sse2(unsigned char *src, int src_pitch, int xofst, in
t yofst, unsigned char *dst, int dst_pitch); |
239 void vp8_sixtap_predict8x4_ssse3(unsigned char *src, int src_pitch, int xofst, i
nt yofst, unsigned char *dst, int dst_pitch); | 214 void vp8_sixtap_predict8x4_ssse3(unsigned char *src, int src_pitch, int xofst, i
nt yofst, unsigned char *dst, int dst_pitch); |
240 RTCD_EXTERN void (*vp8_sixtap_predict8x4)(unsigned char *src, int src_pitch, int
xofst, int yofst, unsigned char *dst, int dst_pitch); | 215 RTCD_EXTERN void (*vp8_sixtap_predict8x4)(unsigned char *src, int src_pitch, int
xofst, int yofst, unsigned char *dst, int dst_pitch); |
241 | 216 |
242 void vp8_sixtap_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int y
ofst, unsigned char *dst, int dst_pitch); | 217 void vp8_sixtap_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int y
ofst, unsigned char *dst, int dst_pitch); |
243 void vp8_sixtap_predict8x8_mmx(unsigned char *src, int src_pitch, int xofst, int
yofst, unsigned char *dst, int dst_pitch); | |
244 void vp8_sixtap_predict8x8_sse2(unsigned char *src, int src_pitch, int xofst, in
t yofst, unsigned char *dst, int dst_pitch); | 218 void vp8_sixtap_predict8x8_sse2(unsigned char *src, int src_pitch, int xofst, in
t yofst, unsigned char *dst, int dst_pitch); |
245 void vp8_sixtap_predict8x8_ssse3(unsigned char *src, int src_pitch, int xofst, i
nt yofst, unsigned char *dst, int dst_pitch); | 219 void vp8_sixtap_predict8x8_ssse3(unsigned char *src, int src_pitch, int xofst, i
nt yofst, unsigned char *dst, int dst_pitch); |
246 RTCD_EXTERN void (*vp8_sixtap_predict8x8)(unsigned char *src, int src_pitch, int
xofst, int yofst, unsigned char *dst, int dst_pitch); | 220 RTCD_EXTERN void (*vp8_sixtap_predict8x8)(unsigned char *src, int src_pitch, int
xofst, int yofst, unsigned char *dst, int dst_pitch); |
247 | 221 |
248 void vp8_rtcd(void); | 222 void vp8_rtcd(void); |
249 | 223 |
250 #ifdef RTCD_C | 224 #ifdef RTCD_C |
251 #include "vpx_ports/x86.h" | 225 #include "vpx_ports/x86.h" |
252 static void setup_rtcd_internal(void) | 226 static void setup_rtcd_internal(void) |
253 { | 227 { |
254 int flags = x86_simd_caps(); | 228 int flags = x86_simd_caps(); |
255 | 229 |
256 (void)flags; | 230 (void)flags; |
257 | 231 |
258 vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_c; | 232 vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_c; |
259 if (flags & HAS_MMX) vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_m
mx; | |
260 if (flags & HAS_SSE2) vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_
sse2; | 233 if (flags & HAS_SSE2) vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_
sse2; |
261 if (flags & HAS_SSSE3) vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16
_ssse3; | 234 if (flags & HAS_SSSE3) vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16
_ssse3; |
262 vp8_bilinear_predict4x4 = vp8_bilinear_predict4x4_c; | 235 vp8_bilinear_predict4x4 = vp8_bilinear_predict4x4_c; |
263 if (flags & HAS_MMX) vp8_bilinear_predict4x4 = vp8_bilinear_predict4x4_mmx; | 236 if (flags & HAS_MMX) vp8_bilinear_predict4x4 = vp8_bilinear_predict4x4_mmx; |
264 vp8_bilinear_predict8x4 = vp8_bilinear_predict8x4_c; | 237 vp8_bilinear_predict8x4 = vp8_bilinear_predict8x4_c; |
265 if (flags & HAS_MMX) vp8_bilinear_predict8x4 = vp8_bilinear_predict8x4_mmx; | 238 if (flags & HAS_MMX) vp8_bilinear_predict8x4 = vp8_bilinear_predict8x4_mmx; |
266 vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_c; | 239 vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_c; |
267 if (flags & HAS_MMX) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_mmx; | |
268 if (flags & HAS_SSE2) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_sse2
; | 240 if (flags & HAS_SSE2) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_sse2
; |
269 if (flags & HAS_SSSE3) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_sss
e3; | 241 if (flags & HAS_SSSE3) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_sss
e3; |
270 vp8_block_error = vp8_block_error_c; | 242 vp8_block_error = vp8_block_error_c; |
271 if (flags & HAS_MMX) vp8_block_error = vp8_block_error_mmx; | 243 if (flags & HAS_SSE2) vp8_block_error = vp8_block_error_sse2; |
272 if (flags & HAS_SSE2) vp8_block_error = vp8_block_error_xmm; | |
273 vp8_clear_system_state = vp8_clear_system_state_c; | |
274 if (flags & HAS_MMX) vp8_clear_system_state = vpx_reset_mmx_state; | |
275 vp8_copy32xn = vp8_copy32xn_c; | 244 vp8_copy32xn = vp8_copy32xn_c; |
276 if (flags & HAS_SSE2) vp8_copy32xn = vp8_copy32xn_sse2; | 245 if (flags & HAS_SSE2) vp8_copy32xn = vp8_copy32xn_sse2; |
277 if (flags & HAS_SSE3) vp8_copy32xn = vp8_copy32xn_sse3; | 246 if (flags & HAS_SSE3) vp8_copy32xn = vp8_copy32xn_sse3; |
278 vp8_copy_mem16x16 = vp8_copy_mem16x16_c; | 247 vp8_copy_mem16x16 = vp8_copy_mem16x16_c; |
279 if (flags & HAS_MMX) vp8_copy_mem16x16 = vp8_copy_mem16x16_mmx; | |
280 if (flags & HAS_SSE2) vp8_copy_mem16x16 = vp8_copy_mem16x16_sse2; | 248 if (flags & HAS_SSE2) vp8_copy_mem16x16 = vp8_copy_mem16x16_sse2; |
281 vp8_copy_mem8x4 = vp8_copy_mem8x4_c; | 249 vp8_copy_mem8x4 = vp8_copy_mem8x4_c; |
282 if (flags & HAS_MMX) vp8_copy_mem8x4 = vp8_copy_mem8x4_mmx; | 250 if (flags & HAS_MMX) vp8_copy_mem8x4 = vp8_copy_mem8x4_mmx; |
283 vp8_copy_mem8x8 = vp8_copy_mem8x8_c; | 251 vp8_copy_mem8x8 = vp8_copy_mem8x8_c; |
284 if (flags & HAS_MMX) vp8_copy_mem8x8 = vp8_copy_mem8x8_mmx; | 252 if (flags & HAS_MMX) vp8_copy_mem8x8 = vp8_copy_mem8x8_mmx; |
285 vp8_dc_only_idct_add = vp8_dc_only_idct_add_c; | 253 vp8_dc_only_idct_add = vp8_dc_only_idct_add_c; |
286 if (flags & HAS_MMX) vp8_dc_only_idct_add = vp8_dc_only_idct_add_mmx; | 254 if (flags & HAS_MMX) vp8_dc_only_idct_add = vp8_dc_only_idct_add_mmx; |
287 vp8_denoiser_filter = vp8_denoiser_filter_c; | 255 vp8_denoiser_filter = vp8_denoiser_filter_c; |
288 if (flags & HAS_SSE2) vp8_denoiser_filter = vp8_denoiser_filter_sse2; | 256 if (flags & HAS_SSE2) vp8_denoiser_filter = vp8_denoiser_filter_sse2; |
289 vp8_denoiser_filter_uv = vp8_denoiser_filter_uv_c; | 257 vp8_denoiser_filter_uv = vp8_denoiser_filter_uv_c; |
290 if (flags & HAS_SSE2) vp8_denoiser_filter_uv = vp8_denoiser_filter_uv_sse2; | 258 if (flags & HAS_SSE2) vp8_denoiser_filter_uv = vp8_denoiser_filter_uv_sse2; |
291 vp8_dequant_idct_add = vp8_dequant_idct_add_c; | 259 vp8_dequant_idct_add = vp8_dequant_idct_add_c; |
292 if (flags & HAS_MMX) vp8_dequant_idct_add = vp8_dequant_idct_add_mmx; | 260 if (flags & HAS_MMX) vp8_dequant_idct_add = vp8_dequant_idct_add_mmx; |
293 vp8_dequant_idct_add_uv_block = vp8_dequant_idct_add_uv_block_c; | 261 vp8_dequant_idct_add_uv_block = vp8_dequant_idct_add_uv_block_c; |
294 if (flags & HAS_MMX) vp8_dequant_idct_add_uv_block = vp8_dequant_idct_add_uv
_block_mmx; | |
295 if (flags & HAS_SSE2) vp8_dequant_idct_add_uv_block = vp8_dequant_idct_add_u
v_block_sse2; | 262 if (flags & HAS_SSE2) vp8_dequant_idct_add_uv_block = vp8_dequant_idct_add_u
v_block_sse2; |
296 vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_block_c; | 263 vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_block_c; |
297 if (flags & HAS_MMX) vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_b
lock_mmx; | |
298 if (flags & HAS_SSE2) vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_
block_sse2; | 264 if (flags & HAS_SSE2) vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_
block_sse2; |
299 vp8_dequantize_b = vp8_dequantize_b_c; | 265 vp8_dequantize_b = vp8_dequantize_b_c; |
300 if (flags & HAS_MMX) vp8_dequantize_b = vp8_dequantize_b_mmx; | 266 if (flags & HAS_MMX) vp8_dequantize_b = vp8_dequantize_b_mmx; |
301 vp8_diamond_search_sad = vp8_diamond_search_sad_c; | 267 vp8_diamond_search_sad = vp8_diamond_search_sad_c; |
302 if (flags & HAS_SSE2) vp8_diamond_search_sad = vp8_diamond_search_sadx4; | 268 if (flags & HAS_SSE2) vp8_diamond_search_sad = vp8_diamond_search_sadx4; |
303 vp8_fast_quantize_b = vp8_fast_quantize_b_c; | 269 vp8_fast_quantize_b = vp8_fast_quantize_b_c; |
304 if (flags & HAS_SSE2) vp8_fast_quantize_b = vp8_fast_quantize_b_sse2; | 270 if (flags & HAS_SSE2) vp8_fast_quantize_b = vp8_fast_quantize_b_sse2; |
305 if (flags & HAS_SSSE3) vp8_fast_quantize_b = vp8_fast_quantize_b_ssse3; | 271 if (flags & HAS_SSSE3) vp8_fast_quantize_b = vp8_fast_quantize_b_ssse3; |
306 vp8_filter_by_weight16x16 = vp8_filter_by_weight16x16_c; | 272 vp8_filter_by_weight16x16 = vp8_filter_by_weight16x16_c; |
307 if (flags & HAS_SSE2) vp8_filter_by_weight16x16 = vp8_filter_by_weight16x16_
sse2; | 273 if (flags & HAS_SSE2) vp8_filter_by_weight16x16 = vp8_filter_by_weight16x16_
sse2; |
308 vp8_filter_by_weight8x8 = vp8_filter_by_weight8x8_c; | 274 vp8_filter_by_weight8x8 = vp8_filter_by_weight8x8_c; |
309 if (flags & HAS_SSE2) vp8_filter_by_weight8x8 = vp8_filter_by_weight8x8_sse2
; | 275 if (flags & HAS_SSE2) vp8_filter_by_weight8x8 = vp8_filter_by_weight8x8_sse2
; |
310 vp8_full_search_sad = vp8_full_search_sad_c; | 276 vp8_full_search_sad = vp8_full_search_sad_c; |
311 if (flags & HAS_SSE3) vp8_full_search_sad = vp8_full_search_sadx3; | 277 if (flags & HAS_SSE3) vp8_full_search_sad = vp8_full_search_sadx3; |
312 if (flags & HAS_SSE4_1) vp8_full_search_sad = vp8_full_search_sadx8; | 278 if (flags & HAS_SSE4_1) vp8_full_search_sad = vp8_full_search_sadx8; |
313 vp8_loop_filter_bh = vp8_loop_filter_bh_c; | 279 vp8_loop_filter_bh = vp8_loop_filter_bh_c; |
314 if (flags & HAS_MMX) vp8_loop_filter_bh = vp8_loop_filter_bh_mmx; | |
315 if (flags & HAS_SSE2) vp8_loop_filter_bh = vp8_loop_filter_bh_sse2; | 280 if (flags & HAS_SSE2) vp8_loop_filter_bh = vp8_loop_filter_bh_sse2; |
316 vp8_loop_filter_bv = vp8_loop_filter_bv_c; | 281 vp8_loop_filter_bv = vp8_loop_filter_bv_c; |
317 if (flags & HAS_MMX) vp8_loop_filter_bv = vp8_loop_filter_bv_mmx; | |
318 if (flags & HAS_SSE2) vp8_loop_filter_bv = vp8_loop_filter_bv_sse2; | 282 if (flags & HAS_SSE2) vp8_loop_filter_bv = vp8_loop_filter_bv_sse2; |
319 vp8_loop_filter_mbh = vp8_loop_filter_mbh_c; | 283 vp8_loop_filter_mbh = vp8_loop_filter_mbh_c; |
320 if (flags & HAS_MMX) vp8_loop_filter_mbh = vp8_loop_filter_mbh_mmx; | |
321 if (flags & HAS_SSE2) vp8_loop_filter_mbh = vp8_loop_filter_mbh_sse2; | 284 if (flags & HAS_SSE2) vp8_loop_filter_mbh = vp8_loop_filter_mbh_sse2; |
322 vp8_loop_filter_mbv = vp8_loop_filter_mbv_c; | 285 vp8_loop_filter_mbv = vp8_loop_filter_mbv_c; |
323 if (flags & HAS_MMX) vp8_loop_filter_mbv = vp8_loop_filter_mbv_mmx; | |
324 if (flags & HAS_SSE2) vp8_loop_filter_mbv = vp8_loop_filter_mbv_sse2; | 286 if (flags & HAS_SSE2) vp8_loop_filter_mbv = vp8_loop_filter_mbv_sse2; |
325 vp8_loop_filter_simple_bh = vp8_loop_filter_bhs_c; | 287 vp8_loop_filter_simple_bh = vp8_loop_filter_bhs_c; |
326 if (flags & HAS_MMX) vp8_loop_filter_simple_bh = vp8_loop_filter_bhs_mmx; | |
327 if (flags & HAS_SSE2) vp8_loop_filter_simple_bh = vp8_loop_filter_bhs_sse2; | 288 if (flags & HAS_SSE2) vp8_loop_filter_simple_bh = vp8_loop_filter_bhs_sse2; |
328 vp8_loop_filter_simple_bv = vp8_loop_filter_bvs_c; | 289 vp8_loop_filter_simple_bv = vp8_loop_filter_bvs_c; |
329 if (flags & HAS_MMX) vp8_loop_filter_simple_bv = vp8_loop_filter_bvs_mmx; | |
330 if (flags & HAS_SSE2) vp8_loop_filter_simple_bv = vp8_loop_filter_bvs_sse2; | 290 if (flags & HAS_SSE2) vp8_loop_filter_simple_bv = vp8_loop_filter_bvs_sse2; |
331 vp8_loop_filter_simple_mbh = vp8_loop_filter_simple_horizontal_edge_c; | 291 vp8_loop_filter_simple_mbh = vp8_loop_filter_simple_horizontal_edge_c; |
332 if (flags & HAS_MMX) vp8_loop_filter_simple_mbh = vp8_loop_filter_simple_hor
izontal_edge_mmx; | |
333 if (flags & HAS_SSE2) vp8_loop_filter_simple_mbh = vp8_loop_filter_simple_ho
rizontal_edge_sse2; | 292 if (flags & HAS_SSE2) vp8_loop_filter_simple_mbh = vp8_loop_filter_simple_ho
rizontal_edge_sse2; |
334 vp8_loop_filter_simple_mbv = vp8_loop_filter_simple_vertical_edge_c; | 293 vp8_loop_filter_simple_mbv = vp8_loop_filter_simple_vertical_edge_c; |
335 if (flags & HAS_MMX) vp8_loop_filter_simple_mbv = vp8_loop_filter_simple_ver
tical_edge_mmx; | |
336 if (flags & HAS_SSE2) vp8_loop_filter_simple_mbv = vp8_loop_filter_simple_ve
rtical_edge_sse2; | 294 if (flags & HAS_SSE2) vp8_loop_filter_simple_mbv = vp8_loop_filter_simple_ve
rtical_edge_sse2; |
337 vp8_mbblock_error = vp8_mbblock_error_c; | 295 vp8_mbblock_error = vp8_mbblock_error_c; |
338 if (flags & HAS_MMX) vp8_mbblock_error = vp8_mbblock_error_mmx; | 296 if (flags & HAS_SSE2) vp8_mbblock_error = vp8_mbblock_error_sse2; |
339 if (flags & HAS_SSE2) vp8_mbblock_error = vp8_mbblock_error_xmm; | |
340 vp8_mbuverror = vp8_mbuverror_c; | 297 vp8_mbuverror = vp8_mbuverror_c; |
341 if (flags & HAS_MMX) vp8_mbuverror = vp8_mbuverror_mmx; | 298 if (flags & HAS_SSE2) vp8_mbuverror = vp8_mbuverror_sse2; |
342 if (flags & HAS_SSE2) vp8_mbuverror = vp8_mbuverror_xmm; | |
343 vp8_refining_search_sad = vp8_refining_search_sad_c; | 299 vp8_refining_search_sad = vp8_refining_search_sad_c; |
344 if (flags & HAS_SSE3) vp8_refining_search_sad = vp8_refining_search_sadx4; | 300 if (flags & HAS_SSE3) vp8_refining_search_sad = vp8_refining_search_sadx4; |
345 vp8_regular_quantize_b = vp8_regular_quantize_b_c; | 301 vp8_regular_quantize_b = vp8_regular_quantize_b_c; |
346 if (flags & HAS_SSE2) vp8_regular_quantize_b = vp8_regular_quantize_b_sse2; | 302 if (flags & HAS_SSE2) vp8_regular_quantize_b = vp8_regular_quantize_b_sse2; |
347 if (flags & HAS_SSE4_1) vp8_regular_quantize_b = vp8_regular_quantize_b_sse4
_1; | 303 if (flags & HAS_SSE4_1) vp8_regular_quantize_b = vp8_regular_quantize_b_sse4
_1; |
348 vp8_short_fdct4x4 = vp8_short_fdct4x4_c; | 304 vp8_short_fdct4x4 = vp8_short_fdct4x4_c; |
349 if (flags & HAS_MMX) vp8_short_fdct4x4 = vp8_short_fdct4x4_mmx; | |
350 if (flags & HAS_SSE2) vp8_short_fdct4x4 = vp8_short_fdct4x4_sse2; | 305 if (flags & HAS_SSE2) vp8_short_fdct4x4 = vp8_short_fdct4x4_sse2; |
351 vp8_short_fdct8x4 = vp8_short_fdct8x4_c; | 306 vp8_short_fdct8x4 = vp8_short_fdct8x4_c; |
352 if (flags & HAS_MMX) vp8_short_fdct8x4 = vp8_short_fdct8x4_mmx; | |
353 if (flags & HAS_SSE2) vp8_short_fdct8x4 = vp8_short_fdct8x4_sse2; | 307 if (flags & HAS_SSE2) vp8_short_fdct8x4 = vp8_short_fdct8x4_sse2; |
354 vp8_short_idct4x4llm = vp8_short_idct4x4llm_c; | 308 vp8_short_idct4x4llm = vp8_short_idct4x4llm_c; |
355 if (flags & HAS_MMX) vp8_short_idct4x4llm = vp8_short_idct4x4llm_mmx; | 309 if (flags & HAS_MMX) vp8_short_idct4x4llm = vp8_short_idct4x4llm_mmx; |
356 vp8_short_inv_walsh4x4 = vp8_short_inv_walsh4x4_c; | 310 vp8_short_inv_walsh4x4 = vp8_short_inv_walsh4x4_c; |
357 if (flags & HAS_MMX) vp8_short_inv_walsh4x4 = vp8_short_inv_walsh4x4_mmx; | |
358 if (flags & HAS_SSE2) vp8_short_inv_walsh4x4 = vp8_short_inv_walsh4x4_sse2; | 311 if (flags & HAS_SSE2) vp8_short_inv_walsh4x4 = vp8_short_inv_walsh4x4_sse2; |
359 vp8_short_walsh4x4 = vp8_short_walsh4x4_c; | 312 vp8_short_walsh4x4 = vp8_short_walsh4x4_c; |
360 if (flags & HAS_SSE2) vp8_short_walsh4x4 = vp8_short_walsh4x4_sse2; | 313 if (flags & HAS_SSE2) vp8_short_walsh4x4 = vp8_short_walsh4x4_sse2; |
361 vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_c; | 314 vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_c; |
362 if (flags & HAS_MMX) vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_mmx; | |
363 if (flags & HAS_SSE2) vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_sse2
; | 315 if (flags & HAS_SSE2) vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_sse2
; |
364 if (flags & HAS_SSSE3) vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_sss
e3; | 316 if (flags & HAS_SSSE3) vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_sss
e3; |
365 vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_c; | 317 vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_c; |
366 if (flags & HAS_MMX) vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_mmx; | 318 if (flags & HAS_MMX) vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_mmx; |
367 if (flags & HAS_SSSE3) vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_ssse3; | 319 if (flags & HAS_SSSE3) vp8_sixtap_predict4x4 = vp8_sixtap_predict4x4_ssse3; |
368 vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_c; | 320 vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_c; |
369 if (flags & HAS_MMX) vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_mmx; | |
370 if (flags & HAS_SSE2) vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_sse2; | 321 if (flags & HAS_SSE2) vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_sse2; |
371 if (flags & HAS_SSSE3) vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_ssse3; | 322 if (flags & HAS_SSSE3) vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_ssse3; |
372 vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_c; | 323 vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_c; |
373 if (flags & HAS_MMX) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_mmx; | |
374 if (flags & HAS_SSE2) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_sse2; | 324 if (flags & HAS_SSE2) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_sse2; |
375 if (flags & HAS_SSSE3) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_ssse3; | 325 if (flags & HAS_SSSE3) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_ssse3; |
376 } | 326 } |
377 #endif | 327 #endif |
378 | 328 |
379 #ifdef __cplusplus | 329 #ifdef __cplusplus |
380 } // extern "C" | 330 } // extern "C" |
381 #endif | 331 #endif |
382 | 332 |
383 #endif | 333 #endif |
OLD | NEW |