]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 14 Apr 2013 14:36:01 +0000 (14:36 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 14 Apr 2013 14:36:01 +0000 (14:36 +0000)
MagickCore/colorspace-private.h
MagickCore/colorspace.c
MagickCore/colorspace.h

index e5530fae6937b077d84557a0be7d4a4006a9d0de..0617c5b3e7e6cea022f7a09edb2afb4513936790 100644 (file)
@@ -92,7 +92,7 @@ static inline MagickBooleanType IsGrayColorspace(
 
 static inline MagickBooleanType IsRGBColorspace(const ColorspaceType colorspace)
 {
-  if (colorspace == RGBColorspace)
+  if ((colorspace == RGBColorspace) || (colorspace == scRGBColorspace))
     return(MagickTrue);
   return(MagickFalse);
 }
@@ -108,8 +108,9 @@ static inline MagickBooleanType IssRGBColorspace(
 static inline MagickBooleanType IssRGBCompatibleColorspace(
   const ColorspaceType colorspace)
 {
-  if ((colorspace == sRGBColorspace) || (colorspace == TransparentColorspace) ||
-      (colorspace == RGBColorspace) || (colorspace == GRAYColorspace))
+  if ((colorspace == sRGBColorspace) || (colorspace == RGBColorspace) ||
+      (colorspace == scRGBColorspace) || (colorspace == GRAYColorspace) ||
+      (colorspace == TransparentColorspace))
     return(MagickTrue);
   return(MagickFalse);
 }
index 007d0dc1c882bdb7581244d303118f8f24501518..3f74447f2f1d2607ecc3f1e09b131d7cc19dbf16 100644 (file)
@@ -1067,6 +1067,7 @@ static MagickBooleanType sRGBTransformImage(Image *image,
       return(status);
     }
     case RGBColorspace:
+    case scRGBColorspace:
     {
       /*
         Transform image from sRGB to linear RGB.
@@ -2960,6 +2961,7 @@ static MagickBooleanType TransformsRGBImage(Image *image,
       return(status);
     }
     case RGBColorspace:
+    case scRGBColorspace:
     {
       /*
         Transform linear RGB to sRGB colorspace.
index 625480477562fccce19ce76ef91f28572ed683e8..9e200a609ecf413cbfa0e44c40dccabc0a82868b 100644 (file)
@@ -43,6 +43,7 @@ typedef enum
   Rec601YCbCrColorspace,
   Rec709YCbCrColorspace,
   RGBColorspace,
+  scRGBColorspace,
   sRGBColorspace,
   TransparentColorspace,
   XYZColorspace,