OLD | NEW |
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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 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); | 124 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); |
125 #define vp9_quantize_fp_32x32 vp9_quantize_fp_32x32_c | 125 #define vp9_quantize_fp_32x32 vp9_quantize_fp_32x32_c |
126 | 126 |
127 int16_t vp9_satd_c(const int16_t *coeff, int length); | 127 int16_t vp9_satd_c(const int16_t *coeff, int length); |
128 #define vp9_satd vp9_satd_c | 128 #define vp9_satd vp9_satd_c |
129 | 129 |
130 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); | 130 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); |
131 #define vp9_temporal_filter_apply vp9_temporal_filter_apply_c | 131 #define vp9_temporal_filter_apply vp9_temporal_filter_apply_c |
132 | 132 |
133 int vp9_vector_var_c(int16_t const *ref, int16_t const *src, const int bwl); | 133 int vp9_vector_var_c(int16_t const *ref, int16_t const *src, const int bwl); |
134 #define vp9_vector_var vp9_vector_var_c | 134 int vp9_vector_var_neon(int16_t const *ref, int16_t const *src, const int bwl); |
| 135 RTCD_EXTERN int (*vp9_vector_var)(int16_t const *ref, int16_t const *src, const
int bwl); |
135 | 136 |
136 void vp9_rtcd(void); | 137 void vp9_rtcd(void); |
137 | 138 |
138 #include "vpx_config.h" | 139 #include "vpx_config.h" |
139 | 140 |
140 #ifdef RTCD_C | 141 #ifdef RTCD_C |
141 #include "vpx_ports/arm.h" | 142 #include "vpx_ports/arm.h" |
142 static void setup_rtcd_internal(void) | 143 static void setup_rtcd_internal(void) |
143 { | 144 { |
144 int flags = arm_cpu_caps(); | 145 int flags = arm_cpu_caps(); |
145 | 146 |
146 (void)flags; | 147 (void)flags; |
147 | 148 |
148 vp9_avg_8x8 = vp9_avg_8x8_c; | 149 vp9_avg_8x8 = vp9_avg_8x8_c; |
149 if (flags & HAS_NEON) vp9_avg_8x8 = vp9_avg_8x8_neon; | 150 if (flags & HAS_NEON) vp9_avg_8x8 = vp9_avg_8x8_neon; |
150 vp9_block_error_fp = vp9_block_error_fp_c; | 151 vp9_block_error_fp = vp9_block_error_fp_c; |
151 if (flags & HAS_NEON) vp9_block_error_fp = vp9_block_error_fp_neon; | 152 if (flags & HAS_NEON) vp9_block_error_fp = vp9_block_error_fp_neon; |
152 vp9_fdct8x8_quant = vp9_fdct8x8_quant_c; | 153 vp9_fdct8x8_quant = vp9_fdct8x8_quant_c; |
153 if (flags & HAS_NEON) vp9_fdct8x8_quant = vp9_fdct8x8_quant_neon; | 154 if (flags & HAS_NEON) vp9_fdct8x8_quant = vp9_fdct8x8_quant_neon; |
154 vp9_iht4x4_16_add = vp9_iht4x4_16_add_c; | 155 vp9_iht4x4_16_add = vp9_iht4x4_16_add_c; |
155 if (flags & HAS_NEON) vp9_iht4x4_16_add = vp9_iht4x4_16_add_neon; | 156 if (flags & HAS_NEON) vp9_iht4x4_16_add = vp9_iht4x4_16_add_neon; |
156 vp9_iht8x8_64_add = vp9_iht8x8_64_add_c; | 157 vp9_iht8x8_64_add = vp9_iht8x8_64_add_c; |
157 if (flags & HAS_NEON) vp9_iht8x8_64_add = vp9_iht8x8_64_add_neon; | 158 if (flags & HAS_NEON) vp9_iht8x8_64_add = vp9_iht8x8_64_add_neon; |
158 vp9_int_pro_col = vp9_int_pro_col_c; | 159 vp9_int_pro_col = vp9_int_pro_col_c; |
159 if (flags & HAS_NEON) vp9_int_pro_col = vp9_int_pro_col_neon; | 160 if (flags & HAS_NEON) vp9_int_pro_col = vp9_int_pro_col_neon; |
160 vp9_int_pro_row = vp9_int_pro_row_c; | 161 vp9_int_pro_row = vp9_int_pro_row_c; |
161 if (flags & HAS_NEON) vp9_int_pro_row = vp9_int_pro_row_neon; | 162 if (flags & HAS_NEON) vp9_int_pro_row = vp9_int_pro_row_neon; |
162 vp9_quantize_fp = vp9_quantize_fp_c; | 163 vp9_quantize_fp = vp9_quantize_fp_c; |
163 if (flags & HAS_NEON) vp9_quantize_fp = vp9_quantize_fp_neon; | 164 if (flags & HAS_NEON) vp9_quantize_fp = vp9_quantize_fp_neon; |
| 165 vp9_vector_var = vp9_vector_var_c; |
| 166 if (flags & HAS_NEON) vp9_vector_var = vp9_vector_var_neon; |
164 } | 167 } |
165 #endif | 168 #endif |
166 | 169 |
167 #ifdef __cplusplus | 170 #ifdef __cplusplus |
168 } // extern "C" | 171 } // extern "C" |
169 #endif | 172 #endif |
170 | 173 |
171 #endif | 174 #endif |
OLD | NEW |