@@ -45,7 +45,7 @@ static STAT ColorantStat[4];
4545static STAT EuclideanStat ;
4646static STAT ColorimetricStat ;
4747
48- static uint16 Channels ;
48+ static uint16_t Channels ;
4949
5050static cmsHPROFILE hLab ;
5151
@@ -187,8 +187,8 @@ double Mean(LPSTAT st)
187187static
188188cmsUInt32Number GetInputPixelType (TIFF * Bank )
189189{
190- uint16 Photometric , bps , spp , extra , PlanarConfig , * info ;
191- uint16 Compression , reverse = 0 ;
190+ uint16_t Photometric , bps , spp , extra , PlanarConfig , * info ;
191+ uint16_t Compression , reverse = 0 ;
192192 int ColorChannels , IsPlanar = 0 , pt = 0 ;
193193
194194 TIFFGetField (Bank , TIFFTAG_PHOTOMETRIC , & Photometric );
@@ -253,7 +253,7 @@ cmsUInt32Number GetInputPixelType(TIFF *Bank)
253253 case PHOTOMETRIC_YCBCR :
254254 TIFFGetField (Bank , TIFFTAG_COMPRESSION , & Compression );
255255 {
256- uint16 subx , suby ;
256+ uint16_t subx , suby ;
257257
258258 pt = PT_YCbCr ;
259259 TIFFGetFieldDefaulted (Bank , TIFFTAG_YCBCRSUBSAMPLING , & subx , & suby );
@@ -332,7 +332,7 @@ int CmpImages(TIFF* tiff1, TIFF* tiff2, TIFF* diff)
332332{
333333 cmsUInt8Number * buf1 , * buf2 , * buf3 = NULL ;
334334 int row , cols , imagewidth = 0 , imagelength = 0 ;
335- uint16 Photometric ;
335+ uint16_t Photometric ;
336336 double dE = 0 ;
337337 double dR , dG , dB , dC , dM , dY , dK ;
338338 int rc = 0 ;
@@ -483,7 +483,7 @@ int CmpImages(TIFF* tiff1, TIFF* tiff2, TIFF* diff)
483483static
484484void AssureShortTagIs (TIFF * tif1 , TIFF * tiff2 , int tag , int Val , const char * Error )
485485{
486- uint16 v1 ;
486+ uint16_t v1 ;
487487
488488
489489 if (!TIFFGetField (tif1 , tag , & v1 )) goto Err ;
@@ -501,7 +501,7 @@ void AssureShortTagIs(TIFF* tif1, TIFF* tiff2, int tag, int Val, const char* Err
501501static
502502int CmpShortTag (TIFF * tif1 , TIFF * tif2 , int tag )
503503{
504- uint16 v1 , v2 ;
504+ uint16_t v1 , v2 ;
505505
506506 if (!TIFFGetField (tif1 , tag , & v1 )) return 0 ;
507507 if (!TIFFGetField (tif2 , tag , & v2 )) return 0 ;
0 commit comments