alpha.h 504 B

1234567891011121314151617181920
  1. #pragma once
  2. #include <bfc/platform/types.h>
  3. #include <bfc/platform/export.h>
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. #ifdef NSUTIL_EXPORTS
  8. #define NSUTIL_EXPORT __declspec(dllexport)
  9. #else
  10. #define NSUTIL_EXPORT __declspec(dllimport)
  11. #endif
  12. NSUTIL_EXPORT int nsutil_alpha_Premultiply_RGB32(void *image, size_t image_stride, int width, int height);
  13. NSUTIL_EXPORT int nsutil_alpha_PremultiplyValue_RGB8(void *image, size_t image_stride, int width, int height, uint8_t alpha);
  14. #ifdef __cplusplus
  15. }
  16. #endif