javax.media.format
Class YUVFormat

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

public class YUVFormat
extends VideoFormat

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

Author:
Ken Larson
See Also:
Serialized Form

Field Summary
protected  int offsetU
           
protected  int offsetV
           
protected  int offsetY
           
protected  int strideUV
           
protected  int strideY
           
static int YUV_111
           
static int YUV_411
           
static int YUV_420
           
static int YUV_422
           
static int YUV_SIGNED
           
static int YUV_YUYV
           
static int YUV_YVU9
           
protected  int yuvType
           
 
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
YUVFormat()
           
YUVFormat(java.awt.Dimension size, int maxDataLength, java.lang.Class dataType, float frameRate, int yuvType, int strideY, int strideUV, int offsetY, int offsetU, int offsetV)
           
YUVFormat(int yuvType)
           
 
Method Summary
 java.lang.Object clone()
           
protected  void copy(Format f)
           
 boolean equals(java.lang.Object format)
           
 int getOffsetU()
           
 int getOffsetV()
           
 int getOffsetY()
           
 int getStrideUV()
           
 int getStrideY()
           
 int getYuvType()
           
 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

YUV_411

public static final int YUV_411
See Also:
Constant Field Values

YUV_420

public static final int YUV_420
See Also:
Constant Field Values

YUV_422

public static final int YUV_422
See Also:
Constant Field Values

YUV_111

public static final int YUV_111
See Also:
Constant Field Values

YUV_YVU9

public static final int YUV_YVU9
See Also:
Constant Field Values

YUV_YUYV

public static final int YUV_YUYV
See Also:
Constant Field Values

YUV_SIGNED

public static final int YUV_SIGNED
See Also:
Constant Field Values

strideY

protected int strideY

strideUV

protected int strideUV

yuvType

protected int yuvType

offsetY

protected int offsetY

offsetU

protected int offsetU

offsetV

protected int offsetV
Constructor Detail

YUVFormat

public YUVFormat()

YUVFormat

public YUVFormat(int yuvType)

YUVFormat

public YUVFormat(java.awt.Dimension size,
                 int maxDataLength,
                 java.lang.Class dataType,
                 float frameRate,
                 int yuvType,
                 int strideY,
                 int strideUV,
                 int offsetY,
                 int offsetU,
                 int offsetV)
Method Detail

getYuvType

public int getYuvType()

getStrideY

public int getStrideY()

getStrideUV

public int getStrideUV()

getOffsetY

public int getOffsetY()

getOffsetU

public int getOffsetU()

getOffsetV

public int getOffsetV()

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