public class CodecDescriptionList extends Object
SystemCapability.Multimedia#MEDIA| 构造器 | 说明 |
|---|---|
CodecDescriptionList() |
A constructor used to create a
CodecDescriptionList object. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
List<CodecDescription> |
findDecoder(Format format) |
Obtains descriptions of all supported decoders for a specified media format.
|
List<CodecDescription> |
findEncoder(Format format) |
Obtains the description list of all supported encoders for a specified media format.
|
List<CodecDescription> |
getSupportedCodecs() |
Obtains the description list of codecs supported by the device.
|
List<CodecDescription> |
getSupportedDecoders() |
Obtains descriptions of all decoders supported by the device.
|
List<CodecDescription> |
getSupportedEncoders() |
Obtains the description list of encoders supported by the device.
|
static List<String> |
getSupportedMimes() |
Obtains a list of MIME types supported by the codecs available to a device.
|
static boolean |
isDecoderSupportedByFormat(Format format) |
Checks whether a device supports the decoder for the specified media format.
|
static boolean |
isDecodeSupportedByMime(String mime) |
Checks whether a device supports the decoder for the specified MIME type.
|
static boolean |
isEncoderSupportedByFormat(Format format) |
Checks whether a device supports the encoder for the specified media format.
|
static boolean |
isEncodeSupportedByMime(String mime) |
Checks whether a device supports the encoder for the specified MIME type.
|
public CodecDescriptionList()
CodecDescriptionList object.public final List<CodecDescription> getSupportedCodecs()
public final List<CodecDescription> getSupportedDecoders()
public final List<CodecDescription> getSupportedEncoders()
public final List<CodecDescription> findDecoder(Format format)
format - Indicates the media format.public final List<CodecDescription> findEncoder(Format format)
format - Indicates the media format.public static List<String> getSupportedMimes()
public static boolean isDecodeSupportedByMime(String mime)
mime - Indicates the media format MIME type.true if the decoder is supported; returns false otherwise.public static boolean isEncodeSupportedByMime(String mime)
mime - Indicates the media format MIME type.true if the encoder is supported; returns false otherwise.public static boolean isDecoderSupportedByFormat(Format format)
format - Indicates the media format, for example, the audio format of a media file.true if the decoder is supported; returns false otherwise.public static boolean isEncoderSupportedByFormat(Format format)
format - Indicates the media format, for example, the audio format of a media file.true if the encoder is supported; returns false otherwise.