00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __MXCPC_MJPEGSERVERPUSHWRITER_H__
00018 #define __MXCPC_MJPEGSERVERPUSHWRITER_H__
00019
00020
00021
00022 #include <mxcpcMxPEGScanToJPEGConverterBackEnd.h>
00023
00024 #include <cstdio>
00025
00026
00027
00031
00034 class mxcpcMJPEGServerpushWriter : public mxcpcMxPEGScanToJPEGConverterBackEnd {
00035
00036 private:
00037
00038 FILE* OutputDest;
00039 int FrameNum;
00040
00041 bool ErrorEncountered;
00042
00043 const char* SeparatorString;
00044
00045 public:
00050 mxcpcMJPEGServerpushWriter(FILE* output_dest, const char* separator_string);
00051 ~mxcpcMJPEGServerpushWriter();
00052
00053 public:
00055 void beginFrame(void);
00057 void endFrame(void);
00059 void receiveJPEGBytes(mxcpc::u8 *buffer, int num);
00060
00061 };
00062
00063
00064
00065 #endif // __MXCPC_MJPEGWRITER_H__