Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:01:20

0001 /*
0002   Copyright @ 1999 ImageMagick Studio LLC, a non-profit organization
0003   dedicated to making software imaging solutions freely available.
0004   
0005   You may not use this file except in compliance with the License.  You may
0006   obtain a copy of the License at
0007   
0008     https://imagemagick.org/script/license.php
0009   
0010   Unless required by applicable law or agreed to in writing, software
0011   distributed under the License is distributed on an "AS IS" BASIS,
0012   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0013   See the License for the specific language governing permissions and
0014   limitations under the License.
0015 
0016   MagickCore image color methods.
0017 */
0018 #ifndef MAGICKCORE_COLOR_H
0019 #define MAGICKCORE_COLOR_H
0020 
0021 #include "MagickCore/pixel.h"
0022 #include "MagickCore/exception.h"
0023 
0024 #if defined(__cplusplus) || defined(c_plusplus)
0025 extern "C" {
0026 #endif
0027 
0028 typedef enum
0029 {
0030   UndefinedCompliance,
0031   NoCompliance = 0x0000,
0032   CSSCompliance = 0x0001,
0033   SVGCompliance = 0x0001,
0034   X11Compliance = 0x0002,
0035   XPMCompliance = 0x0004,
0036   MVGCompliance = 0x0008,
0037   AllCompliance = 0x7fffffff
0038 } ComplianceType;
0039 
0040 typedef enum
0041 {
0042   UndefinedIlluminant = 5,
0043   AIlluminant = 0,
0044   BIlluminant = 1,
0045   CIlluminant = 2,
0046   D50Illuminant = 3,
0047   D55Illuminant = 4,
0048   D65Illuminant = 5,
0049   D75Illuminant = 6,
0050   EIlluminant = 7,
0051   F2Illuminant = 8,
0052   F7Illuminant = 9,
0053   F11Illuminant = 10
0054 } IlluminantType;
0055 
0056 typedef struct _ColorInfo
0057 {
0058   char
0059     *path,
0060     *name;
0061 
0062   ComplianceType
0063     compliance;
0064 
0065   PixelInfo
0066     color;
0067 
0068   MagickBooleanType
0069     exempt,
0070     stealth;
0071 
0072   size_t
0073     signature;
0074 } ColorInfo;
0075 
0076 typedef struct _ErrorInfo
0077 {
0078   double
0079     mean_error_per_pixel,
0080     normalized_mean_error,
0081     normalized_maximum_error;
0082 } ErrorInfo;
0083 
0084 extern MagickExport char
0085   **GetColorList(const char *,size_t *,ExceptionInfo *);
0086 
0087 extern MagickExport const ColorInfo
0088   *GetColorInfo(const char *,ExceptionInfo *),
0089   **GetColorInfoList(const char *,size_t *,ExceptionInfo *);
0090 
0091 extern MagickExport MagickBooleanType
0092   IsEquivalentImage(const Image *,const Image *,ssize_t *x,ssize_t *y,
0093     ExceptionInfo *),
0094   ListColorInfo(FILE *,ExceptionInfo *),
0095   QueryColorCompliance(const char *,const ComplianceType,PixelInfo *,
0096     ExceptionInfo *),
0097   QueryColorname(const Image *,const PixelInfo *,const ComplianceType,
0098     char *,ExceptionInfo *);
0099 
0100 extern MagickExport void
0101   ConcatenateColorComponent(const PixelInfo *,const PixelChannel,
0102     const ComplianceType,char *),
0103   GetColorTuple(const PixelInfo *,const MagickBooleanType,char *);
0104 
0105 #if defined(__cplusplus) || defined(c_plusplus)
0106 }
0107 #endif
0108 
0109 #endif