public class StreamInformation
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEY_AVERAGE_FRAME_RATE |
static java.lang.String |
KEY_BIT_RATE |
static java.lang.String |
KEY_CHANNEL_LAYOUT |
static java.lang.String |
KEY_CODEC |
static java.lang.String |
KEY_CODEC_LONG |
static java.lang.String |
KEY_CODEC_TIME_BASE |
static java.lang.String |
KEY_DISPLAY_ASPECT_RATIO |
static java.lang.String |
KEY_FORMAT |
static java.lang.String |
KEY_HEIGHT |
static java.lang.String |
KEY_INDEX |
static java.lang.String |
KEY_REAL_FRAME_RATE |
static java.lang.String |
KEY_SAMPLE_ASPECT_RATIO |
static java.lang.String |
KEY_SAMPLE_FORMAT |
static java.lang.String |
KEY_SAMPLE_RATE |
static java.lang.String |
KEY_TAGS |
static java.lang.String |
KEY_TIME_BASE |
static java.lang.String |
KEY_TYPE |
static java.lang.String |
KEY_WIDTH |
Constructor and Description |
---|
StreamInformation(org.json.JSONObject jsonObject) |
Modifier and Type | Method and Description |
---|---|
org.json.JSONObject |
getAllProperties()
Returns all stream properties defined.
|
java.lang.String |
getAverageFrameRate()
Returns display aspect ratio.
|
java.lang.String |
getBitrate()
Returns bitrate.
|
java.lang.String |
getChannelLayout()
Returns channel layout.
|
java.lang.String |
getCodec()
Returns stream codec.
|
java.lang.String |
getCodecLong()
Returns stream codec in long format.
|
java.lang.String |
getCodecTimeBase()
Returns codec time base.
|
java.lang.String |
getDisplayAspectRatio()
Returns display aspect ratio.
|
java.lang.String |
getFormat()
Returns stream format.
|
java.lang.Long |
getHeight()
Returns height.
|
java.lang.Long |
getIndex()
Returns stream index.
|
java.lang.Long |
getNumberProperty(java.lang.String key)
Returns the stream property associated with the key.
|
org.json.JSONObject |
getProperties(java.lang.String key)
Returns the stream properties associated with the key.
|
java.lang.String |
getRealFrameRate()
Returns real frame rate.
|
java.lang.String |
getSampleAspectRatio()
Returns sample aspect ratio.
|
java.lang.String |
getSampleFormat()
Returns sample format.
|
java.lang.String |
getSampleRate()
Returns sample rate.
|
java.lang.String |
getStringProperty(java.lang.String key)
Returns the stream property associated with the key.
|
org.json.JSONObject |
getTags()
Returns all tags.
|
java.lang.String |
getTimeBase()
Returns time base.
|
java.lang.String |
getType()
Returns stream type.
|
java.lang.Long |
getWidth()
Returns width.
|
public static final java.lang.String KEY_INDEX
public static final java.lang.String KEY_TYPE
public static final java.lang.String KEY_CODEC
public static final java.lang.String KEY_CODEC_LONG
public static final java.lang.String KEY_FORMAT
public static final java.lang.String KEY_WIDTH
public static final java.lang.String KEY_HEIGHT
public static final java.lang.String KEY_BIT_RATE
public static final java.lang.String KEY_SAMPLE_RATE
public static final java.lang.String KEY_SAMPLE_FORMAT
public static final java.lang.String KEY_CHANNEL_LAYOUT
public static final java.lang.String KEY_SAMPLE_ASPECT_RATIO
public static final java.lang.String KEY_DISPLAY_ASPECT_RATIO
public static final java.lang.String KEY_AVERAGE_FRAME_RATE
public static final java.lang.String KEY_REAL_FRAME_RATE
public static final java.lang.String KEY_TIME_BASE
public static final java.lang.String KEY_CODEC_TIME_BASE
public static final java.lang.String KEY_TAGS
public java.lang.Long getIndex()
public java.lang.String getType()
public java.lang.String getCodec()
public java.lang.String getCodecLong()
public java.lang.String getFormat()
public java.lang.Long getWidth()
public java.lang.Long getHeight()
public java.lang.String getBitrate()
public java.lang.String getSampleRate()
public java.lang.String getSampleFormat()
public java.lang.String getChannelLayout()
public java.lang.String getSampleAspectRatio()
public java.lang.String getDisplayAspectRatio()
public java.lang.String getAverageFrameRate()
public java.lang.String getRealFrameRate()
public java.lang.String getTimeBase()
public java.lang.String getCodecTimeBase()
public org.json.JSONObject getTags()
public java.lang.String getStringProperty(java.lang.String key)
key
- property keypublic java.lang.Long getNumberProperty(java.lang.String key)
key
- property keypublic org.json.JSONObject getProperties(java.lang.String key)
key
- properties keypublic org.json.JSONObject getAllProperties()