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

Side by Side Diff: third_party/libvpx/source/config/win/ia32/vp9_rtcd.h

Issue 2718943005: Roll src/third_party/libvpx/source/libvpx/ 4d4231352..8121f8547 (17 commits). (Closed)
Patch Set: Created 3 years, 9 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 VP9_RTCD_H_ 1 #ifndef VP9_RTCD_H_
2 #define VP9_RTCD_H_ 2 #define VP9_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 /*
(...skipping 12 matching lines...) Expand all
23 struct search_site_config; 23 struct search_site_config;
24 struct mv; 24 struct mv;
25 union int_mv; 25 union int_mv;
26 struct yv12_buffer_config; 26 struct yv12_buffer_config;
27 27
28 #ifdef __cplusplus 28 #ifdef __cplusplus
29 extern "C" { 29 extern "C" {
30 #endif 30 #endif
31 31
32 int64_t vp9_block_error_c(const tran_low_t *coeff, const tran_low_t *dqcoeff, in tptr_t block_size, int64_t *ssz); 32 int64_t vp9_block_error_c(const tran_low_t *coeff, const tran_low_t *dqcoeff, in tptr_t block_size, int64_t *ssz);
33 int64_t vp9_block_error_sse2(const tran_low_t *coeff, const tran_low_t *dqcoeff, intptr_t block_size, int64_t *ssz);
33 int64_t vp9_block_error_avx2(const tran_low_t *coeff, const tran_low_t *dqcoeff, intptr_t block_size, int64_t *ssz); 34 int64_t vp9_block_error_avx2(const tran_low_t *coeff, const tran_low_t *dqcoeff, intptr_t block_size, int64_t *ssz);
34 RTCD_EXTERN int64_t (*vp9_block_error)(const tran_low_t *coeff, const tran_low_t *dqcoeff, intptr_t block_size, int64_t *ssz); 35 RTCD_EXTERN int64_t (*vp9_block_error)(const tran_low_t *coeff, const tran_low_t *dqcoeff, intptr_t block_size, int64_t *ssz);
35 36
36 int64_t vp9_block_error_fp_c(const tran_low_t *coeff, const tran_low_t *dqcoeff, int block_size); 37 int64_t vp9_block_error_fp_c(const tran_low_t *coeff, const tran_low_t *dqcoeff, int block_size);
37 int64_t vp9_block_error_fp_sse2(const tran_low_t *coeff, const tran_low_t *dqcoe ff, int block_size); 38 int64_t vp9_block_error_fp_sse2(const tran_low_t *coeff, const tran_low_t *dqcoe ff, int block_size);
38 RTCD_EXTERN int64_t (*vp9_block_error_fp)(const tran_low_t *coeff, const tran_lo w_t *dqcoeff, int block_size); 39 RTCD_EXTERN int64_t (*vp9_block_error_fp)(const tran_low_t *coeff, const tran_lo w_t *dqcoeff, int block_size);
39 40
40 int vp9_denoiser_filter_c(const uint8_t *sig, int sig_stride, const uint8_t *mc_ avg, int mc_avg_stride, uint8_t *avg, int avg_stride, int increase_denoising, BL OCK_SIZE bs, int motion_magnitude); 41 int vp9_denoiser_filter_c(const uint8_t *sig, int sig_stride, const uint8_t *mc_ avg, int mc_avg_stride, uint8_t *avg, int avg_stride, int increase_denoising, BL OCK_SIZE bs, int motion_magnitude);
41 int vp9_denoiser_filter_sse2(const uint8_t *sig, int sig_stride, const uint8_t * mc_avg, int mc_avg_stride, uint8_t *avg, int avg_stride, int increase_denoising, BLOCK_SIZE bs, int motion_magnitude); 42 int vp9_denoiser_filter_sse2(const uint8_t *sig, int sig_stride, const uint8_t * mc_avg, int mc_avg_stride, uint8_t *avg, int avg_stride, int increase_denoising, BLOCK_SIZE bs, int motion_magnitude);
42 RTCD_EXTERN int (*vp9_denoiser_filter)(const uint8_t *sig, int sig_stride, const uint8_t *mc_avg, int mc_avg_stride, uint8_t *avg, int avg_stride, int increase_ denoising, BLOCK_SIZE bs, int motion_magnitude); 43 RTCD_EXTERN int (*vp9_denoiser_filter)(const uint8_t *sig, int sig_stride, const uint8_t *mc_avg, int mc_avg_stride, uint8_t *avg, int avg_stride, int increase_ denoising, BLOCK_SIZE bs, int motion_magnitude);
43 44
44 int vp9_diamond_search_sad_c(const struct macroblock *x, const struct search_sit e_config *cfg, struct mv *ref_mv, struct mv *best_mv, int search_param, int sad _per_bit, int *num00, const struct vp9_variance_vtable *fn_ptr, const struct mv *center_mv); 45 int vp9_diamond_search_sad_c(const struct macroblock *x, const struct search_sit e_config *cfg, struct mv *ref_mv, struct mv *best_mv, int search_param, int sad _per_bit, int *num00, const struct vp9_variance_vtable *fn_ptr, const struct mv *center_mv);
45 int vp9_diamond_search_sad_avx(const struct macroblock *x, const struct search_s ite_config *cfg, struct mv *ref_mv, struct mv *best_mv, int search_param, int s ad_per_bit, int *num00, const struct vp9_variance_vtable *fn_ptr, const struct m v *center_mv); 46 int vp9_diamond_search_sad_avx(const struct macroblock *x, const struct search_s ite_config *cfg, struct mv *ref_mv, struct mv *best_mv, int search_param, int s ad_per_bit, int *num00, const struct vp9_variance_vtable *fn_ptr, const struct m v *center_mv);
46 RTCD_EXTERN int (*vp9_diamond_search_sad)(const struct macroblock *x, const stru ct search_site_config *cfg, struct mv *ref_mv, struct mv *best_mv, int search_p aram, int sad_per_bit, int *num00, const struct vp9_variance_vtable *fn_ptr, con st struct mv *center_mv); 47 RTCD_EXTERN int (*vp9_diamond_search_sad)(const struct macroblock *x, const stru ct search_site_config *cfg, struct mv *ref_mv, struct mv *best_mv, int search_p aram, int sad_per_bit, int *num00, const struct vp9_variance_vtable *fn_ptr, con st struct mv *center_mv);
47 48
48 void vp9_fdct8x8_quant_c(const int16_t *input, int stride, tran_low_t *coeff_ptr , intptr_t n_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *rou nd_ptr, const int16_t *quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qc oeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr , const int16_t *scan, const int16_t *iscan); 49 void vp9_fdct8x8_quant_c(const int16_t *input, int stride, tran_low_t *coeff_ptr , intptr_t n_coeffs, int skip_block, const int16_t *round_ptr, const int16_t *qu ant_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant _ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan);
49 void vp9_fdct8x8_quant_ssse3(const int16_t *input, int stride, tran_low_t *coeff _ptr, intptr_t n_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob _ptr, const int16_t *scan, const int16_t *iscan); 50 void vp9_fdct8x8_quant_ssse3(const int16_t *input, int stride, tran_low_t *coeff _ptr, intptr_t n_coeffs, int skip_block, const int16_t *round_ptr, const int16_t *quant_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *deq uant_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan);
50 RTCD_EXTERN void (*vp9_fdct8x8_quant)(const int16_t *input, int stride, tran_low _t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_ptr, const int16_t *quant_shift_ptr, t ran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint 16_t *eob_ptr, const int16_t *scan, const int16_t *iscan); 51 RTCD_EXTERN void (*vp9_fdct8x8_quant)(const int16_t *input, int stride, tran_low _t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *round_ptr, cons t int16_t *quant_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int 16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan) ;
51 52
52 void vp9_fht16x16_c(const int16_t *input, tran_low_t *output, int stride, int tx _type); 53 void vp9_fht16x16_c(const int16_t *input, tran_low_t *output, int stride, int tx _type);
53 void vp9_fht16x16_sse2(const int16_t *input, tran_low_t *output, int stride, int tx_type); 54 void vp9_fht16x16_sse2(const int16_t *input, tran_low_t *output, int stride, int tx_type);
54 RTCD_EXTERN void (*vp9_fht16x16)(const int16_t *input, tran_low_t *output, int s tride, int tx_type); 55 RTCD_EXTERN void (*vp9_fht16x16)(const int16_t *input, tran_low_t *output, int s tride, int tx_type);
55 56
56 void vp9_fht4x4_c(const int16_t *input, tran_low_t *output, int stride, int tx_t ype); 57 void vp9_fht4x4_c(const int16_t *input, tran_low_t *output, int stride, int tx_t ype);
57 void vp9_fht4x4_sse2(const int16_t *input, tran_low_t *output, int stride, int t x_type); 58 void vp9_fht4x4_sse2(const int16_t *input, tran_low_t *output, int stride, int t x_type);
58 RTCD_EXTERN void (*vp9_fht4x4)(const int16_t *input, tran_low_t *output, int str ide, int tx_type); 59 RTCD_EXTERN void (*vp9_fht4x4)(const int16_t *input, tran_low_t *output, int str ide, int tx_type);
59 60
60 void vp9_fht8x8_c(const int16_t *input, tran_low_t *output, int stride, int tx_t ype); 61 void vp9_fht8x8_c(const int16_t *input, tran_low_t *output, int stride, int tx_t ype);
(...skipping 14 matching lines...) Expand all
75 RTCD_EXTERN int (*vp9_full_search_sad)(const struct macroblock *x, const struct mv *ref_mv, int sad_per_bit, int distance, const struct vp9_variance_vtable *fn_ ptr, const struct mv *center_mv, struct mv *best_mv); 76 RTCD_EXTERN int (*vp9_full_search_sad)(const struct macroblock *x, const struct mv *ref_mv, int sad_per_bit, int distance, const struct vp9_variance_vtable *fn_ ptr, const struct mv *center_mv, struct mv *best_mv);
76 77
77 void vp9_fwht4x4_c(const int16_t *input, tran_low_t *output, int stride); 78 void vp9_fwht4x4_c(const int16_t *input, tran_low_t *output, int stride);
78 void vp9_fwht4x4_sse2(const int16_t *input, tran_low_t *output, int stride); 79 void vp9_fwht4x4_sse2(const int16_t *input, tran_low_t *output, int stride);
79 RTCD_EXTERN void (*vp9_fwht4x4)(const int16_t *input, tran_low_t *output, int st ride); 80 RTCD_EXTERN void (*vp9_fwht4x4)(const int16_t *input, tran_low_t *output, int st ride);
80 81
81 int64_t vp9_highbd_block_error_c(const tran_low_t *coeff, const tran_low_t *dqco eff, intptr_t block_size, int64_t *ssz, int bd); 82 int64_t vp9_highbd_block_error_c(const tran_low_t *coeff, const tran_low_t *dqco eff, intptr_t block_size, int64_t *ssz, int bd);
82 int64_t vp9_highbd_block_error_sse2(const tran_low_t *coeff, const tran_low_t *d qcoeff, intptr_t block_size, int64_t *ssz, int bd); 83 int64_t vp9_highbd_block_error_sse2(const tran_low_t *coeff, const tran_low_t *d qcoeff, intptr_t block_size, int64_t *ssz, int bd);
83 RTCD_EXTERN int64_t (*vp9_highbd_block_error)(const tran_low_t *coeff, const tra n_low_t *dqcoeff, intptr_t block_size, int64_t *ssz, int bd); 84 RTCD_EXTERN int64_t (*vp9_highbd_block_error)(const tran_low_t *coeff, const tra n_low_t *dqcoeff, intptr_t block_size, int64_t *ssz, int bd);
84 85
85 int64_t vp9_highbd_block_error_8bit_c(const tran_low_t *coeff, const tran_low_t *dqcoeff, intptr_t block_size, int64_t *ssz);
86 int64_t vp9_highbd_block_error_8bit_sse2(const tran_low_t *coeff, const tran_low _t *dqcoeff, intptr_t block_size, int64_t *ssz);
87 int64_t vp9_highbd_block_error_8bit_avx(const tran_low_t *coeff, const tran_low_ t *dqcoeff, intptr_t block_size, int64_t *ssz);
88 RTCD_EXTERN int64_t (*vp9_highbd_block_error_8bit)(const tran_low_t *coeff, cons t tran_low_t *dqcoeff, intptr_t block_size, int64_t *ssz);
89
90 void vp9_highbd_fht16x16_c(const int16_t *input, tran_low_t *output, int stride, int tx_type); 86 void vp9_highbd_fht16x16_c(const int16_t *input, tran_low_t *output, int stride, int tx_type);
91 #define vp9_highbd_fht16x16 vp9_highbd_fht16x16_c 87 #define vp9_highbd_fht16x16 vp9_highbd_fht16x16_c
92 88
93 void vp9_highbd_fht4x4_c(const int16_t *input, tran_low_t *output, int stride, i nt tx_type); 89 void vp9_highbd_fht4x4_c(const int16_t *input, tran_low_t *output, int stride, i nt tx_type);
94 #define vp9_highbd_fht4x4 vp9_highbd_fht4x4_c 90 #define vp9_highbd_fht4x4 vp9_highbd_fht4x4_c
95 91
96 void vp9_highbd_fht8x8_c(const int16_t *input, tran_low_t *output, int stride, i nt tx_type); 92 void vp9_highbd_fht8x8_c(const int16_t *input, tran_low_t *output, int stride, i nt tx_type);
97 #define vp9_highbd_fht8x8 vp9_highbd_fht8x8_c 93 #define vp9_highbd_fht8x8 vp9_highbd_fht8x8_c
98 94
99 void vp9_highbd_fwht4x4_c(const int16_t *input, tran_low_t *output, int stride); 95 void vp9_highbd_fwht4x4_c(const int16_t *input, tran_low_t *output, int stride);
(...skipping 10 matching lines...) Expand all
110 106
111 void vp9_highbd_mbpost_proc_across_ip_c(uint16_t *src, int pitch, int rows, int cols, int flimit); 107 void vp9_highbd_mbpost_proc_across_ip_c(uint16_t *src, int pitch, int rows, int cols, int flimit);
112 #define vp9_highbd_mbpost_proc_across_ip vp9_highbd_mbpost_proc_across_ip_c 108 #define vp9_highbd_mbpost_proc_across_ip vp9_highbd_mbpost_proc_across_ip_c
113 109
114 void vp9_highbd_mbpost_proc_down_c(uint16_t *dst, int pitch, int rows, int cols, int flimit); 110 void vp9_highbd_mbpost_proc_down_c(uint16_t *dst, int pitch, int rows, int cols, int flimit);
115 #define vp9_highbd_mbpost_proc_down vp9_highbd_mbpost_proc_down_c 111 #define vp9_highbd_mbpost_proc_down vp9_highbd_mbpost_proc_down_c
116 112
117 void vp9_highbd_post_proc_down_and_across_c(const uint16_t *src_ptr, uint16_t *d st_ptr, int src_pixels_per_line, int dst_pixels_per_line, int rows, int cols, in t flimit); 113 void vp9_highbd_post_proc_down_and_across_c(const uint16_t *src_ptr, uint16_t *d st_ptr, int src_pixels_per_line, int dst_pixels_per_line, int rows, int cols, in t flimit);
118 #define vp9_highbd_post_proc_down_and_across vp9_highbd_post_proc_down_and_acros s_c 114 #define vp9_highbd_post_proc_down_and_across vp9_highbd_post_proc_down_and_acros s_c
119 115
120 void vp9_highbd_quantize_fp_c(const tran_low_t *coeff_ptr, intptr_t n_coeffs, in t skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t * quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *d qcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan); 116 void vp9_highbd_quantize_fp_c(const tran_low_t *coeff_ptr, intptr_t n_coeffs, in t skip_block, const int16_t *round_ptr, const int16_t *quant_ptr, tran_low_t *qc oeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr , const int16_t *scan, const int16_t *iscan);
121 #define vp9_highbd_quantize_fp vp9_highbd_quantize_fp_c 117 #define vp9_highbd_quantize_fp vp9_highbd_quantize_fp_c
122 118
123 void vp9_highbd_quantize_fp_32x32_c(const tran_low_t *coeff_ptr, intptr_t n_coef fs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int 16_t *quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_lo w_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t * scan, const int16_t *iscan); 119 void vp9_highbd_quantize_fp_32x32_c(const tran_low_t *coeff_ptr, intptr_t n_coef fs, int skip_block, const int16_t *round_ptr, const int16_t *quant_ptr, tran_low _t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *e ob_ptr, const int16_t *scan, const int16_t *iscan);
124 #define vp9_highbd_quantize_fp_32x32 vp9_highbd_quantize_fp_32x32_c 120 #define vp9_highbd_quantize_fp_32x32 vp9_highbd_quantize_fp_32x32_c
125 121
126 void vp9_highbd_temporal_filter_apply_c(uint8_t *frame1, unsigned int stride, ui nt8_t *frame2, unsigned int block_width, unsigned int block_height, int strength , int filter_weight, unsigned int *accumulator, uint16_t *count); 122 void vp9_highbd_temporal_filter_apply_c(uint8_t *frame1, unsigned int stride, ui nt8_t *frame2, unsigned int block_width, unsigned int block_height, int strength , int filter_weight, unsigned int *accumulator, uint16_t *count);
127 #define vp9_highbd_temporal_filter_apply vp9_highbd_temporal_filter_apply_c 123 #define vp9_highbd_temporal_filter_apply vp9_highbd_temporal_filter_apply_c
128 124
129 void vp9_iht16x16_256_add_c(const tran_low_t *input, uint8_t *output, int pitch, int tx_type); 125 void vp9_iht16x16_256_add_c(const tran_low_t *input, uint8_t *output, int pitch, int tx_type);
130 void vp9_iht16x16_256_add_sse2(const tran_low_t *input, uint8_t *output, int pit ch, int tx_type); 126 void vp9_iht16x16_256_add_sse2(const tran_low_t *input, uint8_t *output, int pit ch, int tx_type);
131 RTCD_EXTERN void (*vp9_iht16x16_256_add)(const tran_low_t *input, uint8_t *outpu t, int pitch, int tx_type); 127 RTCD_EXTERN void (*vp9_iht16x16_256_add)(const tran_low_t *input, uint8_t *outpu t, int pitch, int tx_type);
132 128
133 void vp9_iht4x4_16_add_c(const tran_low_t *input, uint8_t *dest, int stride, int tx_type); 129 void vp9_iht4x4_16_add_c(const tran_low_t *input, uint8_t *dest, int stride, int tx_type);
134 void vp9_iht4x4_16_add_sse2(const tran_low_t *input, uint8_t *dest, int stride, int tx_type); 130 void vp9_iht4x4_16_add_sse2(const tran_low_t *input, uint8_t *dest, int stride, int tx_type);
135 RTCD_EXTERN void (*vp9_iht4x4_16_add)(const tran_low_t *input, uint8_t *dest, in t stride, int tx_type); 131 RTCD_EXTERN void (*vp9_iht4x4_16_add)(const tran_low_t *input, uint8_t *dest, in t stride, int tx_type);
136 132
137 void vp9_iht8x8_64_add_c(const tran_low_t *input, uint8_t *dest, int stride, int tx_type); 133 void vp9_iht8x8_64_add_c(const tran_low_t *input, uint8_t *dest, int stride, int tx_type);
138 void vp9_iht8x8_64_add_sse2(const tran_low_t *input, uint8_t *dest, int stride, int tx_type); 134 void vp9_iht8x8_64_add_sse2(const tran_low_t *input, uint8_t *dest, int stride, int tx_type);
139 RTCD_EXTERN void (*vp9_iht8x8_64_add)(const tran_low_t *input, uint8_t *dest, in t stride, int tx_type); 135 RTCD_EXTERN void (*vp9_iht8x8_64_add)(const tran_low_t *input, uint8_t *dest, in t stride, int tx_type);
140 136
141 void vp9_quantize_fp_c(const tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_ block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_p tr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const i nt16_t *iscan); 137 void vp9_quantize_fp_c(const tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_ block, const int16_t *round_ptr, const int16_t *quant_ptr, tran_low_t *qcoeff_pt r, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan);
142 void vp9_quantize_fp_sse2(const tran_low_t *coeff_ptr, intptr_t n_coeffs, int sk ip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quan t_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoe ff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, cons t int16_t *iscan); 138 void vp9_quantize_fp_sse2(const tran_low_t *coeff_ptr, intptr_t n_coeffs, int sk ip_block, const int16_t *round_ptr, const int16_t *quant_ptr, tran_low_t *qcoeff _ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, co nst int16_t *scan, const int16_t *iscan);
143 RTCD_EXTERN void (*vp9_quantize_fp)(const tran_low_t *coeff_ptr, intptr_t n_coef fs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int 16_t *quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_lo w_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t * scan, const int16_t *iscan); 139 RTCD_EXTERN void (*vp9_quantize_fp)(const tran_low_t *coeff_ptr, intptr_t n_coef fs, int skip_block, const int16_t *round_ptr, const int16_t *quant_ptr, tran_low _t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *e ob_ptr, const int16_t *scan, const int16_t *iscan);
144 140
145 void vp9_quantize_fp_32x32_c(const tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *q uant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dq coeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, c onst int16_t *iscan); 141 void vp9_quantize_fp_32x32_c(const tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *round_ptr, const int16_t *quant_ptr, tran_low_t *qco eff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan);
146 #define vp9_quantize_fp_32x32 vp9_quantize_fp_32x32_c 142 #define vp9_quantize_fp_32x32 vp9_quantize_fp_32x32_c
147 143
144 void vp9_scale_and_extend_frame_c(const struct yv12_buffer_config *src, struct y v12_buffer_config *dst);
145 void vp9_scale_and_extend_frame_ssse3(const struct yv12_buffer_config *src, stru ct yv12_buffer_config *dst);
146 RTCD_EXTERN void (*vp9_scale_and_extend_frame)(const struct yv12_buffer_config * src, struct yv12_buffer_config *dst);
147
148 void vp9_temporal_filter_apply_c(uint8_t *frame1, unsigned int stride, uint8_t * frame2, unsigned int block_width, unsigned int block_height, int strength, int f ilter_weight, unsigned int *accumulator, uint16_t *count); 148 void vp9_temporal_filter_apply_c(uint8_t *frame1, unsigned int stride, uint8_t * frame2, unsigned int block_width, unsigned int block_height, int strength, int f ilter_weight, unsigned int *accumulator, uint16_t *count);
149 void vp9_temporal_filter_apply_sse2(uint8_t *frame1, unsigned int stride, uint8_ t *frame2, unsigned int block_width, unsigned int block_height, int strength, in t filter_weight, unsigned int *accumulator, uint16_t *count); 149 void vp9_temporal_filter_apply_sse2(uint8_t *frame1, unsigned int stride, uint8_ t *frame2, unsigned int block_width, unsigned int block_height, int strength, in t filter_weight, unsigned int *accumulator, uint16_t *count);
150 RTCD_EXTERN void (*vp9_temporal_filter_apply)(uint8_t *frame1, unsigned int stri de, uint8_t *frame2, unsigned int block_width, unsigned int block_height, int st rength, int filter_weight, unsigned int *accumulator, uint16_t *count); 150 RTCD_EXTERN void (*vp9_temporal_filter_apply)(uint8_t *frame1, unsigned int stri de, uint8_t *frame2, unsigned int block_width, unsigned int block_height, int st rength, int filter_weight, unsigned int *accumulator, uint16_t *count);
151 151
152 void vp9_rtcd(void); 152 void vp9_rtcd(void);
153 153
154 #ifdef RTCD_C 154 #ifdef RTCD_C
155 #include "vpx_ports/x86.h" 155 #include "vpx_ports/x86.h"
156 static void setup_rtcd_internal(void) 156 static void setup_rtcd_internal(void)
157 { 157 {
158 int flags = x86_simd_caps(); 158 int flags = x86_simd_caps();
159 159
160 (void)flags; 160 (void)flags;
161 161
162 vp9_block_error = vp9_block_error_c; 162 vp9_block_error = vp9_block_error_c;
163 if (flags & HAS_SSE2) vp9_block_error = vp9_block_error_sse2;
163 if (flags & HAS_AVX2) vp9_block_error = vp9_block_error_avx2; 164 if (flags & HAS_AVX2) vp9_block_error = vp9_block_error_avx2;
164 vp9_block_error_fp = vp9_block_error_fp_c; 165 vp9_block_error_fp = vp9_block_error_fp_c;
165 if (flags & HAS_SSE2) vp9_block_error_fp = vp9_block_error_fp_sse2; 166 if (flags & HAS_SSE2) vp9_block_error_fp = vp9_block_error_fp_sse2;
166 vp9_denoiser_filter = vp9_denoiser_filter_c; 167 vp9_denoiser_filter = vp9_denoiser_filter_c;
167 if (flags & HAS_SSE2) vp9_denoiser_filter = vp9_denoiser_filter_sse2; 168 if (flags & HAS_SSE2) vp9_denoiser_filter = vp9_denoiser_filter_sse2;
168 vp9_diamond_search_sad = vp9_diamond_search_sad_c; 169 vp9_diamond_search_sad = vp9_diamond_search_sad_c;
169 if (flags & HAS_AVX) vp9_diamond_search_sad = vp9_diamond_search_sad_avx; 170 if (flags & HAS_AVX) vp9_diamond_search_sad = vp9_diamond_search_sad_avx;
170 vp9_fdct8x8_quant = vp9_fdct8x8_quant_c; 171 vp9_fdct8x8_quant = vp9_fdct8x8_quant_c;
171 if (flags & HAS_SSSE3) vp9_fdct8x8_quant = vp9_fdct8x8_quant_ssse3; 172 if (flags & HAS_SSSE3) vp9_fdct8x8_quant = vp9_fdct8x8_quant_ssse3;
172 vp9_fht16x16 = vp9_fht16x16_c; 173 vp9_fht16x16 = vp9_fht16x16_c;
173 if (flags & HAS_SSE2) vp9_fht16x16 = vp9_fht16x16_sse2; 174 if (flags & HAS_SSE2) vp9_fht16x16 = vp9_fht16x16_sse2;
174 vp9_fht4x4 = vp9_fht4x4_c; 175 vp9_fht4x4 = vp9_fht4x4_c;
175 if (flags & HAS_SSE2) vp9_fht4x4 = vp9_fht4x4_sse2; 176 if (flags & HAS_SSE2) vp9_fht4x4 = vp9_fht4x4_sse2;
176 vp9_fht8x8 = vp9_fht8x8_c; 177 vp9_fht8x8 = vp9_fht8x8_c;
177 if (flags & HAS_SSE2) vp9_fht8x8 = vp9_fht8x8_sse2; 178 if (flags & HAS_SSE2) vp9_fht8x8 = vp9_fht8x8_sse2;
178 vp9_filter_by_weight16x16 = vp9_filter_by_weight16x16_c; 179 vp9_filter_by_weight16x16 = vp9_filter_by_weight16x16_c;
179 if (flags & HAS_SSE2) vp9_filter_by_weight16x16 = vp9_filter_by_weight16x16_ sse2; 180 if (flags & HAS_SSE2) vp9_filter_by_weight16x16 = vp9_filter_by_weight16x16_ sse2;
180 vp9_filter_by_weight8x8 = vp9_filter_by_weight8x8_c; 181 vp9_filter_by_weight8x8 = vp9_filter_by_weight8x8_c;
181 if (flags & HAS_SSE2) vp9_filter_by_weight8x8 = vp9_filter_by_weight8x8_sse2 ; 182 if (flags & HAS_SSE2) vp9_filter_by_weight8x8 = vp9_filter_by_weight8x8_sse2 ;
182 vp9_full_search_sad = vp9_full_search_sad_c; 183 vp9_full_search_sad = vp9_full_search_sad_c;
183 if (flags & HAS_SSE3) vp9_full_search_sad = vp9_full_search_sadx3; 184 if (flags & HAS_SSE3) vp9_full_search_sad = vp9_full_search_sadx3;
184 if (flags & HAS_SSE4_1) vp9_full_search_sad = vp9_full_search_sadx8; 185 if (flags & HAS_SSE4_1) vp9_full_search_sad = vp9_full_search_sadx8;
185 vp9_fwht4x4 = vp9_fwht4x4_c; 186 vp9_fwht4x4 = vp9_fwht4x4_c;
186 if (flags & HAS_SSE2) vp9_fwht4x4 = vp9_fwht4x4_sse2; 187 if (flags & HAS_SSE2) vp9_fwht4x4 = vp9_fwht4x4_sse2;
187 vp9_highbd_block_error = vp9_highbd_block_error_c; 188 vp9_highbd_block_error = vp9_highbd_block_error_c;
188 if (flags & HAS_SSE2) vp9_highbd_block_error = vp9_highbd_block_error_sse2; 189 if (flags & HAS_SSE2) vp9_highbd_block_error = vp9_highbd_block_error_sse2;
189 vp9_highbd_block_error_8bit = vp9_highbd_block_error_8bit_c;
190 if (flags & HAS_SSE2) vp9_highbd_block_error_8bit = vp9_highbd_block_error_8 bit_sse2;
191 if (flags & HAS_AVX) vp9_highbd_block_error_8bit = vp9_highbd_block_error_8b it_avx;
192 vp9_iht16x16_256_add = vp9_iht16x16_256_add_c; 190 vp9_iht16x16_256_add = vp9_iht16x16_256_add_c;
193 if (flags & HAS_SSE2) vp9_iht16x16_256_add = vp9_iht16x16_256_add_sse2; 191 if (flags & HAS_SSE2) vp9_iht16x16_256_add = vp9_iht16x16_256_add_sse2;
194 vp9_iht4x4_16_add = vp9_iht4x4_16_add_c; 192 vp9_iht4x4_16_add = vp9_iht4x4_16_add_c;
195 if (flags & HAS_SSE2) vp9_iht4x4_16_add = vp9_iht4x4_16_add_sse2; 193 if (flags & HAS_SSE2) vp9_iht4x4_16_add = vp9_iht4x4_16_add_sse2;
196 vp9_iht8x8_64_add = vp9_iht8x8_64_add_c; 194 vp9_iht8x8_64_add = vp9_iht8x8_64_add_c;
197 if (flags & HAS_SSE2) vp9_iht8x8_64_add = vp9_iht8x8_64_add_sse2; 195 if (flags & HAS_SSE2) vp9_iht8x8_64_add = vp9_iht8x8_64_add_sse2;
198 vp9_quantize_fp = vp9_quantize_fp_c; 196 vp9_quantize_fp = vp9_quantize_fp_c;
199 if (flags & HAS_SSE2) vp9_quantize_fp = vp9_quantize_fp_sse2; 197 if (flags & HAS_SSE2) vp9_quantize_fp = vp9_quantize_fp_sse2;
198 vp9_scale_and_extend_frame = vp9_scale_and_extend_frame_c;
199 if (flags & HAS_SSSE3) vp9_scale_and_extend_frame = vp9_scale_and_extend_fra me_ssse3;
200 vp9_temporal_filter_apply = vp9_temporal_filter_apply_c; 200 vp9_temporal_filter_apply = vp9_temporal_filter_apply_c;
201 if (flags & HAS_SSE2) vp9_temporal_filter_apply = vp9_temporal_filter_apply_ sse2; 201 if (flags & HAS_SSE2) vp9_temporal_filter_apply = vp9_temporal_filter_apply_ sse2;
202 } 202 }
203 #endif 203 #endif
204 204
205 #ifdef __cplusplus 205 #ifdef __cplusplus
206 } // extern "C" 206 } // extern "C"
207 #endif 207 #endif
208 208
209 #endif 209 #endif
OLDNEW
« no previous file with comments | « third_party/libvpx/source/config/vpx_version.h ('k') | third_party/libvpx/source/config/win/ia32/vpx_dsp_rtcd.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698