This commit is contained in:
castano
2011-04-06 01:56:51 +00:00
parent 43b16d85f4
commit ce8647c51d
2 changed files with 82 additions and 80 deletions

View File

@ -244,13 +244,14 @@ FloatImage * nv::ImageIO::loadFloat(const char * fileName, Stream & s)
}
}
#else // defined(HAVE_FREEIMAGE)
#pragma NV_MESSAGE("TODO: Load TIFF and EXR files from stream.")
#if defined(HAVE_TIFF)
#pragma NV_MESSAGE("TODO: Load TIFF from stream.")
if (strCaseCmp(extension, ".tif") == 0 || strCaseCmp(extension, ".tiff") == 0) {
return loadFloatTIFF(fileName, s);
}
#endif
#if defined(HAVE_OPENEXR)
#pragma NV_MESSAGE("TODO: Load EXR from stream.")
if (strCaseCmp(extension, ".exr") == 0) {
return loadFloatEXR(fileName, s);
}
@ -647,15 +648,15 @@ bool nv::ImageIO::saveFloatFreeImage(FREE_IMAGE_FORMAT fif, Stream & s, const Fl
FREE_IMAGE_TYPE type;
if (componentCount == 1)
{
type = FIT_FLOAT;
type = FIT_FLOAT;
}
else if (componentCount == 3)
{
type = FIT_RGBF;
type = FIT_RGBF;
}
else if (componentCount == 4)
{
type = FIT_RGBAF;
type = FIT_RGBAF;
}
else {
return false;