43 class VSGXCHANGE_DECLSPEC stbi :
public vsg::Inherit<vsg::ReaderWriter, stbi>
48 vsg::ref_ptr<vsg::Object> read(
const vsg::Path& filename, vsg::ref_ptr<const vsg::Options> options = {})
const override;
49 vsg::ref_ptr<vsg::Object> read(std::istream& fin, vsg::ref_ptr<const vsg::Options> options = {})
const override;
50 vsg::ref_ptr<vsg::Object> read(
const uint8_t* ptr,
size_t size, vsg::ref_ptr<const vsg::Options> options = {})
const override;
51 bool write(
const vsg::Object*
object,
const vsg::Path& filename, vsg::ref_ptr<const vsg::Options> = {})
const override;
52 bool write(
const vsg::Object*
object, std::ostream& stream, vsg::ref_ptr<const vsg::Options> = {})
const override;
54 bool getFeatures(Features& features)
const override;
57 static constexpr const char* jpeg_quality =
"jpeg_quality";
60 bool readOptions(vsg::Options& options, vsg::CommandLine& arguments)
const override;
63 std::set<vsg::Path> _supportedExtensions;
67 class VSGXCHANGE_DECLSPEC dds :
public vsg::Inherit<vsg::ReaderWriter, dds>
72 vsg::ref_ptr<vsg::Object> read(
const vsg::Path& filename, vsg::ref_ptr<const vsg::Options> options = {})
const override;
73 vsg::ref_ptr<vsg::Object> read(std::istream& fin, vsg::ref_ptr<const vsg::Options> options = {})
const override;
74 vsg::ref_ptr<vsg::Object> read(
const uint8_t* ptr,
size_t size, vsg::ref_ptr<const vsg::Options> options = {})
const override;
76 bool getFeatures(Features& features)
const override;
79 static constexpr const char* image_format =
"image_format";
81 bool readOptions(vsg::Options& options, vsg::CommandLine& arguments)
const override;
84 std::set<vsg::Path> _supportedExtensions;
88 class VSGXCHANGE_DECLSPEC ktx :
public vsg::Inherit<vsg::ReaderWriter, ktx>
93 vsg::ref_ptr<vsg::Object> read(
const vsg::Path& filename, vsg::ref_ptr<const vsg::Options> options = {})
const override;
94 vsg::ref_ptr<vsg::Object> read(std::istream& fin, vsg::ref_ptr<const vsg::Options> options = {})
const override;
95 vsg::ref_ptr<vsg::Object> read(
const uint8_t* ptr,
size_t size, vsg::ref_ptr<const vsg::Options> options = {})
const override;
97 bool getFeatures(Features& features)
const override;
102 class Implementation;
103 Implementation* _implementation;
107 class openexr :
public vsg::Inherit<vsg::ReaderWriter, openexr>
112 vsg::ref_ptr<vsg::Object> read(
const vsg::Path& filename, vsg::ref_ptr<const vsg::Options> options = {})
const override;
113 vsg::ref_ptr<vsg::Object> read(std::istream& fin, vsg::ref_ptr<const vsg::Options> options = {})
const override;
114 vsg::ref_ptr<vsg::Object> read(
const uint8_t* ptr,
size_t size, vsg::ref_ptr<const vsg::Options> options = {})
const override;
116 bool write(
const vsg::Object*
object,
const vsg::Path& filename, vsg::ref_ptr<const vsg::Options> = {})
const override;
117 bool write(
const vsg::Object*
object, std::ostream& fout, vsg::ref_ptr<const vsg::Options> = {})
const override;
119 bool getFeatures(Features& features)
const override;
122 std::set<vsg::Path> _supportedExtensions;
bool readOptions(vsg::Options &options, vsg::CommandLine &arguments) const override
Override read image format (8bit RGB/RGBA default to sRGB) to be specified class of CoordinateSpace (...
bool readOptions(vsg::Options &options, vsg::CommandLine &arguments) const override
Override read image format (8bit RGB/RGBA default to sRGB) to be specified class of CoordinateSpace (...