vp8_rtcd.h revision 5ae7ac49f08a179e4f054d99fcfc9dce78d26e58
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
10ba164dffc5a6795bce97fae02b51ccf3330e15e4hkuang/*
11ba164dffc5a6795bce97fae02b51ccf3330e15e4hkuang * VP8
12ba164dffc5a6795bce97fae02b51ccf3330e15e4hkuang */
131b362b15af34006e6a11974088a46d42b903418eJohann
141b362b15af34006e6a11974088a46d42b903418eJohannstruct blockd;
151b362b15af34006e6a11974088a46d42b903418eJohannstruct macroblockd;
161b362b15af34006e6a11974088a46d42b903418eJohannstruct loop_filter_info;
171b362b15af34006e6a11974088a46d42b903418eJohann
181b362b15af34006e6a11974088a46d42b903418eJohann/* Encoder forward decls */
191b362b15af34006e6a11974088a46d42b903418eJohannstruct block;
201b362b15af34006e6a11974088a46d42b903418eJohannstruct macroblock;
211b362b15af34006e6a11974088a46d42b903418eJohannstruct variance_vtable;
221b362b15af34006e6a11974088a46d42b903418eJohannunion int_mv;
231b362b15af34006e6a11974088a46d42b903418eJohannstruct yv12_buffer_config;
241b362b15af34006e6a11974088a46d42b903418eJohann
25ba164dffc5a6795bce97fae02b51ccf3330e15e4hkuangvoid vp8_clear_system_state_c();
26ba164dffc5a6795bce97fae02b51ccf3330e15e4hkuang#define vp8_clear_system_state vp8_clear_system_state_c
27ba164dffc5a6795bce97fae02b51ccf3330e15e4hkuang
281b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_dequantize_b_c(struct blockd*, short *dqc);
291b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_dequantize_b vp8_dequantize_b_c
301b362b15af34006e6a11974088a46d42b903418eJohann
311b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_dequant_idct_add_c(short *input, short *dq, unsigned char *output, int stride);
321b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_dequant_idct_add vp8_dequant_idct_add_c
331b362b15af34006e6a11974088a46d42b903418eJohann
341b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_dequant_idct_add_y_block_c(short *q, short *dq, unsigned char *dst, int stride, char *eobs);
351b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_dequant_idct_add_y_block vp8_dequant_idct_add_y_block_c
361b362b15af34006e6a11974088a46d42b903418eJohann
371b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_dequant_idct_add_uv_block_c(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs);
381b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_dequant_idct_add_uv_block vp8_dequant_idct_add_uv_block_c
391b362b15af34006e6a11974088a46d42b903418eJohann
401b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_loop_filter_mbv_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
411b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_loop_filter_mbv vp8_loop_filter_mbv_c
421b362b15af34006e6a11974088a46d42b903418eJohann
431b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_loop_filter_bv_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
441b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_loop_filter_bv vp8_loop_filter_bv_c
451b362b15af34006e6a11974088a46d42b903418eJohann
461b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_loop_filter_mbh_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
471b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_loop_filter_mbh vp8_loop_filter_mbh_c
481b362b15af34006e6a11974088a46d42b903418eJohann
491b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_loop_filter_bh_c(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
501b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_loop_filter_bh vp8_loop_filter_bh_c
511b362b15af34006e6a11974088a46d42b903418eJohann
521b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_loop_filter_simple_vertical_edge_c(unsigned char *y, int ystride, const unsigned char *blimit);
531b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_loop_filter_simple_mbv vp8_loop_filter_simple_vertical_edge_c
541b362b15af34006e6a11974088a46d42b903418eJohann
551b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_loop_filter_simple_horizontal_edge_c(unsigned char *y, int ystride, const unsigned char *blimit);
561b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_loop_filter_simple_mbh vp8_loop_filter_simple_horizontal_edge_c
571b362b15af34006e6a11974088a46d42b903418eJohann
581b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_loop_filter_bvs_c(unsigned char *y, int ystride, const unsigned char *blimit);
591b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_loop_filter_simple_bv vp8_loop_filter_bvs_c
601b362b15af34006e6a11974088a46d42b903418eJohann
611b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_loop_filter_bhs_c(unsigned char *y, int ystride, const unsigned char *blimit);
621b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_loop_filter_simple_bh vp8_loop_filter_bhs_c
631b362b15af34006e6a11974088a46d42b903418eJohann
641b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_short_idct4x4llm_c(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride);
651b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_short_idct4x4llm vp8_short_idct4x4llm_c
661b362b15af34006e6a11974088a46d42b903418eJohann
671b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_short_inv_walsh4x4_1_c(short *input, short *output);
681b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_short_inv_walsh4x4_1 vp8_short_inv_walsh4x4_1_c
691b362b15af34006e6a11974088a46d42b903418eJohann
701b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_short_inv_walsh4x4_c(short *input, short *output);
711b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_short_inv_walsh4x4 vp8_short_inv_walsh4x4_c
721b362b15af34006e6a11974088a46d42b903418eJohann
731b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_dc_only_idct_add_c(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride);
741b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_dc_only_idct_add vp8_dc_only_idct_add_c
751b362b15af34006e6a11974088a46d42b903418eJohann
761b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_copy_mem16x16_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
771b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_copy_mem16x16 vp8_copy_mem16x16_c
781b362b15af34006e6a11974088a46d42b903418eJohann
791b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_copy_mem8x8_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
801b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_copy_mem8x8 vp8_copy_mem8x8_c
811b362b15af34006e6a11974088a46d42b903418eJohann
821b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_copy_mem8x4_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
831b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_copy_mem8x4 vp8_copy_mem8x4_c
841b362b15af34006e6a11974088a46d42b903418eJohann
851b362b15af34006e6a11974088a46d42b903418eJohannvoid 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);
861b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_build_intra_predictors_mby_s vp8_build_intra_predictors_mby_s_c
871b362b15af34006e6a11974088a46d42b903418eJohann
881b362b15af34006e6a11974088a46d42b903418eJohannvoid 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);
891b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_build_intra_predictors_mbuv_s vp8_build_intra_predictors_mbuv_s_c
901b362b15af34006e6a11974088a46d42b903418eJohann
91ba164dffc5a6795bce97fae02b51ccf3330e15e4hkuangvoid 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);
921b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_intra4x4_predict vp8_intra4x4_predict_c
931b362b15af34006e6a11974088a46d42b903418eJohann
941b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_sixtap_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
951b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sixtap_predict16x16 vp8_sixtap_predict16x16_c
961b362b15af34006e6a11974088a46d42b903418eJohann
971b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_sixtap_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
981b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sixtap_predict8x8 vp8_sixtap_predict8x8_c
991b362b15af34006e6a11974088a46d42b903418eJohann
1001b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_sixtap_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
1011b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sixtap_predict8x4 vp8_sixtap_predict8x4_c
1021b362b15af34006e6a11974088a46d42b903418eJohann
1031b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_sixtap_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
1041b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sixtap_predict4x4 vp8_sixtap_predict4x4_c
1051b362b15af34006e6a11974088a46d42b903418eJohann
1061b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_bilinear_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
1071b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_bilinear_predict16x16 vp8_bilinear_predict16x16_c
1081b362b15af34006e6a11974088a46d42b903418eJohann
1091b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_bilinear_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
1101b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_bilinear_predict8x8 vp8_bilinear_predict8x8_c
1111b362b15af34006e6a11974088a46d42b903418eJohann
1121b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_bilinear_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
1131b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_bilinear_predict8x4 vp8_bilinear_predict8x4_c
1141b362b15af34006e6a11974088a46d42b903418eJohann
1151b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_bilinear_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
1161b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_bilinear_predict4x4 vp8_bilinear_predict4x4_c
1171b362b15af34006e6a11974088a46d42b903418eJohann
1181b362b15af34006e6a11974088a46d42b903418eJohannunsigned int vp8_variance4x4_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
1191b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_variance4x4 vp8_variance4x4_c
1201b362b15af34006e6a11974088a46d42b903418eJohann
1211b362b15af34006e6a11974088a46d42b903418eJohannunsigned int vp8_variance8x8_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
1221b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_variance8x8 vp8_variance8x8_c
1231b362b15af34006e6a11974088a46d42b903418eJohann
1241b362b15af34006e6a11974088a46d42b903418eJohannunsigned int vp8_variance8x16_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
1251b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_variance8x16 vp8_variance8x16_c
1261b362b15af34006e6a11974088a46d42b903418eJohann
1271b362b15af34006e6a11974088a46d42b903418eJohannunsigned int vp8_variance16x8_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
1281b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_variance16x8 vp8_variance16x8_c
1291b362b15af34006e6a11974088a46d42b903418eJohann
1301b362b15af34006e6a11974088a46d42b903418eJohannunsigned int vp8_variance16x16_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
1311b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_variance16x16 vp8_variance16x16_c
1321b362b15af34006e6a11974088a46d42b903418eJohann
1331b362b15af34006e6a11974088a46d42b903418eJohannunsigned 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);
1341b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sub_pixel_variance4x4 vp8_sub_pixel_variance4x4_c
1351b362b15af34006e6a11974088a46d42b903418eJohann
1361b362b15af34006e6a11974088a46d42b903418eJohannunsigned 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);
1371b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sub_pixel_variance8x8 vp8_sub_pixel_variance8x8_c
1381b362b15af34006e6a11974088a46d42b903418eJohann
1391b362b15af34006e6a11974088a46d42b903418eJohannunsigned 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);
1401b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sub_pixel_variance8x16 vp8_sub_pixel_variance8x16_c
1411b362b15af34006e6a11974088a46d42b903418eJohann
1421b362b15af34006e6a11974088a46d42b903418eJohannunsigned 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);
1431b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sub_pixel_variance16x8 vp8_sub_pixel_variance16x8_c
1441b362b15af34006e6a11974088a46d42b903418eJohann
1451b362b15af34006e6a11974088a46d42b903418eJohannunsigned 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);
1461b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sub_pixel_variance16x16 vp8_sub_pixel_variance16x16_c
1471b362b15af34006e6a11974088a46d42b903418eJohann
1481b362b15af34006e6a11974088a46d42b903418eJohannunsigned 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);
1491b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_variance_halfpixvar16x16_h vp8_variance_halfpixvar16x16_h_c
1501b362b15af34006e6a11974088a46d42b903418eJohann
1511b362b15af34006e6a11974088a46d42b903418eJohannunsigned 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);
1521b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_variance_halfpixvar16x16_v vp8_variance_halfpixvar16x16_v_c
1531b362b15af34006e6a11974088a46d42b903418eJohann
1541b362b15af34006e6a11974088a46d42b903418eJohannunsigned 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);
1551b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_variance_halfpixvar16x16_hv vp8_variance_halfpixvar16x16_hv_c
1561b362b15af34006e6a11974088a46d42b903418eJohann
1571b362b15af34006e6a11974088a46d42b903418eJohannunsigned int vp8_sad4x4_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
1581b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sad4x4 vp8_sad4x4_c
1591b362b15af34006e6a11974088a46d42b903418eJohann
1601b362b15af34006e6a11974088a46d42b903418eJohannunsigned int vp8_sad8x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
1611b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sad8x8 vp8_sad8x8_c
1621b362b15af34006e6a11974088a46d42b903418eJohann
1631b362b15af34006e6a11974088a46d42b903418eJohannunsigned int vp8_sad8x16_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
1641b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sad8x16 vp8_sad8x16_c
1651b362b15af34006e6a11974088a46d42b903418eJohann
1661b362b15af34006e6a11974088a46d42b903418eJohannunsigned int vp8_sad16x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
1671b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sad16x8 vp8_sad16x8_c
1681b362b15af34006e6a11974088a46d42b903418eJohann
1691b362b15af34006e6a11974088a46d42b903418eJohannunsigned int vp8_sad16x16_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int max_sad);
1701b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sad16x16 vp8_sad16x16_c
1711b362b15af34006e6a11974088a46d42b903418eJohann
1721b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_sad4x4x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
1731b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sad4x4x3 vp8_sad4x4x3_c
1741b362b15af34006e6a11974088a46d42b903418eJohann
1751b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_sad8x8x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
1761b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sad8x8x3 vp8_sad8x8x3_c
1771b362b15af34006e6a11974088a46d42b903418eJohann
1781b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_sad8x16x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
1791b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sad8x16x3 vp8_sad8x16x3_c
1801b362b15af34006e6a11974088a46d42b903418eJohann
1811b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_sad16x8x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
1821b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sad16x8x3 vp8_sad16x8x3_c
1831b362b15af34006e6a11974088a46d42b903418eJohann
1841b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_sad16x16x3_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sad_array);
1851b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sad16x16x3 vp8_sad16x16x3_c
1861b362b15af34006e6a11974088a46d42b903418eJohann
1871b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_sad4x4x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
1881b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sad4x4x8 vp8_sad4x4x8_c
1891b362b15af34006e6a11974088a46d42b903418eJohann
1901b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_sad8x8x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
1911b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sad8x8x8 vp8_sad8x8x8_c
1921b362b15af34006e6a11974088a46d42b903418eJohann
1931b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_sad8x16x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
1941b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sad8x16x8 vp8_sad8x16x8_c
1951b362b15af34006e6a11974088a46d42b903418eJohann
1961b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_sad16x8x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
1971b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sad16x8x8 vp8_sad16x8x8_c
1981b362b15af34006e6a11974088a46d42b903418eJohann
1991b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_sad16x16x8_c(const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned short *sad_array);
2001b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sad16x16x8 vp8_sad16x16x8_c
2011b362b15af34006e6a11974088a46d42b903418eJohann
2021b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_sad4x4x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
2031b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sad4x4x4d vp8_sad4x4x4d_c
2041b362b15af34006e6a11974088a46d42b903418eJohann
2051b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_sad8x8x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
2061b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sad8x8x4d vp8_sad8x8x4d_c
2071b362b15af34006e6a11974088a46d42b903418eJohann
2081b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_sad8x16x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
2091b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sad8x16x4d vp8_sad8x16x4d_c
2101b362b15af34006e6a11974088a46d42b903418eJohann
2111b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_sad16x8x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
2121b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sad16x8x4d vp8_sad16x8x4d_c
2131b362b15af34006e6a11974088a46d42b903418eJohann
2141b362b15af34006e6a11974088a46d42b903418eJohannvoid vp8_sad16x16x4d_c(const unsigned char *src_ptr, int src_stride, const unsigned char * const ref_ptr[], int  ref_stride, unsigned int *sad_array);
2151b362b15af34006e6a11974088a46d42b903418eJohann#define vp8_sad16x16x4d vp8_sad16x16x4d_c
2161b362b15af34006e6a11974088a46d42b903418eJohann
217ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekinunsigned int vp8_get_mb_ss_c(const short *);
218ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin#define vp8_get_mb_ss vp8_get_mb_ss_c
219ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
220ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekinunsigned 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);
221ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin#define vp8_sub_pixel_mse16x16 vp8_sub_pixel_mse16x16_c
222ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
223ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekinunsigned int vp8_mse16x16_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride, unsigned int *sse);
224ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin#define vp8_mse16x16 vp8_mse16x16_c
225ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
226ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekinunsigned int vp8_get4x4sse_cs_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int  ref_stride);
227ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin#define vp8_get4x4sse_cs vp8_get4x4sse_cs_c
228ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
229ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekinvoid vp8_short_fdct4x4_c(short *input, short *output, int pitch);
230ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin#define vp8_short_fdct4x4 vp8_short_fdct4x4_c
231ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
232ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekinvoid vp8_short_fdct8x4_c(short *input, short *output, int pitch);
233ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin#define vp8_short_fdct8x4 vp8_short_fdct8x4_c
234ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
235ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekinvoid vp8_short_walsh4x4_c(short *input, short *output, int pitch);
236ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin#define vp8_short_walsh4x4 vp8_short_walsh4x4_c
237ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
238ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekinvoid vp8_regular_quantize_b_c(struct block *, struct blockd *);
239ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin#define vp8_regular_quantize_b vp8_regular_quantize_b_c
240ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
241ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekinvoid vp8_fast_quantize_b_c(struct block *, struct blockd *);
242ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin#define vp8_fast_quantize_b vp8_fast_quantize_b_c
243ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
244ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekinvoid vp8_regular_quantize_b_pair_c(struct block *b1, struct block *b2, struct blockd *d1, struct blockd *d2);
245ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin#define vp8_regular_quantize_b_pair vp8_regular_quantize_b_pair_c
246ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
247ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekinvoid vp8_fast_quantize_b_pair_c(struct block *b1, struct block *b2, struct blockd *d1, struct blockd *d2);
248ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin#define vp8_fast_quantize_b_pair vp8_fast_quantize_b_pair_c
249ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
250ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekinvoid vp8_quantize_mb_c(struct macroblock *);
251ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin#define vp8_quantize_mb vp8_quantize_mb_c
252ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
253ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekinvoid vp8_quantize_mby_c(struct macroblock *);
254ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin#define vp8_quantize_mby vp8_quantize_mby_c
255ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
256ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekinvoid vp8_quantize_mbuv_c(struct macroblock *);
257ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin#define vp8_quantize_mbuv vp8_quantize_mbuv_c
258ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
259ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekinint vp8_block_error_c(short *coeff, short *dqcoeff);
260ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin#define vp8_block_error vp8_block_error_c
261ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
262ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekinint vp8_mbblock_error_c(struct macroblock *mb, int dc);
263ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin#define vp8_mbblock_error vp8_mbblock_error_c
264ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
265ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekinint vp8_mbuverror_c(struct macroblock *mb);
266ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin#define vp8_mbuverror vp8_mbuverror_c
267ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
268ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekinvoid vp8_subtract_b_c(struct block *be, struct blockd *bd, int pitch);
269ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin#define vp8_subtract_b vp8_subtract_b_c
270ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
271ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekinvoid vp8_subtract_mby_c(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride);
272ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin#define vp8_subtract_mby vp8_subtract_mby_c
273ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
274ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekinvoid vp8_subtract_mbuv_c(short *diff, unsigned char *usrc, unsigned char *vsrc, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride);
275ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin#define vp8_subtract_mbuv vp8_subtract_mbuv_c
276ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
277ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekinint 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);
278ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin#define vp8_full_search_sad vp8_full_search_sad_c
279ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
280ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekinint 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);
281ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin#define vp8_refining_search_sad vp8_refining_search_sad_c
282ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
283ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekinint 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);
284ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin#define vp8_diamond_search_sad vp8_diamond_search_sad_c
285ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
286ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekinvoid vp8_yv12_copy_partial_frame_c(struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc);
287ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin#define vp8_yv12_copy_partial_frame vp8_yv12_copy_partial_frame_c
288ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
289ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekinint 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);
290ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin#define vp8_denoiser_filter vp8_denoiser_filter_c
291ca15b5fc158a9df465aaf1acfe38d8cb5042c81bKunter Gultekin
292ba164dffc5a6795bce97fae02b51ccf3330e15e4hkuangvoid vp8_rtcd(void);
2931b362b15af34006e6a11974088a46d42b903418eJohann#include "vpx_config.h"
2941b362b15af34006e6a11974088a46d42b903418eJohann
2951b362b15af34006e6a11974088a46d42b903418eJohann#ifdef RTCD_C
2961b362b15af34006e6a11974088a46d42b903418eJohannstatic void setup_rtcd_internal(void)
2971b362b15af34006e6a11974088a46d42b903418eJohann{
2981b362b15af34006e6a11974088a46d42b903418eJohann
2991b362b15af34006e6a11974088a46d42b903418eJohann#if HAVE_DSPR2
3005ae7ac49f08a179e4f054d99fcfc9dce78d26e58hkuang#if CONFIG_VP8
3011b362b15af34006e6a11974088a46d42b903418eJohannvoid dsputil_static_init();
3021b362b15af34006e6a11974088a46d42b903418eJohanndsputil_static_init();
3031b362b15af34006e6a11974088a46d42b903418eJohann#endif
3045ae7ac49f08a179e4f054d99fcfc9dce78d26e58hkuang#if CONFIG_VP9
3055ae7ac49f08a179e4f054d99fcfc9dce78d26e58hkuangvoid vp9_dsputil_static_init();
3065ae7ac49f08a179e4f054d99fcfc9dce78d26e58hkuangvp9_dsputil_static_init();
3075ae7ac49f08a179e4f054d99fcfc9dce78d26e58hkuang#endif
3085ae7ac49f08a179e4f054d99fcfc9dce78d26e58hkuang#endif
3091b362b15af34006e6a11974088a46d42b903418eJohann}
3101b362b15af34006e6a11974088a46d42b903418eJohann#endif
3111b362b15af34006e6a11974088a46d42b903418eJohann#endif
312