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 #define vp9_iht16x16_256_add vp9_iht16x16_256_add_sse2 | 127 #define vp9_iht16x16_256_add vp9_iht16x16_256_add_sse2 |
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 #define vp9_iht4x4_16_add vp9_iht4x4_16_add_sse2 | 131 #define vp9_iht4x4_16_add vp9_iht4x4_16_add_sse2 |
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 #define vp9_iht8x8_64_add vp9_iht8x8_64_add_sse2 | 135 #define vp9_iht8x8_64_add vp9_iht8x8_64_add_sse2 |
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 void vp9_quantize_fp_ssse3(const tran_low_t *coeff_ptr, intptr_t n_coeffs, int s
kip_block, const int16_t *round_ptr, const int16_t *quant_ptr, tran_low_t *qcoef
f_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, c
onst int16_t *scan, const int16_t *iscan); | 139 void vp9_quantize_fp_ssse3(const tran_low_t *coeff_ptr, intptr_t n_coeffs, int s
kip_block, const int16_t *round_ptr, const int16_t *quant_ptr, tran_low_t *qcoef
f_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, c
onst int16_t *scan, const int16_t *iscan); |
140 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 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); |
141 | 141 |
142 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 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); |
143 void vp9_quantize_fp_32x32_ssse3(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_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_
ptr, const int16_t *scan, const int16_t *iscan); | 143 void vp9_quantize_fp_32x32_ssse3(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_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_
ptr, const int16_t *scan, const int16_t *iscan); |
144 RTCD_EXTERN void (*vp9_quantize_fp_32x32)(const tran_low_t *coeff_ptr, intptr_t
n_coeffs, int skip_block, const int16_t *round_ptr, const int16_t *quant_ptr, tr
an_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint1
6_t *eob_ptr, const int16_t *scan, const int16_t *iscan); | 144 RTCD_EXTERN void (*vp9_quantize_fp_32x32)(const tran_low_t *coeff_ptr, intptr_t
n_coeffs, int skip_block, const int16_t *round_ptr, const int16_t *quant_ptr, tr
an_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint1
6_t *eob_ptr, const int16_t *scan, const int16_t *iscan); |
145 | 145 |
146 void vp9_scale_and_extend_frame_c(const struct yv12_buffer_config *src, struct y
v12_buffer_config *dst); | 146 void vp9_scale_and_extend_frame_c(const struct yv12_buffer_config *src, struct y
v12_buffer_config *dst); |
147 void vp9_scale_and_extend_frame_ssse3(const struct yv12_buffer_config *src, stru
ct yv12_buffer_config *dst); | 147 void vp9_scale_and_extend_frame_ssse3(const struct yv12_buffer_config *src, stru
ct yv12_buffer_config *dst); |
148 RTCD_EXTERN void (*vp9_scale_and_extend_frame)(const struct yv12_buffer_config *
src, struct yv12_buffer_config *dst); | 148 RTCD_EXTERN void (*vp9_scale_and_extend_frame)(const struct yv12_buffer_config *
src, struct yv12_buffer_config *dst); |
149 | 149 |
150 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); | 150 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); |
151 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); | 151 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); |
152 #define vp9_temporal_filter_apply vp9_temporal_filter_apply_sse2 | 152 #define vp9_temporal_filter_apply vp9_temporal_filter_apply_sse2 |
153 | 153 |
154 void vp9_rtcd(void); | 154 void vp9_rtcd(void); |
155 | 155 |
156 #ifdef RTCD_C | 156 #ifdef RTCD_C |
157 #include "vpx_ports/x86.h" | 157 #include "vpx_ports/x86.h" |
158 static void setup_rtcd_internal(void) | 158 static void setup_rtcd_internal(void) |
159 { | 159 { |
160 int flags = x86_simd_caps(); | 160 int flags = x86_simd_caps(); |
161 | 161 |
(...skipping 15 matching lines...) Expand all Loading... |
177 vp9_scale_and_extend_frame = vp9_scale_and_extend_frame_c; | 177 vp9_scale_and_extend_frame = vp9_scale_and_extend_frame_c; |
178 if (flags & HAS_SSSE3) vp9_scale_and_extend_frame = vp9_scale_and_extend_fra
me_ssse3; | 178 if (flags & HAS_SSSE3) vp9_scale_and_extend_frame = vp9_scale_and_extend_fra
me_ssse3; |
179 } | 179 } |
180 #endif | 180 #endif |
181 | 181 |
182 #ifdef __cplusplus | 182 #ifdef __cplusplus |
183 } // extern "C" | 183 } // extern "C" |
184 #endif | 184 #endif |
185 | 185 |
186 #endif | 186 #endif |
OLD | NEW |