vp8_rtcd_generic-gnu.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  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. #define vp8_bilinear_predict16x16 vp8_bilinear_predict16x16_c
  25. void vp8_bilinear_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  26. #define vp8_bilinear_predict4x4 vp8_bilinear_predict4x4_c
  27. void vp8_bilinear_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  28. #define vp8_bilinear_predict8x4 vp8_bilinear_predict8x4_c
  29. void vp8_bilinear_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  30. #define vp8_bilinear_predict8x8 vp8_bilinear_predict8x8_c
  31. int vp8_block_error_c(short *coeff, short *dqcoeff);
  32. #define vp8_block_error vp8_block_error_c
  33. 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);
  34. #define vp8_build_intra_predictors_mbuv_s vp8_build_intra_predictors_mbuv_s_c
  35. 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);
  36. #define vp8_build_intra_predictors_mby_s vp8_build_intra_predictors_mby_s_c
  37. void vp8_clear_system_state_c();
  38. #define vp8_clear_system_state vp8_clear_system_state_c
  39. void vp8_copy_mem16x16_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
  40. #define vp8_copy_mem16x16 vp8_copy_mem16x16_c
  41. void vp8_copy_mem8x4_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
  42. #define vp8_copy_mem8x4 vp8_copy_mem8x4_c
  43. void vp8_copy_mem8x8_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
  44. #define vp8_copy_mem8x8 vp8_copy_mem8x8_c
  45. void vp8_dc_only_idct_add_c(short input, unsigned char *pred, int pred_stride, unsigned char *dst, int dst_stride);
  46. #define vp8_dc_only_idct_add vp8_dc_only_idct_add_c
  47. 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);
  48. #define vp8_denoiser_filter vp8_denoiser_filter_c
  49. 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);
  50. #define vp8_denoiser_filter_uv vp8_denoiser_filter_uv_c
  51. void vp8_dequant_idct_add_c(short *input, short *dq, unsigned char *output, int stride);
  52. #define vp8_dequant_idct_add vp8_dequant_idct_add_c
  53. void vp8_dequant_idct_add_uv_block_c(short *q, short *dq, unsigned char *dst_u, unsigned char *dst_v, int stride, char *eobs);
  54. #define vp8_dequant_idct_add_uv_block vp8_dequant_idct_add_uv_block_c
  55. void vp8_dequant_idct_add_y_block_c(short *q, short *dq, unsigned char *dst, int stride, char *eobs);
  56. #define vp8_dequant_idct_add_y_block vp8_dequant_idct_add_y_block_c
  57. void vp8_dequantize_b_c(struct blockd*, short *dqc);
  58. #define vp8_dequantize_b vp8_dequantize_b_c
  59. 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);
  60. #define vp8_diamond_search_sad vp8_diamond_search_sad_c
  61. void vp8_fast_quantize_b_c(struct block *, struct blockd *);
  62. #define vp8_fast_quantize_b vp8_fast_quantize_b_c
  63. 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);
  64. #define vp8_full_search_sad vp8_full_search_sad_c
  65. 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);
  66. #define vp8_intra4x4_predict vp8_intra4x4_predict_c
  67. 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);
  68. #define vp8_loop_filter_bh vp8_loop_filter_bh_c
  69. 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);
  70. #define vp8_loop_filter_bv vp8_loop_filter_bv_c
  71. 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);
  72. #define vp8_loop_filter_mbh vp8_loop_filter_mbh_c
  73. 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);
  74. #define vp8_loop_filter_mbv vp8_loop_filter_mbv_c
  75. void vp8_loop_filter_bhs_c(unsigned char *y, int ystride, const unsigned char *blimit);
  76. #define vp8_loop_filter_simple_bh vp8_loop_filter_bhs_c
  77. void vp8_loop_filter_bvs_c(unsigned char *y, int ystride, const unsigned char *blimit);
  78. #define vp8_loop_filter_simple_bv vp8_loop_filter_bvs_c
  79. void vp8_loop_filter_simple_horizontal_edge_c(unsigned char *y, int ystride, const unsigned char *blimit);
  80. #define vp8_loop_filter_simple_mbh vp8_loop_filter_simple_horizontal_edge_c
  81. void vp8_loop_filter_simple_vertical_edge_c(unsigned char *y, int ystride, const unsigned char *blimit);
  82. #define vp8_loop_filter_simple_mbv vp8_loop_filter_simple_vertical_edge_c
  83. int vp8_mbblock_error_c(struct macroblock *mb, int dc);
  84. #define vp8_mbblock_error vp8_mbblock_error_c
  85. int vp8_mbuverror_c(struct macroblock *mb);
  86. #define vp8_mbuverror vp8_mbuverror_c
  87. 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);
  88. #define vp8_refining_search_sad vp8_refining_search_sad_c
  89. void vp8_regular_quantize_b_c(struct block *, struct blockd *);
  90. #define vp8_regular_quantize_b vp8_regular_quantize_b_c
  91. void vp8_short_fdct4x4_c(short *input, short *output, int pitch);
  92. #define vp8_short_fdct4x4 vp8_short_fdct4x4_c
  93. void vp8_short_fdct8x4_c(short *input, short *output, int pitch);
  94. #define vp8_short_fdct8x4 vp8_short_fdct8x4_c
  95. void vp8_short_idct4x4llm_c(short *input, unsigned char *pred, int pitch, unsigned char *dst, int dst_stride);
  96. #define vp8_short_idct4x4llm vp8_short_idct4x4llm_c
  97. void vp8_short_inv_walsh4x4_c(short *input, short *output);
  98. #define vp8_short_inv_walsh4x4 vp8_short_inv_walsh4x4_c
  99. void vp8_short_inv_walsh4x4_1_c(short *input, short *output);
  100. #define vp8_short_inv_walsh4x4_1 vp8_short_inv_walsh4x4_1_c
  101. void vp8_short_walsh4x4_c(short *input, short *output, int pitch);
  102. #define vp8_short_walsh4x4 vp8_short_walsh4x4_c
  103. void vp8_sixtap_predict16x16_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  104. #define vp8_sixtap_predict16x16 vp8_sixtap_predict16x16_c
  105. void vp8_sixtap_predict4x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  106. #define vp8_sixtap_predict4x4 vp8_sixtap_predict4x4_c
  107. void vp8_sixtap_predict8x4_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  108. #define vp8_sixtap_predict8x4 vp8_sixtap_predict8x4_c
  109. void vp8_sixtap_predict8x8_c(unsigned char *src, int src_pitch, int xofst, int yofst, unsigned char *dst, int dst_pitch);
  110. #define vp8_sixtap_predict8x8 vp8_sixtap_predict8x8_c
  111. 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);
  112. #define vp8_sub_pixel_variance16x16 vp8_sub_pixel_variance16x16_c
  113. 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);
  114. #define vp8_sub_pixel_variance16x8 vp8_sub_pixel_variance16x8_c
  115. 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);
  116. #define vp8_sub_pixel_variance4x4 vp8_sub_pixel_variance4x4_c
  117. 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);
  118. #define vp8_sub_pixel_variance8x16 vp8_sub_pixel_variance8x16_c
  119. 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);
  120. #define vp8_sub_pixel_variance8x8 vp8_sub_pixel_variance8x8_c
  121. void vp8_subtract_b_c(struct block *be, struct blockd *bd, int pitch);
  122. #define vp8_subtract_b vp8_subtract_b_c
  123. 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);
  124. #define vp8_subtract_mbuv vp8_subtract_mbuv_c
  125. void vp8_subtract_mby_c(short *diff, unsigned char *src, int src_stride, unsigned char *pred, int pred_stride);
  126. #define vp8_subtract_mby vp8_subtract_mby_c
  127. void vp8_temporal_filter_apply_c(unsigned char *frame1, unsigned int stride, unsigned char *frame2, unsigned int block_size, int strength, int filter_weight, unsigned int *accumulator, unsigned short *count);
  128. #define vp8_temporal_filter_apply vp8_temporal_filter_apply_c
  129. 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);
  130. #define vp8_variance_halfpixvar16x16_h vp8_variance_halfpixvar16x16_h_c
  131. 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);
  132. #define vp8_variance_halfpixvar16x16_hv vp8_variance_halfpixvar16x16_hv_c
  133. 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);
  134. #define vp8_variance_halfpixvar16x16_v vp8_variance_halfpixvar16x16_v_c
  135. void vp8_rtcd(void);
  136. #include "vpx_config.h"
  137. #ifdef RTCD_C
  138. static void setup_rtcd_internal(void)
  139. {
  140. }
  141. #endif
  142. #ifdef __cplusplus
  143. } // extern "C"
  144. #endif
  145. #endif