hpeldsp_init_armv6.c 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. * Copyright (c) 2009 Mans Rullgard <mans@mansr.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 <stddef.h>
  21. #include <stdint.h>
  22. #include "libavutil/attributes.h"
  23. #include "hpeldsp_arm.h"
  24. void ff_put_pixels16_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int);
  25. void ff_put_pixels16_x2_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int);
  26. void ff_put_pixels16_y2_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int);
  27. void ff_put_pixels16_x2_no_rnd_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int);
  28. void ff_put_pixels16_y2_no_rnd_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int);
  29. void ff_avg_pixels16_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int);
  30. void ff_put_pixels8_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int);
  31. void ff_put_pixels8_x2_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int);
  32. void ff_put_pixels8_y2_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int);
  33. void ff_put_pixels8_x2_no_rnd_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int);
  34. void ff_put_pixels8_y2_no_rnd_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int);
  35. void ff_avg_pixels8_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int);
  36. av_cold void ff_hpeldsp_init_armv6(HpelDSPContext *c, int flags)
  37. {
  38. c->put_pixels_tab[0][0] = ff_put_pixels16_armv6;
  39. c->put_pixels_tab[0][1] = ff_put_pixels16_x2_armv6;
  40. c->put_pixels_tab[0][2] = ff_put_pixels16_y2_armv6;
  41. /* c->put_pixels_tab[0][3] = ff_put_pixels16_xy2_armv6; */
  42. c->put_pixels_tab[1][0] = ff_put_pixels8_armv6;
  43. c->put_pixels_tab[1][1] = ff_put_pixels8_x2_armv6;
  44. c->put_pixels_tab[1][2] = ff_put_pixels8_y2_armv6;
  45. /* c->put_pixels_tab[1][3] = ff_put_pixels8_xy2_armv6; */
  46. c->put_no_rnd_pixels_tab[0][0] = ff_put_pixels16_armv6;
  47. c->put_no_rnd_pixels_tab[0][1] = ff_put_pixels16_x2_no_rnd_armv6;
  48. c->put_no_rnd_pixels_tab[0][2] = ff_put_pixels16_y2_no_rnd_armv6;
  49. /* c->put_no_rnd_pixels_tab[0][3] = ff_put_pixels16_xy2_no_rnd_armv6; */
  50. c->put_no_rnd_pixels_tab[1][0] = ff_put_pixels8_armv6;
  51. c->put_no_rnd_pixels_tab[1][1] = ff_put_pixels8_x2_no_rnd_armv6;
  52. c->put_no_rnd_pixels_tab[1][2] = ff_put_pixels8_y2_no_rnd_armv6;
  53. /* c->put_no_rnd_pixels_tab[1][3] = ff_put_pixels8_xy2_no_rnd_armv6; */
  54. c->avg_pixels_tab[0][0] = ff_avg_pixels16_armv6;
  55. c->avg_pixels_tab[1][0] = ff_avg_pixels8_armv6;
  56. }