fixed whitespace issues
This commit is contained in:
parent
a07d7a70a0
commit
998a909705
@ -574,17 +574,16 @@ bool TiffEncoder::writeLibTiff( const Mat& img, const std::vector<int>& params)
|
|||||||
|| !TIFFSetField(pTiffHandle, TIFFTAG_SAMPLESPERPIXEL, channels)
|
|| !TIFFSetField(pTiffHandle, TIFFTAG_SAMPLESPERPIXEL, channels)
|
||||||
|| !TIFFSetField(pTiffHandle, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG)
|
|| !TIFFSetField(pTiffHandle, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG)
|
||||||
|| !TIFFSetField(pTiffHandle, TIFFTAG_ROWSPERSTRIP, rowsPerStrip)
|
|| !TIFFSetField(pTiffHandle, TIFFTAG_ROWSPERSTRIP, rowsPerStrip)
|
||||||
// || !TIFFSetField(pTiffHandle, TIFFTAG_PREDICTOR, predictor)
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
TIFFClose(pTiffHandle);
|
TIFFClose(pTiffHandle);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (compression != COMPRESSION_NONE && !TIFFSetField(pTiffHandle, TIFFTAG_PREDICTOR, predictor) )
|
if (compression != COMPRESSION_NONE && !TIFFSetField(pTiffHandle, TIFFTAG_PREDICTOR, predictor) )
|
||||||
{
|
{
|
||||||
TIFFClose(pTiffHandle);
|
TIFFClose(pTiffHandle);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// row buffer, because TIFFWriteScanline modifies the original data!
|
// row buffer, because TIFFWriteScanline modifies the original data!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user