Fix errors in meta data api.
This commit is contained in:
parent
11d04287c9
commit
144a8d6d4b
@ -64,7 +64,7 @@ namespace nv
|
|||||||
static Image * loadFreeImage(FREE_IMAGE_FORMAT fif, Stream & s);
|
static Image * loadFreeImage(FREE_IMAGE_FORMAT fif, Stream & s);
|
||||||
static FloatImage * loadFloatFreeImage(FREE_IMAGE_FORMAT fif, Stream & s);
|
static FloatImage * loadFloatFreeImage(FREE_IMAGE_FORMAT fif, Stream & s);
|
||||||
|
|
||||||
static bool saveFreeImage(FREE_IMAGE_FORMAT fif, Stream & s, const Image * img, const char * tags);
|
static bool saveFreeImage(FREE_IMAGE_FORMAT fif, Stream & s, const Image * img, const char ** tags);
|
||||||
static bool saveFloatFreeImage(FREE_IMAGE_FORMAT fif, Stream & s, const FloatImage * img, uint base_component, uint num_components);
|
static bool saveFloatFreeImage(FREE_IMAGE_FORMAT fif, Stream & s, const FloatImage * img, uint base_component, uint num_components);
|
||||||
|
|
||||||
#else // defined(HAVE_FREEIMAGE)
|
#else // defined(HAVE_FREEIMAGE)
|
||||||
@ -82,7 +82,7 @@ namespace nv
|
|||||||
|
|
||||||
#if defined(HAVE_PNG)
|
#if defined(HAVE_PNG)
|
||||||
static Image * loadPNG(Stream & s);
|
static Image * loadPNG(Stream & s);
|
||||||
static bool savePNG(Stream & s, const Image * img, const char * tags);
|
static bool savePNG(Stream & s, const Image * img, const char ** tags);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_JPEG)
|
#if defined(HAVE_JPEG)
|
||||||
@ -166,7 +166,7 @@ Image * nv::ImageIO::load(const char * fileName, Stream & s)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool nv::ImageIO::save(const char * fileName, Stream & s, const Image * img, const char * tags/*=NULL*/)
|
bool nv::ImageIO::save(const char * fileName, Stream & s, const Image * img, const char ** tags/*=NULL*/)
|
||||||
{
|
{
|
||||||
nvDebugCheck(fileName != NULL);
|
nvDebugCheck(fileName != NULL);
|
||||||
nvDebugCheck(s.isSaving());
|
nvDebugCheck(s.isSaving());
|
||||||
@ -194,7 +194,7 @@ bool nv::ImageIO::save(const char * fileName, Stream & s, const Image * img, con
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool nv::ImageIO::save(const char * fileName, const Image * img, const char * tags/*=NULL*/)
|
bool nv::ImageIO::save(const char * fileName, const Image * img, const char ** tags/*=NULL*/)
|
||||||
{
|
{
|
||||||
nvDebugCheck(fileName != NULL);
|
nvDebugCheck(fileName != NULL);
|
||||||
nvDebugCheck(img != NULL);
|
nvDebugCheck(img != NULL);
|
||||||
@ -598,7 +598,7 @@ FloatImage * nv::ImageIO::loadFloatFreeImage(FREE_IMAGE_FORMAT fif, Stream & s)
|
|||||||
return floatImage;
|
return floatImage;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool nv::ImageIO::saveFreeImage(FREE_IMAGE_FORMAT fif, Stream & s, const Image * img, const char * tags)
|
bool nv::ImageIO::saveFreeImage(FREE_IMAGE_FORMAT fif, Stream & s, const Image * img, const char ** tags)
|
||||||
{
|
{
|
||||||
nvCheck(!s.isError());
|
nvCheck(!s.isError());
|
||||||
|
|
||||||
@ -1241,7 +1241,7 @@ static void user_write_data(png_structp png_ptr, png_bytep data, png_size_t leng
|
|||||||
|
|
||||||
static void user_write_flush(png_structp png_ptr) { }
|
static void user_write_flush(png_structp png_ptr) { }
|
||||||
|
|
||||||
bool nv::ImageIO::savePNG(Stream & s, const Image * img, const char * tags/*=NULL*/)
|
bool nv::ImageIO::savePNG(Stream & s, const Image * img, const char ** tags/*=NULL*/)
|
||||||
{
|
{
|
||||||
nvCheck(!s.isError());
|
nvCheck(!s.isError());
|
||||||
nvCheck(img != NULL);
|
nvCheck(img != NULL);
|
||||||
|
@ -23,8 +23,8 @@ namespace nv
|
|||||||
NVIMAGE_API FloatImage * loadFloat(const char * fileName);
|
NVIMAGE_API FloatImage * loadFloat(const char * fileName);
|
||||||
NVIMAGE_API FloatImage * loadFloat(const char * fileName, Stream & s);
|
NVIMAGE_API FloatImage * loadFloat(const char * fileName, Stream & s);
|
||||||
|
|
||||||
NVIMAGE_API bool save(const char * fileName, const Image * img, const char * tags=NULL); // NULL terminated list.
|
NVIMAGE_API bool save(const char * fileName, const Image * img, const char ** tags=NULL); // NULL terminated list.
|
||||||
NVIMAGE_API bool save(const char * fileName, Stream & s, const Image * img, const char * tags=NULL);
|
NVIMAGE_API bool save(const char * fileName, Stream & s, const Image * img, const char ** tags=NULL);
|
||||||
|
|
||||||
NVIMAGE_API bool saveFloat(const char * fileName, const FloatImage * fimage, uint baseComponent, uint componentCount);
|
NVIMAGE_API bool saveFloat(const char * fileName, const FloatImage * fimage, uint baseComponent, uint componentCount);
|
||||||
NVIMAGE_API bool saveFloat(const char * fileName, Stream & s, const FloatImage * fimage, uint baseComponent, uint componentCount);
|
NVIMAGE_API bool saveFloat(const char * fileName, Stream & s, const FloatImage * fimage, uint baseComponent, uint componentCount);
|
||||||
|
Loading…
Reference in New Issue
Block a user