All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class quicktime.util.IntEncodedImage

java.lang.Object
   |
   +----quicktime.util.IntEncodedImage

public class IntEncodedImage
extends Object
implements PrimitivesLib, EncodedImage, Cloneable
IntEncodedImage keep the encoded image data as an array of ints.


Constructor Index

 o IntEncodedImage(int)
Creates a new IntEncodedImage of specified number of ints.
 o IntEncodedImage(int, int)
Creates a new IntEncodedImage of specified number of ints.
 o IntEncodedImage(RawEncodedImage)
Creates a IntEncodedImage from raw data.

Method Index

 o clone()
Returns a copy of the current object
 o equals(Object)
Returns true if the two objects have the same value.
 o fromIntArray(int[])
This will make a ByteEncodedImage from an array of ints.
 o fromIntArray(int[], int)
This will make a ByteEncodedImage from an array of ints.
 o getByte(int)
Returns the byte at the specified offset.
 o getInt(int)
Returns the int at the specified offset.
 o getInts()
Returns the internal int array.
 o getRowBytes()
Returns either kRowBytesUnknown or the number of bytes per row that the encoded image data is comprised of.
 o getShort(int)
Returns the short at the specified offset.
 o getSize()
Returns the size in bytes of the EncodedImage data
 o toString()
Returns a string representation of this object

Constructors

 o IntEncodedImage
 public IntEncodedImage(RawEncodedImage ptr)
Creates a IntEncodedImage from raw data. It will copy the data

 o IntEncodedImage
 public IntEncodedImage(int numOfInts)
Creates a new IntEncodedImage of specified number of ints.

 o IntEncodedImage
 public IntEncodedImage(int numOfInts,
                        int rowBytes)
Creates a new IntEncodedImage of specified number of ints.

Methods

 o fromIntArray
 public static IntEncodedImage fromIntArray(int ar[])
This will make a ByteEncodedImage from an array of ints. It will not copy the int array but creates a proxy for the same ints.

 o fromIntArray
 public static IntEncodedImage fromIntArray(int ar[],
                                            int rowBytes)
This will make a ByteEncodedImage from an array of ints. It will not copy the int array but creates a proxy for the same ints. It will set the row bytes as specified.

 o getInts
 public int[] getInts()
Returns the internal int array. This is NOT a copy so any alteration of the int values will effect any usage of this object.

 o getSize
 public int getSize()
Returns the size in bytes of the EncodedImage data

 o getByte
 public byte getByte(int offset)
Returns the byte at the specified offset. The offset is specified in bytes into the encoded image object.

 o getShort
 public short getShort(int offset)
Returns the short at the specified offset. The offset is specified in bytes into the encoded image object.

 o getInt
 public int getInt(int offset)
Returns the int at the specified offset. The offset is specified in bytes into the encoded image object.

 o getRowBytes
 public int getRowBytes()
Returns either kRowBytesUnknown or the number of bytes per row that the encoded image data is comprised of. This number will at least be as big as width*pixelSize, and maybe larger.

 o equals
 public boolean equals(Object obj)
Returns true if the two objects have the same value.

Overrides:
equals in class Object
 o clone
 public Object clone()
Returns a copy of the current object

Overrides:
clone in class Object
 o toString
 public String toString()
Returns a string representation of this object

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index