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);
44 Format GetBitDepth()
const;
45 void SetBitDepth (
Format bitdepth);
47 bool GetSigned ()
const;
48 void SetSigned (
bool sign);
50 bool GetPhasecolor ()
const;
51 void SetPhasecolor (
bool phasecolor);
54 void SetFormat (
Format bit_depth);
56 boost::logic::tribool GetNormalizeOnSave()
const;
57 void SetNormalizeOnSave(boost::logic::tribool normalize_on_save);
59 int GetSubimage()
const;
60 void SetSubimage(
int subimage);
63 Real GetMaximum()
const;
64 Real GetMinimum()
const;
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);
72 void do_export(
const img::MapHandle& image,tiff* tfile,
const TIF& formattif)
const;
76 boost::logic::tribool normalize_on_save_;
91 virtual void Import(
img::MapHandle& sh,
const boost::filesystem::path& loc,
92 const ImageFormatBase& formatstruct);
94 const ImageFormatBase& formatstruct);
96 const boost::filesystem::path& loc,
97 const ImageFormatBase& formatstruct)
const;
99 const ImageFormatBase& formatstruct)
const;
100 static bool MatchContent(
unsigned char* header);
101 static bool MatchType(
const ImageFormatBase& type);
102 static bool MatchSuffix(
const String& loc);
110 tiff* open_subimage_file(
const boost::filesystem::path& location,
111 const TIF& formattif);
112 tiff* open_subimage_stream(std::istream& location,
const TIF& formattif);
114 const TIF& formattif);
116 TIF& formatstruct)
const;