Changeset 6163 in orxonox.OLD for branches/avi_play/src/lib/graphics/importer/media_container.h
- Timestamp:
- Dec 19, 2005, 6:43:39 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/avi_play/src/lib/graphics/importer/media_container.h
r6160 r6163 8 8 #define _MEDIA_CONTAINER 9 9 10 #include <SDL.h> 11 #include <vector> 10 12 11 13 #ifdef HAVE_AVFORMAT_H … … 15 17 #endif 16 18 17 18 #include "glincl.h"19 20 19 /* include base_object.h since all classes are derived from this one */ 21 20 #include "base_object.h" 22 23 #include <SDL.h>24 21 25 22 /* using namespace std is default, this needs to be here */ … … 32 29 33 30 double fps; 34 Uint32 rmask, gmask, bmask; 35 SDL_Surface *surface; 31 SDL_Surface* surface; 36 32 uint8_t* data; 37 33 … … 41 37 AVFrame* frame; 42 38 AVPacket packet; 39 AVFrame* RGB_frame; 43 40 AVPicture* picture; 44 AVFrame* RGB_frame;45 41 46 42 int num_bytes; 47 43 uint8_t *buffer; 48 44 int video_stream; 45 46 vector<SDL_Surface*> surface_list; 49 47 50 48 public: … … 55 53 SDL_Surface* getFrame(int frame_number); 56 54 SDL_Surface* getNextFrame(); 55 vector<SDL_Surface*> getFrameList(); 57 56 void loadMedia(const char* filename); 58 57 … … 62 61 double getFPS(); 63 62 64 /* prints some information about the65 media file for debug reasons */ 63 void saveCurrentFrame(); 64 66 65 void printMediaInformation(); 67 66 void printPacketInformation(); 68 void saveCurrentFrame();69 67 70 68 }; 71 69 72 70 73 74 71 #endif /* _MEDIA_CONTAINER */
Note: See TracChangeset
for help on using the changeset viewer.