java.lang.Object | |
↳ | android.media.MediaCodecInfo.VideoCapabilities |
A class that supports querying the video capabilities of a codec.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns whether a given video size (
width and
height ) and frameRate combination is supported.
| |||||||||||
Returns the range of achievable video frame rates for a video size.
| |||||||||||
Returns the range of supported bitrates in bits/second.
| |||||||||||
Returns the alignment requirement for video height (in pixels).
| |||||||||||
Returns the range of supported frame rates.
| |||||||||||
Returns the range of supported video frame rates for a video size.
| |||||||||||
Returns the range of supported video heights.
| |||||||||||
Returns the range of supported video heights for a video width
| |||||||||||
Returns the range of supported video widths.
| |||||||||||
Returns the range of supported video widths for a video height.
| |||||||||||
Returns the alignment requirement for video width (in pixels).
| |||||||||||
Returns whether a given video size (
width and
height ) is supported.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Returns whether a given video size (width
and
height
) and frameRate
combination is supported.
Returns the range of achievable video frame rates for a video size.
May return null
, if the codec did not publish any measurement
data.
This is a performance estimate provided by the device manufacturer based on full-speed decoding and encoding measurements in various configurations of common video sizes supported by the codec. As such it should only be used to compare individual codecs on the device. The value is not suitable for comparing different devices or even different android releases for the same device.
The returned range corresponds to the fastest frame rates achieved in the tested configurations. It is interpolated from the nearest frame size(s) tested. Codec performance is severely impacted by other activity on the device, and can vary significantly.
Use this method in cases where only codec performance matters, e.g. to evaluate if
a codec has any chance of meeting a performance target. Codecs are listed
in MediaCodecList
in the preferred order as defined by the device
manufacturer. As such, applications should use the first suitable codec in the
list to achieve the best balance between power use and performance.
width | the width of the video |
---|---|
height | the height of the video |
IllegalArgumentException | if the video size is not supported. |
---|
Returns the range of supported bitrates in bits/second.
Returns the alignment requirement for video height (in pixels). This is a power-of-2 value that video height must be a multiple of.
Returns the range of supported frame rates.
This is not a performance indicator. Rather, it expresses the limits specified in the coding standard, based on the complexities of encoding material for later playback at a certain frame rate, or the decoding of such material in non-realtime.
Returns the range of supported video frame rates for a video size.
This is not a performance indicator. Rather, it expresses the limits specified in the coding standard, based on the complexities of encoding material of a given size for later playback at a certain frame rate, or the decoding of such material in non-realtime.
width | the width of the video |
---|---|
height | the height of the video |
Returns the range of supported video heights.
Returns the range of supported video heights for a video width
width | the width of the video |
---|
Returns the range of supported video widths.
Returns the range of supported video widths for a video height.
height | the height of the video |
---|
Returns the alignment requirement for video width (in pixels). This is a power-of-2 value that video width must be a multiple of.
Returns whether a given video size (width
and
height
) is supported.