Changeset 6068 in orxonox.OLD for branches/avi_play/src/lib/graphics/importer/media_container.h
- Timestamp:
- Dec 12, 2005, 4:32:11 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/avi_play/src/lib/graphics/importer/media_container.h
r6057 r6068 24 24 using namespace std; 25 25 26 /* Forward Declaration */27 struct SDL_Surface;28 29 26 class MediaContainer : public BaseObject 30 27 { … … 32 29 private: 33 30 34 int current_frame; 35 int num_frames; 31 int current_frame; 32 int num_frames; 33 GLuint texture; 36 34 37 AVFormatContext* format_context; 38 AVCodecContext* codec_context; 39 AVCodec* codec; 40 AVFrame* frame; 41 AVPacket packet; 35 AVFormatContext* format_context; 36 AVCodecContext* codec_context; 37 AVCodec* codec; 38 AVFrame* frame; 39 AVPacket packet; 40 AVPicture* picture; 41 AVFrame* RGB_frame; 42 42 43 44 int video_stream;45 bool frames_left;43 int num_bytes; 44 uint8_t *buffer; 45 int video_stream; 46 46 47 47 public: … … 50 50 ~MediaContainer(); 51 51 52 //GLuint getFrame(int frame_number); 53 SDL_Surface* getFrame(int frame_number); 54 //GLuint getNextFrame(); 55 SDL_Surface* getNextFrame(); 56 void loadMedia(const char* filename); 52 GLuint getFrame(int frame_number); 53 GLuint getNextFrame(); 54 void loadMedia(const char* filename); 57 55 58 59 60 61 56 int getHeight(); 57 int getWidth(); 58 int getFrameRate(); 59 void getStream(/* stream */); 62 60 63 bool framesLeft(); 64 65 /* prints some information about the 66 media file for debug reasons */ 67 void printMediaInformation();61 /* prints some information about the 62 media file for debug reasons */ 63 void printMediaInformation(); 64 void printPacketInformation(); 65 void saveCurrentFrame(); 68 66 69 67 };
Note: See TracChangeset
for help on using the changeset viewer.