00001 // This is oxl/oxp/SGIMovieFile.h 00002 #ifndef SGIMovieFile_h_ 00003 #define SGIMovieFile_h_ 00004 #ifdef VCL_NEEDS_PRAGMA_INTERFACE 00005 #pragma interface 00006 #endif 00007 //: 00008 // \file 00009 // \brief Read SGI movie files 00010 // 00011 // SGIMovieFile is an implementation of MovieFileInterface that reads 00012 // SGI movie files. 00013 // \author 00014 // Andrew W. Fitzgibbon, Oxford RRG, 30 Dec 98 00015 // 00016 //----------------------------------------------------------------------------- 00017 00018 #include <oxp/MovieFileInterface.h> 00019 00020 struct SGIMovieFilePrivates; 00021 00022 //: an implementation of MovieFileInterface that reads SGI movie files 00023 class SGIMovieFile : public MovieFileInterface 00024 { 00025 SGIMovieFilePrivates* p; 00026 public: 00027 SGIMovieFile(char const* filename); 00028 ~SGIMovieFile(); 00029 00030 int GetLength(); 00031 int GetSizeX(int); 00032 int GetSizeY(int); 00033 int GetBitsPixel(); 00034 bool IsInterlaced(); 00035 bool HasFrame(int); 00036 bool GetFrame(int frame_index, void* buffer); 00037 bool GetField(int field_index, void* buffer); 00038 vil1_image GetImage(int); 00039 00040 int GetFrameOffset(int frame_index); 00041 int GetFrameSize(int frame_index); 00042 }; 00043 00044 #endif // SGIMovieFile_h_
1.5.1