Make MediaCodecUtil.getMediaCodecInfo public

This commit is contained in:
Ian Bird 2015-10-09 12:33:01 +01:00
parent 5b81612c3b
commit 6a5cd68892

View File

@ -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)) {