You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
3.4KB

  1. /*
  2. * This file is part of Libav.
  3. *
  4. * Libav is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2.1 of the License, or (at your option) any later version.
  8. *
  9. * Libav is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with Libav; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  17. */
  18. #ifndef AVCODEC_ARM_VP8DSP_H
  19. #define AVCODEC_ARM_VP8DSP_H
  20. #include "libavcodec/vp8dsp.h"
  21. void ff_vp8dsp_init_armv6(VP8DSPContext *dsp);
  22. void ff_vp8dsp_init_neon(VP8DSPContext *dsp);
  23. #define VP8_LF_Y(hv, inner, opt) \
  24. void ff_vp8_##hv##_loop_filter16##inner##_##opt(uint8_t *dst, \
  25. ptrdiff_t stride, \
  26. int flim_E, int flim_I, \
  27. int hev_thresh)
  28. #define VP8_LF_UV(hv, inner, opt) \
  29. void ff_vp8_##hv##_loop_filter8uv##inner##_##opt(uint8_t *dstU, \
  30. uint8_t *dstV, \
  31. ptrdiff_t stride, \
  32. int flim_E, int flim_I, \
  33. int hev_thresh)
  34. #define VP8_LF_SIMPLE(hv, opt) \
  35. void ff_vp8_##hv##_loop_filter16_simple_##opt(uint8_t *dst, \
  36. ptrdiff_t stride, \
  37. int flim)
  38. #define VP8_LF_HV(inner, opt) \
  39. VP8_LF_Y(h, inner, opt); \
  40. VP8_LF_Y(v, inner, opt); \
  41. VP8_LF_UV(h, inner, opt); \
  42. VP8_LF_UV(v, inner, opt)
  43. #define VP8_LF(opt) \
  44. VP8_LF_HV(, opt); \
  45. VP8_LF_HV(_inner, opt); \
  46. VP8_LF_SIMPLE(h, opt); \
  47. VP8_LF_SIMPLE(v, opt)
  48. #define VP8_MC(n, opt) \
  49. void ff_put_vp8_##n##_##opt(uint8_t *dst, ptrdiff_t dststride, \
  50. uint8_t *src, ptrdiff_t srcstride, \
  51. int h, int x, int y)
  52. #define VP8_EPEL(w, opt) \
  53. VP8_MC(pixels ## w, opt); \
  54. VP8_MC(epel ## w ## _h4, opt); \
  55. VP8_MC(epel ## w ## _h6, opt); \
  56. VP8_MC(epel ## w ## _v4, opt); \
  57. VP8_MC(epel ## w ## _h4v4, opt); \
  58. VP8_MC(epel ## w ## _h6v4, opt); \
  59. VP8_MC(epel ## w ## _v6, opt); \
  60. VP8_MC(epel ## w ## _h4v6, opt); \
  61. VP8_MC(epel ## w ## _h6v6, opt)
  62. #define VP8_BILIN(w, opt) \
  63. VP8_MC(bilin ## w ## _h, opt); \
  64. VP8_MC(bilin ## w ## _v, opt); \
  65. VP8_MC(bilin ## w ## _hv, opt)
  66. #endif /* AVCODEC_ARM_VP8DSP_H */