Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(629)

Side by Side Diff: third_party/libvpx/source/config/linux/x64/vp8_rtcd.h

Issue 2397473002: Roll src/third_party/libvpx/source/libvpx/ 691ef2027..50b9c467d (21 commits). (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #define vp8_bilinear_predict4x4 vp8_bilinear_predict4x4_mmx 36 #define vp8_bilinear_predict4x4 vp8_bilinear_predict4x4_mmx
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 #define vp8_bilinear_predict8x4 vp8_bilinear_predict8x4_mmx 40 #define vp8_bilinear_predict8x4 vp8_bilinear_predict8x4_mmx
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); 58 #define vp8_block_error vp8_block_error_sse2
61 #define vp8_block_error vp8_block_error_xmm
62
63 void vp8_clear_system_state_c();
64 void vpx_reset_mmx_state();
65 #define vp8_clear_system_state vpx_reset_mmx_state
66 59
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 #define vp8_copy_mem16x16 vp8_copy_mem16x16_sse2 67 #define vp8_copy_mem16x16 vp8_copy_mem16x16_sse2
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 #define vp8_copy_mem8x4 vp8_copy_mem8x4_mmx 71 #define vp8_copy_mem8x4 vp8_copy_mem8x4_mmx
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 #define vp8_copy_mem8x8 vp8_copy_mem8x8_mmx 75 #define vp8_copy_mem8x8 vp8_copy_mem8x8_mmx
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 #define vp8_dc_only_idct_add vp8_dc_only_idct_add_mmx 79 #define vp8_dc_only_idct_add vp8_dc_only_idct_add_mmx
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 #define vp8_denoiser_filter vp8_denoiser_filter_sse2 83 #define vp8_denoiser_filter vp8_denoiser_filter_sse2
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 #define vp8_denoiser_filter_uv vp8_denoiser_filter_uv_sse2 87 #define vp8_denoiser_filter_uv vp8_denoiser_filter_uv_sse2
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 #define vp8_dequant_idct_add vp8_dequant_idct_add_mmx 91 #define vp8_dequant_idct_add vp8_dequant_idct_add_mmx
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 #define vp8_dequant_idct_add_uv_block vp8_dequant_idct_add_uv_block_sse2 95 #define vp8_dequant_idct_add_uv_block vp8_dequant_idct_add_uv_block_sse2
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 #define vp8_dequant_idct_add_y_block vp8_dequant_idct_add_y_block_sse2 99 #define vp8_dequant_idct_add_y_block vp8_dequant_idct_add_y_block_sse2
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 #define vp8_dequantize_b vp8_dequantize_b_mmx 103 #define vp8_dequantize_b vp8_dequantize_b_mmx
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 #define vp8_diamond_search_sad vp8_diamond_search_sadx4 107 #define vp8_diamond_search_sad vp8_diamond_search_sadx4
(...skipping 13 matching lines...) Expand all
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 #define vp8_filter_by_weight8x8 vp8_filter_by_weight8x8_sse2 123 #define vp8_filter_by_weight8x8 vp8_filter_by_weight8x8_sse2
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 #define vp8_loop_filter_bh vp8_loop_filter_bh_sse2 132 #define vp8_loop_filter_bh vp8_loop_filter_bh_sse2
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 #define vp8_loop_filter_bv vp8_loop_filter_bv_sse2 136 #define vp8_loop_filter_bv vp8_loop_filter_bv_sse2
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 #define vp8_loop_filter_mbh vp8_loop_filter_mbh_sse2 140 #define vp8_loop_filter_mbh vp8_loop_filter_mbh_sse2
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 #define vp8_loop_filter_mbv vp8_loop_filter_mbv_sse2 144 #define vp8_loop_filter_mbv vp8_loop_filter_mbv_sse2
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 #define vp8_loop_filter_simple_bh vp8_loop_filter_bhs_sse2 148 #define vp8_loop_filter_simple_bh vp8_loop_filter_bhs_sse2
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 #define vp8_loop_filter_simple_bv vp8_loop_filter_bvs_sse2 152 #define vp8_loop_filter_simple_bv vp8_loop_filter_bvs_sse2
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 #define vp8_loop_filter_simple_mbh vp8_loop_filter_simple_horizontal_edge_sse2 156 #define vp8_loop_filter_simple_mbh vp8_loop_filter_simple_horizontal_edge_sse2
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 #define vp8_loop_filter_simple_mbv vp8_loop_filter_simple_vertical_edge_sse2 160 #define vp8_loop_filter_simple_mbv vp8_loop_filter_simple_vertical_edge_sse2
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); 164 #define vp8_mbblock_error vp8_mbblock_error_sse2
183 #define vp8_mbblock_error vp8_mbblock_error_xmm
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); 168 #define vp8_mbuverror vp8_mbuverror_sse2
188 #define vp8_mbuverror vp8_mbuverror_xmm
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 #define vp8_short_fdct4x4 vp8_short_fdct4x4_sse2 181 #define vp8_short_fdct4x4 vp8_short_fdct4x4_sse2
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 #define vp8_short_fdct8x4 vp8_short_fdct8x4_sse2 185 #define vp8_short_fdct8x4 vp8_short_fdct8x4_sse2
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 #define vp8_short_idct4x4llm vp8_short_idct4x4llm_mmx 189 #define vp8_short_idct4x4llm vp8_short_idct4x4llm_mmx
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 #define vp8_short_inv_walsh4x4 vp8_short_inv_walsh4x4_sse2 193 #define vp8_short_inv_walsh4x4 vp8_short_inv_walsh4x4_sse2
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 #define vp8_short_walsh4x4 vp8_short_walsh4x4_sse2 200 #define vp8_short_walsh4x4 vp8_short_walsh4x4_sse2
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 {
(...skipping 25 matching lines...) Expand all
279 vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_sse2; 253 vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_sse2;
280 if (flags & HAS_SSSE3) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_ssse3; 254 if (flags & HAS_SSSE3) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_ssse3;
281 } 255 }
282 #endif 256 #endif
283 257
284 #ifdef __cplusplus 258 #ifdef __cplusplus
285 } // extern "C" 259 } // extern "C"
286 #endif 260 #endif
287 261
288 #endif 262 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698