Revision d1af0e05 ui/vnc.h

b/ui/vnc.h
122 122
#endif
123 123
};
124 124

  
125
typedef struct VncTight {
126
    int type;
127
    uint8_t quality;
128
    uint8_t compression;
129
    uint8_t pixel24;
130
    Buffer tight;
131
    Buffer tmp;
132
    Buffer zlib;
133
    Buffer gradient;
134
#ifdef CONFIG_VNC_JPEG
135
    Buffer jpeg;
136
#endif
137
#ifdef CONFIG_VNC_PNG
138
    Buffer png;
139
#endif
140
    int levels[4];
141
    z_stream stream[4];
142
} VncTight;
143

  
144
typedef struct VncHextile {
145
    VncSendHextileTile *send_tile;
146
} VncHextile;
147

  
148
typedef struct VncZlib {
149
    Buffer zlib;
150
    Buffer tmp;
151
    z_stream stream;
152
    int level;
153
} VncZlib;
154

  
125 155
struct VncState
126 156
{
127 157
    int csock;
......
170 200
    QEMUPutLEDEntry *led;
171 201

  
172 202
    /* Encoding specific */
203
    VncTight tight;
204
    VncZlib zlib;
205
    VncHextile hextile;
173 206

  
174
    /* Tight */
175
    int tight_type;
176
    uint8_t tight_quality;
177
    uint8_t tight_compression;
178
    uint8_t tight_pixel24;
179
    Buffer tight;
180
    Buffer tight_tmp;
181
    Buffer tight_zlib;
182
    Buffer tight_gradient;
183
#ifdef CONFIG_VNC_JPEG
184
    Buffer tight_jpeg;
185
#endif
186
#ifdef CONFIG_VNC_PNG
187
    Buffer tight_png;
188
#endif
189
    int tight_levels[4];
190
    z_stream tight_stream[4];
191

  
192
    /* Hextile */
193
    VncSendHextileTile *send_hextile_tile;
194

  
195
    /* Zlib */
196
    Buffer zlib;
197
    Buffer zlib_tmp;
198
    z_stream zlib_stream;
199
    int zlib_level;
200 207

  
201 208
    Notifier mouse_mode_notifier;
202 209

  

Also available in: Unified diff