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.

62 lines
1.8KB

  1. /*
  2. * copyright (C) 2006 Luca Abeni
  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. #ifndef SWSCALE_EMU_H
  21. #define SWSCALE_EMU_H
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. /* Dummy, only useful for compilation! */
  26. #define SWS_FAST_BILINEAR 1
  27. #define SWS_BILINEAR 2
  28. #define SWS_BICUBIC 4
  29. #define SWS_X 8
  30. #define SWS_POINT 0x10
  31. #define SWS_AREA 0x20
  32. #define SWS_BICUBLIN 0x40
  33. #define SWS_GAUSS 0x80
  34. #define SWS_SINC 0x100
  35. #define SWS_LANCZOS 0x200
  36. #define SWS_SPLINE 0x400
  37. #define SwsFilter void
  38. struct SwsContext {
  39. struct ImgReSampleContext *resampling_ctx;
  40. enum PixelFormat src_pix_fmt, dst_pix_fmt;
  41. };
  42. struct SwsContext *sws_getContext(int srcW, int srcH, int srcFormat,
  43. int dstW, int dstH, int dstFormat,
  44. int flags, SwsFilter *srcFilter,
  45. SwsFilter *dstFilter, double *param);
  46. int sws_scale(struct SwsContext *ctx, uint8_t* src[], int srcStride[],
  47. int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]);
  48. void sws_freeContext(struct SwsContext *swsContext);
  49. #ifdef __cplusplus
  50. }
  51. #endif
  52. #endif /* SWSCALE_EMU_H */