convolve_common_dspr2.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Copyright (c) 2013 The WebM project authors. All Rights Reserved.
  3. *
  4. * Use of this source code is governed by a BSD-style license
  5. * that can be found in the LICENSE file in the root of the source
  6. * tree. An additional intellectual property rights grant can be found
  7. * in the file PATENTS. All contributing project authors may
  8. * be found in the AUTHORS file in the root of the source tree.
  9. */
  10. #ifndef VPX_VPX_DSP_MIPS_CONVOLVE_COMMON_DSPR2_H_
  11. #define VPX_VPX_DSP_MIPS_CONVOLVE_COMMON_DSPR2_H_
  12. #include <assert.h>
  13. #include "./vpx_config.h"
  14. #include "vpx/vpx_integer.h"
  15. #include "vpx_dsp/mips/common_dspr2.h"
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. #if HAVE_DSPR2
  20. void vpx_convolve2_horiz_dspr2(const uint8_t *src, ptrdiff_t src_stride,
  21. uint8_t *dst, ptrdiff_t dst_stride,
  22. const InterpKernel *filter, int x0_q4,
  23. int32_t x_step_q4, int y0_q4, int y_step_q4,
  24. int w, int h);
  25. void vpx_convolve2_avg_horiz_dspr2(const uint8_t *src, ptrdiff_t src_stride,
  26. uint8_t *dst, ptrdiff_t dst_stride,
  27. const InterpKernel *filter, int x0_q4,
  28. int32_t x_step_q4, int y0_q4, int y_step_q4,
  29. int w, int h);
  30. void vpx_convolve2_avg_vert_dspr2(const uint8_t *src, ptrdiff_t src_stride,
  31. uint8_t *dst, ptrdiff_t dst_stride,
  32. const InterpKernel *filter, int x0_q4,
  33. int32_t x_step_q4, int y0_q4, int y_step_q4,
  34. int w, int h);
  35. void vpx_convolve2_dspr2(const uint8_t *src, ptrdiff_t src_stride, uint8_t *dst,
  36. ptrdiff_t dst_stride, const int16_t *filter, int w,
  37. int h);
  38. void vpx_convolve2_vert_dspr2(const uint8_t *src, ptrdiff_t src_stride,
  39. uint8_t *dst, ptrdiff_t dst_stride,
  40. const InterpKernel *filter, int x0_q4,
  41. int32_t x_step_q4, int y0_q4, int y_step_q4,
  42. int w, int h);
  43. #endif // #if HAVE_DSPR2
  44. #ifdef __cplusplus
  45. } // extern "C"
  46. #endif
  47. #endif // VPX_VPX_DSP_MIPS_CONVOLVE_COMMON_DSPR2_H_