Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:11:41

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 colorspace methods.
0017 */
0018 #ifndef MAGICKCORE_COLORSPACE_H
0019 #define MAGICKCORE_COLORSPACE_H
0020 
0021 #if defined(__cplusplus) || defined(c_plusplus)
0022 extern "C" {
0023 #endif
0024 
0025 typedef enum
0026 {
0027   UndefinedColorspace,
0028   CMYColorspace,           /* negated linear RGB colorspace */
0029   CMYKColorspace,          /* CMY with Black separation */
0030   GRAYColorspace,          /* Single Channel greyscale (non-linear) image */
0031   HCLColorspace,
0032   HCLpColorspace,
0033   HSBColorspace,
0034   HSIColorspace,
0035   HSLColorspace,
0036   HSVColorspace,           /* alias for HSB */
0037   HWBColorspace,
0038   LabColorspace,
0039   LCHColorspace,           /* alias for LCHuv */
0040   LCHabColorspace,         /* Cylindrical (Polar) Lab */
0041   LCHuvColorspace,         /* Cylindrical (Polar) Luv */
0042   LogColorspace,
0043   LMSColorspace,
0044   LuvColorspace,
0045   OHTAColorspace,
0046   Rec601YCbCrColorspace,
0047   Rec709YCbCrColorspace,
0048   RGBColorspace,           /* Linear RGB colorspace */
0049   scRGBColorspace,         /* ??? */
0050   sRGBColorspace,          /* Default: non-linear sRGB colorspace */
0051   TransparentColorspace,
0052   xyYColorspace,
0053   XYZColorspace,           /* IEEE Color Reference colorspace */
0054   YCbCrColorspace,
0055   YCCColorspace,
0056   YDbDrColorspace,
0057   YIQColorspace,
0058   YPbPrColorspace,
0059   YUVColorspace,
0060   LinearGRAYColorspace,     /* Single Channel greyscale (linear) image */
0061   JzazbzColorspace,
0062   DisplayP3Colorspace,
0063   Adobe98Colorspace,
0064   ProPhotoColorspace,
0065   OklabColorspace,
0066   OklchColorspace
0067 } ColorspaceType;
0068 
0069 extern MagickExport ColorspaceType
0070   GetImageColorspaceType(const Image *,ExceptionInfo *);
0071 
0072 extern MagickExport MagickBooleanType
0073   SetImageColorspace(Image *,const ColorspaceType,ExceptionInfo *),
0074   SetImageGray(Image *,ExceptionInfo *),
0075   SetImageMonochrome(Image *,ExceptionInfo *),
0076   TransformImageColorspace(Image *,const ColorspaceType,ExceptionInfo *);
0077 
0078 #if defined(__cplusplus) || defined(c_plusplus)
0079 }
0080 #endif
0081 
0082 #endif