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.

70 lines
2.0KB

  1. /*
  2. * Copyright (c) 2015 Manojkumar Bhosale (Manojkumar.Bhosale@imgtec.com)
  3. *
  4. * This file is part of FFmpeg.
  5. *
  6. * FFmpeg is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2.1 of the License, or (at your option) any later version.
  10. *
  11. * FFmpeg is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * License along with FFmpeg; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  19. */
  20. #include "libavcodec/hevcdsp.h"
  21. #define MC(PEL, DIR, WIDTH) \
  22. void ff_hevc_put_hevc_##PEL##_##DIR####WIDTH##_8_msa(int16_t *dst, \
  23. uint8_t *src, \
  24. ptrdiff_t src_stride, \
  25. int height, \
  26. intptr_t mx, \
  27. intptr_t my, \
  28. int width)
  29. MC(pel, pixels, 4);
  30. MC(pel, pixels, 6);
  31. MC(pel, pixels, 8);
  32. MC(pel, pixels, 12);
  33. MC(pel, pixels, 16);
  34. MC(pel, pixels, 24);
  35. MC(pel, pixels, 32);
  36. MC(pel, pixels, 48);
  37. MC(pel, pixels, 64);
  38. MC(qpel, h, 4);
  39. MC(qpel, h, 8);
  40. MC(qpel, h, 12);
  41. MC(qpel, h, 16);
  42. MC(qpel, h, 24);
  43. MC(qpel, h, 32);
  44. MC(qpel, h, 48);
  45. MC(qpel, h, 64);
  46. MC(qpel, v, 4);
  47. MC(qpel, v, 8);
  48. MC(qpel, v, 12);
  49. MC(qpel, v, 16);
  50. MC(qpel, v, 24);
  51. MC(qpel, v, 32);
  52. MC(qpel, v, 48);
  53. MC(qpel, v, 64);
  54. MC(qpel, hv, 4);
  55. MC(qpel, hv, 8);
  56. MC(qpel, hv, 12);
  57. MC(qpel, hv, 16);
  58. MC(qpel, hv, 24);
  59. MC(qpel, hv, 32);
  60. MC(qpel, hv, 48);
  61. MC(qpel, hv, 64);
  62. #undef MC