/usr/include/GraphicsMagick/magick/magick.h is in libgraphicsmagick1-dev 1.3.18-1ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 | /*
Copyright (C) 2003 - 2009 GraphicsMagick Group
Copyright (C) 2002 ImageMagick Studio
Copyright 1991-1999 E. I. du Pont de Nemours and Company
This program is covered by multiple licenses, which are described in
Copyright.txt. You should have received a copy of Copyright.txt with this
package; otherwise see http://www.graphicsmagick.org/www/Copyright.html.
GraphicsMagick Application Programming Interface declarations.
*/
#ifndef _MAGICK_MAGICK_H
#define _MAGICK_MAGICK_H
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
typedef Image
*(*DecoderHandler)(const ImageInfo *,ExceptionInfo *);
typedef unsigned int
(*EncoderHandler)(const ImageInfo *,Image *),
(*MagickHandler)(const unsigned char *,const size_t);
/*
Stability and usefulness of the coder.
*/
typedef enum
{
UnstableCoderClass = 0,
StableCoderClass,
PrimaryCoderClass
} CoderClass;
/*
How the file extension should be treated (e.g. in SetImageInfo()).
*/
typedef enum
{
HintExtensionTreatment = 0, /* Extension is a useful hint to indicate format */
ObeyExtensionTreatment, /* Extension must be obeyed as format indicator */
IgnoreExtensionTreatment /* Extension has no associated format. */
} ExtensionTreatment;
typedef struct _MagickInfo
{
struct _MagickInfo
*next, /* private, next member in list */
*previous; /* private, previous member in list */
const char
*name; /* format ID ("magick") */
const char
*description, /* format description */
*note, /* usage note for user */
*version, /* support library version */
*module; /* name of loadable module */
DecoderHandler
decoder; /* function vector to decoding routine */
EncoderHandler
encoder; /* function vector to encoding routine */
MagickHandler
magick; /* function vector to format test routine */
void
*client_data; /* arbitrary user supplied data */
MagickBool
adjoin, /* coder may read/write multiple frames (default True) */
raw, /* coder requires that size be set (default False) */
stealth, /* coder should not appear in formats listing (default MagickFalse) */
seekable_stream, /* coder requires BLOB "seek" and "tell" APIs (default MagickFalse)
* Note that SetImageInfo() currently always copies input
* from a pipe, .gz, or .bz2 file, to a temporary file so
* that it can retrieve a bit of the file header in order to
* support the file header magic logic.
*/
blob_support, /* coder uses BLOB APIs (default True) */
thread_support; /* coder is thread safe (default True) */
CoderClass
coder_class; /* Coder usefulness/stability level */
ExtensionTreatment
extension_treatment; /* How much faith should be placed on file extension? */
unsigned long
signature; /* private, structure validator */
} MagickInfo;
/*
Magick method declaractions.
*/
extern MagickExport char
*MagickToMime(const char *magick);
extern MagickExport const char
*GetImageMagick(const unsigned char *magick,const size_t length);
extern MagickExport MagickBool
IsMagickConflict(const char *magick);
extern MagickExport MagickPassFail
ListModuleMap(FILE *file,ExceptionInfo *exception),
ListMagickInfo(FILE *file,ExceptionInfo *exception),
UnregisterMagickInfo(const char *name);
extern MagickExport void
DestroyMagick(void),
InitializeMagick(const char *path);
extern MagickExport const MagickInfo
*GetMagickInfo(const char *name,ExceptionInfo *exception);
extern MagickExport MagickInfo
**GetMagickInfoArray(ExceptionInfo *exception);
extern MagickExport MagickInfo
*RegisterMagickInfo(MagickInfo *magick_info),
*SetMagickInfo(const char *name);
#if defined(MAGICK_IMPLEMENTATION)
/*
Get blocksize to use when accessing the filesystem.
*/
extern size_t
MagickGetFileSystemBlockSize(void);
/*
Set blocksize to use when accessing the filesystem.
*/
extern void
MagickSetFileSystemBlockSize(const size_t block_size);
#endif /* defined(MAGICK_IMPLEMENTATION) */
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif
#endif /* _MAGICK_MAGICK_H */
/*
* Local Variables:
* mode: c
* c-basic-offset: 2
* fill-column: 78
* End:
*/
|