github.com/kaydxh/golang@v0.0.131/pkg/gocv/cgo/third_path/graphics-magick/include/GraphicsMagick/magick/resource.h (about) 1 /* 2 Copyright (C) 2003 - 2015 GraphicsMagick Group 3 Copyright (C) 2002 ImageMagick Studio 4 5 This program is covered by multiple licenses, which are described in 6 Copyright.txt. You should have received a copy of Copyright.txt with this 7 package; otherwise see http://www.graphicsmagick.org/www/Copyright.html. 8 9 Resource methods. 10 */ 11 #ifndef _MAGICK_RESOURCE_H 12 #define _MAGICK_RESOURCE_H 13 14 #if defined(__cplusplus) || defined(c_plusplus) 15 extern "C" { 16 #endif 17 18 /* 19 Typedef declarations. 20 */ 21 typedef enum 22 { 23 UndefinedResource=0, /* Undefined value */ 24 DiskResource, /* Pixel cache total disk space (Gigabytes) */ 25 FileResource, /* Pixel cache number of open files (Files) */ 26 MapResource, /* Pixel cache total file memory-mapping (Megabytes) */ 27 MemoryResource, /* Maximum pixel cache heap memory allocations (Megabytes) */ 28 PixelsResource, /* Maximum number of pixels in single image (Pixels) */ 29 ThreadsResource, /* Maximum number of worker threads */ 30 WidthResource, /* Maximum pixel width of an image (Pixels) */ 31 HeightResource /* Maximum pixel height of an image (Pixels) */ 32 } ResourceType; 33 34 /* 35 Method declarations. 36 */ 37 extern MagickExport MagickPassFail 38 AcquireMagickResource(const ResourceType type,const magick_uint64_t size), 39 ListMagickResourceInfo(FILE *file,ExceptionInfo *exception), 40 SetMagickResourceLimit(const ResourceType type,const magick_int64_t limit); 41 42 extern MagickExport magick_int64_t 43 GetMagickResource(const ResourceType type), 44 GetMagickResourceLimit(const ResourceType type); 45 46 extern MagickExport void 47 DestroyMagickResources(void), 48 InitializeMagickResources(void), 49 LiberateMagickResource(const ResourceType type,const magick_uint64_t size); 50 51 52 #if defined(__cplusplus) || defined(c_plusplus) 53 } 54 #endif 55 56 #endif 57 58 /* 59 * Local Variables: 60 * mode: c 61 * c-basic-offset: 2 62 * fill-column: 78 63 * End: 64 */