1
/**************************************************************************/
3
/* Copyright (c) 2001, 2007 NoMachine, http://www.nomachine.com/. */
5
/* NXCOMP, NX protocol compression and NX extensions to this software */
6
/* are copyright of NoMachine. Redistribution and use of the present */
7
/* software is allowed according to terms specified in the file LICENSE */
8
/* which comes in the source distribution. */
10
/* Check http://www.nomachine.com/licensing.html for applicability. */
12
/* NX and NoMachine are trademarks of NoMachine S.r.l. */
14
/* All rights reserved. */
16
/**************************************************************************/
25
#define MASK_METHOD_LIMIT 10
29
#define MASK_8_COLORS 1
30
#define MASK_64_COLORS 2
31
#define MASK_256_COLORS 3
32
#define MASK_512_COLORS 4
33
#define MASK_4K_COLORS 5
34
#define MASK_32K_COLORS 6
35
#define MASK_64K_COLORS 7
36
#define MASK_256K_COLORS 8
37
#define MASK_2M_COLORS 9
38
#define MASK_16M_COLORS 10
40
#define PACK_METHOD_LIMIT 128
44
#define PACK_MASKED_8_COLORS 1
45
#define PACK_MASKED_64_COLORS 2
46
#define PACK_MASKED_256_COLORS 3
47
#define PACK_MASKED_512_COLORS 4
48
#define PACK_MASKED_4K_COLORS 5
49
#define PACK_MASKED_32K_COLORS 6
50
#define PACK_MASKED_64K_COLORS 7
51
#define PACK_MASKED_256K_COLORS 8
52
#define PACK_MASKED_2M_COLORS 9
53
#define PACK_MASKED_16M_COLORS 10
55
#define PACK_RAW_8_BITS 3
56
#define PACK_RAW_16_BITS 7
57
#define PACK_RAW_24_BITS 10
59
#define PACK_COLORMAP_256_COLORS 11
61
#define PACK_JPEG_8_COLORS 26
62
#define PACK_JPEG_64_COLORS 27
63
#define PACK_JPEG_256_COLORS 28
64
#define PACK_JPEG_512_COLORS 29
65
#define PACK_JPEG_4K_COLORS 30
66
#define PACK_JPEG_32K_COLORS 31
67
#define PACK_JPEG_64K_COLORS 32
68
#define PACK_JPEG_256K_COLORS 33
69
#define PACK_JPEG_2M_COLORS 34
70
#define PACK_JPEG_16M_COLORS 35
72
#define PACK_PNG_8_COLORS 37
73
#define PACK_PNG_64_COLORS 38
74
#define PACK_PNG_256_COLORS 39
75
#define PACK_PNG_512_COLORS 40
76
#define PACK_PNG_4K_COLORS 41
77
#define PACK_PNG_32K_COLORS 42
78
#define PACK_PNG_64K_COLORS 43
79
#define PACK_PNG_256K_COLORS 44
80
#define PACK_PNG_2M_COLORS 45
81
#define PACK_PNG_16M_COLORS 46
83
#define PACK_RGB_16M_COLORS 63
84
#define PACK_RLE_16M_COLORS 64
87
#define PACK_COLORMAP 66
89
#define PACK_BITMAP_16M_COLORS 67
92
* Not really pack methods. These values
93
* allow dynamic selection of the pack
94
* method by the agent.
98
#define PACK_LOSSY 253
99
#define PACK_LOSSLESS 254
100
#define PACK_ADAPTIVE 255
103
* Reduce the number of colors in the
104
* image by applying a mask.
109
unsigned int color_mask;
110
unsigned int correction_mask;
111
unsigned int white_threshold;
112
unsigned int black_threshold;
116
extern const ColorMask Mask8TrueColor;
117
extern const ColorMask Mask64TrueColor;
118
extern const ColorMask Mask512TrueColor;
119
extern const ColorMask Mask4KTrueColor;
120
extern const ColorMask Mask32KTrueColor;
121
extern const ColorMask Mask256KTrueColor;
122
extern const ColorMask Mask2MTrueColor;
123
extern const ColorMask Mask16MTrueColor;
125
const ColorMask *MethodColorMask(unsigned int method);
127
int MethodBitsPerPixel(unsigned int method);
133
#endif /* NXpack_H */