mirror of
https://github.com/androidx/media.git
synced 2025-05-10 09:12:16 +08:00
Make MediaCodecUtil.getMediaCodecInfo public
This commit is contained in:
parent
5b81612c3b
commit
6a5cd68892
@ -94,8 +94,15 @@ public final class MediaCodecUtil {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the name of the best decoder and its capabilities for the given mimeType.
|
* Returns the name of the best decoder and its capabilities for the given mimeType.
|
||||||
|
*
|
||||||
|
* @param mimeType The mime type.
|
||||||
|
* @param secure Whether the decoder is required to support secure decryption. Always pass false
|
||||||
|
* unless secure decryption really is required.
|
||||||
|
*
|
||||||
|
* @return The name of the best decoder and its capabilities for the given mimeType, or null if
|
||||||
|
* no decoder exists.
|
||||||
*/
|
*/
|
||||||
private static synchronized Pair<String, CodecCapabilities> getMediaCodecInfo(
|
public static synchronized Pair<String, CodecCapabilities> getMediaCodecInfo(
|
||||||
String mimeType, boolean secure) throws DecoderQueryException {
|
String mimeType, boolean secure) throws DecoderQueryException {
|
||||||
CodecKey key = new CodecKey(mimeType, secure);
|
CodecKey key = new CodecKey(mimeType, secure);
|
||||||
if (codecs.containsKey(key)) {
|
if (codecs.containsKey(key)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user