1ba164dffc5a6795bce97fae02b51ccf3330e15e4hkuang#ifndef VP8_RTCD_H_
2ba164dffc5a6795bce97fae02b51ccf3330e15e4hkuang#define VP8_RTCD_H_
31b362b15af34006e6a11974088a46d42b903418eJohann
41b362b15af34006e6a11974088a46d42b903418eJohann#ifdef RTCD_C
51b362b15af34006e6a11974088a46d42b903418eJohann#define RTCD_EXTERN
61b362b15af34006e6a11974088a46d42b903418eJohann#else
71b362b15af34006e6a11974088a46d42b903418eJohann#define RTCD_EXTERN extern
81b362b15af34006e6a11974088a46d42b903418eJohann#endif
91b362b15af34006e6a11974088a46d42b903418eJohann
10b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#ifdef __cplusplus
11b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianextern "C" {
12b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#endif
13b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian
14ba164dffc5a6795bce97fae02b51ccf3330e15e4hkuang/*
15ba164dffc5a6795bce97fae02b51ccf3330e15e4hkuang * VP8
16ba164dffc5a6795bce97fae02b51ccf3330e15e4hkuang */
171b362b15af34006e6a11974088a46d42b903418eJohann
181b362b15af34006e6a11974088a46d42b903418eJohannstruct blockd;
191b362b15af34006e6a11974088a46d42b903418eJohannstruct macroblockd;
201b362b15af34006e6a11974088a46d42b903418eJohannstruct loop_filter_info;
211b362b15af34006e6a11974088a46d42b903418eJohann
221b362b15af34006e6a11974088a46d42b903418eJohann/* Encoder forward decls */
231b362b15af34006e6a11974088a46d42b903418eJohannstruct block;
241b362b15af34006e6a11974088a46d42b903418eJohannstruct macroblock;
251b362b15af34006e6a11974088a46d42b903418eJohannstruct variance_vtable;
261b362b15af34006e6a11974088a46d42b903418eJohannunion int_mv;
271b362b15af34006e6a11974088a46d42b903418eJohannstruct yv12_buffer_config;
281b362b15af34006e6a11974088a46d42b903418eJohann
29b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_bilinear_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
30b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_bilinear_predict16x16 vp8_bilinear_predict16x16_c
311b362b15af34006e6a11974088a46d42b903418eJohann
32b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_bilinear_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
33b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_bilinear_predict4x4 vp8_bilinear_predict4x4_c
341b362b15af34006e6a11974088a46d42b903418eJohann
35b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_bilinear_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
36b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_bilinear_predict8x4 vp8_bilinear_predict8x4_c
371b362b15af34006e6a11974088a46d42b903418eJohann
38b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_bilinear_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
39b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_bilinear_predict8x8 vp8_bilinear_predict8x8_c
401b362b15af34006e6a11974088a46d42b903418eJohann
41b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianint vp8_block_error_c(short *coeff, short *dqcoeff);
42b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_block_error vp8_block_error_c
431b362b15af34006e6a11974088a46d42b903418eJohann
44b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid 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);
45b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_build_intra_predictors_mbuv_s vp8_build_intra_predictors_mbuv_s_c
461b362b15af34006e6a11974088a46d42b903418eJohann
47b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid 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);
48b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_build_intra_predictors_mby_s vp8_build_intra_predictors_mby_s_c
491b362b15af34006e6a11974088a46d42b903418eJohann
50b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_clear_system_state_c();
51b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_clear_system_state vp8_clear_system_state_c
521b362b15af34006e6a11974088a46d42b903418eJohann
531b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_copy_mem16x16_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
541b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_copy_mem16x16 vp8_copy_mem16x16_c
551b362b15af34006e6a11974088a46d42b903418eJohann
56b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_copy_mem8x4_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
57b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_copy_mem8x4 vp8_copy_mem8x4_c
58b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian
591b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_copy_mem8x8_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
601b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_copy_mem8x8 vp8_copy_mem8x8_c
611b362b15af34006e6a11974088a46d42b903418eJohann
62b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_dc_only_idct_add_c(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride);
63b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_dc_only_idct_add vp8_dc_only_idct_add_c
641b362b15af34006e6a11974088a46d42b903418eJohann
65b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianint 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);
66b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_denoiser_filter vp8_denoiser_filter_c
671b362b15af34006e6a11974088a46d42b903418eJohann
68b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_dequant_idct_add_c(short *input, short *dq, unsigned char *output, int stride);
69b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_dequant_idct_add vp8_dequant_idct_add_c
701b362b15af34006e6a11974088a46d42b903418eJohann
71b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_dequant_idct_add_uv_block_c(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs);
72b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_dequant_idct_add_uv_block vp8_dequant_idct_add_uv_block_c
731b362b15af34006e6a11974088a46d42b903418eJohann
74b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_dequant_idct_add_y_block_c(short *q, short *dq, unsigned char *dst, int stride, char *eobs);
75b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_dequant_idct_add_y_block vp8_dequant_idct_add_y_block_c
761b362b15af34006e6a11974088a46d42b903418eJohann
77b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_dequantize_b_c(struct blockd*, short *dqc);
78b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_dequantize_b vp8_dequantize_b_c
791b362b15af34006e6a11974088a46d42b903418eJohann
80b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianint 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);
81b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_diamond_search_sad vp8_diamond_search_sad_c
821b362b15af34006e6a11974088a46d42b903418eJohann
83b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_fast_quantize_b_c(struct block *, struct blockd *);
84b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_fast_quantize_b vp8_fast_quantize_b_c
851b362b15af34006e6a11974088a46d42b903418eJohann
86b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_fast_quantize_b_pair_c(struct block *b1, struct block *b2, struct blockd *d1, struct blockd *d2);
87b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_fast_quantize_b_pair vp8_fast_quantize_b_pair_c
881b362b15af34006e6a11974088a46d42b903418eJohann
89b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianint 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);
90b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_full_search_sad vp8_full_search_sad_c
911b362b15af34006e6a11974088a46d42b903418eJohann
92b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianunsigned int vp8_get4x4sse_cs_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride);
93b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_get4x4sse_cs vp8_get4x4sse_cs_c
941b362b15af34006e6a11974088a46d42b903418eJohann
95b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianunsigned int vp8_get_mb_ss_c(const short *);
96b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_get_mb_ss vp8_get_mb_ss_c
971b362b15af34006e6a11974088a46d42b903418eJohann
98b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid 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);
99b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_intra4x4_predict vp8_intra4x4_predict_c
1001b362b15af34006e6a11974088a46d42b903418eJohann
101b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_loop_filter_bh_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
102b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_loop_filter_bh vp8_loop_filter_bh_c
1031b362b15af34006e6a11974088a46d42b903418eJohann
104b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_loop_filter_bv_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
105b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_loop_filter_bv vp8_loop_filter_bv_c
1061b362b15af34006e6a11974088a46d42b903418eJohann
107b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_loop_filter_mbh_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
108b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_loop_filter_mbh vp8_loop_filter_mbh_c
1091b362b15af34006e6a11974088a46d42b903418eJohann
110b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_loop_filter_mbv_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
111b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_loop_filter_mbv vp8_loop_filter_mbv_c
1121b362b15af34006e6a11974088a46d42b903418eJohann
113b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_loop_filter_bhs_c(unsigned char *y, int ystride, const unsigned char *blimit);
114b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_loop_filter_simple_bh vp8_loop_filter_bhs_c
1151b362b15af34006e6a11974088a46d42b903418eJohann
116b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_loop_filter_bvs_c(unsigned char *y, int ystride, const unsigned char *blimit);
117b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_loop_filter_simple_bv vp8_loop_filter_bvs_c
1181b362b15af34006e6a11974088a46d42b903418eJohann
119b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_loop_filter_simple_horizontal_edge_c(unsigned char *y, int ystride, const unsigned char *blimit);
120b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_loop_filter_simple_mbh vp8_loop_filter_simple_horizontal_edge_c
1211b362b15af34006e6a11974088a46d42b903418eJohann
122b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_loop_filter_simple_vertical_edge_c(unsigned char *y, int ystride, const unsigned char *blimit);
123b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_loop_filter_simple_mbv vp8_loop_filter_simple_vertical_edge_c
1241b362b15af34006e6a11974088a46d42b903418eJohann
125b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianint vp8_mbblock_error_c(struct macroblock *mb, int dc);
126b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_mbblock_error vp8_mbblock_error_c
1271b362b15af34006e6a11974088a46d42b903418eJohann
128b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianint vp8_mbuverror_c(struct macroblock *mb);
129b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_mbuverror vp8_mbuverror_c
1301b362b15af34006e6a11974088a46d42b903418eJohann
131b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianunsigned int vp8_mse16x16_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
132b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_mse16x16 vp8_mse16x16_c
1331b362b15af34006e6a11974088a46d42b903418eJohann
134b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_quantize_mb_c(struct macroblock *);
135b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_quantize_mb vp8_quantize_mb_c
1361b362b15af34006e6a11974088a46d42b903418eJohann
137b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_quantize_mbuv_c(struct macroblock *);
138b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_quantize_mbuv vp8_quantize_mbuv_c
1391b362b15af34006e6a11974088a46d42b903418eJohann
140b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_quantize_mby_c(struct macroblock *);
141b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_quantize_mby vp8_quantize_mby_c
1421b362b15af34006e6a11974088a46d42b903418eJohann
143b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianint 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);
144b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_refining_search_sad vp8_refining_search_sad_c
1451b362b15af34006e6a11974088a46d42b903418eJohann
146b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_regular_quantize_b_c(struct block *, struct blockd *);
147b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_regular_quantize_b vp8_regular_quantize_b_c
148b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian
149b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_regular_quantize_b_pair_c(struct block *b1, struct block *b2, struct blockd *d1, struct blockd *d2);
150b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_regular_quantize_b_pair vp8_regular_quantize_b_pair_c
1511b362b15af34006e6a11974088a46d42b903418eJohann
1521b362b15af34006e6a11974088a46d42b903418eJohannunsigned int vp8_sad16x16_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
1531b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sad16x16 vp8_sad16x16_c
1541b362b15af34006e6a11974088a46d42b903418eJohann
155b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_sad16x16x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
156b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_sad16x16x3 vp8_sad16x16x3_c
1571b362b15af34006e6a11974088a46d42b903418eJohann
158b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_sad16x16x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
159b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_sad16x16x4d vp8_sad16x16x4d_c
1601b362b15af34006e6a11974088a46d42b903418eJohann
161b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_sad16x16x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
162b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_sad16x16x8 vp8_sad16x16x8_c
163b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian
164b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianunsigned int vp8_sad16x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
165b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_sad16x8 vp8_sad16x8_c
1661b362b15af34006e6a11974088a46d42b903418eJohann
1671b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_sad16x8x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
1681b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sad16x8x3 vp8_sad16x8x3_c
1691b362b15af34006e6a11974088a46d42b903418eJohann
170b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_sad16x8x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
171b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_sad16x8x4d vp8_sad16x8x4d_c
1721b362b15af34006e6a11974088a46d42b903418eJohann
1731b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_sad16x8x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
1741b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sad16x8x8 vp8_sad16x8x8_c
1751b362b15af34006e6a11974088a46d42b903418eJohann
176b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianunsigned int vp8_sad4x4_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
177b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_sad4x4 vp8_sad4x4_c
178b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian
179b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_sad4x4x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
180b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_sad4x4x3 vp8_sad4x4x3_c
1811b362b15af34006e6a11974088a46d42b903418eJohann
1821b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_sad4x4x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
1831b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sad4x4x4d vp8_sad4x4x4d_c
1841b362b15af34006e6a11974088a46d42b903418eJohann
185b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_sad4x4x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
186b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_sad4x4x8 vp8_sad4x4x8_c
187b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian
188b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianunsigned int vp8_sad8x16_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
189b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_sad8x16 vp8_sad8x16_c
190b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian
191b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_sad8x16x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
192b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_sad8x16x3 vp8_sad8x16x3_c
1931b362b15af34006e6a11974088a46d42b903418eJohann
1941b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_sad8x16x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
1951b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sad8x16x4d vp8_sad8x16x4d_c
1961b362b15af34006e6a11974088a46d42b903418eJohann
197b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_sad8x16x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
198b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_sad8x16x8 vp8_sad8x16x8_c
1991b362b15af34006e6a11974088a46d42b903418eJohann
200b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianunsigned int vp8_sad8x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
201b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_sad8x8 vp8_sad8x8_c
202ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
203b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_sad8x8x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
204b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_sad8x8x3 vp8_sad8x8x3_c
205ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
206b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_sad8x8x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
207b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_sad8x8x4d vp8_sad8x8x4d_c
208ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
209b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_sad8x8x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
210b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_sad8x8x8 vp8_sad8x8x8_c
211ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
212ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekinvoid vp8_short_fdct4x4_c(short *input, short *output, int pitch);
213ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin#define vp8_short_fdct4x4 vp8_short_fdct4x4_c
214ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
215ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekinvoid vp8_short_fdct8x4_c(short *input, short *output, int pitch);
216ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin#define vp8_short_fdct8x4 vp8_short_fdct8x4_c
217ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
218b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_short_idct4x4llm_c(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride);
219b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_short_idct4x4llm vp8_short_idct4x4llm_c
220b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian
221b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_short_inv_walsh4x4_c(short *input, short *output);
222b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_short_inv_walsh4x4 vp8_short_inv_walsh4x4_c
223b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian
224b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_short_inv_walsh4x4_1_c(short *input, short *output);
225b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_short_inv_walsh4x4_1 vp8_short_inv_walsh4x4_1_c
226b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian
227ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekinvoid vp8_short_walsh4x4_c(short *input, short *output, int pitch);
228ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin#define vp8_short_walsh4x4 vp8_short_walsh4x4_c
229ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
230b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_sixtap_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
231b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_sixtap_predict16x16 vp8_sixtap_predict16x16_c
232ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
233b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_sixtap_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
234b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_sixtap_predict4x4 vp8_sixtap_predict4x4_c
235ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
236b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_sixtap_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
237b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_sixtap_predict8x4 vp8_sixtap_predict8x4_c
238ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
239b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_sixtap_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
240b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_sixtap_predict8x8 vp8_sixtap_predict8x8_c
241ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
242b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianunsigned 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);
243b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_sub_pixel_mse16x16 vp8_sub_pixel_mse16x16_c
244ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
245b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianunsigned 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);
246b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_sub_pixel_variance16x16 vp8_sub_pixel_variance16x16_c
247ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
248b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianunsigned 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);
249b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_sub_pixel_variance16x8 vp8_sub_pixel_variance16x8_c
250ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
251b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianunsigned 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);
252b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_sub_pixel_variance4x4 vp8_sub_pixel_variance4x4_c
253ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
254b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianunsigned 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);
255b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_sub_pixel_variance8x16 vp8_sub_pixel_variance8x16_c
256ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
257b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianunsigned 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);
258b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_sub_pixel_variance8x8 vp8_sub_pixel_variance8x8_c
259ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
260ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekinvoid vp8_subtract_b_c(struct block *be, struct blockd *bd, int pitch);
261ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin#define vp8_subtract_b vp8_subtract_b_c
262ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
263b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianvoid vp8_subtract_mbuv_c(short *diff, unsigned char *usrc, unsigned char *vsrc, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride);
264b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_subtract_mbuv vp8_subtract_mbuv_c
265b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian
266ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekinvoid vp8_subtract_mby_c(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride);
267ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin#define vp8_subtract_mby vp8_subtract_mby_c
268ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
269b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianunsigned int vp8_variance16x16_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
270b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_variance16x16 vp8_variance16x16_c
271ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
272b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianunsigned int vp8_variance16x8_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
273b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_variance16x8 vp8_variance16x8_c
274ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
275b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianunsigned int vp8_variance4x4_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
276b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_variance4x4 vp8_variance4x4_c
277ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
278b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianunsigned int vp8_variance8x16_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
279b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_variance8x16 vp8_variance8x16_c
280b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian
281b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianunsigned int vp8_variance8x8_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
282b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_variance8x8 vp8_variance8x8_c
283b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian
284b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianunsigned 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);
285b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_variance_halfpixvar16x16_h vp8_variance_halfpixvar16x16_h_c
286b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian
287b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianunsigned 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);
288b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_variance_halfpixvar16x16_hv vp8_variance_halfpixvar16x16_hv_c
289b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian
290b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanianunsigned 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);
291b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#define vp8_variance_halfpixvar16x16_v vp8_variance_halfpixvar16x16_v_c
292ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
293ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekinvoid vp8_yv12_copy_partial_frame_c(struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc);
294ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin#define vp8_yv12_copy_partial_frame vp8_yv12_copy_partial_frame_c
295ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
296ba164dffc5a6795bce97fae02b51ccf3330e15e4hkuangvoid vp8_rtcd(void);
297b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian
2981b362b15af34006e6a11974088a46d42b903418eJohann#include "vpx_config.h"
2991b362b15af34006e6a11974088a46d42b903418eJohann
3001b362b15af34006e6a11974088a46d42b903418eJohann#ifdef RTCD_C
3011b362b15af34006e6a11974088a46d42b903418eJohannstatic void setup_rtcd_internal(void)
3021b362b15af34006e6a11974088a46d42b903418eJohann{
3031b362b15af34006e6a11974088a46d42b903418eJohann}
3041b362b15af34006e6a11974088a46d42b903418eJohann#endif
305b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian
306b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#ifdef __cplusplus
307b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian}  // extern "C"
308b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian#endif
309b08e2e23eec181e9951df33cd704ac294c5407b6Vignesh Venkatasubramanian
3101b362b15af34006e6a11974088a46d42b903418eJohann#endif
311