Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

oxp_vidl_mpeg_codec.h

Go to the documentation of this file.
00001 #ifndef oxp_vidl_mpeg_codec_h
00002 #define oxp_vidl_mpeg_codec_h
00003 //:
00004 // \file
00005 // \author awf
00006 // \date Dec 2001
00007 //
00008 // \verbatim
00009 //  Modifications
00010 //   10 Sep. 2004 Peter Vanroose  Inlined all 1-line methods in class decl
00011 // \endverbatim
00012 
00013 #include <vidl_vil1/vidl_vil1_codec.h>
00014 #include <oxp/oxp_mpeg_codec.h>
00015 
00016 //: Allows user to load MPEG files as vxl video.
00017 // use set_demux if mpeg is a VOB
00018 class oxp_vidl_mpeg_codec : public vidl_vil1_codec
00019 {
00020  public:
00021   //-----------------------------------------------------
00022 
00023   virtual bool   get_section(int position, void* ib, int x0, int y0, int xs, int ys) const {
00024     return p.get_section(position, ib, x0, y0, xs, ys);
00025   }
00026   virtual int    put_section(int position, void* ib, int x0, int y0, int xs, int ys) {
00027     return p.put_section(position, ib, x0, y0, xs, ys);
00028   }
00029 
00030   //-----------------------------------------------------
00031   virtual bool probe(vcl_string const& fname) { return p.probe(fname); }
00032   virtual vidl_vil1_codec_sptr load(vcl_string const& fname, char mode = 'r' );
00033   virtual bool save(vidl_vil1_movie* movie, vcl_string const& fname);
00034   virtual vcl_string type() const { return "MPEG"; }
00035 
00036   // Call before destruction to a void segv on exit
00037   void close() { p.close(); }
00038 
00039  private:
00040   oxp_mpeg_codec p;
00041 };
00042 
00043 #endif // oxp_vidl_mpeg_codec_h

Generated on Thu Jan 10 14:46:06 2008 for contrib/oxl/oxp by  doxygen 1.4.4