1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/libvpx/vp8_rtcd_generic-gnu.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,304 @@ 1.4 +#ifndef VP8_RTCD_H_ 1.5 +#define VP8_RTCD_H_ 1.6 + 1.7 +#ifdef RTCD_C 1.8 +#define RTCD_EXTERN 1.9 +#else 1.10 +#define RTCD_EXTERN extern 1.11 +#endif 1.12 + 1.13 +/* 1.14 + * VP8 1.15 + */ 1.16 + 1.17 +struct blockd; 1.18 +struct macroblockd; 1.19 +struct loop_filter_info; 1.20 + 1.21 +/* Encoder forward decls */ 1.22 +struct block; 1.23 +struct macroblock; 1.24 +struct variance_vtable; 1.25 +union int_mv; 1.26 +struct yv12_buffer_config; 1.27 + 1.28 +void vp8_clear_system_state_c(); 1.29 +#define vp8_clear_system_state vp8_clear_system_state_c 1.30 + 1.31 +void vp8_dequantize_b_c(struct blockd*, short *dqc); 1.32 +#define vp8_dequantize_b vp8_dequantize_b_c 1.33 + 1.34 +void vp8_dequant_idct_add_c(short *input, short *dq, unsigned char *output, int stride); 1.35 +#define vp8_dequant_idct_add vp8_dequant_idct_add_c 1.36 + 1.37 +void vp8_dequant_idct_add_y_block_c(short *q, short *dq, unsigned char *dst, int stride, char *eobs); 1.38 +#define vp8_dequant_idct_add_y_block vp8_dequant_idct_add_y_block_c 1.39 + 1.40 +void vp8_dequant_idct_add_uv_block_c(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs); 1.41 +#define vp8_dequant_idct_add_uv_block vp8_dequant_idct_add_uv_block_c 1.42 + 1.43 +void vp8_loop_filter_mbv_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi); 1.44 +#define vp8_loop_filter_mbv vp8_loop_filter_mbv_c 1.45 + 1.46 +void vp8_loop_filter_bv_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi); 1.47 +#define vp8_loop_filter_bv vp8_loop_filter_bv_c 1.48 + 1.49 +void vp8_loop_filter_mbh_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi); 1.50 +#define vp8_loop_filter_mbh vp8_loop_filter_mbh_c 1.51 + 1.52 +void vp8_loop_filter_bh_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi); 1.53 +#define vp8_loop_filter_bh vp8_loop_filter_bh_c 1.54 + 1.55 +void vp8_loop_filter_simple_vertical_edge_c(unsigned char *y, int ystride, const unsigned char *blimit); 1.56 +#define vp8_loop_filter_simple_mbv vp8_loop_filter_simple_vertical_edge_c 1.57 + 1.58 +void vp8_loop_filter_simple_horizontal_edge_c(unsigned char *y, int ystride, const unsigned char *blimit); 1.59 +#define vp8_loop_filter_simple_mbh vp8_loop_filter_simple_horizontal_edge_c 1.60 + 1.61 +void vp8_loop_filter_bvs_c(unsigned char *y, int ystride, const unsigned char *blimit); 1.62 +#define vp8_loop_filter_simple_bv vp8_loop_filter_bvs_c 1.63 + 1.64 +void vp8_loop_filter_bhs_c(unsigned char *y, int ystride, const unsigned char *blimit); 1.65 +#define vp8_loop_filter_simple_bh vp8_loop_filter_bhs_c 1.66 + 1.67 +void vp8_short_idct4x4llm_c(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride); 1.68 +#define vp8_short_idct4x4llm vp8_short_idct4x4llm_c 1.69 + 1.70 +void vp8_short_inv_walsh4x4_1_c(short *input, short *output); 1.71 +#define vp8_short_inv_walsh4x4_1 vp8_short_inv_walsh4x4_1_c 1.72 + 1.73 +void vp8_short_inv_walsh4x4_c(short *input, short *output); 1.74 +#define vp8_short_inv_walsh4x4 vp8_short_inv_walsh4x4_c 1.75 + 1.76 +void vp8_dc_only_idct_add_c(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride); 1.77 +#define vp8_dc_only_idct_add vp8_dc_only_idct_add_c 1.78 + 1.79 +void vp8_copy_mem16x16_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); 1.80 +#define vp8_copy_mem16x16 vp8_copy_mem16x16_c 1.81 + 1.82 +void vp8_copy_mem8x8_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); 1.83 +#define vp8_copy_mem8x8 vp8_copy_mem8x8_c 1.84 + 1.85 +void vp8_copy_mem8x4_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); 1.86 +#define vp8_copy_mem8x4 vp8_copy_mem8x4_c 1.87 + 1.88 +void vp8_build_intra_predictors_mby_s_c(struct macroblockd *x, unsigned char * yabove_row, unsigned char * yleft, int left_stride, unsigned char * ypred_ptr, int y_stride); 1.89 +#define vp8_build_intra_predictors_mby_s vp8_build_intra_predictors_mby_s_c 1.90 + 1.91 +void vp8_build_intra_predictors_mbuv_s_c(struct macroblockd *x, unsigned char * uabove_row, unsigned char * vabove_row, unsigned char *uleft, unsigned char *vleft, int left_stride, unsigned char * upred_ptr, unsigned char * vpred_ptr, int pred_stride); 1.92 +#define vp8_build_intra_predictors_mbuv_s vp8_build_intra_predictors_mbuv_s_c 1.93 + 1.94 +void vp8_intra4x4_predict_c(unsigned char *Above, unsigned char *yleft, int left_stride, int b_mode, unsigned char *dst, int dst_stride, unsigned char top_left); 1.95 +#define vp8_intra4x4_predict vp8_intra4x4_predict_c 1.96 + 1.97 +void vp8_sixtap_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); 1.98 +#define vp8_sixtap_predict16x16 vp8_sixtap_predict16x16_c 1.99 + 1.100 +void vp8_sixtap_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); 1.101 +#define vp8_sixtap_predict8x8 vp8_sixtap_predict8x8_c 1.102 + 1.103 +void vp8_sixtap_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); 1.104 +#define vp8_sixtap_predict8x4 vp8_sixtap_predict8x4_c 1.105 + 1.106 +void vp8_sixtap_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); 1.107 +#define vp8_sixtap_predict4x4 vp8_sixtap_predict4x4_c 1.108 + 1.109 +void vp8_bilinear_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); 1.110 +#define vp8_bilinear_predict16x16 vp8_bilinear_predict16x16_c 1.111 + 1.112 +void vp8_bilinear_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); 1.113 +#define vp8_bilinear_predict8x8 vp8_bilinear_predict8x8_c 1.114 + 1.115 +void vp8_bilinear_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); 1.116 +#define vp8_bilinear_predict8x4 vp8_bilinear_predict8x4_c 1.117 + 1.118 +void vp8_bilinear_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch); 1.119 +#define vp8_bilinear_predict4x4 vp8_bilinear_predict4x4_c 1.120 + 1.121 +unsigned int vp8_variance4x4_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); 1.122 +#define vp8_variance4x4 vp8_variance4x4_c 1.123 + 1.124 +unsigned int vp8_variance8x8_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); 1.125 +#define vp8_variance8x8 vp8_variance8x8_c 1.126 + 1.127 +unsigned int vp8_variance8x16_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); 1.128 +#define vp8_variance8x16 vp8_variance8x16_c 1.129 + 1.130 +unsigned int vp8_variance16x8_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); 1.131 +#define vp8_variance16x8 vp8_variance16x8_c 1.132 + 1.133 +unsigned int vp8_variance16x16_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); 1.134 +#define vp8_variance16x16 vp8_variance16x16_c 1.135 + 1.136 +unsigned int vp8_sub_pixel_variance4x4_c(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse); 1.137 +#define vp8_sub_pixel_variance4x4 vp8_sub_pixel_variance4x4_c 1.138 + 1.139 +unsigned int vp8_sub_pixel_variance8x8_c(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse); 1.140 +#define vp8_sub_pixel_variance8x8 vp8_sub_pixel_variance8x8_c 1.141 + 1.142 +unsigned int vp8_sub_pixel_variance8x16_c(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse); 1.143 +#define vp8_sub_pixel_variance8x16 vp8_sub_pixel_variance8x16_c 1.144 + 1.145 +unsigned int vp8_sub_pixel_variance16x8_c(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse); 1.146 +#define vp8_sub_pixel_variance16x8 vp8_sub_pixel_variance16x8_c 1.147 + 1.148 +unsigned int vp8_sub_pixel_variance16x16_c(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse); 1.149 +#define vp8_sub_pixel_variance16x16 vp8_sub_pixel_variance16x16_c 1.150 + 1.151 +unsigned int vp8_variance_halfpixvar16x16_h_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); 1.152 +#define vp8_variance_halfpixvar16x16_h vp8_variance_halfpixvar16x16_h_c 1.153 + 1.154 +unsigned int vp8_variance_halfpixvar16x16_v_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); 1.155 +#define vp8_variance_halfpixvar16x16_v vp8_variance_halfpixvar16x16_v_c 1.156 + 1.157 +unsigned int vp8_variance_halfpixvar16x16_hv_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); 1.158 +#define vp8_variance_halfpixvar16x16_hv vp8_variance_halfpixvar16x16_hv_c 1.159 + 1.160 +unsigned int vp8_sad4x4_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); 1.161 +#define vp8_sad4x4 vp8_sad4x4_c 1.162 + 1.163 +unsigned int vp8_sad8x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); 1.164 +#define vp8_sad8x8 vp8_sad8x8_c 1.165 + 1.166 +unsigned int vp8_sad8x16_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); 1.167 +#define vp8_sad8x16 vp8_sad8x16_c 1.168 + 1.169 +unsigned int vp8_sad16x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); 1.170 +#define vp8_sad16x8 vp8_sad16x8_c 1.171 + 1.172 +unsigned int vp8_sad16x16_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad); 1.173 +#define vp8_sad16x16 vp8_sad16x16_c 1.174 + 1.175 +void vp8_sad4x4x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array); 1.176 +#define vp8_sad4x4x3 vp8_sad4x4x3_c 1.177 + 1.178 +void vp8_sad8x8x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array); 1.179 +#define vp8_sad8x8x3 vp8_sad8x8x3_c 1.180 + 1.181 +void vp8_sad8x16x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array); 1.182 +#define vp8_sad8x16x3 vp8_sad8x16x3_c 1.183 + 1.184 +void vp8_sad16x8x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array); 1.185 +#define vp8_sad16x8x3 vp8_sad16x8x3_c 1.186 + 1.187 +void vp8_sad16x16x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sad_array); 1.188 +#define vp8_sad16x16x3 vp8_sad16x16x3_c 1.189 + 1.190 +void vp8_sad4x4x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array); 1.191 +#define vp8_sad4x4x8 vp8_sad4x4x8_c 1.192 + 1.193 +void vp8_sad8x8x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array); 1.194 +#define vp8_sad8x8x8 vp8_sad8x8x8_c 1.195 + 1.196 +void vp8_sad8x16x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array); 1.197 +#define vp8_sad8x16x8 vp8_sad8x16x8_c 1.198 + 1.199 +void vp8_sad16x8x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array); 1.200 +#define vp8_sad16x8x8 vp8_sad16x8x8_c 1.201 + 1.202 +void vp8_sad16x16x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned short *sad_array); 1.203 +#define vp8_sad16x16x8 vp8_sad16x16x8_c 1.204 + 1.205 +void vp8_sad4x4x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array); 1.206 +#define vp8_sad4x4x4d vp8_sad4x4x4d_c 1.207 + 1.208 +void vp8_sad8x8x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array); 1.209 +#define vp8_sad8x8x4d vp8_sad8x8x4d_c 1.210 + 1.211 +void vp8_sad8x16x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array); 1.212 +#define vp8_sad8x16x4d vp8_sad8x16x4d_c 1.213 + 1.214 +void vp8_sad16x8x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array); 1.215 +#define vp8_sad16x8x4d vp8_sad16x8x4d_c 1.216 + 1.217 +void vp8_sad16x16x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int ref_stride, unsigned int *sad_array); 1.218 +#define vp8_sad16x16x4d vp8_sad16x16x4d_c 1.219 + 1.220 +unsigned int vp8_get_mb_ss_c(const short *); 1.221 +#define vp8_get_mb_ss vp8_get_mb_ss_c 1.222 + 1.223 +unsigned int vp8_sub_pixel_mse16x16_c(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse); 1.224 +#define vp8_sub_pixel_mse16x16 vp8_sub_pixel_mse16x16_c 1.225 + 1.226 +unsigned int vp8_mse16x16_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); 1.227 +#define vp8_mse16x16 vp8_mse16x16_c 1.228 + 1.229 +unsigned int vp8_get4x4sse_cs_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride); 1.230 +#define vp8_get4x4sse_cs vp8_get4x4sse_cs_c 1.231 + 1.232 +void vp8_short_fdct4x4_c(short *input, short *output, int pitch); 1.233 +#define vp8_short_fdct4x4 vp8_short_fdct4x4_c 1.234 + 1.235 +void vp8_short_fdct8x4_c(short *input, short *output, int pitch); 1.236 +#define vp8_short_fdct8x4 vp8_short_fdct8x4_c 1.237 + 1.238 +void vp8_short_walsh4x4_c(short *input, short *output, int pitch); 1.239 +#define vp8_short_walsh4x4 vp8_short_walsh4x4_c 1.240 + 1.241 +void vp8_regular_quantize_b_c(struct block *, struct blockd *); 1.242 +#define vp8_regular_quantize_b vp8_regular_quantize_b_c 1.243 + 1.244 +void vp8_fast_quantize_b_c(struct block *, struct blockd *); 1.245 +#define vp8_fast_quantize_b vp8_fast_quantize_b_c 1.246 + 1.247 +void vp8_regular_quantize_b_pair_c(struct block *b1, struct block *b2, struct blockd *d1, struct blockd *d2); 1.248 +#define vp8_regular_quantize_b_pair vp8_regular_quantize_b_pair_c 1.249 + 1.250 +void vp8_fast_quantize_b_pair_c(struct block *b1, struct block *b2, struct blockd *d1, struct blockd *d2); 1.251 +#define vp8_fast_quantize_b_pair vp8_fast_quantize_b_pair_c 1.252 + 1.253 +void vp8_quantize_mb_c(struct macroblock *); 1.254 +#define vp8_quantize_mb vp8_quantize_mb_c 1.255 + 1.256 +void vp8_quantize_mby_c(struct macroblock *); 1.257 +#define vp8_quantize_mby vp8_quantize_mby_c 1.258 + 1.259 +void vp8_quantize_mbuv_c(struct macroblock *); 1.260 +#define vp8_quantize_mbuv vp8_quantize_mbuv_c 1.261 + 1.262 +int vp8_block_error_c(short *coeff, short *dqcoeff); 1.263 +#define vp8_block_error vp8_block_error_c 1.264 + 1.265 +int vp8_mbblock_error_c(struct macroblock *mb, int dc); 1.266 +#define vp8_mbblock_error vp8_mbblock_error_c 1.267 + 1.268 +int vp8_mbuverror_c(struct macroblock *mb); 1.269 +#define vp8_mbuverror vp8_mbuverror_c 1.270 + 1.271 +void vp8_subtract_b_c(struct block *be, struct blockd *bd, int pitch); 1.272 +#define vp8_subtract_b vp8_subtract_b_c 1.273 + 1.274 +void vp8_subtract_mby_c(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride); 1.275 +#define vp8_subtract_mby vp8_subtract_mby_c 1.276 + 1.277 +void vp8_subtract_mbuv_c(short *diff, unsigned char *usrc, unsigned char *vsrc, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride); 1.278 +#define vp8_subtract_mbuv vp8_subtract_mbuv_c 1.279 + 1.280 +int vp8_full_search_sad_c(struct macroblock *x, struct block *b, struct blockd *d, union int_mv *ref_mv, int sad_per_bit, int distance, struct variance_vtable *fn_ptr, int *mvcost[2], union int_mv *center_mv); 1.281 +#define vp8_full_search_sad vp8_full_search_sad_c 1.282 + 1.283 +int vp8_refining_search_sad_c(struct macroblock *x, struct block *b, struct blockd *d, union int_mv *ref_mv, int sad_per_bit, int distance, struct variance_vtable *fn_ptr, int *mvcost[2], union int_mv *center_mv); 1.284 +#define vp8_refining_search_sad vp8_refining_search_sad_c 1.285 + 1.286 +int vp8_diamond_search_sad_c(struct macroblock *x, struct block *b, struct blockd *d, union int_mv *ref_mv, union int_mv *best_mv, int search_param, int sad_per_bit, int *num00, struct variance_vtable *fn_ptr, int *mvcost[2], union int_mv *center_mv); 1.287 +#define vp8_diamond_search_sad vp8_diamond_search_sad_c 1.288 + 1.289 +void vp8_temporal_filter_apply_c(unsigned char *frame1, unsigned int stride, unsigned char *frame2, unsigned int block_size, int strength, int filter_weight, unsigned int *accumulator, unsigned short *count); 1.290 +#define vp8_temporal_filter_apply vp8_temporal_filter_apply_c 1.291 + 1.292 +void vp8_yv12_copy_partial_frame_c(struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc); 1.293 +#define vp8_yv12_copy_partial_frame vp8_yv12_copy_partial_frame_c 1.294 + 1.295 +int vp8_denoiser_filter_c(struct yv12_buffer_config* mc_running_avg, struct yv12_buffer_config* running_avg, struct macroblock* signal, unsigned int motion_magnitude2, int y_offset, int uv_offset); 1.296 +#define vp8_denoiser_filter vp8_denoiser_filter_c 1.297 + 1.298 +void vp8_rtcd(void); 1.299 +#include "vpx_config.h" 1.300 + 1.301 +#ifdef RTCD_C 1.302 +static void setup_rtcd_internal(void) 1.303 +{ 1.304 + 1.305 +} 1.306 +#endif 1.307 +#endif