Use TIFFhowmany8() macro instead of plain TIFFhowmany() where appropriate.
This commit is contained in:
parent
94d3ece8d8
commit
55b4911afc
@ -1,4 +1,4 @@
|
||||
/* $Id: tif_strip.c,v 1.6 2004-09-14 06:58:04 dron Exp $ */
|
||||
/* $Id: tif_strip.c,v 1.7 2004-09-22 13:49:08 dron Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991-1997 Sam Leffler
|
||||
@ -191,7 +191,7 @@ TIFFScanlineSize(TIFF* tif)
|
||||
scanline = td->td_bitspersample * td->td_imagewidth;
|
||||
if (td->td_planarconfig == PLANARCONFIG_CONTIG)
|
||||
scanline *= td->td_samplesperpixel;
|
||||
return ((tsize_t) TIFFhowmany(scanline, 8));
|
||||
return ((tsize_t) TIFFhowmany8(scanline));
|
||||
}
|
||||
|
||||
/*
|
||||
@ -209,10 +209,10 @@ TIFFRasterScanlineSize(TIFF* tif)
|
||||
scanline = td->td_bitspersample * td->td_imagewidth;
|
||||
if (td->td_planarconfig == PLANARCONFIG_CONTIG) {
|
||||
scanline *= td->td_samplesperpixel;
|
||||
return ((tsize_t) TIFFhowmany(scanline, 8));
|
||||
return ((tsize_t) TIFFhowmany8(scanline));
|
||||
} else
|
||||
return ((tsize_t)
|
||||
TIFFhowmany(scanline, 8)*td->td_samplesperpixel);
|
||||
TIFFhowmany8(scanline)*td->td_samplesperpixel);
|
||||
}
|
||||
|
||||
/* vim: set ts=8 sts=8 sw=8 noet: */
|
||||
|
Loading…
Reference in New Issue
Block a user