mpegvideodsp.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * This file is part of FFmpeg.
  3. *
  4. * FFmpeg 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. * FFmpeg 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 FFmpeg; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  17. */
  18. #ifndef AVCODEC_MPEGVIDEODSP_H
  19. #define AVCODEC_MPEGVIDEODSP_H
  20. #include <stdint.h>
  21. void ff_gmc_c(uint8_t *dst, uint8_t *src, int stride, int h, int ox, int oy,
  22. int dxx, int dxy, int dyx, int dyy, int shift, int r,
  23. int width, int height);
  24. typedef struct MpegVideoDSPContext {
  25. /**
  26. * translational global motion compensation.
  27. */
  28. void (*gmc1)(uint8_t *dst /* align 8 */, uint8_t *src /* align 1 */,
  29. int srcStride, int h, int x16, int y16, int rounder);
  30. /**
  31. * global motion compensation.
  32. */
  33. void (*gmc)(uint8_t *dst /* align 8 */, uint8_t *src /* align 1 */,
  34. int stride, int h, int ox, int oy,
  35. int dxx, int dxy, int dyx, int dyy,
  36. int shift, int r, int width, int height);
  37. } MpegVideoDSPContext;
  38. void ff_mpegvideodsp_init(MpegVideoDSPContext *c);
  39. void ff_mpegvideodsp_init_ppc(MpegVideoDSPContext *c);
  40. void ff_mpegvideodsp_init_x86(MpegVideoDSPContext *c);
  41. #endif /* AVCODEC_MPEGVIDEODSP_H */