9 #define OPH_DLL __declspec(dllexport) 11 #define OPH_DLL __declspec(dllimport) 15 #define OPH_DLL __attribute__((visibility("default"))) 46 static void Destroy() {
51 if (instance ==
nullptr) {
59 bool GetSize(
const char* path, uint32_t *size);
61 bool Resize(
const uint8_t* src, uint8_t* dst,
const uint32_t
w,
const uint32_t
h,
62 const uint32_t neww,
const uint32_t newh,
const uint8_t ch);
64 bool Rotate(
const double rotate,
const uint8_t* src, uint8_t* dst,
const uint32_t
w,
const uint32_t
h,
65 const uint32_t neww,
const uint32_t newh,
const uint8_t ch);
67 bool Flip(FLIP mode,
const uint8_t* src, uint8_t* dst,
const uint32_t
w,
const uint32_t
h,
70 bool Crop(
const uint8_t* src, uint8_t* dst,
const uint32_t
w,
const uint32_t
h,
const uint8_t ch,
71 const uint32_t start_x,
const uint32_t start_y,
const uint32_t end_x,
const uint32_t end_y);
75 uint64_t GetPixelSize(
const uint32_t width,
const uint32_t height,
const uint8_t channel);
static ImgControl * getInstance()