//============================================================================================================================= // // EasyAR Sense 3.1.0-final-7bf6504c6 // Copyright (c) 2015-2020 VisionStar Information Technology (Shanghai) Co., Ltd. All Rights Reserved. // EasyAR is the registered trademark or trademark of VisionStar Information Technology (Shanghai) Co., Ltd in China // and other countries for the augmented reality technology developed by VisionStar Information Technology (Shanghai) Co., Ltd. // //============================================================================================================================= #ifndef __EASYAR_IMAGE_H__ #define __EASYAR_IMAGE_H__ #include "easyar/types.h" #ifdef __cplusplus extern "C" { #endif void easyar_Image__ctor(easyar_Buffer * buffer, easyar_PixelFormat format, int width, int height, /* OUT */ easyar_Image * * Return); /// /// Returns buffer inside image. It can be used to access internal data of image. The content of `Buffer`_ shall not be modified, as they may be accessed from other threads. /// void easyar_Image_buffer(const easyar_Image * This, /* OUT */ easyar_Buffer * * Return); /// /// Returns image format. /// easyar_PixelFormat easyar_Image_format(const easyar_Image * This); /// /// Returns image width. /// int easyar_Image_width(const easyar_Image * This); /// /// Returns image height. /// int easyar_Image_height(const easyar_Image * This); /// /// Checks if the image is empty. /// bool easyar_Image_empty(easyar_Image * This); void easyar_Image__dtor(easyar_Image * This); void easyar_Image__retain(const easyar_Image * This, /* OUT */ easyar_Image * * Return); const char * easyar_Image__typeName(const easyar_Image * This); #ifdef __cplusplus } #endif #endif