github.com/kaydxh/golang@v0.0.131/pkg/gocv/cgo/third_path/graphics-magick/include/wand/magick_wand.h (about)

     1  /* Copyright (C) 2003-2019 GraphicsMagick Group */
     2  
     3  /*
     4    ImageMagick MagickWand interface.
     5  */
     6  
     7  #ifndef _MAGICK_WAND_H
     8  #define _MAGICK_WAND_H
     9  
    10  #if defined(__cplusplus) || defined(c_plusplus)
    11  extern "C" {
    12  #endif
    13  
    14  #if defined(_VISUALC_)
    15  #  if defined(_MT) && defined(_DLL) && !defined(_LIB)
    16  #    pragma warning( disable: 4273 )
    17  #    if !defined(_WANDLIB_)
    18  #      define WandExport __declspec(dllimport)
    19  #    else
    20  #     define WandExport __declspec(dllexport)
    21  #    endif
    22  #  else
    23  #    define WandExport
    24  #  endif
    25  
    26  #  pragma warning(disable : 4018)
    27  #  pragma warning(disable : 4244)
    28  #  pragma warning(disable : 4142)
    29  #else
    30  #  define WandExport
    31  #endif
    32  
    33  #include "magick/api.h"
    34  #include "wand/wand_symbols.h"
    35  #include "wand/drawing_wand.h"
    36  #include "wand/pixel_wand.h"
    37  
    38    /*
    39      ImageMagick compatibility definitions
    40    */
    41  #define MagickSizeType magick_int64_t
    42  #define ReplaceCompositeOp CopyCompositeOp
    43  #define IndexChannel BlackChannel
    44  #define AreaResource UndefinedResource /* not supported */
    45  
    46  extern WandExport int
    47    FormatMagickString(char *,const size_t,const char *,...)
    48      MAGICK_ATTRIBUTE((format (printf,3,4)));
    49  extern WandExport size_t
    50    CopyMagickString(char *,const char *,const size_t);
    51  
    52  typedef struct _MagickWand
    53    MagickWand;
    54  
    55  extern WandExport char
    56    *MagickDescribeImage(MagickWand *),
    57    *MagickGetConfigureInfo(MagickWand *,const char *) MAGICK_FUNC_CONST,
    58    *MagickGetException(const MagickWand *,ExceptionType *),
    59    *MagickGetFilename(const MagickWand *),
    60    *MagickGetImageAttribute(MagickWand *, const char *),
    61    *MagickGetImageFilename(MagickWand *),
    62    *MagickGetImageFormat(MagickWand *),
    63    *MagickGetImageSignature(MagickWand *),
    64    **MagickQueryFonts(const char *,unsigned long *),
    65    **MagickQueryFormats(const char *,unsigned long *);
    66  
    67  extern WandExport CompositeOperator
    68    MagickGetImageCompose(MagickWand *);
    69  
    70  extern WandExport ColorspaceType
    71    MagickGetImageColorspace(MagickWand *);
    72  
    73  extern WandExport CompressionType
    74    MagickGetImageCompression(MagickWand *);
    75  
    76  extern WandExport const char
    77    *MagickGetCopyright(void) MAGICK_FUNC_CONST,
    78    *MagickGetHomeURL(void) MAGICK_FUNC_CONST,
    79    *MagickGetImageGeometry(MagickWand *),
    80    *MagickGetPackageName(void) MAGICK_FUNC_CONST,
    81    *MagickGetQuantumDepth(unsigned long *),
    82    *MagickGetReleaseDate(void) MAGICK_FUNC_CONST,
    83    *MagickGetVersion(unsigned long *) MAGICK_FUNC_CONST;
    84  
    85  extern WandExport DisposeType
    86    MagickGetImageDispose(MagickWand *);
    87  
    88  extern WandExport double
    89    MagickGetImageGamma(MagickWand *),
    90    MagickGetImageFuzz(MagickWand *),
    91    *MagickGetSamplingFactors(MagickWand *,unsigned long *),
    92    *MagickQueryFontMetrics(MagickWand *,const DrawingWand *,const char *);
    93  
    94  extern WandExport GravityType
    95    MagickGetImageGravity(MagickWand *wand);
    96  
    97  extern WandExport ImageType
    98    MagickGetImageType(MagickWand *);
    99  
   100  extern WandExport ImageType
   101    MagickGetImageSavedType(MagickWand *) MAGICK_FUNC_CONST;
   102  
   103  extern WandExport InterlaceType
   104    MagickGetImageInterlaceScheme(MagickWand *);
   105  
   106  extern WandExport long
   107    MagickGetImageIndex(MagickWand *);
   108  
   109  extern WandExport MagickSizeType
   110    MagickGetImageSize(MagickWand *);
   111  
   112  extern WandExport MagickWand
   113    *CloneMagickWand(const MagickWand *),
   114    *MagickAppendImages(MagickWand *,const unsigned int),
   115    *MagickAverageImages(MagickWand *),
   116    *MagickCoalesceImages(MagickWand *),
   117    *MagickCompareImageChannels(MagickWand *,const MagickWand *,const ChannelType,
   118      const MetricType,double *),
   119    *MagickCompareImages(MagickWand *,const MagickWand *,const MetricType,
   120      double *),
   121    *MagickDeconstructImages(MagickWand *),
   122    *MagickFlattenImages(MagickWand *),
   123    *MagickFxImage(MagickWand *,const char *),
   124    *MagickFxImageChannel(MagickWand *,const ChannelType,const char *),
   125    *MagickGetImage(MagickWand *),
   126    *MagickMorphImages(MagickWand *,const unsigned long),
   127    *MagickMosaicImages(MagickWand *),
   128    *MagickMontageImage(MagickWand *,const DrawingWand *,const char *,
   129      const char *,const MontageMode,const char *),
   130    *MagickPreviewImages(MagickWand *wand,const PreviewType),
   131    *MagickSteganoImage(MagickWand *,const MagickWand *,const long),
   132    *MagickStereoImage(MagickWand *,const MagickWand *),
   133    *MagickTextureImage(MagickWand *,const MagickWand *),
   134    *MagickTransformImage(MagickWand *,const char *,const char *),
   135    *NewMagickWand(void);
   136  
   137  extern WandExport OrientationType
   138    MagickGetImageOrientation(MagickWand *);
   139  
   140  extern WandExport PixelWand
   141    **MagickGetImageHistogram(MagickWand *,unsigned long *);
   142  
   143  extern WandExport RenderingIntent
   144    MagickGetImageRenderingIntent(MagickWand *);
   145  
   146  extern WandExport ResolutionType
   147    MagickGetImageUnits(MagickWand *);
   148  
   149  extern WandExport unsigned int
   150    DestroyMagickWand(MagickWand *),
   151    MagickAdaptiveThresholdImage(MagickWand *,const unsigned long,
   152      const unsigned long,const long),
   153    MagickAddImage(MagickWand *,const MagickWand *),
   154    MagickAddNoiseImage(MagickWand *,const NoiseType),
   155    MagickAffineTransformImage(MagickWand *,const DrawingWand *),
   156    MagickAnnotateImage(MagickWand *,const DrawingWand *,const double,
   157      const double,const double,const char *),
   158    MagickAnimateImages(MagickWand *,const char *),
   159    MagickAutoOrientImage(MagickWand *wand,const OrientationType),
   160    MagickBlackThresholdImage(MagickWand *,const PixelWand *),
   161    MagickBlurImage(MagickWand *,const double,const double),
   162    MagickBorderImage(MagickWand *,const PixelWand *,const unsigned long,
   163      const unsigned long),
   164    MagickCdlImage(MagickWand *wand,const char *cdl),
   165    MagickCharcoalImage(MagickWand *,const double,const double),
   166    MagickChopImage(MagickWand *,const unsigned long,const unsigned long,
   167      const long,const long),
   168    MagickClipImage(MagickWand *),
   169    MagickClipPathImage(MagickWand *,const char *,const unsigned int),
   170    MagickColorFloodfillImage(MagickWand *,const PixelWand *,const double,
   171      const PixelWand *,const long,const long),
   172    MagickColorizeImage(MagickWand *,const PixelWand *,const PixelWand *),
   173    MagickCommentImage(MagickWand *,const char *),
   174    MagickCompositeImage(MagickWand *,const MagickWand *,const CompositeOperator,
   175      const long,const long),
   176    MagickContrastImage(MagickWand *,const unsigned int),
   177    MagickConvolveImage(MagickWand *,const unsigned long,const double *),
   178    MagickCropImage(MagickWand *,const unsigned long,const unsigned long,
   179      const long,const long),
   180    MagickCycleColormapImage(MagickWand *,const long),
   181    MagickDespeckleImage(MagickWand *),
   182    MagickDisplayImage(MagickWand *,const char *),
   183    MagickDisplayImages(MagickWand *,const char *),
   184    MagickDrawImage(MagickWand *,const DrawingWand *),
   185    MagickEdgeImage(MagickWand *,const double),
   186    MagickEmbossImage(MagickWand *,const double,const double),
   187    MagickEnhanceImage(MagickWand *),
   188    MagickEqualizeImage(MagickWand *),
   189    MagickExtentImage(MagickWand *,const size_t,const size_t,const ssize_t, const ssize_t),
   190    MagickFlipImage(MagickWand *),
   191    MagickFlopImage(MagickWand *),
   192    MagickFrameImage(MagickWand *,const PixelWand *,const unsigned long,
   193      const unsigned long,const long,const long),
   194    MagickGammaImage(MagickWand *,const double),
   195    MagickGammaImageChannel(MagickWand *,const ChannelType,const double),
   196    MagickGetImageBackgroundColor(MagickWand *,PixelWand *),
   197    MagickGetImageBluePrimary(MagickWand *,double *,double *),
   198    MagickGetImageBorderColor(MagickWand *,PixelWand *),
   199    MagickGetImageBoundingBox(MagickWand *wand,const double fuzz,
   200      unsigned long *width,unsigned long *height,long *x, long *y),
   201    MagickGetImageChannelExtrema(MagickWand *,const ChannelType,unsigned long *,
   202      unsigned long *),
   203    MagickGetImageChannelMean(MagickWand *,const ChannelType,double *,double *),
   204    MagickGetImageColormapColor(MagickWand *,const unsigned long,PixelWand *),
   205    MagickGetImageExtrema(MagickWand *,unsigned long *,unsigned long *),
   206    MagickGetImageGreenPrimary(MagickWand *,double *,double *),
   207    MagickGetImageMatte(MagickWand *),
   208    MagickGetImageMatteColor(MagickWand *,PixelWand *),
   209    MagickGetImagePage(MagickWand *wand,
   210      unsigned long *width,unsigned long *height,long *x,long *y),
   211    MagickGetImagePixels(MagickWand *,const long,const long,const unsigned long,
   212      const unsigned long,const char *,const StorageType,unsigned char *),
   213    MagickGetImageRedPrimary(MagickWand *,double *,double *),
   214    MagickGetImageResolution(MagickWand *,double *,double *),
   215    MagickGetImageWhitePoint(MagickWand *,double *,double *),
   216    MagickGetSize(const MagickWand *,unsigned long *,unsigned long *),
   217    MagickHaldClutImage(MagickWand *wand,const MagickWand *clut_wand),
   218    MagickHasColormap(MagickWand *,unsigned int *),
   219    MagickHasNextImage(MagickWand *),
   220    MagickHasPreviousImage(MagickWand *),
   221    MagickImplodeImage(MagickWand *,const double),
   222    MagickIsGrayImage(MagickWand *,unsigned int *),
   223    MagickIsMonochromeImage(MagickWand *,unsigned int *),
   224    MagickIsOpaqueImage(MagickWand *,unsigned int *),
   225    MagickIsPaletteImage(MagickWand *,unsigned int *),
   226    MagickLabelImage(MagickWand *,const char *),
   227    MagickLevelImage(MagickWand *,const double,const double,const double),
   228    MagickLevelImageChannel(MagickWand *,const ChannelType,const double,
   229      const double,const double),
   230    MagickMagnifyImage(MagickWand *),
   231    MagickMapImage(MagickWand *,const MagickWand *,const unsigned int),
   232    MagickMatteFloodfillImage(MagickWand *,const Quantum,const double,
   233      const PixelWand *,const long,const long),
   234    MagickMedianFilterImage(MagickWand *,const double),
   235    MagickMinifyImage(MagickWand *),
   236    MagickModulateImage(MagickWand *,const double,const double,const double),
   237    MagickMotionBlurImage(MagickWand *,const double,const double,const double),
   238    MagickNegateImage(MagickWand *,const unsigned int),
   239    MagickNegateImageChannel(MagickWand *,const ChannelType,const unsigned int),
   240    MagickNextImage(MagickWand *),
   241    MagickNormalizeImage(MagickWand *),
   242    MagickOilPaintImage(MagickWand *,const double),
   243    MagickOpaqueImage(MagickWand *,const PixelWand *,const PixelWand *,
   244      const double),
   245    MagickOperatorImageChannel(MagickWand *,const ChannelType,const QuantumOperator,
   246      const double),
   247    MagickPingImage(MagickWand *,const char *),
   248    MagickPreviousImage(MagickWand *),
   249    MagickProfileImage(MagickWand *,const char *,const unsigned char *,
   250      const unsigned long),
   251    MagickQuantizeImage(MagickWand *,const unsigned long,const ColorspaceType,
   252      const unsigned long,const unsigned int,const unsigned int),
   253    MagickQuantizeImages(MagickWand *,const unsigned long,const ColorspaceType,
   254      const unsigned long,const unsigned int,const unsigned int),
   255    MagickRadialBlurImage(MagickWand *,const double),
   256    MagickRaiseImage(MagickWand *,const unsigned long,const unsigned long,
   257      const long,const long,const unsigned int),
   258    MagickReadImage(MagickWand *,const char *),
   259    MagickReadImageBlob(MagickWand *,const unsigned char *,const size_t length),
   260    MagickReadImageFile(MagickWand *,FILE *),
   261    MagickReduceNoiseImage(MagickWand *,const double),
   262    MagickRelinquishMemory(void *),
   263    MagickRemoveImage(MagickWand *),
   264    MagickRemoveImageOption(MagickWand *wand,const char *,const char *),
   265    MagickResampleImage(MagickWand *,const double,const double,const FilterTypes,
   266      const double),
   267    MagickResizeImage(MagickWand *,const unsigned long,const unsigned long,
   268      const FilterTypes,const double),
   269    MagickRollImage(MagickWand *,const long,const long),
   270    MagickRotateImage(MagickWand *,const PixelWand *,const double),
   271    MagickSampleImage(MagickWand *,const unsigned long,const unsigned long),
   272    MagickScaleImage(MagickWand *,const unsigned long,const unsigned long),
   273    MagickSeparateImageChannel(MagickWand *,const ChannelType),
   274    MagickSetCompressionQuality(MagickWand *wand,const unsigned long quality),
   275    MagickSetFilename(MagickWand *,const char *),
   276    MagickSetFormat(MagickWand *,const char *),
   277    MagickSetImage(MagickWand *,const MagickWand *),
   278    MagickSetImageAttribute(MagickWand *,const char *, const char *),
   279    MagickSetImageBackgroundColor(MagickWand *,const PixelWand *),
   280    MagickSetImageBluePrimary(MagickWand *,const double,const double),
   281    MagickSetImageBorderColor(MagickWand *,const PixelWand *),
   282    MagickSetImageChannelDepth(MagickWand *,const ChannelType,
   283      const unsigned long),
   284    MagickSetImageColormapColor(MagickWand *,const unsigned long,
   285      const PixelWand *),
   286    MagickSetImageCompose(MagickWand *,const CompositeOperator),
   287    MagickSetImageCompression(MagickWand *,const CompressionType),
   288    MagickSetImageDelay(MagickWand *,const unsigned long),
   289    MagickSetImageDepth(MagickWand *,const unsigned long),
   290    MagickSetImageDispose(MagickWand *,const DisposeType),
   291    MagickSetImageColorspace(MagickWand *,const ColorspaceType),
   292    MagickSetImageGreenPrimary(MagickWand *,const double,const double),
   293    MagickSetImageGamma(MagickWand *,const double),
   294    MagickSetImageGeometry(MagickWand *,const char *),
   295    MagickSetImageGravity(MagickWand *,const GravityType),
   296    MagickSetImageFilename(MagickWand *,const char *),
   297    MagickSetImageFormat(MagickWand *wand,const char *format),
   298    MagickSetImageFuzz(MagickWand *,const double),
   299    MagickSetImageIndex(MagickWand *,const long),
   300    MagickSetImageInterlaceScheme(MagickWand *,const InterlaceType),
   301    MagickSetImageIterations(MagickWand *,const unsigned long),
   302    MagickSetImageMatte(MagickWand *,const unsigned int),
   303    MagickSetImageMatteColor(MagickWand *,const PixelWand *),
   304    MagickSetImageOption(MagickWand *,const char *,const char *,const char *),
   305    MagickSetImageOrientation(MagickWand *,const OrientationType),
   306    MagickSetImagePage(MagickWand *wand,
   307      const unsigned long width,const unsigned long height,const long x,
   308      const long y),
   309    MagickSetImagePixels(MagickWand *,const long,const long,const unsigned long,
   310      const unsigned long,const char *,const StorageType,unsigned char *),
   311    MagickSetImageRedPrimary(MagickWand *,const double,const double),
   312    MagickSetImageRenderingIntent(MagickWand *,const RenderingIntent),
   313    MagickSetImageResolution(MagickWand *,const double,const double),
   314    MagickSetImageScene(MagickWand *,const unsigned long),
   315    MagickSetImageType(MagickWand *,const ImageType),
   316    MagickSetImageSavedType(MagickWand *,const ImageType),
   317    MagickSetImageUnits(MagickWand *,const ResolutionType),
   318    MagickSetImageVirtualPixelMethod(MagickWand *,const VirtualPixelMethod),
   319    MagickSetPassphrase(MagickWand *,const char *),
   320    MagickSetImageProfile(MagickWand *,const char *,const unsigned char *,
   321      const unsigned long),
   322    MagickSetResolution(MagickWand *wand,
   323      const double x_resolution,const double y_resolution),
   324    MagickSetResolutionUnits(MagickWand *wand,const ResolutionType units),
   325    MagickSetResourceLimit(const ResourceType type,const unsigned long limit),
   326    MagickSetSamplingFactors(MagickWand *,const unsigned long,const double *),
   327    MagickSetSize(MagickWand *,const unsigned long,const unsigned long),
   328    MagickSetImageWhitePoint(MagickWand *,const double,const double),
   329    MagickSetInterlaceScheme(MagickWand *,const InterlaceType),
   330    MagickSharpenImage(MagickWand *,const double,const double),
   331    MagickShaveImage(MagickWand *,const unsigned long,const unsigned long),
   332    MagickShearImage(MagickWand *,const PixelWand *,const double,const double),
   333    MagickSolarizeImage(MagickWand *,const double),
   334    MagickSpreadImage(MagickWand *,const double),
   335    MagickStripImage(MagickWand *),
   336    MagickSwirlImage(MagickWand *,const double),
   337    MagickTintImage(MagickWand *,const PixelWand *,const PixelWand *),
   338    MagickThresholdImage(MagickWand *,const double),
   339    MagickThresholdImageChannel(MagickWand *,const ChannelType,const double),
   340    MagickTransparentImage(MagickWand *,const PixelWand *,const Quantum,
   341      const double),
   342    MagickTrimImage(MagickWand *,const double),
   343    MagickUnsharpMaskImage(MagickWand *,const double,const double,const double,
   344      const double),
   345    MagickWaveImage(MagickWand *,const double,const double),
   346    MagickWhiteThresholdImage(MagickWand *,const PixelWand *),
   347    MagickWriteImage(MagickWand *,const char *),
   348    MagickWriteImageFile(MagickWand *,FILE *),
   349    MagickWriteImagesFile(MagickWand *,FILE *,const unsigned int),
   350    MagickWriteImages(MagickWand *,const char *,const unsigned int);
   351  
   352  extern WandExport unsigned long
   353    MagickGetImageColors(MagickWand *),
   354    MagickGetImageDelay(MagickWand *),
   355    MagickGetImageChannelDepth(MagickWand *,const ChannelType),
   356    MagickGetImageDepth(MagickWand *),
   357    MagickGetImageHeight(MagickWand *),
   358    MagickGetImageIterations(MagickWand *),
   359    MagickGetImageScene(MagickWand *),
   360    MagickGetImageWidth(MagickWand *),
   361    MagickGetNumberImages(MagickWand *),
   362    MagickGetResourceLimit(const ResourceType);
   363  
   364  extern WandExport VirtualPixelMethod
   365    MagickGetImageVirtualPixelMethod(MagickWand *);
   366  
   367  extern WandExport unsigned char
   368    *MagickGetImageProfile(MagickWand *,const char *,unsigned long *),
   369    *MagickRemoveImageProfile(MagickWand *,const char *,unsigned long *),
   370    *MagickWriteImageBlob(MagickWand *,size_t *);
   371  
   372  extern WandExport void
   373    MagickClearException(MagickWand *),
   374    MagickResetIterator(MagickWand *);
   375  
   376  #if defined(__cplusplus) || defined(c_plusplus)
   377  }
   378  #endif
   379  
   380  #endif
   381  
   382  /*
   383   * Local Variables:
   384   * mode: c
   385   * c-basic-offset: 2
   386   * fill-column: 78
   387   * End:
   388   */