comparison src/main/java/com/glavsoft/rfb/encoding/decoder/AliceVNCMessage.java @ 11:f9e319a08111

add filed byte[] bitmask
author YU
date Tue, 23 Sep 2014 16:21:11 +0900
parents 136ee08cb788
children 6886a2e890cc
comparison
equal deleted inserted replaced
10:ba82199e3b70 11:f9e319a08111
11 public int x; 11 public int x;
12 public int y; 12 public int y;
13 public int width; 13 public int width;
14 public int height; 14 public int height;
15 public int encodingTypeId; 15 public int encodingTypeId;
16 public byte[] unzip; 16 public byte[] buf;
17 public int offset; 17 public int offset;
18 18
19 public String name; 19 public String name;
20
21 // use RichCursorDecoder
22 public byte[] bitmask;
20 23
21 // pixel format info 24 // pixel format info
22 public byte bitsPerPixel; 25 public byte bitsPerPixel;
23 public byte depth; 26 public byte depth;
24 public byte bigEndianFlag; 27 public byte bigEndianFlag;
38 x = rect.x; 41 x = rect.x;
39 y = rect.y; 42 y = rect.y;
40 width = rect.width; 43 width = rect.width;
41 height = rect.height; 44 height = rect.height;
42 encodingTypeId = rect.getEncodingType().getId(); 45 encodingTypeId = rect.getEncodingType().getId();
46 }
47
48 public FramebufferUpdateRectangle getFramebufferUpdateRectangle(){
49 FramebufferUpdateRectangle rect =
50 new FramebufferUpdateRectangle(x, y, width, height);
51 rect.encodingType = EncodingType.byId(encodingTypeId);
52
53 return rect;
43 } 54 }
44 55
45 public EncodingType getEncodingType() { 56 public EncodingType getEncodingType() {
46 return EncodingType.byId(encodingTypeId); 57 return EncodingType.byId(encodingTypeId);
47 } 58 }