vp9_rtcd.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. #include "vp9/common/vp9_filter.h"
  15. struct macroblockd;
  16. /* Encoder forward decls */
  17. struct macroblock;
  18. struct vp9_variance_vtable;
  19. struct search_site_config;
  20. struct mv;
  21. union int_mv;
  22. struct yv12_buffer_config;
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. void vp9_iht16x16_256_add_c(const tran_low_t *input, uint8_t *output, int pitch, int tx_type);
  27. void vp9_iht16x16_256_add_sse2(const tran_low_t *input, uint8_t *output, int pitch, int tx_type);
  28. #define vp9_iht16x16_256_add vp9_iht16x16_256_add_sse2
  29. void vp9_iht4x4_16_add_c(const tran_low_t *input, uint8_t *dest, int stride, int tx_type);
  30. void vp9_iht4x4_16_add_sse2(const tran_low_t *input, uint8_t *dest, int stride, int tx_type);
  31. #define vp9_iht4x4_16_add vp9_iht4x4_16_add_sse2
  32. void vp9_iht8x8_64_add_c(const tran_low_t *input, uint8_t *dest, int stride, int tx_type);
  33. void vp9_iht8x8_64_add_sse2(const tran_low_t *input, uint8_t *dest, int stride, int tx_type);
  34. #define vp9_iht8x8_64_add vp9_iht8x8_64_add_sse2
  35. void vp9_rtcd(void);
  36. #ifdef RTCD_C
  37. #include "vpx_ports/x86.h"
  38. static void setup_rtcd_internal(void)
  39. {
  40. int flags = x86_simd_caps();
  41. (void)flags;
  42. }
  43. #endif
  44. #ifdef __cplusplus
  45. } // extern "C"
  46. #endif
  47. #endif