#ifndef FRAMEQ_H #define FRAMEQ_H #include #include using namespace std; struct StoredFrame { unsigned char *frame; StoredFrame *next, *prev; StoredFrame(unsigned char *newframe, int size); ~StoredFrame(); }; class FrameQueue { StoredFrame *head, *tail; int frame_count, max_frame; public: FrameQueue(int max); ~FrameQueue(); void DeleteLast(void); void Insert(unsigned char *frame, int size); unsigned char *GetFrame(int pos); }; #endif