@@ -279,8 +279,8 @@ static int rtiff_we_decompress[] = {
279
279
* out as a separate thing.
280
280
*/
281
281
typedef struct _RtiffHeader {
282
- uint32 width ;
283
- uint32 height ;
282
+ guint32 width ;
283
+ guint32 height ;
284
284
int samples_per_pixel ;
285
285
int bits_per_sample ;
286
286
int photometric_interpretation ;
@@ -293,22 +293,22 @@ typedef struct _RtiffHeader {
293
293
* unpremultiply with. -1 for no unpremultiplication.
294
294
*/
295
295
int alpha_band ;
296
- uint16 compression ;
296
+ guint16 compression ;
297
297
298
298
/* Is this directory tiled.
299
299
*/
300
300
gboolean tiled ;
301
301
302
302
/* Fields for tiled images, as returned by libtiff.
303
303
*/
304
- uint32 tile_width ;
305
- uint32 tile_height ;
304
+ guint32 tile_width ;
305
+ guint32 tile_height ;
306
306
tsize_t tile_size ;
307
307
tsize_t tile_row_size ;
308
308
309
309
/* Fields for strip images, as returned by libtiff.
310
310
*/
311
- uint32 rows_per_strip ;
311
+ guint32 rows_per_strip ;
312
312
tsize_t strip_size ;
313
313
tsize_t scanline_size ;
314
314
int number_of_strips ;
@@ -322,7 +322,7 @@ typedef struct _RtiffHeader {
322
322
* or 1) and size of the buffer we read to (a scanline, or a strip in
323
323
* size).
324
324
*/
325
- uint32 read_height ;
325
+ guint32 read_height ;
326
326
tsize_t read_size ;
327
327
328
328
/* Scale factor to get absolute cd/m2 from XYZ.
@@ -413,20 +413,20 @@ typedef struct _Rtiff {
413
413
static int
414
414
tfexists ( TIFF * tif , ttag_t tag )
415
415
{
416
- uint32 a , b ;
416
+ guint32 a , b ;
417
417
418
418
if ( TIFFGetField ( tif , tag , & a , & b ) )
419
419
return ( 1 );
420
420
else
421
421
return ( 0 );
422
422
}
423
423
424
- /* Get a uint32 field.
424
+ /* Get a guint32 field.
425
425
*/
426
426
static int
427
- tfget32 ( TIFF * tif , ttag_t tag , uint32 * out )
427
+ tfget32 ( TIFF * tif , ttag_t tag , guint32 * out )
428
428
{
429
- uint32 fld ;
429
+ guint32 fld ;
430
430
431
431
if ( !TIFFGetFieldDefaulted ( tif , tag , & fld ) ) {
432
432
vips_error ( "tiff2vips" ,
@@ -439,12 +439,12 @@ tfget32( TIFF *tif, ttag_t tag, uint32 *out )
439
439
return ( 1 );
440
440
}
441
441
442
- /* Get a uint16 field.
442
+ /* Get a guint16 field.
443
443
*/
444
444
static int
445
445
tfget16 ( TIFF * tif , ttag_t tag , int * out )
446
446
{
447
- uint16 fld ;
447
+ guint16 fld ;
448
448
449
449
if ( !TIFFGetFieldDefaulted ( tif , tag , & fld ) ) {
450
450
vips_error ( "tiff2vips" ,
@@ -512,7 +512,7 @@ static int
512
512
get_sample_format ( TIFF * tiff )
513
513
{
514
514
int sample_format ;
515
- uint16 v ;
515
+ guint16 v ;
516
516
517
517
sample_format = SAMPLEFORMAT_INT ;
518
518
@@ -532,7 +532,7 @@ static int
532
532
get_orientation ( TIFF * tiff )
533
533
{
534
534
int orientation ;
535
- uint16 v ;
535
+ guint16 v ;
536
536
537
537
orientation = ORIENTATION_TOPLEFT ;
538
538
@@ -686,7 +686,7 @@ rtiff_set_page( Rtiff *rtiff, int page )
686
686
}
687
687
688
688
if ( rtiff -> subifd >= 0 ) {
689
- uint16 subifd_count ;
689
+ guint16 subifd_count ;
690
690
toff_t * subifd_offsets ;
691
691
692
692
if ( !TIFFGetField ( rtiff -> tiff , TIFFTAG_SUBIFD ,
@@ -1224,7 +1224,7 @@ rtiff_greyscale_line( Rtiff *rtiff,
1224
1224
1225
1225
switch ( format ) {
1226
1226
case VIPS_FORMAT_CHAR :
1227
- GREY_LOOP ( guchar , 0 );
1227
+ GREY_LOOP ( gchar , 0 );
1228
1228
break ;
1229
1229
1230
1230
case VIPS_FORMAT_UCHAR :
@@ -1646,7 +1646,7 @@ rtiff_pick_reader( Rtiff *rtiff )
1646
1646
static int
1647
1647
rtiff_set_header ( Rtiff * rtiff , VipsImage * out )
1648
1648
{
1649
- uint32 data_length ;
1649
+ guint32 data_length ;
1650
1650
void * data ;
1651
1651
1652
1652
rtiff_set_decode_format ( rtiff );
@@ -2437,9 +2437,9 @@ static int
2437
2437
rtiff_header_read ( Rtiff * rtiff , RtiffHeader * header )
2438
2438
{
2439
2439
int i ;
2440
- uint16 extra_samples_count ;
2441
- uint16 * extra_samples_types ;
2442
- uint16 subifd_count ;
2440
+ guint16 extra_samples_count ;
2441
+ guint16 * extra_samples_types ;
2442
+ guint16 subifd_count ;
2443
2443
toff_t * subifd_offsets ;
2444
2444
char * image_description ;
2445
2445
@@ -2489,7 +2489,7 @@ rtiff_header_read( Rtiff *rtiff, RtiffHeader *header )
2489
2489
*
2490
2490
* tiffcp fails for images like this too.
2491
2491
*/
2492
- uint16 hsub , vsub ;
2492
+ guint16 hsub , vsub ;
2493
2493
2494
2494
TIFFGetFieldDefaulted ( rtiff -> tiff ,
2495
2495
TIFFTAG_YCBCRSUBSAMPLING , & hsub , & vsub );
@@ -2548,7 +2548,7 @@ rtiff_header_read( Rtiff *rtiff, RtiffHeader *header )
2548
2548
header -> separate = TRUE;
2549
2549
}
2550
2550
2551
- /* TIFFGetField needs a uint16 to write count to.
2551
+ /* TIFFGetField needs a guint16 to write count to.
2552
2552
*/
2553
2553
if ( TIFFGetField ( rtiff -> tiff , TIFFTAG_SUBIFD ,
2554
2554
& subifd_count , & subifd_offsets ) )
0 commit comments