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.

52 lines
1.6KB

  1. /*
  2. * DSP utils
  3. * Copyright (c) 2000, 2001 Fabrice Bellard
  4. * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
  5. *
  6. * gmc & q-pel & 32/64 bit based MC by Michael Niedermayer <michaelni@gmx.at>
  7. *
  8. * This file is part of Libav.
  9. *
  10. * Libav is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU Lesser General Public
  12. * License as published by the Free Software Foundation; either
  13. * version 2.1 of the License, or (at your option) any later version.
  14. *
  15. * Libav is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  18. * Lesser General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU Lesser General Public
  21. * License along with Libav; if not, write to the Free Software
  22. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  23. */
  24. /**
  25. * @file
  26. * DSP utils
  27. */
  28. #include "bit_depth_template.c"
  29. static void FUNCC(get_pixels)(int16_t *restrict block, const uint8_t *_pixels,
  30. int line_size)
  31. {
  32. const pixel *pixels = (const pixel *) _pixels;
  33. int i;
  34. /* read the pixels */
  35. for (i = 0; i < 8; i++) {
  36. block[0] = pixels[0];
  37. block[1] = pixels[1];
  38. block[2] = pixels[2];
  39. block[3] = pixels[3];
  40. block[4] = pixels[4];
  41. block[5] = pixels[5];
  42. block[6] = pixels[6];
  43. block[7] = pixels[7];
  44. pixels += line_size / sizeof(pixel);
  45. block += 8;
  46. }
  47. }