Go to the documentation of this file.00001 #ifndef mvl2_image_format_plugin_h_
00002 #define mvl2_image_format_plugin_h_
00003 #ifdef VCL_NEEDS_PRAGMA_INTERFACE
00004 #pragma interface
00005 #endif
00006
00007
00008
00009
00010
00011
00012
00013 #include <vcl_string.h>
00014 #include <vcl_map.h>
00015 #include <vil/vil_image_view_base.h>
00016 #include <vil/vil_image_resource_plugin.h>
00017 #include <mvl2/mvl2_video_reader.h>
00018
00019
00020
00021
00022
00023 class mvl2_image_format_plugin : public vil_image_resource_plugin
00024 {
00025 public:
00026
00027
00028 mvl2_image_format_plugin();
00029
00030
00031 virtual ~mvl2_image_format_plugin();
00032
00033
00034 virtual vcl_string is_a() const;
00035
00036
00037
00038
00039
00040
00041 virtual bool load_the_image(vil_image_view_base_sptr& image,
00042 vcl_string const& path,
00043 vcl_string const& filetype,
00044 vcl_string const& colour="");
00045
00046 virtual bool load_the_image(vil_image_view_base_sptr& image,
00047 vcl_string const& path)
00048 { return load_the_image(image, path, "", ""); }
00049
00050
00051 virtual bool can_be_loaded(const vcl_string& filename);
00052
00053 protected:
00054
00055 vcl_map<vcl_string,mvl2_video_reader*> mvl2_list_;
00056
00057
00058
00059 bool get_frame_number_and_filename(
00060 vcl_string& filename, int& frame_number, const vcl_string& path);
00061 };
00062
00063 #endif // mvl2_image_format_plugin_h_