Class KCMSSanitizerStrategy

java.lang.Object
com.twelvemonkeys.imageio.color.KCMSSanitizerStrategy
All Implemented Interfaces:
ICCProfileSanitizer

final class KCMSSanitizerStrategy extends Object implements ICCProfileSanitizer
KCMSProfileCleaner.
Version:
$Id: KCMSProfileCleaner.java,v 1.0 06/01/15 harald.kuhr Exp$
  • Field Details

    • CORBIS_RGB_ALTERNATE_XYZ

      private static final int CORBIS_RGB_ALTERNATE_XYZ
      Value used instead of 'XYZ ' in problematic Corbis RGB Profiles
      See Also:
  • Constructor Details

    • KCMSSanitizerStrategy

      KCMSSanitizerStrategy()
  • Method Details

    • fixProfile

      public void fixProfile(ICC_Profile profile)
      Specified by:
      fixProfile in interface ICCProfileSanitizer
    • validationAltersProfileHeader

      public boolean validationAltersProfileHeader()
      Specified by:
      validationAltersProfileHeader in interface ICCProfileSanitizer
    • fixProfileXYZTag

      private static boolean fixProfileXYZTag(ICC_Profile profile, int tagSignature)
      Fixes problematic 'XYZ ' tags in Corbis RGB profile.
      Returns:
      true if found and fixed, otherwise false for short-circuiting to avoid unnecessary array copying.
    • intFromBigEndian

      private static int intFromBigEndian(byte[] array, int index)
    • intToBigEndian

      private static void intToBigEndian(int value, byte[] array, int index)