Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 19, 2005, 6:43:39 PM (18 years ago)
Author:
hdavid
Message:

branches\avi_play: added ability to get the frames in a list

File:
1 edited

Legend:

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

    r6160 r6163  
    88#define _MEDIA_CONTAINER
    99
     10#include <SDL.h>
     11#include <vector>
    1012
    1113#ifdef HAVE_AVFORMAT_H
     
    1517#endif
    1618
    17 
    18 #include "glincl.h"
    19 
    2019/* include base_object.h since all classes are derived from this one */
    2120#include "base_object.h"
    22 
    23 #include <SDL.h>
    2421
    2522/* using namespace std is default, this needs to be here */
     
    3229
    3330  double fps;
    34   Uint32 rmask, gmask, bmask;
    35   SDL_Surface *surface;
     31  SDL_Surface* surface;
    3632  uint8_t* data;
    3733
     
    4137  AVFrame* frame;
    4238  AVPacket packet;
     39  AVFrame* RGB_frame;
    4340  AVPicture* picture;
    44   AVFrame* RGB_frame;
    4541
    4642  int num_bytes;
    4743  uint8_t *buffer;
    4844  int video_stream;
     45
     46  vector<SDL_Surface*>    surface_list;
    4947
    5048public:
     
    5553  SDL_Surface* getFrame(int frame_number);
    5654  SDL_Surface* getNextFrame();
     55  vector<SDL_Surface*> getFrameList();
    5756  void loadMedia(const char* filename);
    5857
     
    6261  double getFPS();
    6362
    64   /* prints some information about the
    65      media file for debug reasons */
     63  void saveCurrentFrame();
     64
    6665  void printMediaInformation();
    6766  void printPacketInformation();
    68   void saveCurrentFrame();
    6967
    7068};
    7169
    7270
    73 
    7471#endif /* _MEDIA_CONTAINER */
Note: See TracChangeset for help on using the changeset viewer.