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 15 matching lines...) Expand all Loading... |
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 unsigned int vp9_avg_4x4_c(const uint8_t *, int p); | 32 unsigned int vp9_avg_4x4_c(const uint8_t *, int p); |
33 #define vp9_avg_4x4 vp9_avg_4x4_c | 33 #define vp9_avg_4x4 vp9_avg_4x4_c |
34 | 34 |
35 unsigned int vp9_avg_8x8_c(const uint8_t *, int p); | 35 unsigned int vp9_avg_8x8_c(const uint8_t *, int p); |
36 #define vp9_avg_8x8 vp9_avg_8x8_c | 36 unsigned int vp9_avg_8x8_neon(const uint8_t *, int p); |
| 37 RTCD_EXTERN unsigned int (*vp9_avg_8x8)(const uint8_t *, int p); |
37 | 38 |
38 int64_t vp9_block_error_c(const tran_low_t *coeff, const tran_low_t *dqcoeff, in
tptr_t block_size, int64_t *ssz); | 39 int64_t vp9_block_error_c(const tran_low_t *coeff, const tran_low_t *dqcoeff, in
tptr_t block_size, int64_t *ssz); |
39 #define vp9_block_error vp9_block_error_c | 40 #define vp9_block_error vp9_block_error_c |
40 | 41 |
41 void vp9_convolve8_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptr
diff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter
_y, int y_step_q4, int w, int h); | 42 void vp9_convolve8_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptr
diff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter
_y, int y_step_q4, int w, int h); |
42 void vp9_convolve8_neon(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst,
ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *fil
ter_y, int y_step_q4, int w, int h); | 43 void vp9_convolve8_neon(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst,
ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *fil
ter_y, int y_step_q4, int w, int h); |
43 RTCD_EXTERN void (*vp9_convolve8)(const uint8_t *src, ptrdiff_t src_stride, uint
8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const in
t16_t *filter_y, int y_step_q4, int w, int h); | 44 RTCD_EXTERN void (*vp9_convolve8)(const uint8_t *src, ptrdiff_t src_stride, uint
8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const in
t16_t *filter_y, int y_step_q4, int w, int h); |
44 | 45 |
45 void vp9_convolve8_avg_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst,
ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *fi
lter_y, int y_step_q4, int w, int h); | 46 void vp9_convolve8_avg_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst,
ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *fi
lter_y, int y_step_q4, int w, int h); |
46 void vp9_convolve8_avg_neon(const uint8_t *src, ptrdiff_t src_stride, uint8_t *d
st, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t
*filter_y, int y_step_q4, int w, int h); | 47 void vp9_convolve8_avg_neon(const uint8_t *src, ptrdiff_t src_stride, uint8_t *d
st, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t
*filter_y, int y_step_q4, int w, int h); |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 | 220 |
220 void vp9_fdct8x8_c(const int16_t *input, tran_low_t *output, int stride); | 221 void vp9_fdct8x8_c(const int16_t *input, tran_low_t *output, int stride); |
221 void vp9_fdct8x8_neon(const int16_t *input, tran_low_t *output, int stride); | 222 void vp9_fdct8x8_neon(const int16_t *input, tran_low_t *output, int stride); |
222 RTCD_EXTERN void (*vp9_fdct8x8)(const int16_t *input, tran_low_t *output, int st
ride); | 223 RTCD_EXTERN void (*vp9_fdct8x8)(const int16_t *input, tran_low_t *output, int st
ride); |
223 | 224 |
224 void vp9_fdct8x8_1_c(const int16_t *input, tran_low_t *output, int stride); | 225 void vp9_fdct8x8_1_c(const int16_t *input, tran_low_t *output, int stride); |
225 void vp9_fdct8x8_1_neon(const int16_t *input, tran_low_t *output, int stride); | 226 void vp9_fdct8x8_1_neon(const int16_t *input, tran_low_t *output, int stride); |
226 RTCD_EXTERN void (*vp9_fdct8x8_1)(const int16_t *input, tran_low_t *output, int
stride); | 227 RTCD_EXTERN void (*vp9_fdct8x8_1)(const int16_t *input, tran_low_t *output, int
stride); |
227 | 228 |
228 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); | 229 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); |
229 #define vp9_fdct8x8_quant vp9_fdct8x8_quant_c | 230 void vp9_fdct8x8_quant_neon(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); |
| 231 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); |
230 | 232 |
231 void vp9_fht16x16_c(const int16_t *input, tran_low_t *output, int stride, int tx
_type); | 233 void vp9_fht16x16_c(const int16_t *input, tran_low_t *output, int stride, int tx
_type); |
232 #define vp9_fht16x16 vp9_fht16x16_c | 234 #define vp9_fht16x16 vp9_fht16x16_c |
233 | 235 |
234 void vp9_fht4x4_c(const int16_t *input, tran_low_t *output, int stride, int tx_t
ype); | 236 void vp9_fht4x4_c(const int16_t *input, tran_low_t *output, int stride, int tx_t
ype); |
235 #define vp9_fht4x4 vp9_fht4x4_c | 237 #define vp9_fht4x4 vp9_fht4x4_c |
236 | 238 |
237 void vp9_fht8x8_c(const int16_t *input, tran_low_t *output, int stride, int tx_t
ype); | 239 void vp9_fht8x8_c(const int16_t *input, tran_low_t *output, int stride, int tx_t
ype); |
238 #define vp9_fht8x8 vp9_fht8x8_c | 240 #define vp9_fht8x8 vp9_fht8x8_c |
239 | 241 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 #define vp9_iht16x16_256_add vp9_iht16x16_256_add_c | 323 #define vp9_iht16x16_256_add vp9_iht16x16_256_add_c |
322 | 324 |
323 void vp9_iht4x4_16_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride
, int tx_type); | 325 void vp9_iht4x4_16_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride
, int tx_type); |
324 void vp9_iht4x4_16_add_neon(const tran_low_t *input, uint8_t *dest, int dest_str
ide, int tx_type); | 326 void vp9_iht4x4_16_add_neon(const tran_low_t *input, uint8_t *dest, int dest_str
ide, int tx_type); |
325 RTCD_EXTERN void (*vp9_iht4x4_16_add)(const tran_low_t *input, uint8_t *dest, in
t dest_stride, int tx_type); | 327 RTCD_EXTERN void (*vp9_iht4x4_16_add)(const tran_low_t *input, uint8_t *dest, in
t dest_stride, int tx_type); |
326 | 328 |
327 void vp9_iht8x8_64_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride
, int tx_type); | 329 void vp9_iht8x8_64_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride
, int tx_type); |
328 void vp9_iht8x8_64_add_neon(const tran_low_t *input, uint8_t *dest, int dest_str
ide, int tx_type); | 330 void vp9_iht8x8_64_add_neon(const tran_low_t *input, uint8_t *dest, int dest_str
ide, int tx_type); |
329 RTCD_EXTERN void (*vp9_iht8x8_64_add)(const tran_low_t *input, uint8_t *dest, in
t dest_stride, int tx_type); | 331 RTCD_EXTERN void (*vp9_iht8x8_64_add)(const tran_low_t *input, uint8_t *dest, in
t dest_stride, int tx_type); |
330 | 332 |
| 333 int16_t vp9_int_pro_col_c(uint8_t const *ref, const int width); |
| 334 #define vp9_int_pro_col vp9_int_pro_col_c |
| 335 |
| 336 void vp9_int_pro_row_c(int16_t *hbuf, uint8_t const *ref, const int ref_stride,
const int height); |
| 337 #define vp9_int_pro_row vp9_int_pro_row_c |
| 338 |
331 void vp9_iwht4x4_16_add_c(const tran_low_t *input, uint8_t *dest, int dest_strid
e); | 339 void vp9_iwht4x4_16_add_c(const tran_low_t *input, uint8_t *dest, int dest_strid
e); |
332 #define vp9_iwht4x4_16_add vp9_iwht4x4_16_add_c | 340 #define vp9_iwht4x4_16_add vp9_iwht4x4_16_add_c |
333 | 341 |
334 void vp9_iwht4x4_1_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride
); | 342 void vp9_iwht4x4_1_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride
); |
335 #define vp9_iwht4x4_1_add vp9_iwht4x4_1_add_c | 343 #define vp9_iwht4x4_1_add vp9_iwht4x4_1_add_c |
336 | 344 |
337 void vp9_lpf_horizontal_16_c(uint8_t *s, int pitch, const uint8_t *blimit, const
uint8_t *limit, const uint8_t *thresh, int count); | 345 void vp9_lpf_horizontal_16_c(uint8_t *s, int pitch, const uint8_t *blimit, const
uint8_t *limit, const uint8_t *thresh, int count); |
338 void vp9_lpf_horizontal_16_neon(uint8_t *s, int pitch, const uint8_t *blimit, co
nst uint8_t *limit, const uint8_t *thresh, int count); | 346 void vp9_lpf_horizontal_16_neon(uint8_t *s, int pitch, const uint8_t *blimit, co
nst uint8_t *limit, const uint8_t *thresh, int count); |
339 RTCD_EXTERN void (*vp9_lpf_horizontal_16)(uint8_t *s, int pitch, const uint8_t *
blimit, const uint8_t *limit, const uint8_t *thresh, int count); | 347 RTCD_EXTERN void (*vp9_lpf_horizontal_16)(uint8_t *s, int pitch, const uint8_t *
blimit, const uint8_t *limit, const uint8_t *thresh, int count); |
340 | 348 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 unsigned int vp9_sad16x16_neon(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride); | 415 unsigned int vp9_sad16x16_neon(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride); |
408 RTCD_EXTERN unsigned int (*vp9_sad16x16)(const uint8_t *src_ptr, int source_stri
de, const uint8_t *ref_ptr, int ref_stride); | 416 RTCD_EXTERN unsigned int (*vp9_sad16x16)(const uint8_t *src_ptr, int source_stri
de, const uint8_t *ref_ptr, int ref_stride); |
409 | 417 |
410 unsigned int vp9_sad16x16_avg_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); | 418 unsigned int vp9_sad16x16_avg_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); |
411 #define vp9_sad16x16_avg vp9_sad16x16_avg_c | 419 #define vp9_sad16x16_avg vp9_sad16x16_avg_c |
412 | 420 |
413 void vp9_sad16x16x3_c(const uint8_t *src_ptr, int source_stride, const uint8_t *
ref_ptr, int ref_stride, unsigned int *sad_array); | 421 void vp9_sad16x16x3_c(const uint8_t *src_ptr, int source_stride, const uint8_t *
ref_ptr, int ref_stride, unsigned int *sad_array); |
414 #define vp9_sad16x16x3 vp9_sad16x16x3_c | 422 #define vp9_sad16x16x3 vp9_sad16x16x3_c |
415 | 423 |
416 void vp9_sad16x16x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t* c
onst ref_ptr[], int ref_stride, unsigned int *sad_array); | 424 void vp9_sad16x16x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t* c
onst ref_ptr[], int ref_stride, unsigned int *sad_array); |
417 #define vp9_sad16x16x4d vp9_sad16x16x4d_c | 425 void vp9_sad16x16x4d_neon(const uint8_t *src_ptr, int src_stride, const uint8_t
* const ref_ptr[], int ref_stride, unsigned int *sad_array); |
| 426 RTCD_EXTERN void (*vp9_sad16x16x4d)(const uint8_t *src_ptr, int src_stride, con
st uint8_t* const ref_ptr[], int ref_stride, unsigned int *sad_array); |
418 | 427 |
419 void vp9_sad16x16x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *re
f_ptr, int ref_stride, uint32_t *sad_array); | 428 void vp9_sad16x16x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *re
f_ptr, int ref_stride, uint32_t *sad_array); |
420 #define vp9_sad16x16x8 vp9_sad16x16x8_c | 429 #define vp9_sad16x16x8 vp9_sad16x16x8_c |
421 | 430 |
422 unsigned int vp9_sad16x32_c(const uint8_t *src_ptr, int source_stride, const uin
t8_t *ref_ptr, int ref_stride); | 431 unsigned int vp9_sad16x32_c(const uint8_t *src_ptr, int source_stride, const uin
t8_t *ref_ptr, int ref_stride); |
423 #define vp9_sad16x32 vp9_sad16x32_c | 432 #define vp9_sad16x32 vp9_sad16x32_c |
424 | 433 |
425 unsigned int vp9_sad16x32_avg_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); | 434 unsigned int vp9_sad16x32_avg_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); |
426 #define vp9_sad16x32_avg vp9_sad16x32_avg_c | 435 #define vp9_sad16x32_avg vp9_sad16x32_avg_c |
427 | 436 |
(...skipping 28 matching lines...) Expand all Loading... |
456 unsigned int vp9_sad32x32_neon(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride); | 465 unsigned int vp9_sad32x32_neon(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride); |
457 RTCD_EXTERN unsigned int (*vp9_sad32x32)(const uint8_t *src_ptr, int source_stri
de, const uint8_t *ref_ptr, int ref_stride); | 466 RTCD_EXTERN unsigned int (*vp9_sad32x32)(const uint8_t *src_ptr, int source_stri
de, const uint8_t *ref_ptr, int ref_stride); |
458 | 467 |
459 unsigned int vp9_sad32x32_avg_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); | 468 unsigned int vp9_sad32x32_avg_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); |
460 #define vp9_sad32x32_avg vp9_sad32x32_avg_c | 469 #define vp9_sad32x32_avg vp9_sad32x32_avg_c |
461 | 470 |
462 void vp9_sad32x32x3_c(const uint8_t *src_ptr, int source_stride, const uint8_t *
ref_ptr, int ref_stride, unsigned int *sad_array); | 471 void vp9_sad32x32x3_c(const uint8_t *src_ptr, int source_stride, const uint8_t *
ref_ptr, int ref_stride, unsigned int *sad_array); |
463 #define vp9_sad32x32x3 vp9_sad32x32x3_c | 472 #define vp9_sad32x32x3 vp9_sad32x32x3_c |
464 | 473 |
465 void vp9_sad32x32x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t* c
onst ref_ptr[], int ref_stride, unsigned int *sad_array); | 474 void vp9_sad32x32x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t* c
onst ref_ptr[], int ref_stride, unsigned int *sad_array); |
466 #define vp9_sad32x32x4d vp9_sad32x32x4d_c | 475 void vp9_sad32x32x4d_neon(const uint8_t *src_ptr, int src_stride, const uint8_t
* const ref_ptr[], int ref_stride, unsigned int *sad_array); |
| 476 RTCD_EXTERN void (*vp9_sad32x32x4d)(const uint8_t *src_ptr, int src_stride, con
st uint8_t* const ref_ptr[], int ref_stride, unsigned int *sad_array); |
467 | 477 |
468 void vp9_sad32x32x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *re
f_ptr, int ref_stride, uint32_t *sad_array); | 478 void vp9_sad32x32x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *re
f_ptr, int ref_stride, uint32_t *sad_array); |
469 #define vp9_sad32x32x8 vp9_sad32x32x8_c | 479 #define vp9_sad32x32x8 vp9_sad32x32x8_c |
470 | 480 |
471 unsigned int vp9_sad32x64_c(const uint8_t *src_ptr, int source_stride, const uin
t8_t *ref_ptr, int ref_stride); | 481 unsigned int vp9_sad32x64_c(const uint8_t *src_ptr, int source_stride, const uin
t8_t *ref_ptr, int ref_stride); |
472 #define vp9_sad32x64 vp9_sad32x64_c | 482 #define vp9_sad32x64 vp9_sad32x64_c |
473 | 483 |
474 unsigned int vp9_sad32x64_avg_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); | 484 unsigned int vp9_sad32x64_avg_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); |
475 #define vp9_sad32x64_avg vp9_sad32x64_avg_c | 485 #define vp9_sad32x64_avg vp9_sad32x64_avg_c |
476 | 486 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 unsigned int vp9_sad64x64_neon(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride); | 527 unsigned int vp9_sad64x64_neon(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride); |
518 RTCD_EXTERN unsigned int (*vp9_sad64x64)(const uint8_t *src_ptr, int source_stri
de, const uint8_t *ref_ptr, int ref_stride); | 528 RTCD_EXTERN unsigned int (*vp9_sad64x64)(const uint8_t *src_ptr, int source_stri
de, const uint8_t *ref_ptr, int ref_stride); |
519 | 529 |
520 unsigned int vp9_sad64x64_avg_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); | 530 unsigned int vp9_sad64x64_avg_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); |
521 #define vp9_sad64x64_avg vp9_sad64x64_avg_c | 531 #define vp9_sad64x64_avg vp9_sad64x64_avg_c |
522 | 532 |
523 void vp9_sad64x64x3_c(const uint8_t *src_ptr, int source_stride, const uint8_t *
ref_ptr, int ref_stride, unsigned int *sad_array); | 533 void vp9_sad64x64x3_c(const uint8_t *src_ptr, int source_stride, const uint8_t *
ref_ptr, int ref_stride, unsigned int *sad_array); |
524 #define vp9_sad64x64x3 vp9_sad64x64x3_c | 534 #define vp9_sad64x64x3 vp9_sad64x64x3_c |
525 | 535 |
526 void vp9_sad64x64x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t* c
onst ref_ptr[], int ref_stride, unsigned int *sad_array); | 536 void vp9_sad64x64x4d_c(const uint8_t *src_ptr, int src_stride, const uint8_t* c
onst ref_ptr[], int ref_stride, unsigned int *sad_array); |
527 #define vp9_sad64x64x4d vp9_sad64x64x4d_c | 537 void vp9_sad64x64x4d_neon(const uint8_t *src_ptr, int src_stride, const uint8_t
* const ref_ptr[], int ref_stride, unsigned int *sad_array); |
| 538 RTCD_EXTERN void (*vp9_sad64x64x4d)(const uint8_t *src_ptr, int src_stride, con
st uint8_t* const ref_ptr[], int ref_stride, unsigned int *sad_array); |
528 | 539 |
529 void vp9_sad64x64x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *re
f_ptr, int ref_stride, uint32_t *sad_array); | 540 void vp9_sad64x64x8_c(const uint8_t *src_ptr, int src_stride, const uint8_t *re
f_ptr, int ref_stride, uint32_t *sad_array); |
530 #define vp9_sad64x64x8 vp9_sad64x64x8_c | 541 #define vp9_sad64x64x8 vp9_sad64x64x8_c |
531 | 542 |
532 unsigned int vp9_sad8x16_c(const uint8_t *src_ptr, int source_stride, const uint
8_t *ref_ptr, int ref_stride); | 543 unsigned int vp9_sad8x16_c(const uint8_t *src_ptr, int source_stride, const uint
8_t *ref_ptr, int ref_stride); |
533 #define vp9_sad8x16 vp9_sad8x16_c | 544 #define vp9_sad8x16 vp9_sad8x16_c |
534 | 545 |
535 unsigned int vp9_sad8x16_avg_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); | 546 unsigned int vp9_sad8x16_avg_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, const uint8_t *second_pred); |
536 #define vp9_sad8x16_avg vp9_sad8x16_avg_c | 547 #define vp9_sad8x16_avg vp9_sad8x16_avg_c |
537 | 548 |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
731 unsigned int vp9_variance8x16_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, unsigned int *sse); | 742 unsigned int vp9_variance8x16_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
732 #define vp9_variance8x16 vp9_variance8x16_c | 743 #define vp9_variance8x16 vp9_variance8x16_c |
733 | 744 |
734 unsigned int vp9_variance8x4_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, unsigned int *sse); | 745 unsigned int vp9_variance8x4_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
735 #define vp9_variance8x4 vp9_variance8x4_c | 746 #define vp9_variance8x4 vp9_variance8x4_c |
736 | 747 |
737 unsigned int vp9_variance8x8_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, unsigned int *sse); | 748 unsigned int vp9_variance8x8_c(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
738 unsigned int vp9_variance8x8_neon(const uint8_t *src_ptr, int source_stride, con
st uint8_t *ref_ptr, int ref_stride, unsigned int *sse); | 749 unsigned int vp9_variance8x8_neon(const uint8_t *src_ptr, int source_stride, con
st uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
739 RTCD_EXTERN unsigned int (*vp9_variance8x8)(const uint8_t *src_ptr, int source_s
tride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); | 750 RTCD_EXTERN unsigned int (*vp9_variance8x8)(const uint8_t *src_ptr, int source_s
tride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); |
740 | 751 |
| 752 int vp9_vector_sad_c(int16_t const *ref, int16_t const *src, const int width); |
| 753 #define vp9_vector_sad vp9_vector_sad_c |
| 754 |
741 void vp9_rtcd(void); | 755 void vp9_rtcd(void); |
742 | 756 |
743 #include "vpx_config.h" | 757 #include "vpx_config.h" |
744 | 758 |
745 #ifdef RTCD_C | 759 #ifdef RTCD_C |
746 #include "vpx_ports/arm.h" | 760 #include "vpx_ports/arm.h" |
747 static void setup_rtcd_internal(void) | 761 static void setup_rtcd_internal(void) |
748 { | 762 { |
749 int flags = arm_cpu_caps(); | 763 int flags = arm_cpu_caps(); |
750 | 764 |
751 (void)flags; | 765 (void)flags; |
752 | 766 |
| 767 vp9_avg_8x8 = vp9_avg_8x8_c; |
| 768 if (flags & HAS_NEON) vp9_avg_8x8 = vp9_avg_8x8_neon; |
753 vp9_convolve8 = vp9_convolve8_c; | 769 vp9_convolve8 = vp9_convolve8_c; |
754 if (flags & HAS_NEON) vp9_convolve8 = vp9_convolve8_neon; | 770 if (flags & HAS_NEON) vp9_convolve8 = vp9_convolve8_neon; |
755 vp9_convolve8_avg = vp9_convolve8_avg_c; | 771 vp9_convolve8_avg = vp9_convolve8_avg_c; |
756 if (flags & HAS_NEON) vp9_convolve8_avg = vp9_convolve8_avg_neon; | 772 if (flags & HAS_NEON) vp9_convolve8_avg = vp9_convolve8_avg_neon; |
757 vp9_convolve8_avg_horiz = vp9_convolve8_avg_horiz_c; | 773 vp9_convolve8_avg_horiz = vp9_convolve8_avg_horiz_c; |
758 if (flags & HAS_NEON) vp9_convolve8_avg_horiz = vp9_convolve8_avg_horiz_neon
; | 774 if (flags & HAS_NEON) vp9_convolve8_avg_horiz = vp9_convolve8_avg_horiz_neon
; |
759 vp9_convolve8_avg_vert = vp9_convolve8_avg_vert_c; | 775 vp9_convolve8_avg_vert = vp9_convolve8_avg_vert_c; |
760 if (flags & HAS_NEON) vp9_convolve8_avg_vert = vp9_convolve8_avg_vert_neon; | 776 if (flags & HAS_NEON) vp9_convolve8_avg_vert = vp9_convolve8_avg_vert_neon; |
761 vp9_convolve8_horiz = vp9_convolve8_horiz_c; | 777 vp9_convolve8_horiz = vp9_convolve8_horiz_c; |
762 if (flags & HAS_NEON) vp9_convolve8_horiz = vp9_convolve8_horiz_neon; | 778 if (flags & HAS_NEON) vp9_convolve8_horiz = vp9_convolve8_horiz_neon; |
763 vp9_convolve8_vert = vp9_convolve8_vert_c; | 779 vp9_convolve8_vert = vp9_convolve8_vert_c; |
764 if (flags & HAS_NEON) vp9_convolve8_vert = vp9_convolve8_vert_neon; | 780 if (flags & HAS_NEON) vp9_convolve8_vert = vp9_convolve8_vert_neon; |
765 vp9_convolve_avg = vp9_convolve_avg_c; | 781 vp9_convolve_avg = vp9_convolve_avg_c; |
766 if (flags & HAS_NEON) vp9_convolve_avg = vp9_convolve_avg_neon; | 782 if (flags & HAS_NEON) vp9_convolve_avg = vp9_convolve_avg_neon; |
767 vp9_convolve_copy = vp9_convolve_copy_c; | 783 vp9_convolve_copy = vp9_convolve_copy_c; |
768 if (flags & HAS_NEON) vp9_convolve_copy = vp9_convolve_copy_neon; | 784 if (flags & HAS_NEON) vp9_convolve_copy = vp9_convolve_copy_neon; |
769 vp9_fdct8x8 = vp9_fdct8x8_c; | 785 vp9_fdct8x8 = vp9_fdct8x8_c; |
770 if (flags & HAS_NEON) vp9_fdct8x8 = vp9_fdct8x8_neon; | 786 if (flags & HAS_NEON) vp9_fdct8x8 = vp9_fdct8x8_neon; |
771 vp9_fdct8x8_1 = vp9_fdct8x8_1_c; | 787 vp9_fdct8x8_1 = vp9_fdct8x8_1_c; |
772 if (flags & HAS_NEON) vp9_fdct8x8_1 = vp9_fdct8x8_1_neon; | 788 if (flags & HAS_NEON) vp9_fdct8x8_1 = vp9_fdct8x8_1_neon; |
| 789 vp9_fdct8x8_quant = vp9_fdct8x8_quant_c; |
| 790 if (flags & HAS_NEON) vp9_fdct8x8_quant = vp9_fdct8x8_quant_neon; |
773 vp9_get16x16var = vp9_get16x16var_c; | 791 vp9_get16x16var = vp9_get16x16var_c; |
774 if (flags & HAS_NEON) vp9_get16x16var = vp9_get16x16var_neon; | 792 if (flags & HAS_NEON) vp9_get16x16var = vp9_get16x16var_neon; |
775 vp9_get8x8var = vp9_get8x8var_c; | 793 vp9_get8x8var = vp9_get8x8var_c; |
776 if (flags & HAS_NEON) vp9_get8x8var = vp9_get8x8var_neon; | 794 if (flags & HAS_NEON) vp9_get8x8var = vp9_get8x8var_neon; |
777 vp9_h_predictor_16x16 = vp9_h_predictor_16x16_c; | 795 vp9_h_predictor_16x16 = vp9_h_predictor_16x16_c; |
778 if (flags & HAS_NEON) vp9_h_predictor_16x16 = vp9_h_predictor_16x16_neon; | 796 if (flags & HAS_NEON) vp9_h_predictor_16x16 = vp9_h_predictor_16x16_neon; |
779 vp9_h_predictor_32x32 = vp9_h_predictor_32x32_c; | 797 vp9_h_predictor_32x32 = vp9_h_predictor_32x32_c; |
780 if (flags & HAS_NEON) vp9_h_predictor_32x32 = vp9_h_predictor_32x32_neon; | 798 if (flags & HAS_NEON) vp9_h_predictor_32x32 = vp9_h_predictor_32x32_neon; |
781 vp9_h_predictor_4x4 = vp9_h_predictor_4x4_c; | 799 vp9_h_predictor_4x4 = vp9_h_predictor_4x4_c; |
782 if (flags & HAS_NEON) vp9_h_predictor_4x4 = vp9_h_predictor_4x4_neon; | 800 if (flags & HAS_NEON) vp9_h_predictor_4x4 = vp9_h_predictor_4x4_neon; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
827 vp9_lpf_vertical_4_dual = vp9_lpf_vertical_4_dual_c; | 845 vp9_lpf_vertical_4_dual = vp9_lpf_vertical_4_dual_c; |
828 if (flags & HAS_NEON) vp9_lpf_vertical_4_dual = vp9_lpf_vertical_4_dual_neon
; | 846 if (flags & HAS_NEON) vp9_lpf_vertical_4_dual = vp9_lpf_vertical_4_dual_neon
; |
829 vp9_lpf_vertical_8 = vp9_lpf_vertical_8_c; | 847 vp9_lpf_vertical_8 = vp9_lpf_vertical_8_c; |
830 if (flags & HAS_NEON) vp9_lpf_vertical_8 = vp9_lpf_vertical_8_neon; | 848 if (flags & HAS_NEON) vp9_lpf_vertical_8 = vp9_lpf_vertical_8_neon; |
831 vp9_lpf_vertical_8_dual = vp9_lpf_vertical_8_dual_c; | 849 vp9_lpf_vertical_8_dual = vp9_lpf_vertical_8_dual_c; |
832 if (flags & HAS_NEON) vp9_lpf_vertical_8_dual = vp9_lpf_vertical_8_dual_neon
; | 850 if (flags & HAS_NEON) vp9_lpf_vertical_8_dual = vp9_lpf_vertical_8_dual_neon
; |
833 vp9_quantize_fp = vp9_quantize_fp_c; | 851 vp9_quantize_fp = vp9_quantize_fp_c; |
834 if (flags & HAS_NEON) vp9_quantize_fp = vp9_quantize_fp_neon; | 852 if (flags & HAS_NEON) vp9_quantize_fp = vp9_quantize_fp_neon; |
835 vp9_sad16x16 = vp9_sad16x16_c; | 853 vp9_sad16x16 = vp9_sad16x16_c; |
836 if (flags & HAS_NEON) vp9_sad16x16 = vp9_sad16x16_neon; | 854 if (flags & HAS_NEON) vp9_sad16x16 = vp9_sad16x16_neon; |
| 855 vp9_sad16x16x4d = vp9_sad16x16x4d_c; |
| 856 if (flags & HAS_NEON) vp9_sad16x16x4d = vp9_sad16x16x4d_neon; |
837 vp9_sad32x32 = vp9_sad32x32_c; | 857 vp9_sad32x32 = vp9_sad32x32_c; |
838 if (flags & HAS_NEON) vp9_sad32x32 = vp9_sad32x32_neon; | 858 if (flags & HAS_NEON) vp9_sad32x32 = vp9_sad32x32_neon; |
| 859 vp9_sad32x32x4d = vp9_sad32x32x4d_c; |
| 860 if (flags & HAS_NEON) vp9_sad32x32x4d = vp9_sad32x32x4d_neon; |
839 vp9_sad64x64 = vp9_sad64x64_c; | 861 vp9_sad64x64 = vp9_sad64x64_c; |
840 if (flags & HAS_NEON) vp9_sad64x64 = vp9_sad64x64_neon; | 862 if (flags & HAS_NEON) vp9_sad64x64 = vp9_sad64x64_neon; |
| 863 vp9_sad64x64x4d = vp9_sad64x64x4d_c; |
| 864 if (flags & HAS_NEON) vp9_sad64x64x4d = vp9_sad64x64x4d_neon; |
841 vp9_sad8x8 = vp9_sad8x8_c; | 865 vp9_sad8x8 = vp9_sad8x8_c; |
842 if (flags & HAS_NEON) vp9_sad8x8 = vp9_sad8x8_neon; | 866 if (flags & HAS_NEON) vp9_sad8x8 = vp9_sad8x8_neon; |
843 vp9_sub_pixel_variance16x16 = vp9_sub_pixel_variance16x16_c; | 867 vp9_sub_pixel_variance16x16 = vp9_sub_pixel_variance16x16_c; |
844 if (flags & HAS_NEON) vp9_sub_pixel_variance16x16 = vp9_sub_pixel_variance16
x16_neon; | 868 if (flags & HAS_NEON) vp9_sub_pixel_variance16x16 = vp9_sub_pixel_variance16
x16_neon; |
845 vp9_sub_pixel_variance32x32 = vp9_sub_pixel_variance32x32_c; | 869 vp9_sub_pixel_variance32x32 = vp9_sub_pixel_variance32x32_c; |
846 if (flags & HAS_NEON) vp9_sub_pixel_variance32x32 = vp9_sub_pixel_variance32
x32_neon; | 870 if (flags & HAS_NEON) vp9_sub_pixel_variance32x32 = vp9_sub_pixel_variance32
x32_neon; |
847 vp9_sub_pixel_variance64x64 = vp9_sub_pixel_variance64x64_c; | 871 vp9_sub_pixel_variance64x64 = vp9_sub_pixel_variance64x64_c; |
848 if (flags & HAS_NEON) vp9_sub_pixel_variance64x64 = vp9_sub_pixel_variance64
x64_neon; | 872 if (flags & HAS_NEON) vp9_sub_pixel_variance64x64 = vp9_sub_pixel_variance64
x64_neon; |
849 vp9_sub_pixel_variance8x8 = vp9_sub_pixel_variance8x8_c; | 873 vp9_sub_pixel_variance8x8 = vp9_sub_pixel_variance8x8_c; |
850 if (flags & HAS_NEON) vp9_sub_pixel_variance8x8 = vp9_sub_pixel_variance8x8_
neon; | 874 if (flags & HAS_NEON) vp9_sub_pixel_variance8x8 = vp9_sub_pixel_variance8x8_
neon; |
(...skipping 28 matching lines...) Expand all Loading... |
879 vp9_variance8x8 = vp9_variance8x8_c; | 903 vp9_variance8x8 = vp9_variance8x8_c; |
880 if (flags & HAS_NEON) vp9_variance8x8 = vp9_variance8x8_neon; | 904 if (flags & HAS_NEON) vp9_variance8x8 = vp9_variance8x8_neon; |
881 } | 905 } |
882 #endif | 906 #endif |
883 | 907 |
884 #ifdef __cplusplus | 908 #ifdef __cplusplus |
885 } // extern "C" | 909 } // extern "C" |
886 #endif | 910 #endif |
887 | 911 |
888 #endif | 912 #endif |
OLD | NEW |