3 #include <cgv/base/base.h>
4 #include <cgv/data/data_view.h>
15 class CGV_API image_reader;
29 virtual bool open(
const std::string& file_name,
data_format& df, std::vector<data_format>* palette_formats) = 0;
33 virtual bool supports_multiple_images()
const;
35 virtual unsigned get_nr_images()
const;
37 virtual float get_image_duration()
const;
39 virtual unsigned get_current_image()
const;
41 virtual bool seek_image(
unsigned idx);
45 virtual bool read_palette(
unsigned int i,
const data_view& dv);
74 bool set_void(
const std::string& property,
const std::string& type,
const void* value);
76 bool get_void(
const std::string& property,
const std::string& type,
void* value);
88 static const std::string& get_supported_extensions(
char sep =
';');
90 static std::string construct_filter_string();
92 std::string get_property_declarations();
94 const std::string& get_last_error()
const;
101 bool read_image(
const std::string& file_name,
data_view& dv, std::vector<data_view> *palettes = 0);
104 bool read_image(
const std::string& file_name,
const data_view& dv,
const std::vector<data_view> *palettes = 0);
106 bool open(
const std::string& file_name);
110 bool supports_multiple_images()
const;
112 unsigned get_nr_images()
const;
114 float get_image_duration()
const;
116 unsigned get_current_image()
const;
118 bool seek_image(
unsigned idx);
122 bool read_palette(
unsigned int i,
data_view& dv);
126 bool read_palette(
unsigned int i,
const data_view& dv);
128 bool supports_per_line_read()
const;
142 bool read_image(
data_view& dv, std::vector<data_view> *palettes = 0);
144 bool read_image(
const data_view& dv,
const std::vector<data_view> *palettes = 0);
153 #include <cgv/config/lib_end.h>
namespace for data management components
Definition: ascii_io_reflection_handlers.cxx:15
Definition: data_view.h:155
const char * get_type_name(TypeId tid)
function that returns the name of a type specified through TypeId
Definition: type_id.cxx:117
the cgv namespace
Definition: vr_calib.cxx:9