Mercurial > hg > Applications > tvnjviewer
changeset 11:f9e319a08111
add filed byte[] bitmask
author | YU |
---|---|
date | Tue, 23 Sep 2014 16:21:11 +0900 |
parents | ba82199e3b70 |
children | 0415badf417f |
files | src/main/java/com/glavsoft/rfb/encoding/decoder/AliceVNCMessage.java |
diffstat | 1 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/rfb/encoding/decoder/AliceVNCMessage.java Tue Sep 23 16:20:03 2014 +0900 +++ b/src/main/java/com/glavsoft/rfb/encoding/decoder/AliceVNCMessage.java Tue Sep 23 16:21:11 2014 +0900 @@ -13,11 +13,14 @@ public int width; public int height; public int encodingTypeId; - public byte[] unzip; + public byte[] buf; public int offset; public String name; + // use RichCursorDecoder + public byte[] bitmask; + // pixel format info public byte bitsPerPixel; public byte depth; @@ -42,6 +45,14 @@ encodingTypeId = rect.getEncodingType().getId(); } + public FramebufferUpdateRectangle getFramebufferUpdateRectangle(){ + FramebufferUpdateRectangle rect = + new FramebufferUpdateRectangle(x, y, width, height); + rect.encodingType = EncodingType.byId(encodingTypeId); + + return rect; + } + public EncodingType getEncodingType() { return EncodingType.byId(encodingTypeId); }