Track.Encoding| Modifier and Type | Field and Description |
|---|---|
private float |
encodedFrameRate |
private VideoResolution |
frameSize |
private boolean |
hasAlphaChannel |
| Constructor and Description |
|---|
VideoTrack(boolean enabled,
long trackID,
java.lang.String name,
java.util.Locale locale,
Track.Encoding encoding,
VideoResolution frameSize,
float encodedFrameRate,
boolean hasAlphaChannel)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getEncodedFrameRate()
Retrieve the encoded video frame rate.
|
VideoResolution |
getFrameSize()
Retrieve the dimensions of the video frames in the track.
|
boolean |
hasAlphaChannel()
Retrieve whether the video frames contain an alpha channel.
|
java.lang.String |
toString() |
getEncodingType, getLocale, getName, getTrackID, isEnabledprivate VideoResolution frameSize
private float encodedFrameRate
private boolean hasAlphaChannel
public VideoTrack(boolean enabled,
long trackID,
java.lang.String name,
java.util.Locale locale,
Track.Encoding encoding,
VideoResolution frameSize,
float encodedFrameRate,
boolean hasAlphaChannel)
enabled - Whether this track is enabled by default or not (if the container supports it)trackID - A unique identifier for this track.name - The name of the track.locale - The language information for this track, can be null.encoding - The encoding of the track.frameSize - The dimensions of the video frames in the track.encodedFrameRate - The encoded frame rate of the track.hasAlphaChannel - Whether the video frames contain an alpha channel.java.lang.IllegalArgumentException - if name,
encoding, or frameSize is null.java.lang.IllegalArgumentException - if encodedFrameRate
is negative.java.lang.IllegalArgumentException - if either frame dimension is
non-positive.public boolean hasAlphaChannel()
public float getEncodedFrameRate()
public VideoResolution getFrameSize()
public final java.lang.String toString()
toString in class java.lang.Object