< prev index next >

src/java.desktop/share/native/liblcms/cmsio1.c

Print this page
*** 605,11 ***
  Error:
      cmsPipelineFree(Lut);
      return NULL;
  }
  
! // Create an output MPE LUT from agiven profile. Version mismatches are handled here
  cmsPipeline* CMSEXPORT _cmsReadOutputLUT(cmsHPROFILE hProfile, cmsUInt32Number Intent)
  {
      cmsTagTypeSignature OriginalType;
      cmsTagSignature tag16;
      cmsTagSignature tagFloat;
--- 605,11 ---
  Error:
      cmsPipelineFree(Lut);
      return NULL;
  }
  
! // Create an output MPE LUT from a given profile. Version mismatches are handled here
  cmsPipeline* CMSEXPORT _cmsReadOutputLUT(cmsHPROFILE hProfile, cmsUInt32Number Intent)
  {
      cmsTagTypeSignature OriginalType;
      cmsTagSignature tag16;
      cmsTagSignature tagFloat;

*** 1054,5 ***
--- 1054,15 ---
      const cmsMLU* mlu = GetInfo(hProfile, Info);
      if (mlu == NULL) return 0;
  
      return cmsMLUgetASCII(mlu, LanguageCode, CountryCode, Buffer, BufferSize);
  }
+ 
+ cmsUInt32Number  CMSEXPORT cmsGetProfileInfoUTF8(cmsHPROFILE hProfile, cmsInfoType Info,
+                                                           const char LanguageCode[3], const char CountryCode[3],
+                                                           char* Buffer, cmsUInt32Number BufferSize)
+ {
+     const cmsMLU* mlu = GetInfo(hProfile, Info);
+     if (mlu == NULL) return 0;
+ 
+     return cmsMLUgetUTF8(mlu, LanguageCode, CountryCode, Buffer, BufferSize);
+ }
< prev index next >