Show
Ignore:
Timestamp:
01/27/09 16:14:47 (5 years ago)
Author:
robert
Message:

From Jason Beverage, "Here is a small fix that enables writing 16 bit short images in the tiff plugin.
"

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/tiff/ReaderWriterTIFF.cpp

    r8884 r9556  
    812812                    bitsPerSample = 32; 
    813813                    break; 
     814                case GL_SHORT: 
     815                    TIFFSetField(image, TIFFTAG_SAMPLEFORMAT, SAMPLEFORMAT_INT); 
     816                    bitsPerSample = 16; 
     817                    break; 
    814818                default: 
    815819                    bitsPerSample = 8;