Changeset 6353 in orxonox.OLD for branches/avi_play/src/lib/graphics/importer/movie_player.h
- Timestamp:
- Dec 30, 2005, 8:34:22 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/avi_play/src/lib/graphics/importer/movie_player.h
r6339 r6353 4 4 5 5 */ 6 /* 6 7 7 #ifndef _MOVIE_PLAYER 8 8 #define _MOVIE_PLAYER 9 9 10 #include <SDL.h> 11 12 #ifdef HAVE_AVFORMAT_H 13 #include <avformat.h> 14 #else 15 #include <ffmpeg/avformat.h> 16 #endif 17 10 18 #include "glincl.h" 11 //#include "sdlincl.h"12 19 13 #include "media_container.h"14 20 #include "light.h" 15 21 #include "texture.h" … … 32 38 private: 33 39 34 MediaContainer* media_container;35 40 Model* model; 36 41 Material* material; 37 42 43 AVFormatContext* format_context; 44 AVCodecContext* codec_context; 45 AVCodec* codec; 46 AVFrame* frame; 47 AVPacket packet; 48 AVFrame* RGB_frame; 49 50 SDL_Surface* surface; 38 51 GLuint texture; 52 uint8_t* data; 53 uint8_t* buffer; 54 int num_bytes; 55 int video_stream; 39 56 40 57 MP_STATUS status; … … 42 59 float timer; 43 60 int actual_frame; 44 int current_frame; 45 float fps; 61 int frame_number; 62 float fps; 63 int duration; 46 64 47 65 public: … … 51 69 ~MoviePlayer(); 52 70 53 void init();54 71 void loadMovie(const char* filename); 55 72 … … 67 84 void printInformation(); 68 85 86 private: 87 88 void init(); 89 void getNextFrame(); 90 void skipFrame(int frames); 91 void gotoFrame(int frame); 92 69 93 }; 70 94 … … 72 96 73 97 #endif // _MOVIE_PLAYER 74 */
Note: See TracChangeset
for help on using the changeset viewer.