resize.h 738 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include <bfc/platform/types.h>
  3. #include <bfc/platform/export.h>
  4. #include "nsutil_types.h"
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. #ifdef NSUTIL_EXPORTS
  9. #define NSUTIL_EXPORT __declspec(dllexport)
  10. #else
  11. #define NSUTIL_EXPORT __declspec(dllimport)
  12. #endif
  13. enum
  14. {
  15. nsutil_resize_nearest_neighbour = 1,
  16. nsutil_resize_linear = 2,
  17. nsutil_resize_cubic = 4,
  18. nsutil_resize_super_sampling = 8,
  19. nsutil_resize_edge_subpixel = 0x40000000UL,
  20. nsutil_resize_edge_smooth = 0x80000000UL,
  21. };
  22. typedef void *nsutil_resize_t;
  23. //NSUTIL_EXPORT int nsutil_resize_Init_RGB(nsutil_resize_t *_context, const nsutil_rect *destination_rect, const nsutil_rect *source_rect, int resize_algorithm);
  24. #ifdef __cplusplus
  25. }
  26. #endif