|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.flagstone.transform.FSImageBlock
public class FSImageBlock
When an image is sent in a ScreenVideo stream only pixel information for the portions of the image that change are sent. FSImageBlock is used to sub-divide an image into a set of blocks. The blocks from successive frames can then be compared to determine which blocks are encoded in the stream. An image is divided by tiling the blocks across the image from top-left to bottom right. If the image is not covered an integer number of blocks then the size of the blocks along the right and bottom edges of the image are reduced in size. The FSImageBlock is a contains class for the image data and is used in conjunction with the FsStreamVideoPacket class.
Constructor Summary | |
---|---|
FSImageBlock(int width,
int height,
byte[] data)
Create a new image block with the specified width and height and image data. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object anObject)
|
byte[] |
getData()
Returns the zipped image data for the block. |
int |
getHeight()
Return the height of the block. |
int |
getWidth()
Return the width of the block. |
boolean |
isEmpty()
When a ScreenVideo stream is created only the image blocks that change are included. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FSImageBlock(int width, int height, byte[] data)
width
- the width of the block in pixels.height
- the height of the block in pixelsdata
- the pixels covered by the block, compressed using the zip
format.Method Detail |
---|
public int getWidth()
public int getHeight()
public byte[] getData()
public boolean isEmpty()
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object anObject)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |