Changeset 6339 in orxonox.OLD for branches/avi_play/src/lib/graphics/importer/media_container.h
- Timestamp:
- Dec 30, 2005, 1:51:41 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/avi_play/src/lib/graphics/importer/media_container.h
r6330 r6339 9 9 10 10 #include <SDL.h> 11 #include <vector>12 11 13 12 #ifdef HAVE_AVFORMAT_H … … 19 18 /* include base_object.h since all classes are derived from this one */ 20 19 #include "base_object.h" 20 #include "texture_sequence.h" 21 21 22 22 #include "glincl.h" 23 23 24 /* using namespace std is default, this needs to be here */ 25 using namespace std; 26 27 class MediaContainer : public BaseObject 24 class MediaContainer : public TextureSequence 28 25 { 29 26 30 27 private: 31 32 double fps;33 SDL_Surface* surface;34 GLuint texture;35 uint8_t* data;36 28 37 29 AVFormatContext* format_context; … … 41 33 AVPacket packet; 42 34 AVFrame* RGB_frame; 43 AVPicture* picture;44 35 36 SDL_Surface* surface; 37 GLuint texture; 38 uint8_t* data; 39 uint8_t* buffer; 45 40 int num_bytes; 46 uint8_t* buffer;47 41 int video_stream; 48 int duration; 49 int frame_num; 50 51 vector<GLuint> texture_list; 42 double fps; 52 43 53 44 public: … … 57 48 ~MediaContainer(); 58 49 59 void init();60 void gotoFrame(int frame_number);61 GLuint getNextFrame();62 GLuint skipFrame(int num_frames);63 vector<GLuint> getFrameList();64 50 void loadMedia(const char* filename); 51 void loadFrames(); 65 52 66 int getHeight();67 int getWidth();68 int getFrameNumber();69 53 double getFPS(); 70 54 71 void saveCurrentFrame(); 72 73 void printMediaInformation(); 74 void printPacketInformation(); 55 private: 56 57 GLuint getNextFrame(); 75 58 76 59 };
Note: See TracChangeset
for help on using the changeset viewer.