VNCj

gnu.rfb
Class CoRRE

java.lang.Object
  |
  +--gnu.rfb.Rect
        |
        +--gnu.rfb.RRE
              |
              +--gnu.rfb.CoRRE
All Implemented Interfaces:
Cloneable

public class CoRRE
extends RRE

CoRRE - Compact RRE Encoding.

We have an RRE header structure giving the number of subrectangles following. Finally the data follows in the form [bgpixel][subrect][subrect]... where each [subrect] is [pixel][rfbCoRRERectangle]. This means that the whole rectangle must be at most 255x255 pixels.


Nested Class Summary
 
Nested classes inherited from class gnu.rfb.RRE
RRE.SubRect
 
Field Summary
 
Fields inherited from class gnu.rfb.RRE
bgpixel, pixelFormat, subrects
 
Fields inherited from class gnu.rfb.Rect
count, h, w, x, y
 
Constructor Summary
CoRRE(int[] pixels, PixelFormat pixelFormat, int offsetX, int offsetY, int scanline, int x, int y, int w, int h)
           
CoRRE(int x, int y, int w, int h, PixelFormat pixelFormat, int bgpixel, RRE.SubRect[] subrects)
           
 
Method Summary
 Object clone()
           
 void writeData(DataOutput output)
           
 
Methods inherited from class gnu.rfb.Rect
bestEncoding, copyPixels, encode, encode, encode, getBackground, toString, transform, writePixel
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CoRRE

public CoRRE(int[] pixels,
             PixelFormat pixelFormat,
             int offsetX,
             int offsetY,
             int scanline,
             int x,
             int y,
             int w,
             int h)

CoRRE

public CoRRE(int x,
             int y,
             int w,
             int h,
             PixelFormat pixelFormat,
             int bgpixel,
             RRE.SubRect[] subrects)
Method Detail

writeData

public void writeData(DataOutput output)
               throws IOException
Overrides:
writeData in class RRE
IOException

clone

public Object clone()
             throws CloneNotSupportedException
Overrides:
clone in class RRE
CloneNotSupportedException

VNCj