All Packages Class Hierarchy This Package Previous Next Index
Class quicktime.util.ByteEncodedImage
java.lang.Object
|
+----quicktime.util.QTByteObject
|
+----quicktime.util.ByteEncodedImage
- public class ByteEncodedImage
- extends QTByteObject
- implements EncodedImage, Cloneable
ByteEncodedImages keep the encoded image data as an array of bytes.
-
ByteEncodedImage(int)
- Creates a new ByteEncodedImage of specified size.
-
ByteEncodedImage(int, int)
- Creates a new ByteEncodedImage of specified size with the specified rowBytes
-
ByteEncodedImage(RawEncodedImage)
- Creates a ByteEncodedImage from raw data.
-
clone()
- Returns a copy of the current object
-
fromByteArray(byte[])
- This will make a ByteEncodedImage from an array of bytes.
-
fromByteArray(byte[], int)
- This will make a ByteEncodedImage from an array of bytes.
-
getByte(int)
- Returns the byte at the specified offset
The offset is specified in bytes into the encoded image object.
-
getInt(int)
- Returns the int at the specified offset
The offset is specified in bytes into the encoded image object.
-
getRowBytes()
- Returns either kRowBytesUnknown or the number of bytes per row
that the encoded image data is comprised of.
-
getShort(int)
- Returns the short at the specified offset
The offset is specified in bytes into the encoded image object.
ByteEncodedImage
public ByteEncodedImage(RawEncodedImage ptr)
- Creates a ByteEncodedImage from raw data. It will copy the data
ByteEncodedImage
public ByteEncodedImage(int size)
- Creates a new ByteEncodedImage of specified size.
ByteEncodedImage
public ByteEncodedImage(int size,
int rowBytes)
- Creates a new ByteEncodedImage of specified size with the specified rowBytes
fromByteArray
public static ByteEncodedImage fromByteArray(byte ar[])
- This will make a ByteEncodedImage from an array of bytes. It will not copy
the byte array but creates a proxy for the same bytes.
fromByteArray
public static ByteEncodedImage fromByteArray(byte ar[],
int rowBytes)
- This will make a ByteEncodedImage from an array of bytes. It will not copy
the byte array but creates a proxy for the same bytes.
clone
public Object clone()
- Returns a copy of the current object
- Overrides:
- clone in class Object
getByte
public byte getByte(int offset)
- Returns the byte at the specified offset
The offset is specified in bytes into the encoded image object.
getShort
public short getShort(int offset)
- Returns the short at the specified offset
The offset is specified in bytes into the encoded image object.
getInt
public int getInt(int offset)
- Returns the int at the specified offset
The offset is specified in bytes into the encoded image object.
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.
All Packages Class Hierarchy This Package Previous Next Index