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 std::set<vsg::Path> _supportedExtensions;
83 class VSGXCHANGE_DECLSPEC ktx :
public vsg::Inherit<vsg::ReaderWriter, ktx>
88 vsg::ref_ptr<vsg::Object> read(
const vsg::Path& filename, vsg::ref_ptr<const vsg::Options> options = {})
const override;
89 vsg::ref_ptr<vsg::Object> read(std::istream& fin, vsg::ref_ptr<const vsg::Options> options = {})
const override;
90 vsg::ref_ptr<vsg::Object> read(
const uint8_t* ptr,
size_t size, vsg::ref_ptr<const vsg::Options> options = {})
const override;
92 bool getFeatures(Features& features)
const override;
95 std::set<vsg::Path> _supportedExtensions;
99 class openexr :
public vsg::Inherit<vsg::ReaderWriter, openexr>
104 vsg::ref_ptr<vsg::Object> read(
const vsg::Path& filename, vsg::ref_ptr<const vsg::Options> options = {})
const override;
105 vsg::ref_ptr<vsg::Object> read(std::istream& fin, vsg::ref_ptr<const vsg::Options> options = {})
const override;
106 vsg::ref_ptr<vsg::Object> read(
const uint8_t* ptr,
size_t size, vsg::ref_ptr<const vsg::Options> options = {})
const override;
108 bool write(
const vsg::Object*
object,
const vsg::Path& filename, vsg::ref_ptr<const vsg::Options> = {})
const override;
109 bool write(
const vsg::Object*
object, std::ostream& fout, vsg::ref_ptr<const vsg::Options> = {})
const override;
111 bool getFeatures(Features& features)
const override;
114 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 (...