1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
|
/*-----------------------------------------------------------------
GEM - Graphics Environment for Multimedia
Load a picture (using libtiff)
Copyright (c) 2011 IOhannes m zmölnig. forum::für::umläute. IEM. zmoelnig@iem.at
For information on usage and redistribution, and for a DISCLAIMER OF ALL
WARRANTIES, see the file, "GEM.LICENSE.TERMS" in this distribution.
-----------------------------------------------------------------*/
#ifndef _INCLUDE_GEMPLUGIN__IMAGETIFF_IMAGETIFF_H_
#define _INCLUDE_GEMPLUGIN__IMAGETIFF_IMAGETIFF_H_
#include "plugins/imageloader.h"
#include "plugins/imagesaver.h"
#include <stdio.h>
/*-----------------------------------------------------------------
-------------------------------------------------------------------
CLASS
imageTIFF
Loads in a picture
KEYWORDS
pix
DESCRIPTION
-----------------------------------------------------------------*/
namespace gem
{
namespace plugins
{
class GEM_EXPORT imageTIFF : public gem::plugins::imageloader,
public gem::plugins::imagesaver
{
public:
//////////
// Constructor
imageTIFF(void);
virtual ~imageTIFF(void);
//////////
// read an image
virtual bool load(std::string filename, imageStruct&result,
gem::Properties&props);
//////////
// write an image
virtual bool save(const imageStruct&img,
const std::string&filename, const std::string&mimetype,
const gem::Properties&props);
//////////
// estimate, how well we could save this image
virtual float estimateSave(const imageStruct&img,
const std::string&filename, const std::string&mimetype,
const gem::Properties&props);
////////
// get writing capabilities of this backend (informative)
virtual void getWriteCapabilities(std::vector<std::string>&mimetypes,
gem::Properties&props);
////////
// can be used from threaded contexts
virtual bool isThreadable(void)
{
return true;
}
};
};
};
#endif // for header file
|