Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 30, 2005, 1:51:41 AM (18 years ago)
Author:
hdavid
Message:

branches\avi_play: some copy, pasta & delete

File:
1 edited

Legend:

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

    r6330 r6339  
    99
    1010#include <SDL.h>
    11 #include <vector>
    1211
    1312#ifdef HAVE_AVFORMAT_H
     
    1918/* include base_object.h since all classes are derived from this one */
    2019#include "base_object.h"
     20#include "texture_sequence.h"
    2121
    2222#include "glincl.h"
    2323
    24 /* using namespace std is default, this needs to be here */
    25 using namespace std;
    26 
    27 class MediaContainer : public BaseObject
     24class MediaContainer : public TextureSequence
    2825{
    2926
    3027private:
    31 
    32   double fps;
    33   SDL_Surface* surface;
    34   GLuint texture;
    35   uint8_t* data;
    3628
    3729  AVFormatContext* format_context;
     
    4133  AVPacket packet;
    4234  AVFrame* RGB_frame;
    43   AVPicture* picture;
    4435
     36  SDL_Surface* surface;
     37  GLuint texture;
     38  uint8_t* data;
     39  uint8_t* buffer;
    4540  int num_bytes;
    46   uint8_t* buffer;
    4741  int video_stream;
    48   int duration;
    49   int frame_num;
    50 
    51   vector<GLuint>    texture_list;
     42  double fps;
    5243
    5344public:
     
    5748  ~MediaContainer();
    5849
    59   void init();
    60   void gotoFrame(int frame_number);
    61   GLuint getNextFrame();
    62   GLuint skipFrame(int num_frames);
    63   vector<GLuint> getFrameList();
    6450  void loadMedia(const char* filename);
     51  void loadFrames();
    6552
    66   int getHeight();
    67   int getWidth();
    68   int getFrameNumber();
    6953  double getFPS();
    7054
    71   void saveCurrentFrame();
    72 
    73   void printMediaInformation();
    74   void printPacketInformation();
     55private:
     56 
     57  GLuint getNextFrame();
    7558
    7659};
Note: See TracChangeset for help on using the changeset viewer.