libtiff.html: fix function casing
This commit is contained in:
parent
2cdc041d62
commit
8c9dca34be
@ -547,17 +547,17 @@
|
||||
buf = _TIFFmalloc(TIFFScanlineSize(tif));<br>
|
||||
if (config == PLANARCONFIG_CONTIG) {<br>
|
||||
for (row = 0; row < imagelength; row++)<br>
|
||||
tiffreadscanline(tif, buf, row);<br>
|
||||
TIFFReadScanline(tif, buf, row, 0);<br>
|
||||
} else if (config == planarconfig_separate) {<br>
|
||||
uint16 s, nsamples;<br>
|
||||
<br>
|
||||
tiffgetfield(tif, tifftag_samplesperpixel, &nsamples);<br>
|
||||
for (s = 0; s < nsamples; s++)<br>
|
||||
for (row = 0; row < imagelength; row++)<br>
|
||||
tiffreadscanline(tif, buf, row, s);<br>
|
||||
TIFFReadScanline(tif, buf, row, s);<br>
|
||||
}<br>
|
||||
_tifffree(buf);<br>
|
||||
tiffclose(tif);<br>
|
||||
_TIFFfree(buf);<br>
|
||||
TIFFClose(tif);<br>
|
||||
}<br>
|
||||
}</tt>
|
||||
</p>
|
||||
@ -568,7 +568,7 @@
|
||||
<p style="margin-left: 40px">
|
||||
<tt> for (row = 0; row < imagelength; row++)<br>
|
||||
for (s = 0; s < nsamples; s++)<br>
|
||||
tiffreadscanline(tif, buf, row, s);</tt>
|
||||
TIFFReadScanline(tif, buf, row, s);</tt>
|
||||
</p>
|
||||
<p>
|
||||
...then problems would arise if <tt>RowsPerStrip</tt> was not one
|
||||
@ -601,8 +601,8 @@
|
||||
buf = _TIFFmalloc(TIFFStripSize(tif));<br>
|
||||
for (strip = 0; strip < tiffnumberofstrips(tif); strip++)<br>
|
||||
tiffreadencodedstrip(tif, strip, buf, (tsize_t) -1);<br>
|
||||
_tifffree(buf);<br>
|
||||
tiffclose(tif);<br>
|
||||
_TIFFfree(buf);<br>
|
||||
TIFFClose(tif);<br>
|
||||
}<br>
|
||||
}</tt>
|
||||
</p>
|
||||
@ -702,8 +702,8 @@
|
||||
for (y = 0; y < imagelength; y += tilelength)<br>
|
||||
for (x = 0; x < imagewidth; x += tilewidth)<br>
|
||||
tiffreadtile(tif, buf, x, y, 0);<br>
|
||||
_tifffree(buf);<br>
|
||||
tiffclose(tif);<br>
|
||||
_TIFFfree(buf);<br>
|
||||
TIFFClose(tif);<br>
|
||||
}<br>
|
||||
}</tt>
|
||||
</p>
|
||||
@ -729,8 +729,8 @@
|
||||
buf = _TIFFmalloc(TIFFTileSize(tif));<br>
|
||||
for (tile = 0; tile < tiffnumberoftiles(tif); tile++)<br>
|
||||
tiffreadencodedtile(tif, tile, buf, (tsize_t) -1);<br>
|
||||
_tifffree(buf);<br>
|
||||
tiffclose(tif);<br>
|
||||
_TIFFfree(buf);<br>
|
||||
TIFFClose(tif);<br>
|
||||
}<br>
|
||||
}</tt>
|
||||
</p>
|
||||
|
Loading…
Reference in New Issue
Block a user