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 12 matching lines...) Expand all Loading... |
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 #define vp9_block_error vp9_block_error_c |
34 int64_t vp9_block_error_avx2(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); | |
36 | |
37 int64_t vp9_block_error_fp_c(const int16_t *coeff, const int16_t *dqcoeff, int b
lock_size); | |
38 int64_t vp9_block_error_fp_sse2(const int16_t *coeff, const int16_t *dqcoeff, in
t block_size); | |
39 RTCD_EXTERN int64_t (*vp9_block_error_fp)(const int16_t *coeff, const int16_t *d
qcoeff, int block_size); | |
40 | 34 |
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); | 35 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); |
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); | 36 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); |
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); | 37 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); |
44 | 38 |
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); | 39 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); |
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); | 40 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); |
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); | 41 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); |
48 | 42 |
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 *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); | 43 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); |
50 void vp9_fdct8x8_quant_sse2(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); | 44 #define vp9_fdct8x8_quant vp9_fdct8x8_quant_c |
51 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); | |
52 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); | |
53 | 45 |
54 void vp9_fht16x16_c(const int16_t *input, tran_low_t *output, int stride, int tx
_type); | 46 void vp9_fht16x16_c(const int16_t *input, tran_low_t *output, int stride, int tx
_type); |
55 void vp9_fht16x16_sse2(const int16_t *input, tran_low_t *output, int stride, int
tx_type); | 47 void vp9_fht16x16_sse2(const int16_t *input, tran_low_t *output, int stride, int
tx_type); |
56 RTCD_EXTERN void (*vp9_fht16x16)(const int16_t *input, tran_low_t *output, int s
tride, int tx_type); | 48 RTCD_EXTERN void (*vp9_fht16x16)(const int16_t *input, tran_low_t *output, int s
tride, int tx_type); |
57 | 49 |
58 void vp9_fht4x4_c(const int16_t *input, tran_low_t *output, int stride, int tx_t
ype); | 50 void vp9_fht4x4_c(const int16_t *input, tran_low_t *output, int stride, int tx_t
ype); |
59 void vp9_fht4x4_sse2(const int16_t *input, tran_low_t *output, int stride, int t
x_type); | 51 void vp9_fht4x4_sse2(const int16_t *input, tran_low_t *output, int stride, int t
x_type); |
60 RTCD_EXTERN void (*vp9_fht4x4)(const int16_t *input, tran_low_t *output, int str
ide, int tx_type); | 52 RTCD_EXTERN void (*vp9_fht4x4)(const int16_t *input, tran_low_t *output, int str
ide, int tx_type); |
61 | 53 |
62 void vp9_fht8x8_c(const int16_t *input, tran_low_t *output, int stride, int tx_t
ype); | 54 void vp9_fht8x8_c(const int16_t *input, tran_low_t *output, int stride, int tx_t
ype); |
(...skipping 10 matching lines...) Expand all Loading... |
73 | 65 |
74 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); | 66 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); |
75 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); | 67 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); |
76 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); | 68 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); |
77 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); | 69 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); |
78 | 70 |
79 void vp9_fwht4x4_c(const int16_t *input, tran_low_t *output, int stride); | 71 void vp9_fwht4x4_c(const int16_t *input, tran_low_t *output, int stride); |
80 void vp9_fwht4x4_sse2(const int16_t *input, tran_low_t *output, int stride); | 72 void vp9_fwht4x4_sse2(const int16_t *input, tran_low_t *output, int stride); |
81 RTCD_EXTERN void (*vp9_fwht4x4)(const int16_t *input, tran_low_t *output, int st
ride); | 73 RTCD_EXTERN void (*vp9_fwht4x4)(const int16_t *input, tran_low_t *output, int st
ride); |
82 | 74 |
| 75 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); |
| 76 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); |
| 77 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); |
| 78 |
| 79 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); |
| 80 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); |
| 81 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); |
| 82 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); |
| 83 |
| 84 void vp9_highbd_convolve8_c(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, int bps); |
| 85 #define vp9_highbd_convolve8 vp9_highbd_convolve8_c |
| 86 |
| 87 void vp9_highbd_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 int1
6_t *filter_y, int y_step_q4, int w, int h, int bps); |
| 88 #define vp9_highbd_convolve8_avg vp9_highbd_convolve8_avg_c |
| 89 |
| 90 void vp9_highbd_convolve8_avg_horiz_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, cons
t int16_t *filter_y, int y_step_q4, int w, int h, int bps); |
| 91 #define vp9_highbd_convolve8_avg_horiz vp9_highbd_convolve8_avg_horiz_c |
| 92 |
| 93 void vp9_highbd_convolve8_avg_vert_c(const uint8_t *src, ptrdiff_t src_stride, u
int8_t *dst, 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, int bps); |
| 94 #define vp9_highbd_convolve8_avg_vert vp9_highbd_convolve8_avg_vert_c |
| 95 |
| 96 void vp9_highbd_convolve8_horiz_c(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, int bps); |
| 97 #define vp9_highbd_convolve8_horiz vp9_highbd_convolve8_horiz_c |
| 98 |
| 99 void vp9_highbd_convolve8_vert_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 int
16_t *filter_y, int y_step_q4, int w, int h, int bps); |
| 100 #define vp9_highbd_convolve8_vert vp9_highbd_convolve8_vert_c |
| 101 |
| 102 void vp9_highbd_convolve_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 *filter_y, int y_step_q4, int w, int h, int bps); |
| 103 #define vp9_highbd_convolve_avg vp9_highbd_convolve_avg_c |
| 104 |
| 105 void vp9_highbd_convolve_copy_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 int1
6_t *filter_y, int y_step_q4, int w, int h, int bps); |
| 106 #define vp9_highbd_convolve_copy vp9_highbd_convolve_copy_c |
| 107 |
| 108 void vp9_highbd_fht16x16_c(const int16_t *input, tran_low_t *output, int stride,
int tx_type); |
| 109 #define vp9_highbd_fht16x16 vp9_highbd_fht16x16_c |
| 110 |
| 111 void vp9_highbd_fht4x4_c(const int16_t *input, tran_low_t *output, int stride, i
nt tx_type); |
| 112 #define vp9_highbd_fht4x4 vp9_highbd_fht4x4_c |
| 113 |
| 114 void vp9_highbd_fht8x8_c(const int16_t *input, tran_low_t *output, int stride, i
nt tx_type); |
| 115 #define vp9_highbd_fht8x8 vp9_highbd_fht8x8_c |
| 116 |
| 117 void vp9_highbd_fwht4x4_c(const int16_t *input, tran_low_t *output, int stride); |
| 118 #define vp9_highbd_fwht4x4 vp9_highbd_fwht4x4_c |
| 119 |
| 120 void vp9_highbd_iht16x16_256_add_c(const tran_low_t *input, uint8_t *output, int
pitch, int tx_type, int bd); |
| 121 #define vp9_highbd_iht16x16_256_add vp9_highbd_iht16x16_256_add_c |
| 122 |
| 123 void vp9_highbd_iht4x4_16_add_c(const tran_low_t *input, uint8_t *dest, int dest
_stride, int tx_type, int bd); |
| 124 #define vp9_highbd_iht4x4_16_add vp9_highbd_iht4x4_16_add_c |
| 125 |
| 126 void vp9_highbd_iht8x8_64_add_c(const tran_low_t *input, uint8_t *dest, int dest
_stride, int tx_type, int bd); |
| 127 #define vp9_highbd_iht8x8_64_add vp9_highbd_iht8x8_64_add_c |
| 128 |
| 129 void vp9_highbd_mbpost_proc_across_ip_c(uint16_t *src, int pitch, int rows, int
cols, int flimit); |
| 130 #define vp9_highbd_mbpost_proc_across_ip vp9_highbd_mbpost_proc_across_ip_c |
| 131 |
| 132 void vp9_highbd_mbpost_proc_down_c(uint16_t *dst, int pitch, int rows, int cols,
int flimit); |
| 133 #define vp9_highbd_mbpost_proc_down vp9_highbd_mbpost_proc_down_c |
| 134 |
| 135 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); |
| 136 #define vp9_highbd_post_proc_down_and_across vp9_highbd_post_proc_down_and_acros
s_c |
| 137 |
| 138 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); |
| 139 #define vp9_highbd_quantize_fp vp9_highbd_quantize_fp_c |
| 140 |
| 141 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); |
| 142 #define vp9_highbd_quantize_fp_32x32 vp9_highbd_quantize_fp_32x32_c |
| 143 |
| 144 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); |
| 145 #define vp9_highbd_temporal_filter_apply vp9_highbd_temporal_filter_apply_c |
| 146 |
83 void vp9_iht16x16_256_add_c(const tran_low_t *input, uint8_t *output, int pitch,
int tx_type); | 147 void vp9_iht16x16_256_add_c(const tran_low_t *input, uint8_t *output, int pitch,
int tx_type); |
84 void vp9_iht16x16_256_add_sse2(const tran_low_t *input, uint8_t *output, int pit
ch, int tx_type); | 148 void vp9_iht16x16_256_add_sse2(const tran_low_t *input, uint8_t *output, int pit
ch, int tx_type); |
85 RTCD_EXTERN void (*vp9_iht16x16_256_add)(const tran_low_t *input, uint8_t *outpu
t, int pitch, int tx_type); | 149 RTCD_EXTERN void (*vp9_iht16x16_256_add)(const tran_low_t *input, uint8_t *outpu
t, int pitch, int tx_type); |
86 | 150 |
87 void vp9_iht4x4_16_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride
, int tx_type); | 151 void vp9_iht4x4_16_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride
, int tx_type); |
88 void vp9_iht4x4_16_add_sse2(const tran_low_t *input, uint8_t *dest, int dest_str
ide, int tx_type); | 152 void vp9_iht4x4_16_add_sse2(const tran_low_t *input, uint8_t *dest, int dest_str
ide, int tx_type); |
89 RTCD_EXTERN void (*vp9_iht4x4_16_add)(const tran_low_t *input, uint8_t *dest, in
t dest_stride, int tx_type); | 153 RTCD_EXTERN void (*vp9_iht4x4_16_add)(const tran_low_t *input, uint8_t *dest, in
t dest_stride, int tx_type); |
90 | 154 |
91 void vp9_iht8x8_64_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride
, int tx_type); | 155 void vp9_iht8x8_64_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride
, int tx_type); |
92 void vp9_iht8x8_64_add_sse2(const tran_low_t *input, uint8_t *dest, int dest_str
ide, int tx_type); | 156 void vp9_iht8x8_64_add_sse2(const tran_low_t *input, uint8_t *dest, int dest_str
ide, int tx_type); |
93 RTCD_EXTERN void (*vp9_iht8x8_64_add)(const tran_low_t *input, uint8_t *dest, in
t dest_stride, int tx_type); | 157 RTCD_EXTERN void (*vp9_iht8x8_64_add)(const tran_low_t *input, uint8_t *dest, in
t dest_stride, int tx_type); |
94 | 158 |
95 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); | 159 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); |
96 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); | 160 #define vp9_quantize_fp vp9_quantize_fp_c |
97 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); | |
98 | 161 |
99 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); | 162 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); |
100 #define vp9_quantize_fp_32x32 vp9_quantize_fp_32x32_c | 163 #define vp9_quantize_fp_32x32 vp9_quantize_fp_32x32_c |
101 | 164 |
102 void vp9_scale_and_extend_frame_c(const struct yv12_buffer_config *src, struct y
v12_buffer_config *dst); | |
103 void vp9_scale_and_extend_frame_ssse3(const struct yv12_buffer_config *src, stru
ct yv12_buffer_config *dst); | |
104 RTCD_EXTERN void (*vp9_scale_and_extend_frame)(const struct yv12_buffer_config *
src, struct yv12_buffer_config *dst); | |
105 | |
106 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); | 165 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); |
107 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); | 166 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); |
108 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); | 167 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); |
109 | 168 |
110 void vp9_rtcd(void); | 169 void vp9_rtcd(void); |
111 | 170 |
112 #ifdef RTCD_C | 171 #ifdef RTCD_C |
113 #include "vpx_ports/x86.h" | 172 #include "vpx_ports/x86.h" |
114 static void setup_rtcd_internal(void) | 173 static void setup_rtcd_internal(void) |
115 { | 174 { |
116 int flags = x86_simd_caps(); | 175 int flags = x86_simd_caps(); |
117 | 176 |
118 (void)flags; | 177 (void)flags; |
119 | 178 |
120 vp9_block_error = vp9_block_error_c; | |
121 if (flags & HAS_SSE2) vp9_block_error = vp9_block_error_sse2; | |
122 if (flags & HAS_AVX2) vp9_block_error = vp9_block_error_avx2; | |
123 vp9_block_error_fp = vp9_block_error_fp_c; | |
124 if (flags & HAS_SSE2) vp9_block_error_fp = vp9_block_error_fp_sse2; | |
125 vp9_denoiser_filter = vp9_denoiser_filter_c; | 179 vp9_denoiser_filter = vp9_denoiser_filter_c; |
126 if (flags & HAS_SSE2) vp9_denoiser_filter = vp9_denoiser_filter_sse2; | 180 if (flags & HAS_SSE2) vp9_denoiser_filter = vp9_denoiser_filter_sse2; |
127 vp9_diamond_search_sad = vp9_diamond_search_sad_c; | 181 vp9_diamond_search_sad = vp9_diamond_search_sad_c; |
128 if (flags & HAS_AVX) vp9_diamond_search_sad = vp9_diamond_search_sad_avx; | 182 if (flags & HAS_AVX) vp9_diamond_search_sad = vp9_diamond_search_sad_avx; |
129 vp9_fdct8x8_quant = vp9_fdct8x8_quant_c; | |
130 if (flags & HAS_SSE2) vp9_fdct8x8_quant = vp9_fdct8x8_quant_sse2; | |
131 if (flags & HAS_SSSE3) vp9_fdct8x8_quant = vp9_fdct8x8_quant_ssse3; | |
132 vp9_fht16x16 = vp9_fht16x16_c; | 183 vp9_fht16x16 = vp9_fht16x16_c; |
133 if (flags & HAS_SSE2) vp9_fht16x16 = vp9_fht16x16_sse2; | 184 if (flags & HAS_SSE2) vp9_fht16x16 = vp9_fht16x16_sse2; |
134 vp9_fht4x4 = vp9_fht4x4_c; | 185 vp9_fht4x4 = vp9_fht4x4_c; |
135 if (flags & HAS_SSE2) vp9_fht4x4 = vp9_fht4x4_sse2; | 186 if (flags & HAS_SSE2) vp9_fht4x4 = vp9_fht4x4_sse2; |
136 vp9_fht8x8 = vp9_fht8x8_c; | 187 vp9_fht8x8 = vp9_fht8x8_c; |
137 if (flags & HAS_SSE2) vp9_fht8x8 = vp9_fht8x8_sse2; | 188 if (flags & HAS_SSE2) vp9_fht8x8 = vp9_fht8x8_sse2; |
138 vp9_filter_by_weight16x16 = vp9_filter_by_weight16x16_c; | 189 vp9_filter_by_weight16x16 = vp9_filter_by_weight16x16_c; |
139 if (flags & HAS_SSE2) vp9_filter_by_weight16x16 = vp9_filter_by_weight16x16_
sse2; | 190 if (flags & HAS_SSE2) vp9_filter_by_weight16x16 = vp9_filter_by_weight16x16_
sse2; |
140 vp9_filter_by_weight8x8 = vp9_filter_by_weight8x8_c; | 191 vp9_filter_by_weight8x8 = vp9_filter_by_weight8x8_c; |
141 if (flags & HAS_SSE2) vp9_filter_by_weight8x8 = vp9_filter_by_weight8x8_sse2
; | 192 if (flags & HAS_SSE2) vp9_filter_by_weight8x8 = vp9_filter_by_weight8x8_sse2
; |
142 vp9_full_search_sad = vp9_full_search_sad_c; | 193 vp9_full_search_sad = vp9_full_search_sad_c; |
143 if (flags & HAS_SSE3) vp9_full_search_sad = vp9_full_search_sadx3; | 194 if (flags & HAS_SSE3) vp9_full_search_sad = vp9_full_search_sadx3; |
144 if (flags & HAS_SSE4_1) vp9_full_search_sad = vp9_full_search_sadx8; | 195 if (flags & HAS_SSE4_1) vp9_full_search_sad = vp9_full_search_sadx8; |
145 vp9_fwht4x4 = vp9_fwht4x4_c; | 196 vp9_fwht4x4 = vp9_fwht4x4_c; |
146 if (flags & HAS_SSE2) vp9_fwht4x4 = vp9_fwht4x4_sse2; | 197 if (flags & HAS_SSE2) vp9_fwht4x4 = vp9_fwht4x4_sse2; |
| 198 vp9_highbd_block_error = vp9_highbd_block_error_c; |
| 199 if (flags & HAS_SSE2) vp9_highbd_block_error = vp9_highbd_block_error_sse2; |
| 200 vp9_highbd_block_error_8bit = vp9_highbd_block_error_8bit_c; |
| 201 if (flags & HAS_SSE2) vp9_highbd_block_error_8bit = vp9_highbd_block_error_8
bit_sse2; |
| 202 if (flags & HAS_AVX) vp9_highbd_block_error_8bit = vp9_highbd_block_error_8b
it_avx; |
147 vp9_iht16x16_256_add = vp9_iht16x16_256_add_c; | 203 vp9_iht16x16_256_add = vp9_iht16x16_256_add_c; |
148 if (flags & HAS_SSE2) vp9_iht16x16_256_add = vp9_iht16x16_256_add_sse2; | 204 if (flags & HAS_SSE2) vp9_iht16x16_256_add = vp9_iht16x16_256_add_sse2; |
149 vp9_iht4x4_16_add = vp9_iht4x4_16_add_c; | 205 vp9_iht4x4_16_add = vp9_iht4x4_16_add_c; |
150 if (flags & HAS_SSE2) vp9_iht4x4_16_add = vp9_iht4x4_16_add_sse2; | 206 if (flags & HAS_SSE2) vp9_iht4x4_16_add = vp9_iht4x4_16_add_sse2; |
151 vp9_iht8x8_64_add = vp9_iht8x8_64_add_c; | 207 vp9_iht8x8_64_add = vp9_iht8x8_64_add_c; |
152 if (flags & HAS_SSE2) vp9_iht8x8_64_add = vp9_iht8x8_64_add_sse2; | 208 if (flags & HAS_SSE2) vp9_iht8x8_64_add = vp9_iht8x8_64_add_sse2; |
153 vp9_quantize_fp = vp9_quantize_fp_c; | |
154 if (flags & HAS_SSE2) vp9_quantize_fp = vp9_quantize_fp_sse2; | |
155 vp9_scale_and_extend_frame = vp9_scale_and_extend_frame_c; | |
156 if (flags & HAS_SSSE3) vp9_scale_and_extend_frame = vp9_scale_and_extend_fra
me_ssse3; | |
157 vp9_temporal_filter_apply = vp9_temporal_filter_apply_c; | 209 vp9_temporal_filter_apply = vp9_temporal_filter_apply_c; |
158 if (flags & HAS_SSE2) vp9_temporal_filter_apply = vp9_temporal_filter_apply_
sse2; | 210 if (flags & HAS_SSE2) vp9_temporal_filter_apply = vp9_temporal_filter_apply_
sse2; |
159 } | 211 } |
160 #endif | 212 #endif |
161 | 213 |
162 #ifdef __cplusplus | 214 #ifdef __cplusplus |
163 } // extern "C" | 215 } // extern "C" |
164 #endif | 216 #endif |
165 | 217 |
166 #endif | 218 #endif |
OLD | NEW |