20 #ifndef DX_IO_tiff_IO_PLUGIN_OST_HH
21 #define DX_IO_tiff_IO_PLUGIN_OST_HH
27 #include <boost/logic/tribool.hpp>
35 namespace ost {
namespace io {
42 TIF(boost::logic::tribool normalize_on_save = boost::logic::indeterminate,
Format bit_depth =
OST_DEFAULT_FORMAT,
bool sign =
false,
bool phasecolor =
false,
int subimage = -1);
66 static String FORMAT_STRING;
71 TIF(
String format_string, boost::logic::tribool normalize_on_save = boost::logic::indeterminate,
Format bit_depth =
OST_DEFAULT_FORMAT,
bool sign =
false,
bool phasecolor =
false,
int subimage = -1);
76 boost::logic::tribool normalize_on_save_;
96 const boost::filesystem::path& loc,
111 const TIF& formattif);
114 const TIF& formattif);
116 TIF& formatstruct)
const;
Manage shared instances of images.
static bool ProvidesExport()
virtual void do_export(const img::MapHandle &sh, tiff *tfile, TIF &formatstruct) const
static bool ProvidesImport()
static bool MatchType(const ImageFormatBase &type)
virtual void Export(const img::MapHandle &sh, const boost::filesystem::path &loc, const ImageFormatBase &formatstruct) const
static String GetFormatName()
virtual void Import(img::MapHandle &sh, std::istream &loc, const ImageFormatBase &formatstruct)
tiff * open_subimage_file(const boost::filesystem::path &location, const TIF &formattif)
static bool MatchContent(unsigned char *header)
virtual void Export(const img::MapHandle &sh, std::ostream &loc, const ImageFormatBase &formatstruct) const
static bool MatchSuffix(const String &loc)
void load_image_data(tiff *tfile, img::ImageHandle &image, const TIF &formattif)
tiff * open_subimage_stream(std::istream &location, const TIF &formattif)
static String GetFormatDescription()
virtual void Import(img::MapHandle &sh, const boost::filesystem::path &loc, const ImageFormatBase &formatstruct)
Map IO handler to read/write Tiff files.
TIF(String format_string, boost::logic::tribool normalize_on_save=boost::logic::indeterminate, Format bit_depth=OST_DEFAULT_FORMAT, bool sign=false, bool phasecolor=false, int subimage=-1)
void do_export(const img::MapHandle &image, tiff *tfile, const TIF &formattif) const
void SetNormalizeOnSave(boost::logic::tribool normalize_on_save)
void SetSigned(bool sign)
void SetPhasecolor(bool phasecolor)
void SetSubimage(int subimage)
bool GetPhasecolor() const
Format GetBitDepth() const
void SetFormat(Format bit_depth)
TIF(boost::logic::tribool normalize_on_save=boost::logic::indeterminate, Format bit_depth=OST_DEFAULT_FORMAT, bool sign=false, bool phasecolor=false, int subimage=-1)
void SetBitDepth(Format bitdepth)
boost::logic::tribool GetNormalizeOnSave() const
MapIOHandlerFactory< MapIOTiffHandler > MapIOTiffHandlerFactory