00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __MXCPC_MJPEGWRITER_H__
00018 #define __MXCPC_MJPEGWRITER_H__
00019
00020
00021
00022 #include <mxcpcMxPEGScanToJPEGConverterBackEnd.h>
00023
00024 #include <cstdio>
00025
00026
00027
00030
00033 class mxcpcMJPEGWriter : public mxcpcMxPEGScanToJPEGConverterBackEnd {
00034
00035 private:
00036
00037 FILE* OutputDest;
00038 int FrameNum;
00039
00040 bool ErrorEncountered;
00041
00042 public:
00044 mxcpcMJPEGWriter(FILE* output_dest);
00045 ~mxcpcMJPEGWriter();
00046
00047 public:
00049 void beginFrame(void);
00051 void endFrame(void);
00053 void receiveJPEGBytes(mxcpc::u8 *buffer, int num);
00054 };
00055
00056
00057
00058 #endif // __MXCPC_MJPEGWRITER_H__