aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/JpegCompressor.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/rfb/JpegCompressor.h')
-rw-r--r--common/rfb/JpegCompressor.h29
1 files changed, 8 insertions, 21 deletions
diff --git a/common/rfb/JpegCompressor.h b/common/rfb/JpegCompressor.h
index 668c9a00..798572e0 100644
--- a/common/rfb/JpegCompressor.h
+++ b/common/rfb/JpegCompressor.h
@@ -29,26 +29,12 @@
#include <rfb/PixelFormat.h>
#include <rfb/Rect.h>
-#include <stdio.h>
-extern "C" {
-#include <jpeglib.h>
-}
-#include <setjmp.h>
+struct jpeg_compress_struct;
-namespace rfb {
-
- typedef struct {
- struct jpeg_error_mgr pub;
- jmp_buf jmpBuffer;
- char lastError[JMSG_LENGTH_MAX];
- } JPEG_ERROR_MGR;
-
- class JpegCompressor;
+struct JPEG_ERROR_MGR;
+struct JPEG_DEST_MGR;
- typedef struct {
- struct jpeg_destination_mgr pub;
- JpegCompressor *instance;
- } JPEG_DEST_MGR;
+namespace rfb {
enum JPEG_SUBSAMP {
SUBSAMP_UNDEFINED = -1,
@@ -78,9 +64,10 @@ namespace rfb {
private:
- struct jpeg_compress_struct cinfo;
- JPEG_ERROR_MGR err;
- JPEG_DEST_MGR dest;
+ struct jpeg_compress_struct *cinfo;
+
+ struct JPEG_ERROR_MGR *err;
+ struct JPEG_DEST_MGR *dest;
};