#ifndef _VIDEOFRAME_H_ #define _VIDEOFRAME_H_ #include "inmemoryfile.h" // // only contain 48bits each color with 16Bit class VideoFrame { private: protected: void AllocateFrame(); 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, float *brightness = NULL); int CopyTo(VideoFrame *dest); int CopyToFiltered(VideoFrame *dest, int filter_weight); int CopyFrom(int sw, int sh, int ssize, unsigned char *sdata); }; #endif