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

     1  /*
     2    Copyright (C) 2004 - 2009 GraphicsMagick Group
     3  
     4    This program is covered by multiple licenses, which are described in
     5    Copyright.txt. You should have received a copy of Copyright.txt with this
     6    package; otherwise see http://www.graphicsmagick.org/www/Copyright.html.
     7  
     8    GraphicsMagick Methods For Manipulating Embedded Image Profiles.
     9  */
    10  #ifndef _MAGICK_PROFILE_H
    11  #define _MAGICK_PROFILE_H
    12  
    13  #if defined(__cplusplus) || defined(c_plusplus)
    14  extern "C" {
    15  #endif /* defined(__cplusplus) || defined(c_plusplus) */
    16  
    17  /*
    18    Retrieve a profile from the image by name.
    19  */
    20  extern MagickExport const unsigned char
    21    *GetImageProfile(const Image* image, const char *name, size_t *length);
    22  
    23  /*
    24    Remove a profile from the image by name.
    25  */
    26  extern MagickExport MagickPassFail
    27    DeleteImageProfile(Image *image,const char *name);
    28  
    29  /*
    30    Apply (or add) a profile to the image.
    31  */
    32  extern MagickExport MagickPassFail
    33    ProfileImage(Image *image,const char *name,unsigned char *profile,
    34                 const size_t length,MagickBool clone);
    35  
    36  /*
    37    Add (or replace) profile to the image by name.
    38  */
    39  extern MagickExport MagickPassFail
    40    SetImageProfile(Image *image,const char *name,const unsigned char *profile,
    41                    const size_t length);
    42  
    43  /*
    44    Add (or append) profile to the image by name.
    45   */
    46    extern MagickExport MagickPassFail
    47    AppendImageProfile(Image *image,const char *name,
    48                       const unsigned char *profile_chunk,
    49                       const size_t chunk_length);
    50  
    51  /*
    52    Generic iterator for traversing profiles.
    53  */
    54  typedef void *ImageProfileIterator;
    55  
    56  /*
    57    Allocate an image profile iterator which points to one before the
    58    list so NextImageProfile() must be used to advance to first entry.
    59  */
    60  extern MagickExport ImageProfileIterator
    61    AllocateImageProfileIterator(const Image *image);
    62  
    63  /*
    64    Advance to next image profile.  Name, profile, and length are
    65    updated with information on current profile. MagickFail is returned
    66    when there are no more entries.
    67  */
    68  extern MagickExport MagickPassFail
    69    NextImageProfile(ImageProfileIterator profile_iterator,const char **name,
    70                     const unsigned char **profile,size_t *length);
    71  
    72  /*
    73    Deallocate profile iterator.
    74  */
    75  extern MagickExport void
    76    DeallocateImageProfileIterator(ImageProfileIterator profile_iterator);
    77  
    78  #if defined(__cplusplus) || defined(c_plusplus)
    79  }
    80  #endif /* defined(__cplusplus) || defined(c_plusplus) */
    81  
    82  #endif /* _MAGICK_PROFILE_H */
    83  
    84  /*
    85   * Local Variables:
    86   * mode: c
    87   * c-basic-offset: 2
    88   * fill-column: 78
    89   * End:
    90   */