vp8_rtcd_armv7-android-gcc.h 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  1. #ifndef VP8_RTCD_H_
  2. #define VP8_RTCD_H_
  3. #ifdef RTCD_C
  4. #define RTCD_EXTERN
  5. #else
  6. #define RTCD_EXTERN extern
  7. #endif
  8. /*
  9. * VP8
  10. */
  11. struct blockd;
  12. struct macroblockd;
  13. struct loop_filter_info;
  14. /* Encoder forward decls */
  15. struct block;
  16. struct macroblock;
  17. struct variance_vtable;
  18. union int_mv;
  19. struct yv12_buffer_config;
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. void vp8_bilinear_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  24. void vp8_bilinear_predict16x16_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  25. void vp8_bilinear_predict16x16_neon(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  26. RTCD_EXTERN void (*vp8_bilinear_predict16x16)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  27. void vp8_bilinear_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  28. void vp8_bilinear_predict4x4_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  29. #define vp8_bilinear_predict4x4 vp8_bilinear_predict4x4_armv6
  30. void vp8_bilinear_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  31. void vp8_bilinear_predict8x4_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  32. void vp8_bilinear_predict8x4_neon(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  33. RTCD_EXTERN void (*vp8_bilinear_predict8x4)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  34. void vp8_bilinear_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  35. void vp8_bilinear_predict8x8_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  36. void vp8_bilinear_predict8x8_neon(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  37. RTCD_EXTERN void (*vp8_bilinear_predict8x8)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  38. int vp8_block_error_c(short *coeff, short *dqcoeff);
  39. #define vp8_block_error vp8_block_error_c
  40. 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);
  41. void vp8_build_intra_predictors_mbuv_s_neon(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);
  42. RTCD_EXTERN void (*vp8_build_intra_predictors_mbuv_s)(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);
  43. 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);
  44. void vp8_build_intra_predictors_mby_s_neon(struct macroblockd *x, unsigned char * yabove_row, unsigned char * yleft, int left_stride, unsigned char * ypred_ptr, int y_stride);
  45. RTCD_EXTERN void (*vp8_build_intra_predictors_mby_s)(struct macroblockd *x, unsigned char * yabove_row, unsigned char * yleft, int left_stride, unsigned char * ypred_ptr, int y_stride);
  46. void vp8_clear_system_state_c();
  47. #define vp8_clear_system_state vp8_clear_system_state_c
  48. void vp8_copy_mem16x16_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
  49. void vp8_copy_mem16x16_v6(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
  50. void vp8_copy_mem16x16_neon(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
  51. RTCD_EXTERN void (*vp8_copy_mem16x16)(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
  52. void vp8_copy_mem8x4_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
  53. void vp8_copy_mem8x4_v6(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
  54. void vp8_copy_mem8x4_neon(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
  55. RTCD_EXTERN void (*vp8_copy_mem8x4)(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
  56. void vp8_copy_mem8x8_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
  57. void vp8_copy_mem8x8_v6(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
  58. void vp8_copy_mem8x8_neon(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
  59. RTCD_EXTERN void (*vp8_copy_mem8x8)(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
  60. void vp8_dc_only_idct_add_c(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride);
  61. void vp8_dc_only_idct_add_v6(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride);
  62. void vp8_dc_only_idct_add_neon(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride);
  63. RTCD_EXTERN void (*vp8_dc_only_idct_add)(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride);
  64. int vp8_denoiser_filter_c(unsigned char *mc_running_avg_y, int mc_avg_y_stride, unsigned char *running_avg_y, int avg_y_stride, unsigned char *sig, int sig_stride, unsigned int motion_magnitude, int increase_denoising);
  65. int vp8_denoiser_filter_neon(unsigned char *mc_running_avg_y, int mc_avg_y_stride, unsigned char *running_avg_y, int avg_y_stride, unsigned char *sig, int sig_stride, unsigned int motion_magnitude, int increase_denoising);
  66. RTCD_EXTERN int (*vp8_denoiser_filter)(unsigned char *mc_running_avg_y, int mc_avg_y_stride, unsigned char *running_avg_y, int avg_y_stride, unsigned char *sig, int sig_stride, unsigned int motion_magnitude, int increase_denoising);
  67. int vp8_denoiser_filter_uv_c(unsigned char *mc_running_avg, int mc_avg_stride, unsigned char *running_avg, int avg_stride, unsigned char *sig, int sig_stride, unsigned int motion_magnitude, int increase_denoising);
  68. int vp8_denoiser_filter_uv_neon(unsigned char *mc_running_avg, int mc_avg_stride, unsigned char *running_avg, int avg_stride, unsigned char *sig, int sig_stride, unsigned int motion_magnitude, int increase_denoising);
  69. RTCD_EXTERN int (*vp8_denoiser_filter_uv)(unsigned char *mc_running_avg, int mc_avg_stride, unsigned char *running_avg, int avg_stride, unsigned char *sig, int sig_stride, unsigned int motion_magnitude, int increase_denoising);
  70. void vp8_dequant_idct_add_c(short *input, short *dq, unsigned char *output, int stride);
  71. void vp8_dequant_idct_add_v6(short *input, short *dq, unsigned char *output, int stride);
  72. void vp8_dequant_idct_add_neon(short *input, short *dq, unsigned char *output, int stride);
  73. RTCD_EXTERN void (*vp8_dequant_idct_add)(short *input, short *dq, unsigned char *output, int stride);
  74. void vp8_dequant_idct_add_uv_block_c(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs);
  75. void vp8_dequant_idct_add_uv_block_v6(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs);
  76. void vp8_dequant_idct_add_uv_block_neon(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs);
  77. RTCD_EXTERN void (*vp8_dequant_idct_add_uv_block)(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs);
  78. void vp8_dequant_idct_add_y_block_c(short *q, short *dq, unsigned char *dst, int stride, char *eobs);
  79. void vp8_dequant_idct_add_y_block_v6(short *q, short *dq, unsigned char *dst, int stride, char *eobs);
  80. void vp8_dequant_idct_add_y_block_neon(short *q, short *dq, unsigned char *dst, int stride, char *eobs);
  81. RTCD_EXTERN void (*vp8_dequant_idct_add_y_block)(short *q, short *dq, unsigned char *dst, int stride, char *eobs);
  82. void vp8_dequantize_b_c(struct blockd*, short *dqc);
  83. void vp8_dequantize_b_v6(struct blockd*, short *dqc);
  84. void vp8_dequantize_b_neon(struct blockd*, short *dqc);
  85. RTCD_EXTERN void (*vp8_dequantize_b)(struct blockd*, short *dqc);
  86. 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);
  87. #define vp8_diamond_search_sad vp8_diamond_search_sad_c
  88. void vp8_fast_quantize_b_c(struct block *, struct blockd *);
  89. void vp8_fast_quantize_b_neon(struct block *, struct blockd *);
  90. RTCD_EXTERN void (*vp8_fast_quantize_b)(struct block *, struct blockd *);
  91. 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);
  92. #define vp8_full_search_sad vp8_full_search_sad_c
  93. 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);
  94. void vp8_intra4x4_predict_armv6(unsigned char *Above, unsigned char *yleft, int left_stride, int b_mode, unsigned char *dst, int dst_stride, unsigned char top_left);
  95. #define vp8_intra4x4_predict vp8_intra4x4_predict_armv6
  96. 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);
  97. void vp8_loop_filter_bh_armv6(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
  98. void vp8_loop_filter_bh_neon(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
  99. RTCD_EXTERN void (*vp8_loop_filter_bh)(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
  100. 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);
  101. void vp8_loop_filter_bv_armv6(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
  102. void vp8_loop_filter_bv_neon(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
  103. RTCD_EXTERN void (*vp8_loop_filter_bv)(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
  104. 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);
  105. void vp8_loop_filter_mbh_armv6(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
  106. void vp8_loop_filter_mbh_neon(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
  107. RTCD_EXTERN void (*vp8_loop_filter_mbh)(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
  108. 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);
  109. void vp8_loop_filter_mbv_armv6(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
  110. void vp8_loop_filter_mbv_neon(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
  111. RTCD_EXTERN void (*vp8_loop_filter_mbv)(unsigned char *y, unsigned char *u, unsigned char *v, int ystride, int uv_stride, struct loop_filter_info *lfi);
  112. void vp8_loop_filter_bhs_c(unsigned char *y, int ystride, const unsigned char *blimit);
  113. void vp8_loop_filter_bhs_armv6(unsigned char *y, int ystride, const unsigned char *blimit);
  114. void vp8_loop_filter_bhs_neon(unsigned char *y, int ystride, const unsigned char *blimit);
  115. RTCD_EXTERN void (*vp8_loop_filter_simple_bh)(unsigned char *y, int ystride, const unsigned char *blimit);
  116. void vp8_loop_filter_bvs_c(unsigned char *y, int ystride, const unsigned char *blimit);
  117. void vp8_loop_filter_bvs_armv6(unsigned char *y, int ystride, const unsigned char *blimit);
  118. void vp8_loop_filter_bvs_neon(unsigned char *y, int ystride, const unsigned char *blimit);
  119. RTCD_EXTERN void (*vp8_loop_filter_simple_bv)(unsigned char *y, int ystride, const unsigned char *blimit);
  120. void vp8_loop_filter_simple_horizontal_edge_c(unsigned char *y, int ystride, const unsigned char *blimit);
  121. void vp8_loop_filter_simple_horizontal_edge_armv6(unsigned char *y, int ystride, const unsigned char *blimit);
  122. void vp8_loop_filter_mbhs_neon(unsigned char *y, int ystride, const unsigned char *blimit);
  123. RTCD_EXTERN void (*vp8_loop_filter_simple_mbh)(unsigned char *y, int ystride, const unsigned char *blimit);
  124. void vp8_loop_filter_simple_vertical_edge_c(unsigned char *y, int ystride, const unsigned char *blimit);
  125. void vp8_loop_filter_simple_vertical_edge_armv6(unsigned char *y, int ystride, const unsigned char *blimit);
  126. void vp8_loop_filter_mbvs_neon(unsigned char *y, int ystride, const unsigned char *blimit);
  127. RTCD_EXTERN void (*vp8_loop_filter_simple_mbv)(unsigned char *y, int ystride, const unsigned char *blimit);
  128. int vp8_mbblock_error_c(struct macroblock *mb, int dc);
  129. #define vp8_mbblock_error vp8_mbblock_error_c
  130. int vp8_mbuverror_c(struct macroblock *mb);
  131. #define vp8_mbuverror vp8_mbuverror_c
  132. 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);
  133. #define vp8_refining_search_sad vp8_refining_search_sad_c
  134. void vp8_regular_quantize_b_c(struct block *, struct blockd *);
  135. #define vp8_regular_quantize_b vp8_regular_quantize_b_c
  136. void vp8_short_fdct4x4_c(short *input, short *output, int pitch);
  137. void vp8_short_fdct4x4_armv6(short *input, short *output, int pitch);
  138. void vp8_short_fdct4x4_neon(short *input, short *output, int pitch);
  139. RTCD_EXTERN void (*vp8_short_fdct4x4)(short *input, short *output, int pitch);
  140. void vp8_short_fdct8x4_c(short *input, short *output, int pitch);
  141. void vp8_short_fdct8x4_armv6(short *input, short *output, int pitch);
  142. void vp8_short_fdct8x4_neon(short *input, short *output, int pitch);
  143. RTCD_EXTERN void (*vp8_short_fdct8x4)(short *input, short *output, int pitch);
  144. void vp8_short_idct4x4llm_c(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride);
  145. void vp8_short_idct4x4llm_v6_dual(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride);
  146. void vp8_short_idct4x4llm_neon(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride);
  147. RTCD_EXTERN void (*vp8_short_idct4x4llm)(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride);
  148. void vp8_short_inv_walsh4x4_c(short *input, short *output);
  149. void vp8_short_inv_walsh4x4_v6(short *input, short *output);
  150. void vp8_short_inv_walsh4x4_neon(short *input, short *output);
  151. RTCD_EXTERN void (*vp8_short_inv_walsh4x4)(short *input, short *output);
  152. void vp8_short_inv_walsh4x4_1_c(short *input, short *output);
  153. #define vp8_short_inv_walsh4x4_1 vp8_short_inv_walsh4x4_1_c
  154. void vp8_short_walsh4x4_c(short *input, short *output, int pitch);
  155. void vp8_short_walsh4x4_armv6(short *input, short *output, int pitch);
  156. void vp8_short_walsh4x4_neon(short *input, short *output, int pitch);
  157. RTCD_EXTERN void (*vp8_short_walsh4x4)(short *input, short *output, int pitch);
  158. void vp8_sixtap_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  159. void vp8_sixtap_predict16x16_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  160. void vp8_sixtap_predict16x16_neon(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  161. RTCD_EXTERN void (*vp8_sixtap_predict16x16)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  162. void vp8_sixtap_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  163. void vp8_sixtap_predict4x4_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  164. #define vp8_sixtap_predict4x4 vp8_sixtap_predict4x4_armv6
  165. void vp8_sixtap_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  166. void vp8_sixtap_predict8x4_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  167. void vp8_sixtap_predict8x4_neon(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  168. RTCD_EXTERN void (*vp8_sixtap_predict8x4)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  169. void vp8_sixtap_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  170. void vp8_sixtap_predict8x8_armv6(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  171. void vp8_sixtap_predict8x8_neon(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  172. RTCD_EXTERN void (*vp8_sixtap_predict8x8)(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  173. 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);
  174. unsigned int vp8_sub_pixel_variance16x16_armv6(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
  175. unsigned int vp8_sub_pixel_variance16x16_neon(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
  176. RTCD_EXTERN unsigned int (*vp8_sub_pixel_variance16x16)(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
  177. 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);
  178. #define vp8_sub_pixel_variance16x8 vp8_sub_pixel_variance16x8_c
  179. 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);
  180. #define vp8_sub_pixel_variance4x4 vp8_sub_pixel_variance4x4_c
  181. 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);
  182. #define vp8_sub_pixel_variance8x16 vp8_sub_pixel_variance8x16_c
  183. 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);
  184. unsigned int vp8_sub_pixel_variance8x8_armv6(const unsigned char *src_ptr, int source_stride, int xoffset, int yoffset, const unsigned char *ref_ptr, int Refstride, unsigned int *sse);
  185. #define vp8_sub_pixel_variance8x8 vp8_sub_pixel_variance8x8_armv6
  186. void vp8_subtract_b_c(struct block *be, struct blockd *bd, int pitch);
  187. void vp8_subtract_b_neon(struct block *be, struct blockd *bd, int pitch);
  188. RTCD_EXTERN void (*vp8_subtract_b)(struct block *be, struct blockd *bd, int pitch);
  189. 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);
  190. void vp8_subtract_mbuv_neon(short *diff, unsigned char *usrc, unsigned char *vsrc, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride);
  191. RTCD_EXTERN void (*vp8_subtract_mbuv)(short *diff, unsigned char *usrc, unsigned char *vsrc, int src_stride, unsigned char *upred, unsigned char *vpred, int pred_stride);
  192. void vp8_subtract_mby_c(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride);
  193. void vp8_subtract_mby_neon(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride);
  194. RTCD_EXTERN void (*vp8_subtract_mby)(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride);
  195. 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);
  196. unsigned int vp8_variance_halfpixvar16x16_h_armv6(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
  197. unsigned int vp8_variance_halfpixvar16x16_h_neon(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
  198. RTCD_EXTERN unsigned int (*vp8_variance_halfpixvar16x16_h)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
  199. 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);
  200. unsigned int vp8_variance_halfpixvar16x16_hv_armv6(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
  201. unsigned int vp8_variance_halfpixvar16x16_hv_neon(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
  202. RTCD_EXTERN unsigned int (*vp8_variance_halfpixvar16x16_hv)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
  203. 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);
  204. unsigned int vp8_variance_halfpixvar16x16_v_armv6(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
  205. unsigned int vp8_variance_halfpixvar16x16_v_neon(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
  206. RTCD_EXTERN unsigned int (*vp8_variance_halfpixvar16x16_v)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
  207. void vp8_rtcd(void);
  208. #include "vpx_config.h"
  209. #ifdef RTCD_C
  210. #include "vpx_ports/arm.h"
  211. static void setup_rtcd_internal(void)
  212. {
  213. int flags = arm_cpu_caps();
  214. (void)flags;
  215. vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_armv6;
  216. if (flags & HAS_NEON) vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_neon;
  217. vp8_bilinear_predict8x4 = vp8_bilinear_predict8x4_armv6;
  218. if (flags & HAS_NEON) vp8_bilinear_predict8x4 = vp8_bilinear_predict8x4_neon;
  219. vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_armv6;
  220. if (flags & HAS_NEON) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_neon;
  221. vp8_build_intra_predictors_mbuv_s = vp8_build_intra_predictors_mbuv_s_c;
  222. if (flags & HAS_NEON) vp8_build_intra_predictors_mbuv_s = vp8_build_intra_predictors_mbuv_s_neon;
  223. vp8_build_intra_predictors_mby_s = vp8_build_intra_predictors_mby_s_c;
  224. if (flags & HAS_NEON) vp8_build_intra_predictors_mby_s = vp8_build_intra_predictors_mby_s_neon;
  225. vp8_copy_mem16x16 = vp8_copy_mem16x16_v6;
  226. if (flags & HAS_NEON) vp8_copy_mem16x16 = vp8_copy_mem16x16_neon;
  227. vp8_copy_mem8x4 = vp8_copy_mem8x4_v6;
  228. if (flags & HAS_NEON) vp8_copy_mem8x4 = vp8_copy_mem8x4_neon;
  229. vp8_copy_mem8x8 = vp8_copy_mem8x8_v6;
  230. if (flags & HAS_NEON) vp8_copy_mem8x8 = vp8_copy_mem8x8_neon;
  231. vp8_dc_only_idct_add = vp8_dc_only_idct_add_v6;
  232. if (flags & HAS_NEON) vp8_dc_only_idct_add = vp8_dc_only_idct_add_neon;
  233. vp8_denoiser_filter = vp8_denoiser_filter_c;
  234. if (flags & HAS_NEON) vp8_denoiser_filter = vp8_denoiser_filter_neon;
  235. vp8_denoiser_filter_uv = vp8_denoiser_filter_uv_c;
  236. if (flags & HAS_NEON) vp8_denoiser_filter_uv = vp8_denoiser_filter_uv_neon;
  237. vp8_dequant_idct_add = vp8_dequant_idct_add_v6;
  238. if (flags & HAS_NEON) vp8_dequant_idct_add = vp8_dequant_idct_add_neon;
  239. vp8_dequant_idct_add_uv_block = vp8_dequant_idct_add_uv_block_v6;
  240. if (flags & HAS_NEON) vp8_dequant_idct_add_uv_block = vp8_dequant_idct_add_uv_block_neon;
  241. vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_block_v6;
  242. if (flags & HAS_NEON) vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_block_neon;
  243. vp8_dequantize_b = vp8_dequantize_b_v6;
  244. if (flags & HAS_NEON) vp8_dequantize_b = vp8_dequantize_b_neon;
  245. vp8_fast_quantize_b = vp8_fast_quantize_b_c;
  246. if (flags & HAS_NEON) vp8_fast_quantize_b = vp8_fast_quantize_b_neon;
  247. vp8_loop_filter_bh = vp8_loop_filter_bh_armv6;
  248. if (flags & HAS_NEON) vp8_loop_filter_bh = vp8_loop_filter_bh_neon;
  249. vp8_loop_filter_bv = vp8_loop_filter_bv_armv6;
  250. if (flags & HAS_NEON) vp8_loop_filter_bv = vp8_loop_filter_bv_neon;
  251. vp8_loop_filter_mbh = vp8_loop_filter_mbh_armv6;
  252. if (flags & HAS_NEON) vp8_loop_filter_mbh = vp8_loop_filter_mbh_neon;
  253. vp8_loop_filter_mbv = vp8_loop_filter_mbv_armv6;
  254. if (flags & HAS_NEON) vp8_loop_filter_mbv = vp8_loop_filter_mbv_neon;
  255. vp8_loop_filter_simple_bh = vp8_loop_filter_bhs_armv6;
  256. if (flags & HAS_NEON) vp8_loop_filter_simple_bh = vp8_loop_filter_bhs_neon;
  257. vp8_loop_filter_simple_bv = vp8_loop_filter_bvs_armv6;
  258. if (flags & HAS_NEON) vp8_loop_filter_simple_bv = vp8_loop_filter_bvs_neon;
  259. vp8_loop_filter_simple_mbh = vp8_loop_filter_simple_horizontal_edge_armv6;
  260. if (flags & HAS_NEON) vp8_loop_filter_simple_mbh = vp8_loop_filter_mbhs_neon;
  261. vp8_loop_filter_simple_mbv = vp8_loop_filter_simple_vertical_edge_armv6;
  262. if (flags & HAS_NEON) vp8_loop_filter_simple_mbv = vp8_loop_filter_mbvs_neon;
  263. vp8_short_fdct4x4 = vp8_short_fdct4x4_armv6;
  264. if (flags & HAS_NEON) vp8_short_fdct4x4 = vp8_short_fdct4x4_neon;
  265. vp8_short_fdct8x4 = vp8_short_fdct8x4_armv6;
  266. if (flags & HAS_NEON) vp8_short_fdct8x4 = vp8_short_fdct8x4_neon;
  267. vp8_short_idct4x4llm = vp8_short_idct4x4llm_v6_dual;
  268. if (flags & HAS_NEON) vp8_short_idct4x4llm = vp8_short_idct4x4llm_neon;
  269. vp8_short_inv_walsh4x4 = vp8_short_inv_walsh4x4_v6;
  270. if (flags & HAS_NEON) vp8_short_inv_walsh4x4 = vp8_short_inv_walsh4x4_neon;
  271. vp8_short_walsh4x4 = vp8_short_walsh4x4_armv6;
  272. if (flags & HAS_NEON) vp8_short_walsh4x4 = vp8_short_walsh4x4_neon;
  273. vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_armv6;
  274. if (flags & HAS_NEON) vp8_sixtap_predict16x16 = vp8_sixtap_predict16x16_neon;
  275. vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_armv6;
  276. if (flags & HAS_NEON) vp8_sixtap_predict8x4 = vp8_sixtap_predict8x4_neon;
  277. vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_armv6;
  278. if (flags & HAS_NEON) vp8_sixtap_predict8x8 = vp8_sixtap_predict8x8_neon;
  279. vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance16x16_armv6;
  280. if (flags & HAS_NEON) vp8_sub_pixel_variance16x16 = vp8_sub_pixel_variance16x16_neon;
  281. vp8_subtract_b = vp8_subtract_b_c;
  282. if (flags & HAS_NEON) vp8_subtract_b = vp8_subtract_b_neon;
  283. vp8_subtract_mbuv = vp8_subtract_mbuv_c;
  284. if (flags & HAS_NEON) vp8_subtract_mbuv = vp8_subtract_mbuv_neon;
  285. vp8_subtract_mby = vp8_subtract_mby_c;
  286. if (flags & HAS_NEON) vp8_subtract_mby = vp8_subtract_mby_neon;
  287. vp8_variance_halfpixvar16x16_h = vp8_variance_halfpixvar16x16_h_armv6;
  288. if (flags & HAS_NEON) vp8_variance_halfpixvar16x16_h = vp8_variance_halfpixvar16x16_h_neon;
  289. vp8_variance_halfpixvar16x16_hv = vp8_variance_halfpixvar16x16_hv_armv6;
  290. if (flags & HAS_NEON) vp8_variance_halfpixvar16x16_hv = vp8_variance_halfpixvar16x16_hv_neon;
  291. vp8_variance_halfpixvar16x16_v = vp8_variance_halfpixvar16x16_v_armv6;
  292. if (flags & HAS_NEON) vp8_variance_halfpixvar16x16_v = vp8_variance_halfpixvar16x16_v_neon;
  293. }
  294. #endif
  295. #ifdef __cplusplus
  296. } // extern "C"
  297. #endif
  298. #endif