vp9_rtcd_generic-gnu.h 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488
  1. #ifndef VP9_RTCD_H_
  2. #define VP9_RTCD_H_
  3. #ifdef RTCD_C
  4. #define RTCD_EXTERN
  5. #else
  6. #define RTCD_EXTERN extern
  7. #endif
  8. /*
  9. * VP9
  10. */
  11. #include "vpx/vpx_integer.h"
  12. #include "vp9/common/vp9_common.h"
  13. #include "vp9/common/vp9_enums.h"
  14. struct macroblockd;
  15. /* Encoder forward decls */
  16. struct macroblock;
  17. struct vp9_variance_vtable;
  18. struct search_site_config;
  19. struct mv;
  20. union int_mv;
  21. struct yv12_buffer_config;
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. unsigned int vp9_avg_4x4_c(const uint8_t *, int p);
  26. #define vp9_avg_4x4 vp9_avg_4x4_c
  27. unsigned int vp9_avg_8x8_c(const uint8_t *, int p);
  28. #define vp9_avg_8x8 vp9_avg_8x8_c
  29. int64_t vp9_block_error_c(const tran_low_t *coeff, const tran_low_t *dqcoeff, intptr_t block_size, int64_t *ssz);
  30. #define vp9_block_error vp9_block_error_c
  31. int64_t vp9_block_error_fp_c(const int16_t *coeff, const int16_t *dqcoeff, int block_size);
  32. #define vp9_block_error_fp vp9_block_error_fp_c
  33. void vp9_convolve8_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h);
  34. #define vp9_convolve8 vp9_convolve8_c
  35. void vp9_convolve8_avg_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h);
  36. #define vp9_convolve8_avg vp9_convolve8_avg_c
  37. void vp9_convolve8_avg_horiz_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h);
  38. #define vp9_convolve8_avg_horiz vp9_convolve8_avg_horiz_c
  39. void vp9_convolve8_avg_vert_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h);
  40. #define vp9_convolve8_avg_vert vp9_convolve8_avg_vert_c
  41. void vp9_convolve8_horiz_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h);
  42. #define vp9_convolve8_horiz vp9_convolve8_horiz_c
  43. void vp9_convolve8_vert_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h);
  44. #define vp9_convolve8_vert vp9_convolve8_vert_c
  45. void vp9_convolve_avg_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h);
  46. #define vp9_convolve_avg vp9_convolve_avg_c
  47. void vp9_convolve_copy_c(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *filter_x, int x_step_q4, const int16_t *filter_y, int y_step_q4, int w, int h);
  48. #define vp9_convolve_copy vp9_convolve_copy_c
  49. void vp9_d117_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  50. #define vp9_d117_predictor_16x16 vp9_d117_predictor_16x16_c
  51. void vp9_d117_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  52. #define vp9_d117_predictor_32x32 vp9_d117_predictor_32x32_c
  53. void vp9_d117_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  54. #define vp9_d117_predictor_4x4 vp9_d117_predictor_4x4_c
  55. void vp9_d117_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  56. #define vp9_d117_predictor_8x8 vp9_d117_predictor_8x8_c
  57. void vp9_d135_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  58. #define vp9_d135_predictor_16x16 vp9_d135_predictor_16x16_c
  59. void vp9_d135_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  60. #define vp9_d135_predictor_32x32 vp9_d135_predictor_32x32_c
  61. void vp9_d135_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  62. #define vp9_d135_predictor_4x4 vp9_d135_predictor_4x4_c
  63. void vp9_d135_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  64. #define vp9_d135_predictor_8x8 vp9_d135_predictor_8x8_c
  65. void vp9_d153_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  66. #define vp9_d153_predictor_16x16 vp9_d153_predictor_16x16_c
  67. void vp9_d153_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  68. #define vp9_d153_predictor_32x32 vp9_d153_predictor_32x32_c
  69. void vp9_d153_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  70. #define vp9_d153_predictor_4x4 vp9_d153_predictor_4x4_c
  71. void vp9_d153_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  72. #define vp9_d153_predictor_8x8 vp9_d153_predictor_8x8_c
  73. void vp9_d207_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  74. #define vp9_d207_predictor_16x16 vp9_d207_predictor_16x16_c
  75. void vp9_d207_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  76. #define vp9_d207_predictor_32x32 vp9_d207_predictor_32x32_c
  77. void vp9_d207_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  78. #define vp9_d207_predictor_4x4 vp9_d207_predictor_4x4_c
  79. void vp9_d207_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  80. #define vp9_d207_predictor_8x8 vp9_d207_predictor_8x8_c
  81. void vp9_d45_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  82. #define vp9_d45_predictor_16x16 vp9_d45_predictor_16x16_c
  83. void vp9_d45_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  84. #define vp9_d45_predictor_32x32 vp9_d45_predictor_32x32_c
  85. void vp9_d45_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  86. #define vp9_d45_predictor_4x4 vp9_d45_predictor_4x4_c
  87. void vp9_d45_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  88. #define vp9_d45_predictor_8x8 vp9_d45_predictor_8x8_c
  89. void vp9_d63_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  90. #define vp9_d63_predictor_16x16 vp9_d63_predictor_16x16_c
  91. void vp9_d63_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  92. #define vp9_d63_predictor_32x32 vp9_d63_predictor_32x32_c
  93. void vp9_d63_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  94. #define vp9_d63_predictor_4x4 vp9_d63_predictor_4x4_c
  95. void vp9_d63_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  96. #define vp9_d63_predictor_8x8 vp9_d63_predictor_8x8_c
  97. void vp9_dc_128_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  98. #define vp9_dc_128_predictor_16x16 vp9_dc_128_predictor_16x16_c
  99. void vp9_dc_128_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  100. #define vp9_dc_128_predictor_32x32 vp9_dc_128_predictor_32x32_c
  101. void vp9_dc_128_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  102. #define vp9_dc_128_predictor_4x4 vp9_dc_128_predictor_4x4_c
  103. void vp9_dc_128_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  104. #define vp9_dc_128_predictor_8x8 vp9_dc_128_predictor_8x8_c
  105. void vp9_dc_left_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  106. #define vp9_dc_left_predictor_16x16 vp9_dc_left_predictor_16x16_c
  107. void vp9_dc_left_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  108. #define vp9_dc_left_predictor_32x32 vp9_dc_left_predictor_32x32_c
  109. void vp9_dc_left_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  110. #define vp9_dc_left_predictor_4x4 vp9_dc_left_predictor_4x4_c
  111. void vp9_dc_left_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  112. #define vp9_dc_left_predictor_8x8 vp9_dc_left_predictor_8x8_c
  113. void vp9_dc_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  114. #define vp9_dc_predictor_16x16 vp9_dc_predictor_16x16_c
  115. void vp9_dc_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  116. #define vp9_dc_predictor_32x32 vp9_dc_predictor_32x32_c
  117. void vp9_dc_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  118. #define vp9_dc_predictor_4x4 vp9_dc_predictor_4x4_c
  119. void vp9_dc_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  120. #define vp9_dc_predictor_8x8 vp9_dc_predictor_8x8_c
  121. void vp9_dc_top_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  122. #define vp9_dc_top_predictor_16x16 vp9_dc_top_predictor_16x16_c
  123. void vp9_dc_top_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  124. #define vp9_dc_top_predictor_32x32 vp9_dc_top_predictor_32x32_c
  125. void vp9_dc_top_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  126. #define vp9_dc_top_predictor_4x4 vp9_dc_top_predictor_4x4_c
  127. void vp9_dc_top_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  128. #define vp9_dc_top_predictor_8x8 vp9_dc_top_predictor_8x8_c
  129. int vp9_diamond_search_sad_c(const struct macroblock *x, const struct search_site_config *cfg, struct mv *ref_mv, struct mv *best_mv, int search_param, int sad_per_bit, int *num00, const struct vp9_variance_vtable *fn_ptr, const struct mv *center_mv);
  130. #define vp9_diamond_search_sad vp9_diamond_search_sad_c
  131. void vp9_fdct16x16_c(const int16_t *input, tran_low_t *output, int stride);
  132. #define vp9_fdct16x16 vp9_fdct16x16_c
  133. void vp9_fdct16x16_1_c(const int16_t *input, tran_low_t *output, int stride);
  134. #define vp9_fdct16x16_1 vp9_fdct16x16_1_c
  135. void vp9_fdct32x32_c(const int16_t *input, tran_low_t *output, int stride);
  136. #define vp9_fdct32x32 vp9_fdct32x32_c
  137. void vp9_fdct32x32_1_c(const int16_t *input, tran_low_t *output, int stride);
  138. #define vp9_fdct32x32_1 vp9_fdct32x32_1_c
  139. void vp9_fdct32x32_rd_c(const int16_t *input, tran_low_t *output, int stride);
  140. #define vp9_fdct32x32_rd vp9_fdct32x32_rd_c
  141. void vp9_fdct4x4_c(const int16_t *input, tran_low_t *output, int stride);
  142. #define vp9_fdct4x4 vp9_fdct4x4_c
  143. void vp9_fdct4x4_1_c(const int16_t *input, tran_low_t *output, int stride);
  144. #define vp9_fdct4x4_1 vp9_fdct4x4_1_c
  145. void vp9_fdct8x8_c(const int16_t *input, tran_low_t *output, int stride);
  146. #define vp9_fdct8x8 vp9_fdct8x8_c
  147. void vp9_fdct8x8_1_c(const int16_t *input, tran_low_t *output, int stride);
  148. #define vp9_fdct8x8_1 vp9_fdct8x8_1_c
  149. void vp9_fdct8x8_quant_c(const int16_t *input, int stride, tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan);
  150. #define vp9_fdct8x8_quant vp9_fdct8x8_quant_c
  151. void vp9_fht16x16_c(const int16_t *input, tran_low_t *output, int stride, int tx_type);
  152. #define vp9_fht16x16 vp9_fht16x16_c
  153. void vp9_fht4x4_c(const int16_t *input, tran_low_t *output, int stride, int tx_type);
  154. #define vp9_fht4x4 vp9_fht4x4_c
  155. void vp9_fht8x8_c(const int16_t *input, tran_low_t *output, int stride, int tx_type);
  156. #define vp9_fht8x8 vp9_fht8x8_c
  157. int vp9_full_range_search_c(const struct macroblock *x, const struct search_site_config *cfg, struct mv *ref_mv, struct mv *best_mv, int search_param, int sad_per_bit, int *num00, const struct vp9_variance_vtable *fn_ptr, const struct mv *center_mv);
  158. #define vp9_full_range_search vp9_full_range_search_c
  159. int vp9_full_search_sad_c(const struct macroblock *x, const struct mv *ref_mv, int sad_per_bit, int distance, const struct vp9_variance_vtable *fn_ptr, const struct mv *center_mv, struct mv *best_mv);
  160. #define vp9_full_search_sad vp9_full_search_sad_c
  161. void vp9_fwht4x4_c(const int16_t *input, tran_low_t *output, int stride);
  162. #define vp9_fwht4x4 vp9_fwht4x4_c
  163. void vp9_h_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  164. #define vp9_h_predictor_16x16 vp9_h_predictor_16x16_c
  165. void vp9_h_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  166. #define vp9_h_predictor_32x32 vp9_h_predictor_32x32_c
  167. void vp9_h_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  168. #define vp9_h_predictor_4x4 vp9_h_predictor_4x4_c
  169. void vp9_h_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  170. #define vp9_h_predictor_8x8 vp9_h_predictor_8x8_c
  171. void vp9_hadamard_16x16_c(int16_t const *src_diff, int src_stride, int16_t *coeff);
  172. #define vp9_hadamard_16x16 vp9_hadamard_16x16_c
  173. void vp9_hadamard_8x8_c(int16_t const *src_diff, int src_stride, int16_t *coeff);
  174. #define vp9_hadamard_8x8 vp9_hadamard_8x8_c
  175. void vp9_idct16x16_10_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride);
  176. #define vp9_idct16x16_10_add vp9_idct16x16_10_add_c
  177. void vp9_idct16x16_1_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride);
  178. #define vp9_idct16x16_1_add vp9_idct16x16_1_add_c
  179. void vp9_idct16x16_256_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride);
  180. #define vp9_idct16x16_256_add vp9_idct16x16_256_add_c
  181. void vp9_idct32x32_1024_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride);
  182. #define vp9_idct32x32_1024_add vp9_idct32x32_1024_add_c
  183. void vp9_idct32x32_1_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride);
  184. #define vp9_idct32x32_1_add vp9_idct32x32_1_add_c
  185. void vp9_idct32x32_34_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride);
  186. #define vp9_idct32x32_34_add vp9_idct32x32_34_add_c
  187. void vp9_idct4x4_16_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride);
  188. #define vp9_idct4x4_16_add vp9_idct4x4_16_add_c
  189. void vp9_idct4x4_1_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride);
  190. #define vp9_idct4x4_1_add vp9_idct4x4_1_add_c
  191. void vp9_idct8x8_12_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride);
  192. #define vp9_idct8x8_12_add vp9_idct8x8_12_add_c
  193. void vp9_idct8x8_1_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride);
  194. #define vp9_idct8x8_1_add vp9_idct8x8_1_add_c
  195. void vp9_idct8x8_64_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride);
  196. #define vp9_idct8x8_64_add vp9_idct8x8_64_add_c
  197. void vp9_iht16x16_256_add_c(const tran_low_t *input, uint8_t *output, int pitch, int tx_type);
  198. #define vp9_iht16x16_256_add vp9_iht16x16_256_add_c
  199. void vp9_iht4x4_16_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride, int tx_type);
  200. #define vp9_iht4x4_16_add vp9_iht4x4_16_add_c
  201. void vp9_iht8x8_64_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride, int tx_type);
  202. #define vp9_iht8x8_64_add vp9_iht8x8_64_add_c
  203. int16_t vp9_int_pro_col_c(uint8_t const *ref, const int width);
  204. #define vp9_int_pro_col vp9_int_pro_col_c
  205. void vp9_int_pro_row_c(int16_t *hbuf, uint8_t const *ref, const int ref_stride, const int height);
  206. #define vp9_int_pro_row vp9_int_pro_row_c
  207. void vp9_iwht4x4_16_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride);
  208. #define vp9_iwht4x4_16_add vp9_iwht4x4_16_add_c
  209. void vp9_iwht4x4_1_add_c(const tran_low_t *input, uint8_t *dest, int dest_stride);
  210. #define vp9_iwht4x4_1_add vp9_iwht4x4_1_add_c
  211. void vp9_lpf_horizontal_16_c(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int count);
  212. #define vp9_lpf_horizontal_16 vp9_lpf_horizontal_16_c
  213. void vp9_lpf_horizontal_4_c(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int count);
  214. #define vp9_lpf_horizontal_4 vp9_lpf_horizontal_4_c
  215. void vp9_lpf_horizontal_4_dual_c(uint8_t *s, int pitch, const uint8_t *blimit0, const uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const uint8_t *limit1, const uint8_t *thresh1);
  216. #define vp9_lpf_horizontal_4_dual vp9_lpf_horizontal_4_dual_c
  217. void vp9_lpf_horizontal_8_c(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int count);
  218. #define vp9_lpf_horizontal_8 vp9_lpf_horizontal_8_c
  219. void vp9_lpf_horizontal_8_dual_c(uint8_t *s, int pitch, const uint8_t *blimit0, const uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const uint8_t *limit1, const uint8_t *thresh1);
  220. #define vp9_lpf_horizontal_8_dual vp9_lpf_horizontal_8_dual_c
  221. void vp9_lpf_vertical_16_c(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh);
  222. #define vp9_lpf_vertical_16 vp9_lpf_vertical_16_c
  223. void vp9_lpf_vertical_16_dual_c(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh);
  224. #define vp9_lpf_vertical_16_dual vp9_lpf_vertical_16_dual_c
  225. void vp9_lpf_vertical_4_c(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int count);
  226. #define vp9_lpf_vertical_4 vp9_lpf_vertical_4_c
  227. void vp9_lpf_vertical_4_dual_c(uint8_t *s, int pitch, const uint8_t *blimit0, const uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const uint8_t *limit1, const uint8_t *thresh1);
  228. #define vp9_lpf_vertical_4_dual vp9_lpf_vertical_4_dual_c
  229. void vp9_lpf_vertical_8_c(uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int count);
  230. #define vp9_lpf_vertical_8 vp9_lpf_vertical_8_c
  231. void vp9_lpf_vertical_8_dual_c(uint8_t *s, int pitch, const uint8_t *blimit0, const uint8_t *limit0, const uint8_t *thresh0, const uint8_t *blimit1, const uint8_t *limit1, const uint8_t *thresh1);
  232. #define vp9_lpf_vertical_8_dual vp9_lpf_vertical_8_dual_c
  233. void vp9_minmax_8x8_c(const uint8_t *s, int p, const uint8_t *d, int dp, int *min, int *max);
  234. #define vp9_minmax_8x8 vp9_minmax_8x8_c
  235. void vp9_quantize_b_c(const tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan);
  236. #define vp9_quantize_b vp9_quantize_b_c
  237. void vp9_quantize_b_32x32_c(const tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan);
  238. #define vp9_quantize_b_32x32 vp9_quantize_b_32x32_c
  239. void vp9_quantize_fp_c(const tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan);
  240. #define vp9_quantize_fp vp9_quantize_fp_c
  241. void vp9_quantize_fp_32x32_c(const tran_low_t *coeff_ptr, intptr_t n_coeffs, int skip_block, const int16_t *zbin_ptr, const int16_t *round_ptr, const int16_t *quant_ptr, const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan);
  242. #define vp9_quantize_fp_32x32 vp9_quantize_fp_32x32_c
  243. int16_t vp9_satd_c(const int16_t *coeff, int length);
  244. #define vp9_satd vp9_satd_c
  245. unsigned int vp9_sub_pixel_avg_variance16x16_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred);
  246. #define vp9_sub_pixel_avg_variance16x16 vp9_sub_pixel_avg_variance16x16_c
  247. unsigned int vp9_sub_pixel_avg_variance16x32_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred);
  248. #define vp9_sub_pixel_avg_variance16x32 vp9_sub_pixel_avg_variance16x32_c
  249. unsigned int vp9_sub_pixel_avg_variance16x8_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred);
  250. #define vp9_sub_pixel_avg_variance16x8 vp9_sub_pixel_avg_variance16x8_c
  251. unsigned int vp9_sub_pixel_avg_variance32x16_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred);
  252. #define vp9_sub_pixel_avg_variance32x16 vp9_sub_pixel_avg_variance32x16_c
  253. unsigned int vp9_sub_pixel_avg_variance32x32_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred);
  254. #define vp9_sub_pixel_avg_variance32x32 vp9_sub_pixel_avg_variance32x32_c
  255. unsigned int vp9_sub_pixel_avg_variance32x64_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred);
  256. #define vp9_sub_pixel_avg_variance32x64 vp9_sub_pixel_avg_variance32x64_c
  257. unsigned int vp9_sub_pixel_avg_variance4x4_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred);
  258. #define vp9_sub_pixel_avg_variance4x4 vp9_sub_pixel_avg_variance4x4_c
  259. unsigned int vp9_sub_pixel_avg_variance4x8_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred);
  260. #define vp9_sub_pixel_avg_variance4x8 vp9_sub_pixel_avg_variance4x8_c
  261. unsigned int vp9_sub_pixel_avg_variance64x32_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred);
  262. #define vp9_sub_pixel_avg_variance64x32 vp9_sub_pixel_avg_variance64x32_c
  263. unsigned int vp9_sub_pixel_avg_variance64x64_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred);
  264. #define vp9_sub_pixel_avg_variance64x64 vp9_sub_pixel_avg_variance64x64_c
  265. unsigned int vp9_sub_pixel_avg_variance8x16_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred);
  266. #define vp9_sub_pixel_avg_variance8x16 vp9_sub_pixel_avg_variance8x16_c
  267. unsigned int vp9_sub_pixel_avg_variance8x4_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred);
  268. #define vp9_sub_pixel_avg_variance8x4 vp9_sub_pixel_avg_variance8x4_c
  269. unsigned int vp9_sub_pixel_avg_variance8x8_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse, const uint8_t *second_pred);
  270. #define vp9_sub_pixel_avg_variance8x8 vp9_sub_pixel_avg_variance8x8_c
  271. unsigned int vp9_sub_pixel_variance16x16_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
  272. #define vp9_sub_pixel_variance16x16 vp9_sub_pixel_variance16x16_c
  273. unsigned int vp9_sub_pixel_variance16x32_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
  274. #define vp9_sub_pixel_variance16x32 vp9_sub_pixel_variance16x32_c
  275. unsigned int vp9_sub_pixel_variance16x8_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
  276. #define vp9_sub_pixel_variance16x8 vp9_sub_pixel_variance16x8_c
  277. unsigned int vp9_sub_pixel_variance32x16_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
  278. #define vp9_sub_pixel_variance32x16 vp9_sub_pixel_variance32x16_c
  279. unsigned int vp9_sub_pixel_variance32x32_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
  280. #define vp9_sub_pixel_variance32x32 vp9_sub_pixel_variance32x32_c
  281. unsigned int vp9_sub_pixel_variance32x64_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
  282. #define vp9_sub_pixel_variance32x64 vp9_sub_pixel_variance32x64_c
  283. unsigned int vp9_sub_pixel_variance4x4_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
  284. #define vp9_sub_pixel_variance4x4 vp9_sub_pixel_variance4x4_c
  285. unsigned int vp9_sub_pixel_variance4x8_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
  286. #define vp9_sub_pixel_variance4x8 vp9_sub_pixel_variance4x8_c
  287. unsigned int vp9_sub_pixel_variance64x32_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
  288. #define vp9_sub_pixel_variance64x32 vp9_sub_pixel_variance64x32_c
  289. unsigned int vp9_sub_pixel_variance64x64_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
  290. #define vp9_sub_pixel_variance64x64 vp9_sub_pixel_variance64x64_c
  291. unsigned int vp9_sub_pixel_variance8x16_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
  292. #define vp9_sub_pixel_variance8x16 vp9_sub_pixel_variance8x16_c
  293. unsigned int vp9_sub_pixel_variance8x4_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
  294. #define vp9_sub_pixel_variance8x4 vp9_sub_pixel_variance8x4_c
  295. unsigned int vp9_sub_pixel_variance8x8_c(const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
  296. #define vp9_sub_pixel_variance8x8 vp9_sub_pixel_variance8x8_c
  297. void vp9_subtract_block_c(int rows, int cols, int16_t *diff_ptr, ptrdiff_t diff_stride, const uint8_t *src_ptr, ptrdiff_t src_stride, const uint8_t *pred_ptr, ptrdiff_t pred_stride);
  298. #define vp9_subtract_block vp9_subtract_block_c
  299. void vp9_temporal_filter_apply_c(uint8_t *frame1, unsigned int stride, uint8_t *frame2, unsigned int block_width, unsigned int block_height, int strength, int filter_weight, unsigned int *accumulator, uint16_t *count);
  300. #define vp9_temporal_filter_apply vp9_temporal_filter_apply_c
  301. void vp9_tm_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  302. #define vp9_tm_predictor_16x16 vp9_tm_predictor_16x16_c
  303. void vp9_tm_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  304. #define vp9_tm_predictor_32x32 vp9_tm_predictor_32x32_c
  305. void vp9_tm_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  306. #define vp9_tm_predictor_4x4 vp9_tm_predictor_4x4_c
  307. void vp9_tm_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  308. #define vp9_tm_predictor_8x8 vp9_tm_predictor_8x8_c
  309. void vp9_v_predictor_16x16_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  310. #define vp9_v_predictor_16x16 vp9_v_predictor_16x16_c
  311. void vp9_v_predictor_32x32_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  312. #define vp9_v_predictor_32x32 vp9_v_predictor_32x32_c
  313. void vp9_v_predictor_4x4_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  314. #define vp9_v_predictor_4x4 vp9_v_predictor_4x4_c
  315. void vp9_v_predictor_8x8_c(uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left);
  316. #define vp9_v_predictor_8x8 vp9_v_predictor_8x8_c
  317. int vp9_vector_var_c(int16_t const *ref, int16_t const *src, const int bwl);
  318. #define vp9_vector_var vp9_vector_var_c
  319. void vp9_rtcd(void);
  320. #include "vpx_config.h"
  321. #ifdef RTCD_C
  322. static void setup_rtcd_internal(void)
  323. {
  324. }
  325. #endif
  326. #ifdef __cplusplus
  327. } // extern "C"
  328. #endif
  329. #endif