javax.media.format
Class RGBFormat

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

public class RGBFormat
extends VideoFormat

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

Author:
Ken Larson
See Also:
Serialized Form

Field Summary
static int BIG_ENDIAN
           
protected  int bitsPerPixel
           
protected  int blueMask
           
protected  int endian
           
protected  int flipped
           
protected  int greenMask
           
protected  int lineStride
           
static int LITTLE_ENDIAN
           
protected  int pixelStride
           
protected  int redMask
           
 
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
RGBFormat()
           
RGBFormat(java.awt.Dimension size, int maxDataLength, java.lang.Class dataType, float frameRate, int bitsPerPixel, int red, int green, int blue)
           
RGBFormat(java.awt.Dimension size, int maxDataLength, java.lang.Class dataType, float frameRate, int bitsPerPixel, int red, int green, int blue, int pixelStride, int lineStride, int flipped, int endian)
           
 
Method Summary
 java.lang.Object clone()
           
protected  void copy(Format f)
           
 boolean equals(java.lang.Object format)
           
 int getBitsPerPixel()
           
 int getBlueMask()
           
 int getEndian()
           
 int getFlipped()
           
 int getGreenMask()
           
 int getLineStride()
           
 int getPixelStride()
           
 int getRedMask()
           
 Format intersects(Format other)
           
 boolean matches(Format format)
           
 Format relax()
           
 java.lang.String toString()
           
 
Methods inherited from class javax.media.format.VideoFormat
getFrameRate, getMaxDataLength, getSize
 
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

redMask

protected int redMask

greenMask

protected int greenMask

blueMask

protected int blueMask

bitsPerPixel

protected int bitsPerPixel

pixelStride

protected int pixelStride

lineStride

protected int lineStride

flipped

protected int flipped

endian

protected int endian

BIG_ENDIAN

public static final int BIG_ENDIAN
See Also:
Constant Field Values

LITTLE_ENDIAN

public static final int LITTLE_ENDIAN
See Also:
Constant Field Values
Constructor Detail

RGBFormat

public RGBFormat()

RGBFormat

public RGBFormat(java.awt.Dimension size,
                 int maxDataLength,
                 java.lang.Class dataType,
                 float frameRate,
                 int bitsPerPixel,
                 int red,
                 int green,
                 int blue)

RGBFormat

public RGBFormat(java.awt.Dimension size,
                 int maxDataLength,
                 java.lang.Class dataType,
                 float frameRate,
                 int bitsPerPixel,
                 int red,
                 int green,
                 int blue,
                 int pixelStride,
                 int lineStride,
                 int flipped,
                 int endian)
Method Detail

getBitsPerPixel

public int getBitsPerPixel()

getRedMask

public int getRedMask()

getGreenMask

public int getGreenMask()

getBlueMask

public int getBlueMask()

getPixelStride

public int getPixelStride()

getLineStride

public int getLineStride()

getFlipped

public int getFlipped()

getEndian

public int getEndian()

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

toString

public java.lang.String toString()
Overrides:
toString in class VideoFormat