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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 112 |
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); | 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); |
114 #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 |
115 | 115 |
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); | 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); |
117 #define vp9_highbd_quantize_fp vp9_highbd_quantize_fp_c | 117 #define vp9_highbd_quantize_fp vp9_highbd_quantize_fp_c |
118 | 118 |
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); | 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); |
120 #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 |
121 | 121 |
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); | 122 void vp9_highbd_temporal_filter_apply_c(const uint8_t *frame1, unsigned int stri
de, const uint8_t *frame2, unsigned int block_width, unsigned int block_height,
int strength, int filter_weight, unsigned int *accumulator, uint16_t *count); |
123 #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 |
124 | 124 |
125 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); |
126 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); |
127 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); |
128 | 128 |
129 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); |
130 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); |
131 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); |
132 | 132 |
133 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); |
134 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); |
135 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); |
136 | 136 |
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); | 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); |
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); | 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); |
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); | 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); |
140 | 140 |
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); | 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); |
142 #define vp9_quantize_fp_32x32 vp9_quantize_fp_32x32_c | 142 #define vp9_quantize_fp_32x32 vp9_quantize_fp_32x32_c |
143 | 143 |
144 void vp9_scale_and_extend_frame_c(const struct yv12_buffer_config *src, struct y
v12_buffer_config *dst); | 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); | 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); | 146 RTCD_EXTERN void (*vp9_scale_and_extend_frame)(const struct yv12_buffer_config *
src, struct yv12_buffer_config *dst); |
147 | 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(const uint8_t *frame1, unsigned int stride, con
st uint8_t *frame2, unsigned int block_width, unsigned int block_height, int str
ength, int 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); | 149 void vp9_temporal_filter_apply_sse2(const uint8_t *frame1, unsigned int stride,
const uint8_t *frame2, unsigned int block_width, unsigned int block_height, int
strength, 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); | 150 RTCD_EXTERN void (*vp9_temporal_filter_apply)(const uint8_t *frame1, unsigned in
t stride, const uint8_t *frame2, unsigned int block_width, unsigned int block_he
ight, int strength, int filter_weight, unsigned int *accumulator, uint16_t *coun
t); |
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; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |