gdiplusimagecodec.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. * gdiplusimagecodec.h
  3. *
  4. * GDI+ image decoders and encoders
  5. *
  6. * This file is part of the w32api package.
  7. *
  8. * Contributors:
  9. * Created by Markus Koenig <markus@stber-koenig.de>
  10. *
  11. * THIS SOFTWARE IS NOT COPYRIGHTED
  12. *
  13. * This source code is offered for use in the public domain. You may
  14. * use, modify or distribute it freely.
  15. *
  16. * This code is distributed in the hope that it will be useful but
  17. * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
  18. * DISCLAIMED. This includes but is not limited to warranties of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  20. *
  21. */
  22. #ifndef __GDIPLUS_IMAGECODEC_H
  23. #define __GDIPLUS_IMAGECODEC_H
  24. #if __GNUC__ >=3
  25. #pragma GCC system_header
  26. #endif
  27. static __inline__ GpStatus GetImageDecoders(UINT numDecoders, UINT size,
  28. ImageCodecInfo *decoders)
  29. {
  30. #ifdef __cplusplus
  31. return DllExports::GdipGetImageDecoders(numDecoders, size, decoders);
  32. #else
  33. return GdipGetImageDecoders(numDecoders, size, decoders);
  34. #endif
  35. }
  36. static __inline__ GpStatus GetImageDecodersSize(UINT *numDecoders, UINT *size)
  37. {
  38. #ifdef __cplusplus
  39. return DllExports::GdipGetImageDecodersSize(numDecoders, size);
  40. #else
  41. return GdipGetImageDecodersSize(numDecoders, size);
  42. #endif
  43. }
  44. static __inline__ GpStatus GetImageEncoders(UINT numEncoders, UINT size,
  45. ImageCodecInfo *encoders)
  46. {
  47. #ifdef __cplusplus
  48. return DllExports::GdipGetImageEncoders(numEncoders, size, encoders);
  49. #else
  50. return GdipGetImageEncoders(numEncoders, size, encoders);
  51. #endif
  52. }
  53. static __inline__ GpStatus GetImageEncodersSize(UINT *numEncoders, UINT *size)
  54. {
  55. #ifdef __cplusplus
  56. return DllExports::GdipGetImageEncodersSize(numEncoders, size);
  57. #else
  58. return GdipGetImageEncodersSize(numEncoders, size);
  59. #endif
  60. }
  61. #endif /* __GDIPLUS_IMAGECODEC_H */