H261Formatpublic class H261Format extends VideoFormat Describes H.261 compressed video data. |
Fields Summary |
---|
protected int | stillImageTransmissionUsed to indicate whether or not still image transmission is used.
Can be set to NOT_SPECIFIED, TRUE, or FALSE. | private static String | ENCODINGthe video encoding string |
Constructors Summary |
---|
public H261Format()Constructs an H261Format object with default parameters.
super(ENCODING);
| public H261Format(Dimension size, int maxDataLength, Class dataType, float frameRate, int stillImageTransmission)Constructs an H261Format object with the specified parameters.
super(ENCODING, size, maxDataLength, dataType, frameRate);
this.stillImageTransmission = stillImageTransmission;
|
Methods Summary |
---|
public java.lang.Object | clone()Creates a clone of this H261Format .
H261Format f = new H261Format();
f.copy(this);
return f;
| protected void | copy(javax.media.Format f)Copies the attributes from the specified Format into
this H261Format .
super.copy(f);
stillImageTransmission = ((H261Format)f).stillImageTransmission;
| public boolean | equals(java.lang.Object format)Compares the specified Format with this H261Format .
Returns true only if the specified Format
is a H261Format object and all of
its attributes are identical to
the attributes in this H261Format .
if (format instanceof H261Format) {
return super.equals(format) &&
stillImageTransmission == ((H261Format)format).stillImageTransmission;
}
return false;
| public int | getStillImageTransmission()Gets the still image transmission setting for this Format .
return stillImageTransmission;
| public javax.media.Format | intersects(javax.media.Format format)Finds the attributes shared by two matching Format objects.
If the specified Format does not match this one, the result
is undefined.
Format fmt;
if ((fmt = super.intersects(format)) == null)
return null;
if (!(format instanceof H261Format))
return fmt;
H261Format other = (H261Format)format;
H261Format res = (H261Format)fmt;
res.stillImageTransmission = (stillImageTransmission != NOT_SPECIFIED ?
stillImageTransmission : other.stillImageTransmission);
return res;
| public boolean | matches(javax.media.Format format)Checks whether or not the specified Format matches
this H261Format .
Matches only compares the attributes that are defined in the specified
Format ,
unspecified attributes are ignored.
The two Format objects do not have to be of the same class
to match. For example, if "A" are "B" are being compared, a
match is possible if "A" is derived from "B"
or "B" is derived from "A". (The compared attributes must still match,
or matches fails.)
if (!super.matches(format))
return false;
if (!(format instanceof H261Format))
return true;
H261Format f = (H261Format)format;
return
(stillImageTransmission == NOT_SPECIFIED || f.stillImageTransmission == NOT_SPECIFIED ||
stillImageTransmission == f.stillImageTransmission);
| public java.lang.String | toString()Gets a String representation of the attributes of this
H261Format .
For example: "H261, 352x240, ...".
return "H.261 video format";
|
|