00001 #ifndef CVD_INC_SERVERPUSHJPEGFRAME_H
00002 #define CVD_INC_SERVERPUSHJPEGFRAME_H
00003 #include <cvd/localvideoframe.h>
00004
00005 namespace CVD
00006 {
00007
00008 template<class T> class ServerPushJpegBuffer;
00009
00010 template<class T> class ServerPushJpegFrame: public LocalVideoFrame<T>
00011 {
00012 friend class CVD::ServerPushJpegBuffer<T>;
00013
00014 public:
00015
00017 const std::string& jpeg() {return image_data;};
00018
00019 private:
00020 ~ServerPushJpegFrame()
00021 {
00022 }
00023
00024 ServerPushJpegFrame(double time, CVD::Image<T>& im, const std::string& data)
00025 :LocalVideoFrame<T>(time, im),image_data(data)
00026 {
00027 }
00028
00029 private:
00030 std::string image_data;
00031 };
00032
00033
00034 };
00035
00036 #endif