Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 30, 2005, 8:34:22 PM (18 years ago)
Author:
hdavid
Message:

branches\avi_play: MoviePlayer works again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/avi_play/src/lib/graphics/importer/movie_player.h

    r6339 r6353  
    44
    55*/
    6 /*
     6
    77#ifndef _MOVIE_PLAYER
    88#define _MOVIE_PLAYER
    99
     10#include <SDL.h>
     11
     12#ifdef HAVE_AVFORMAT_H
     13  #include <avformat.h>
     14#else
     15  #include <ffmpeg/avformat.h>
     16#endif
     17
    1018#include "glincl.h"
    11 //#include "sdlincl.h"
    1219
    13 #include "media_container.h"
    1420#include "light.h"
    1521#include "texture.h"
     
    3238private:
    3339
    34   MediaContainer* media_container;
    3540  Model* model;
    3641  Material* material;
    3742
     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;
    3851  GLuint texture;
     52  uint8_t* data;
     53  uint8_t* buffer;
     54  int num_bytes;
     55  int video_stream;
    3956
    4057  MP_STATUS status;     
     
    4259  float timer;
    4360  int actual_frame;
    44   int current_frame;
    45   float fps; 
     61  int frame_number;
     62  float fps;
     63  int duration; 
    4664
    4765public:
     
    5169  ~MoviePlayer();
    5270
    53   void init();
    5471  void loadMovie(const char* filename);
    5572
     
    6784  void printInformation();
    6885
     86private:
     87 
     88  void init();
     89  void getNextFrame();
     90  void skipFrame(int frames);
     91  void gotoFrame(int frame);
     92
    6993};
    7094
     
    7296
    7397#endif // _MOVIE_PLAYER
    74 */
Note: See TracChangeset for help on using the changeset viewer.