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 /* |
11 * VP9 | 11 * VP9 |
12 */ | 12 */ |
13 | 13 |
14 #include "vpx/vpx_integer.h" | 14 #include "vpx/vpx_integer.h" |
15 #include "vp9/common/vp9_common.h" | 15 #include "vp9/common/vp9_common.h" |
16 #include "vp9/common/vp9_enums.h" | 16 #include "vp9/common/vp9_enums.h" |
| 17 #include "vp9/common/vp9_filter.h" |
17 | 18 |
18 struct macroblockd; | 19 struct macroblockd; |
19 | 20 |
20 /* Encoder forward decls */ | 21 /* Encoder forward decls */ |
21 struct macroblock; | 22 struct macroblock; |
22 struct vp9_variance_vtable; | 23 struct vp9_variance_vtable; |
23 struct search_site_config; | 24 struct search_site_config; |
24 struct mv; | 25 struct mv; |
25 union int_mv; | 26 union int_mv; |
26 struct yv12_buffer_config; | 27 struct yv12_buffer_config; |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 | 137 |
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_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); | 139 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); | 140 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); | 141 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 | 142 |
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_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); | 144 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); | 145 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 | 146 |
146 void vp9_scale_and_extend_frame_c(const struct yv12_buffer_config *src, struct y
v12_buffer_config *dst, uint8_t filter_type, int phase_scaler); | 147 void vp9_scale_and_extend_frame_c(const struct yv12_buffer_config *src, struct y
v12_buffer_config *dst, INTERP_FILTER filter_type, int phase_scaler); |
147 void vp9_scale_and_extend_frame_ssse3(const struct yv12_buffer_config *src, stru
ct yv12_buffer_config *dst, uint8_t filter_type, int phase_scaler); | 148 void vp9_scale_and_extend_frame_ssse3(const struct yv12_buffer_config *src, stru
ct yv12_buffer_config *dst, INTERP_FILTER filter_type, int phase_scaler); |
148 RTCD_EXTERN void (*vp9_scale_and_extend_frame)(const struct yv12_buffer_config *
src, struct yv12_buffer_config *dst, uint8_t filter_type, int phase_scaler); | 149 RTCD_EXTERN void (*vp9_scale_and_extend_frame)(const struct yv12_buffer_config *
src, struct yv12_buffer_config *dst, INTERP_FILTER filter_type, int phase_scaler
); |
149 | 150 |
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, uint32_t *accumulator, uint16_t *count); | 151 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, uint32_t *accumulator, uint16_t *count); |
151 void vp9_temporal_filter_apply_sse4_1(const uint8_t *frame1, unsigned int stride
, const uint8_t *frame2, unsigned int block_width, unsigned int block_height, in
t strength, int filter_weight, uint32_t *accumulator, uint16_t *count); | 152 void vp9_temporal_filter_apply_sse4_1(const uint8_t *frame1, unsigned int stride
, const uint8_t *frame2, unsigned int block_width, unsigned int block_height, in
t strength, int filter_weight, uint32_t *accumulator, uint16_t *count); |
152 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, uint32_t *accumulator, uint16_t *count); | 153 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, uint32_t *accumulator, uint16_t *count); |
153 | 154 |
154 void vp9_rtcd(void); | 155 void vp9_rtcd(void); |
155 | 156 |
156 #ifdef RTCD_C | 157 #ifdef RTCD_C |
157 #include "vpx_ports/x86.h" | 158 #include "vpx_ports/x86.h" |
158 static void setup_rtcd_internal(void) | 159 static void setup_rtcd_internal(void) |
(...skipping 20 matching lines...) Expand all Loading... |
179 vp9_temporal_filter_apply = vp9_temporal_filter_apply_c; | 180 vp9_temporal_filter_apply = vp9_temporal_filter_apply_c; |
180 if (flags & HAS_SSE4_1) vp9_temporal_filter_apply = vp9_temporal_filter_appl
y_sse4_1; | 181 if (flags & HAS_SSE4_1) vp9_temporal_filter_apply = vp9_temporal_filter_appl
y_sse4_1; |
181 } | 182 } |
182 #endif | 183 #endif |
183 | 184 |
184 #ifdef __cplusplus | 185 #ifdef __cplusplus |
185 } // extern "C" | 186 } // extern "C" |
186 #endif | 187 #endif |
187 | 188 |
188 #endif | 189 #endif |
OLD | NEW |