javax.media.format
Class IndexedColorFormat

java.lang.Object
  extended by javax.media.Format
      extended by javax.media.format.VideoFormat
          extended by javax.media.format.IndexedColorFormat
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class IndexedColorFormat
extends VideoFormat

Standard JMF class -- see this class in the JMF Javadoc. Coding complete.

Author:
Ken Larson
See Also:
Serialized Form

Field Summary
protected  byte[] blueValues
           
protected  byte[] greenValues
           
protected  int lineStride
           
protected  int mapSize
           
protected  byte[] redValues
           
 
Fields inherited from class javax.media.format.VideoFormat
CINEPAK, frameRate, H261, H261_RTP, H263, H263_1998_RTP, H263_RTP, INDEO32, INDEO41, INDEO50, IRGB, JPEG, JPEG_RTP, maxDataLength, MJPEGA, MJPEGB, MJPG, MPEG, MPEG_RTP, RGB, RLE, RPZA, size, SMC, YUV
 
Fields inherited from class javax.media.Format
byteArray, clz, dataType, encoding, FALSE, formatArray, intArray, NOT_SPECIFIED, shortArray, TRUE
 
Constructor Summary
IndexedColorFormat(java.awt.Dimension size, int maxDataLength, java.lang.Class dataType, float frameRate, int lineStride, int mapSize, byte[] red, byte[] green, byte[] blue)
           
 
Method Summary
 java.lang.Object clone()
           
protected  void copy(Format f)
           
 boolean equals(java.lang.Object format)
           
 byte[] getBlueValues()
           
 byte[] getGreenValues()
           
 int getLineStride()
           
 int getMapSize()
           
 byte[] getRedValues()
           
 Format intersects(Format other)
           
 boolean matches(Format format)
           
 Format relax()
           
 
Methods inherited from class javax.media.format.VideoFormat
getFrameRate, getMaxDataLength, getSize, toString
 
Methods inherited from class javax.media.Format
getDataType, getEncoding, isSameEncoding, isSameEncoding
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

lineStride

protected int lineStride

redValues

protected byte[] redValues

greenValues

protected byte[] greenValues

blueValues

protected byte[] blueValues

mapSize

protected int mapSize
Constructor Detail

IndexedColorFormat

public IndexedColorFormat(java.awt.Dimension size,
                          int maxDataLength,
                          java.lang.Class dataType,
                          float frameRate,
                          int lineStride,
                          int mapSize,
                          byte[] red,
                          byte[] green,
                          byte[] blue)
Method Detail

getMapSize

public int getMapSize()

getRedValues

public byte[] getRedValues()

getGreenValues

public byte[] getGreenValues()

getBlueValues

public byte[] getBlueValues()

getLineStride

public int getLineStride()

clone

public java.lang.Object clone()
Overrides:
clone in class VideoFormat

copy

protected void copy(Format f)
Overrides:
copy in class VideoFormat

equals

public boolean equals(java.lang.Object format)
Overrides:
equals in class VideoFormat

matches

public boolean matches(Format format)
Overrides:
matches in class VideoFormat

intersects

public Format intersects(Format other)
Overrides:
intersects in class VideoFormat

relax

public Format relax()
Overrides:
relax in class VideoFormat