From Jason Beverage, "Here is a small fix that enables writing 16 bit short images in the tiff plugin.
"
This commit is contained in:
@@ -811,6 +811,10 @@ class ReaderWriterTIFF : public osgDB::ReaderWriter
|
||||
TIFFSetField(image, TIFFTAG_ROWSPERSTRIP, 1);
|
||||
bitsPerSample = 32;
|
||||
break;
|
||||
case GL_SHORT:
|
||||
TIFFSetField(image, TIFFTAG_SAMPLEFORMAT, SAMPLEFORMAT_INT);
|
||||
bitsPerSample = 16;
|
||||
break;
|
||||
default:
|
||||
bitsPerSample = 8;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user