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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 #define vp9_fht16x16 vp9_fht16x16_sse2 | 278 #define vp9_fht16x16 vp9_fht16x16_sse2 |
279 | 279 |
280 void vp9_fht4x4_c(const int16_t *input, tran_low_t *output, int stride, int tx_t
ype); | 280 void vp9_fht4x4_c(const int16_t *input, tran_low_t *output, int stride, int tx_t
ype); |
281 void vp9_fht4x4_sse2(const int16_t *input, tran_low_t *output, int stride, int t
x_type); | 281 void vp9_fht4x4_sse2(const int16_t *input, tran_low_t *output, int stride, int t
x_type); |
282 #define vp9_fht4x4 vp9_fht4x4_sse2 | 282 #define vp9_fht4x4 vp9_fht4x4_sse2 |
283 | 283 |
284 void vp9_fht8x8_c(const int16_t *input, tran_low_t *output, int stride, int tx_t
ype); | 284 void vp9_fht8x8_c(const int16_t *input, tran_low_t *output, int stride, int tx_t
ype); |
285 void vp9_fht8x8_sse2(const int16_t *input, tran_low_t *output, int stride, int t
x_type); | 285 void vp9_fht8x8_sse2(const int16_t *input, tran_low_t *output, int stride, int t
x_type); |
286 #define vp9_fht8x8 vp9_fht8x8_sse2 | 286 #define vp9_fht8x8 vp9_fht8x8_sse2 |
287 | 287 |
| 288 void vp9_filter_by_weight16x16_c(const uint8_t *src, int src_stride, uint8_t *ds
t, int dst_stride, int src_weight); |
| 289 void vp9_filter_by_weight16x16_sse2(const uint8_t *src, int src_stride, uint8_t
*dst, int dst_stride, int src_weight); |
| 290 #define vp9_filter_by_weight16x16 vp9_filter_by_weight16x16_sse2 |
| 291 |
| 292 void vp9_filter_by_weight8x8_c(const uint8_t *src, int src_stride, uint8_t *dst,
int dst_stride, int src_weight); |
| 293 void vp9_filter_by_weight8x8_sse2(const uint8_t *src, int src_stride, uint8_t *d
st, int dst_stride, int src_weight); |
| 294 #define vp9_filter_by_weight8x8 vp9_filter_by_weight8x8_sse2 |
| 295 |
288 int vp9_full_range_search_c(const struct macroblock *x, const struct search_site
_config *cfg, struct mv *ref_mv, struct mv *best_mv, int search_param, int sad_p
er_bit, int *num00, const struct vp9_variance_vtable *fn_ptr, const struct mv *c
enter_mv); | 296 int vp9_full_range_search_c(const struct macroblock *x, const struct search_site
_config *cfg, struct mv *ref_mv, struct mv *best_mv, int search_param, int sad_p
er_bit, int *num00, const struct vp9_variance_vtable *fn_ptr, const struct mv *c
enter_mv); |
289 #define vp9_full_range_search vp9_full_range_search_c | 297 #define vp9_full_range_search vp9_full_range_search_c |
290 | 298 |
291 int vp9_full_search_sad_c(const struct macroblock *x, const struct mv *ref_mv, i
nt sad_per_bit, int distance, const struct vp9_variance_vtable *fn_ptr, const st
ruct mv *center_mv, struct mv *best_mv); | 299 int vp9_full_search_sad_c(const struct macroblock *x, const struct mv *ref_mv, i
nt sad_per_bit, int distance, const struct vp9_variance_vtable *fn_ptr, const st
ruct mv *center_mv, struct mv *best_mv); |
292 int vp9_full_search_sadx3(const struct macroblock *x, const struct mv *ref_mv, i
nt sad_per_bit, int distance, const struct vp9_variance_vtable *fn_ptr, const st
ruct mv *center_mv, struct mv *best_mv); | 300 int vp9_full_search_sadx3(const struct macroblock *x, const struct mv *ref_mv, i
nt sad_per_bit, int distance, const struct vp9_variance_vtable *fn_ptr, const st
ruct mv *center_mv, struct mv *best_mv); |
293 int vp9_full_search_sadx8(const struct macroblock *x, const struct mv *ref_mv, i
nt sad_per_bit, int distance, const struct vp9_variance_vtable *fn_ptr, const st
ruct mv *center_mv, struct mv *best_mv); | 301 int vp9_full_search_sadx8(const struct macroblock *x, const struct mv *ref_mv, i
nt sad_per_bit, int distance, const struct vp9_variance_vtable *fn_ptr, const st
ruct mv *center_mv, struct mv *best_mv); |
294 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); | 302 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); |
295 | 303 |
296 void vp9_fwht4x4_c(const int16_t *input, tran_low_t *output, int stride); | 304 void vp9_fwht4x4_c(const int16_t *input, tran_low_t *output, int stride); |
297 void vp9_fwht4x4_mmx(const int16_t *input, tran_low_t *output, int stride); | 305 void vp9_fwht4x4_mmx(const int16_t *input, tran_low_t *output, int stride); |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 #define vp9_lpf_vertical_4_dual vp9_lpf_vertical_4_dual_sse2 | 446 #define vp9_lpf_vertical_4_dual vp9_lpf_vertical_4_dual_sse2 |
439 | 447 |
440 void vp9_lpf_vertical_8_c(uint8_t *s, int pitch, const uint8_t *blimit, const ui
nt8_t *limit, const uint8_t *thresh, int count); | 448 void vp9_lpf_vertical_8_c(uint8_t *s, int pitch, const uint8_t *blimit, const ui
nt8_t *limit, const uint8_t *thresh, int count); |
441 void vp9_lpf_vertical_8_sse2(uint8_t *s, int pitch, const uint8_t *blimit, const
uint8_t *limit, const uint8_t *thresh, int count); | 449 void vp9_lpf_vertical_8_sse2(uint8_t *s, int pitch, const uint8_t *blimit, const
uint8_t *limit, const uint8_t *thresh, int count); |
442 #define vp9_lpf_vertical_8 vp9_lpf_vertical_8_sse2 | 450 #define vp9_lpf_vertical_8 vp9_lpf_vertical_8_sse2 |
443 | 451 |
444 void vp9_lpf_vertical_8_dual_c(uint8_t *s, int pitch, const uint8_t *blimit0, co
nst uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const uint8
_t *limit1, const uint8_t *thresh1); | 452 void vp9_lpf_vertical_8_dual_c(uint8_t *s, int pitch, const uint8_t *blimit0, co
nst uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const uint8
_t *limit1, const uint8_t *thresh1); |
445 void vp9_lpf_vertical_8_dual_sse2(uint8_t *s, int pitch, const uint8_t *blimit0,
const uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const ui
nt8_t *limit1, const uint8_t *thresh1); | 453 void vp9_lpf_vertical_8_dual_sse2(uint8_t *s, int pitch, const uint8_t *blimit0,
const uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const ui
nt8_t *limit1, const uint8_t *thresh1); |
446 #define vp9_lpf_vertical_8_dual vp9_lpf_vertical_8_dual_sse2 | 454 #define vp9_lpf_vertical_8_dual vp9_lpf_vertical_8_dual_sse2 |
447 | 455 |
| 456 void vp9_mbpost_proc_across_ip_c(uint8_t *src, int pitch, int rows, int cols, in
t flimit); |
| 457 void vp9_mbpost_proc_across_ip_xmm(uint8_t *src, int pitch, int rows, int cols,
int flimit); |
| 458 #define vp9_mbpost_proc_across_ip vp9_mbpost_proc_across_ip_xmm |
| 459 |
| 460 void vp9_mbpost_proc_down_c(uint8_t *dst, int pitch, int rows, int cols, int fli
mit); |
| 461 void vp9_mbpost_proc_down_xmm(uint8_t *dst, int pitch, int rows, int cols, int f
limit); |
| 462 #define vp9_mbpost_proc_down vp9_mbpost_proc_down_xmm |
| 463 |
448 unsigned int vp9_mse16x16_c(const uint8_t *src_ptr, int source_stride, const ui
nt8_t *ref_ptr, int recon_stride, unsigned int *sse); | 464 unsigned int vp9_mse16x16_c(const uint8_t *src_ptr, int source_stride, const ui
nt8_t *ref_ptr, int recon_stride, unsigned int *sse); |
449 unsigned int vp9_mse16x16_sse2(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int recon_stride, unsigned int *sse); | 465 unsigned int vp9_mse16x16_sse2(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int recon_stride, unsigned int *sse); |
450 unsigned int vp9_mse16x16_avx2(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int recon_stride, unsigned int *sse); | 466 unsigned int vp9_mse16x16_avx2(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int recon_stride, unsigned int *sse); |
451 RTCD_EXTERN unsigned int (*vp9_mse16x16)(const uint8_t *src_ptr, int source_str
ide, const uint8_t *ref_ptr, int recon_stride, unsigned int *sse); | 467 RTCD_EXTERN unsigned int (*vp9_mse16x16)(const uint8_t *src_ptr, int source_str
ide, const uint8_t *ref_ptr, int recon_stride, unsigned int *sse); |
452 | 468 |
453 unsigned int vp9_mse16x8_c(const uint8_t *src_ptr, int source_stride, const uin
t8_t *ref_ptr, int recon_stride, unsigned int *sse); | 469 unsigned int vp9_mse16x8_c(const uint8_t *src_ptr, int source_stride, const uin
t8_t *ref_ptr, int recon_stride, unsigned int *sse); |
454 unsigned int vp9_mse16x8_sse2(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int recon_stride, unsigned int *sse); | 470 unsigned int vp9_mse16x8_sse2(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int recon_stride, unsigned int *sse); |
455 #define vp9_mse16x8 vp9_mse16x8_sse2 | 471 #define vp9_mse16x8 vp9_mse16x8_sse2 |
456 | 472 |
457 unsigned int vp9_mse8x16_c(const uint8_t *src_ptr, int source_stride, const uin
t8_t *ref_ptr, int recon_stride, unsigned int *sse); | 473 unsigned int vp9_mse8x16_c(const uint8_t *src_ptr, int source_stride, const uin
t8_t *ref_ptr, int recon_stride, unsigned int *sse); |
458 unsigned int vp9_mse8x16_sse2(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int recon_stride, unsigned int *sse); | 474 unsigned int vp9_mse8x16_sse2(const uint8_t *src_ptr, int source_stride, const
uint8_t *ref_ptr, int recon_stride, unsigned int *sse); |
459 #define vp9_mse8x16 vp9_mse8x16_sse2 | 475 #define vp9_mse8x16 vp9_mse8x16_sse2 |
460 | 476 |
461 unsigned int vp9_mse8x8_c(const uint8_t *src_ptr, int source_stride, const uint
8_t *ref_ptr, int recon_stride, unsigned int *sse); | 477 unsigned int vp9_mse8x8_c(const uint8_t *src_ptr, int source_stride, const uint
8_t *ref_ptr, int recon_stride, unsigned int *sse); |
462 unsigned int vp9_mse8x8_sse2(const uint8_t *src_ptr, int source_stride, const u
int8_t *ref_ptr, int recon_stride, unsigned int *sse); | 478 unsigned int vp9_mse8x8_sse2(const uint8_t *src_ptr, int source_stride, const u
int8_t *ref_ptr, int recon_stride, unsigned int *sse); |
463 #define vp9_mse8x8 vp9_mse8x8_sse2 | 479 #define vp9_mse8x8 vp9_mse8x8_sse2 |
464 | 480 |
| 481 void vp9_plane_add_noise_c(uint8_t *Start, char *noise, char blackclamp[16], cha
r whiteclamp[16], char bothclamp[16], unsigned int Width, unsigned int Height, i
nt Pitch); |
| 482 void vp9_plane_add_noise_wmt(uint8_t *Start, char *noise, char blackclamp[16], c
har whiteclamp[16], char bothclamp[16], unsigned int Width, unsigned int Height,
int Pitch); |
| 483 #define vp9_plane_add_noise vp9_plane_add_noise_wmt |
| 484 |
| 485 void vp9_post_proc_down_and_across_c(const uint8_t *src_ptr, uint8_t *dst_ptr, i
nt src_pixels_per_line, int dst_pixels_per_line, int rows, int cols, int flimit)
; |
| 486 void vp9_post_proc_down_and_across_xmm(const uint8_t *src_ptr, uint8_t *dst_ptr,
int src_pixels_per_line, int dst_pixels_per_line, int rows, int cols, int flimi
t); |
| 487 #define vp9_post_proc_down_and_across vp9_post_proc_down_and_across_xmm |
| 488 |
465 void vp9_quantize_b_c(const tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_b
lock, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_pt
r, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_p
tr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const in
t16_t *iscan); | 489 void vp9_quantize_b_c(const tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_b
lock, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_pt
r, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_p
tr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const in
t16_t *iscan); |
466 void vp9_quantize_b_sse2(const tran_low_t *coeff_ptr, intptr_t n_coeffs, int ski
p_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 *dqcoef
f_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const
int16_t *iscan); | 490 void vp9_quantize_b_sse2(const tran_low_t *coeff_ptr, intptr_t n_coeffs, int ski
p_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 *dqcoef
f_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const
int16_t *iscan); |
467 void vp9_quantize_b_ssse3(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); | 491 void vp9_quantize_b_ssse3(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); |
468 RTCD_EXTERN void (*vp9_quantize_b)(const tran_low_t *coeff_ptr, intptr_t n_coeff
s, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int1
6_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 *s
can, const int16_t *iscan); | 492 RTCD_EXTERN void (*vp9_quantize_b)(const tran_low_t *coeff_ptr, intptr_t n_coeff
s, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int1
6_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 *s
can, const int16_t *iscan); |
469 | 493 |
470 void vp9_quantize_b_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 *qu
ant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqc
oeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, co
nst int16_t *iscan); | 494 void vp9_quantize_b_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 *qu
ant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqc
oeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, co
nst int16_t *iscan); |
471 void vp9_quantize_b_32x32_ssse3(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_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); | 495 void vp9_quantize_b_32x32_ssse3(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_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); |
472 RTCD_EXTERN void (*vp9_quantize_b_32x32)(const tran_low_t *coeff_ptr, intptr_t n
_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, cons
t int16_t *quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tr
an_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int1
6_t *scan, const int16_t *iscan); | 496 RTCD_EXTERN void (*vp9_quantize_b_32x32)(const tran_low_t *coeff_ptr, intptr_t n
_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, cons
t int16_t *quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tr
an_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int1
6_t *scan, const int16_t *iscan); |
473 | 497 |
474 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); | 498 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); |
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1139 vp9_variance64x64 = vp9_variance64x64_sse2; | 1163 vp9_variance64x64 = vp9_variance64x64_sse2; |
1140 if (flags & HAS_AVX2) vp9_variance64x64 = vp9_variance64x64_avx2; | 1164 if (flags & HAS_AVX2) vp9_variance64x64 = vp9_variance64x64_avx2; |
1141 } | 1165 } |
1142 #endif | 1166 #endif |
1143 | 1167 |
1144 #ifdef __cplusplus | 1168 #ifdef __cplusplus |
1145 } // extern "C" | 1169 } // extern "C" |
1146 #endif | 1170 #endif |
1147 | 1171 |
1148 #endif | 1172 #endif |
OLD | NEW |