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.

60 lines
1.8KB

  1. /*
  2. * copyright (C) 2006 Luca Abeni
  3. *
  4. * This library 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 of the License, or (at your option) any later version.
  8. *
  9. * This library 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 this library; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  17. */
  18. #ifndef SWSCALE_EMU_H
  19. #define SWSCALE_EMU_H
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. /* Dummy, only useful for compilation! */
  24. #define SWS_FAST_BILINEAR 1
  25. #define SWS_BILINEAR 2
  26. #define SWS_BICUBIC 4
  27. #define SWS_X 8
  28. #define SWS_POINT 0x10
  29. #define SWS_AREA 0x20
  30. #define SWS_BICUBLIN 0x40
  31. #define SWS_GAUSS 0x80
  32. #define SWS_SINC 0x100
  33. #define SWS_LANCZOS 0x200
  34. #define SWS_SPLINE 0x400
  35. #define SwsFilter void
  36. struct SwsContext {
  37. struct ImgReSampleContext *resampling_ctx;
  38. enum PixelFormat src_pix_fmt, dst_pix_fmt;
  39. };
  40. struct SwsContext *sws_getContext(int srcW, int srcH, int srcFormat,
  41. int dstW, int dstH, int dstFormat,
  42. int flags, SwsFilter *srcFilter,
  43. SwsFilter *dstFilter, double *param);
  44. int sws_scale(struct SwsContext *ctx, uint8_t* src[], int srcStride[],
  45. int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]);
  46. void sws_freeContext(struct SwsContext *swsContext);
  47. #ifdef __cplusplus
  48. }
  49. #endif
  50. #endif /* SWSCALE_EMU_H */