javax.media.format
Class VideoFormat

java.lang.Object
  extended by javax.media.Format
      extended by javax.media.format.VideoFormat
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
GIFFormat, H261Format, H263Format, IndexedColorFormat, JPEGFormat, PNGFormat, RGBFormat, YUVFormat

public class VideoFormat
extends Format

Standard JMF class -- see this class in the JMF Javadoc. Coding complete. Frame rate is in frames per second.

Author:
Ken Larson
See Also:
Serialized Form

Field Summary
static java.lang.String CINEPAK
           
protected  float frameRate
           
static java.lang.String H261
           
static java.lang.String H261_RTP
           
static java.lang.String H263
           
static java.lang.String H263_1998_RTP
           
static java.lang.String H263_RTP
           
static java.lang.String INDEO32
           
static java.lang.String INDEO41
           
static java.lang.String INDEO50
           
static java.lang.String IRGB
           
static java.lang.String JPEG
           
static java.lang.String JPEG_RTP
           
protected  int maxDataLength
           
static java.lang.String MJPEGA
           
static java.lang.String MJPEGB
           
static java.lang.String MJPG
           
static java.lang.String MPEG
           
static java.lang.String MPEG_RTP
           
static java.lang.String RGB
           
static java.lang.String RLE
           
static java.lang.String RPZA
           
protected  java.awt.Dimension size
           
static java.lang.String SMC
           
static java.lang.String YUV
           
 
Fields inherited from class javax.media.Format
byteArray, clz, dataType, encoding, FALSE, formatArray, intArray, NOT_SPECIFIED, shortArray, TRUE
 
Constructor Summary
VideoFormat(java.lang.String encoding)
           
VideoFormat(java.lang.String encoding, java.awt.Dimension size, int maxDataLength, java.lang.Class dataType, float frameRate)
           
 
Method Summary
 java.lang.Object clone()
           
protected  void copy(Format f)
           
 boolean equals(java.lang.Object format)
           
 float getFrameRate()
           
 int getMaxDataLength()
           
 java.awt.Dimension getSize()
           
 Format intersects(Format other)
           
 boolean matches(Format format)
           
 Format relax()
           
 java.lang.String 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

size

protected java.awt.Dimension size

maxDataLength

protected int maxDataLength

frameRate

protected float frameRate

CINEPAK

public static final java.lang.String CINEPAK
See Also:
Constant Field Values

JPEG

public static final java.lang.String JPEG
See Also:
Constant Field Values

JPEG_RTP

public static final java.lang.String JPEG_RTP
See Also:
Constant Field Values

MPEG

public static final java.lang.String MPEG
See Also:
Constant Field Values

MPEG_RTP

public static final java.lang.String MPEG_RTP
See Also:
Constant Field Values

H261

public static final java.lang.String H261
See Also:
Constant Field Values

H261_RTP

public static final java.lang.String H261_RTP
See Also:
Constant Field Values

H263

public static final java.lang.String H263
See Also:
Constant Field Values

H263_RTP

public static final java.lang.String H263_RTP
See Also:
Constant Field Values

H263_1998_RTP

public static final java.lang.String H263_1998_RTP
See Also:
Constant Field Values

RGB

public static final java.lang.String RGB
See Also:
Constant Field Values

YUV

public static final java.lang.String YUV
See Also:
Constant Field Values

IRGB

public static final java.lang.String IRGB
See Also:
Constant Field Values

SMC

public static final java.lang.String SMC
See Also:
Constant Field Values

RLE

public static final java.lang.String RLE
See Also:
Constant Field Values

RPZA

public static final java.lang.String RPZA
See Also:
Constant Field Values

MJPG

public static final java.lang.String MJPG
See Also:
Constant Field Values

MJPEGA

public static final java.lang.String MJPEGA
See Also:
Constant Field Values

MJPEGB

public static final java.lang.String MJPEGB
See Also:
Constant Field Values

INDEO32

public static final java.lang.String INDEO32
See Also:
Constant Field Values

INDEO41

public static final java.lang.String INDEO41
See Also:
Constant Field Values

INDEO50

public static final java.lang.String INDEO50
See Also:
Constant Field Values
Constructor Detail

VideoFormat

public VideoFormat(java.lang.String encoding)

VideoFormat

public VideoFormat(java.lang.String encoding,
                   java.awt.Dimension size,
                   int maxDataLength,
                   java.lang.Class dataType,
                   float frameRate)
Method Detail

getSize

public java.awt.Dimension getSize()

getMaxDataLength

public int getMaxDataLength()

clone

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

getFrameRate

public float getFrameRate()

copy

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

toString

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

equals

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

matches

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

intersects

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

relax

public Format relax()
Overrides:
relax in class Format