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);
67 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);
68 void do_export(
const img::MapHandle& image,tiff* tfile,
const TIF& formattif)
const;
72 boost::logic::tribool normalize_on_save_;
87 virtual void Import(img::MapHandle& sh,
const boost::filesystem::path& loc,
89 virtual void Import(img::MapHandle& sh, std::istream& loc,
91 virtual void Export(
const img::MapHandle& sh,
92 const boost::filesystem::path& loc,
94 virtual void Export(
const img::MapHandle& sh, std::ostream& loc,
96 static bool MatchContent(
unsigned char* header);
98 static bool MatchSuffix(
const String& loc);
104 tiff* open_subimage_file(
const boost::filesystem::path& location,
105 const TIF& formattif);
106 tiff* open_subimage_stream(std::istream& location,
const TIF& formattif);
107 void load_image_data(tiff* tfile, img::ImageHandle& image,
108 const TIF& formattif);
109 virtual void do_export(
const img::MapHandle& sh,tiff* tfile,
110 TIF& formatstruct)
const;