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

     1  /*
     2    Copyright (C) 2003 GraphicsMagick Group
     3    Copyright (C) 2002 ImageMagick Studio
     4    Copyright 1991-1999 E. I. du Pont de Nemours and Company
     5  
     6    This program is covered by multiple licenses, which are described in
     7    Copyright.txt. You should have received a copy of Copyright.txt with this
     8    package; otherwise see http://www.graphicsmagick.org/www/Copyright.html.
     9  
    10    Methods to Reduce the Number of Unique Colors in an Image.
    11  */
    12  #ifndef _MAGICK_QUANTIZE_H
    13  #define _MAGICK_QUANTIZE_H
    14  
    15  #if defined(__cplusplus) || defined(c_plusplus)
    16  extern "C" {
    17  #endif
    18  
    19  /*
    20    Define declarations.
    21  */
    22  #define MaxTreeDepth  8
    23  #define NodesInAList  1536
    24  
    25  /*
    26    Typedef declarations.
    27  */
    28  typedef struct _QuantizeInfo
    29  {
    30    unsigned long
    31      number_colors;
    32  
    33    unsigned int
    34      tree_depth,
    35      dither;
    36  
    37    ColorspaceType
    38      colorspace;
    39  
    40    unsigned int
    41      measure_error;
    42  
    43    unsigned long
    44      signature;
    45  } QuantizeInfo;
    46  
    47  /*
    48    Quantization utilities methods.
    49  */
    50  extern MagickExport QuantizeInfo
    51    *CloneQuantizeInfo(const QuantizeInfo *);
    52  
    53  extern MagickExport unsigned int
    54    GetImageQuantizeError(Image *),
    55    MapImage(Image *,const Image *,const unsigned int),
    56    MapImages(Image *,const Image *,const unsigned int),
    57    OrderedDitherImage(Image *),
    58    QuantizeImage(const QuantizeInfo *,Image *),
    59    QuantizeImages(const QuantizeInfo *,Image *),
    60    SegmentImage(Image *,const ColorspaceType,const unsigned int,const double,
    61      const double);
    62  
    63  extern MagickExport void
    64    CompressImageColormap(Image *),
    65    DestroyQuantizeInfo(QuantizeInfo *),
    66    GetQuantizeInfo(QuantizeInfo *),
    67    GrayscalePseudoClassImage(Image *,unsigned int);
    68  
    69  #if defined(__cplusplus) || defined(c_plusplus)
    70  }
    71  #endif
    72  
    73  #endif
    74  
    75  /*
    76   * Local Variables:
    77   * mode: c
    78   * c-basic-offset: 2
    79   * fill-column: 78
    80   * End:
    81   */