public class ParameterizedVideoFormat
extends javax.media.format.VideoFormat
VideoMediaFormatImpl
) (some of) which (could) distinguish payload
types.Constructor and Description |
---|
ParameterizedVideoFormat(java.lang.String encoding,
java.awt.Dimension size,
int maxDataLength,
java.lang.Class<?> dataType,
float frameRate,
java.util.Map<java.lang.String,java.lang.String> fmtps)
Constructs a new ParametizedVideoFormat.
|
ParameterizedVideoFormat(java.lang.String encoding,
java.util.Map<java.lang.String,java.lang.String> fmtps)
Initializes a new ParameterizedVideoFormat with a specific
encoding and a specific set of format parameters.
|
ParameterizedVideoFormat(java.lang.String encoding,
java.lang.String... fmtps)
Initializes a new ParameterizedVideoFormat with a specific
encoding and a specific set of format parameters.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Initializes a new ParameterizedVideoFormat instance which has
the same properties as this instance.
|
protected void |
copy(javax.media.Format f)
Copies the properties of the specified Format into this
instance.
|
boolean |
equals(java.lang.Object obj)
Determines whether a specific Object represents a value that is
equal to the value represented by this instance.
|
boolean |
formatParametersMatch(javax.media.Format format)
Returns whether or not the format parameters match.
|
java.lang.String |
getFormatParameter(java.lang.String name)
Returns the format parameters value for the specified name.
|
java.util.Map<java.lang.String,java.lang.String> |
getFormatParameters()
Returns the format parameters Map.
|
javax.media.Format |
intersects(javax.media.Format format)
Finds the attributes shared by two matching Formats.
|
boolean |
matches(javax.media.Format format)
Determines whether a specific format matches this instance i.e.
|
static <T> java.util.Map<T,T> |
toMap(T... entries)
Initializes a new Map from an array in which the key and the
value of an association are expressed as consecutive elements.
|
java.lang.String |
toString() |
getFrameRate, getMaxDataLength, getSize, relax
public ParameterizedVideoFormat(java.lang.String encoding, java.awt.Dimension size, int maxDataLength, java.lang.Class<?> dataType, float frameRate, java.util.Map<java.lang.String,java.lang.String> fmtps)
encoding
- encodingsize
- video sizemaxDataLength
- maximum data lengthdataType
- data typeframeRate
- frame ratefmtps
- format parameterspublic ParameterizedVideoFormat(java.lang.String encoding, java.util.Map<java.lang.String,java.lang.String> fmtps)
encoding
- the encoding of the new instancefmtps
- the format parameters of the new instancepublic ParameterizedVideoFormat(java.lang.String encoding, java.lang.String... fmtps)
encoding
- the encoding of the new instancefmtps
- the format parameters of the new instance in the form of an
array of Strings in which the key and the value of an
association are expressed as consecutive elements.public java.lang.Object clone()
clone
in class javax.media.format.VideoFormat
protected void copy(javax.media.Format f)
copy
in class javax.media.format.VideoFormat
f
- the Format the properties of which are to be copied
into this instancepublic boolean equals(java.lang.Object obj)
equals
in class javax.media.format.VideoFormat
obj
- the Object to be determined whether it represents a
value that is equal to the value represented by this instancepublic boolean formatParametersMatch(javax.media.Format format)
format
- format to testpublic java.lang.String getFormatParameter(java.lang.String name)
name
- format parameters namepublic java.util.Map<java.lang.String,java.lang.String> getFormatParameters()
public javax.media.Format intersects(javax.media.Format format)
intersects
in class javax.media.format.VideoFormat
format
- the matching Format to intersect with this onepublic boolean matches(javax.media.Format format)
Format.matches(Format)
.matches
in class javax.media.format.VideoFormat
format
- the Format to compare to this instancepublic static <T> java.util.Map<T,T> toMap(T... entries)
T
- the very type of the keys and the values to be associated in
the new Mapentries
- the associations to be created in the new Map
where the key and value of an association are expressed as consecutive
elementspublic java.lang.String toString()
toString
in class javax.media.format.VideoFormat
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.