#ifndef _VIDEOFRAME_H_ #define _VIDEOFRAME_H_ #include "inmemoryfile.h" // // only contain 24bit each color 8Bit class VideoFrame { private: virtual void AllocateFrame(); protected: void FreeFrame(); int mem_allocated; unsigned char *mem; int height; int width; public: VideoFrame(); ~VideoFrame(); int GetHeight() { return height; }; int GetWidth() { return width; }; unsigned char *GetPixBuf() { return mem; }; int SetSize(int w, int h); int ConvertToJpeg(InMemoryFile *imf, int quality); int TestScreen(int w, int h); int CopyTo(VideoFrame *dest, int destw, int desth); }; class VideoFrameFloat : public VideoFrame { private: void AllocateFrame(); protected: public: }; #endif