Allow Java code to detect if VP8 and H.264 HW decoding is supported.
R=wzh@webrtc.org Review URL: https://webrtc-codereview.appspot.com/43269004 Cr-Commit-Position: refs/heads/master@{#9058}
This commit is contained in:
parent
b67288283a
commit
908e77bd00
@ -50,7 +50,7 @@ import java.nio.ByteBuffer;
|
||||
// This class is an implementation detail of the Java PeerConnection API.
|
||||
// MediaCodec is thread-hostile so this class must be operated on a single
|
||||
// thread.
|
||||
class MediaCodecVideoDecoder {
|
||||
public class MediaCodecVideoDecoder {
|
||||
// This class is constructed, operated, and destroyed by its C++ incarnation,
|
||||
// so the class and its methods have non-public visibility. The API this
|
||||
// class exposes aims to mimic the webrtc::VideoDecoder API as closely as
|
||||
@ -182,11 +182,11 @@ class MediaCodecVideoDecoder {
|
||||
return (CURRENT_SDK_VERSION >= EGL14_SDK_VERSION);
|
||||
}
|
||||
|
||||
private static boolean isVp8HwSupported() {
|
||||
public static boolean isVp8HwSupported() {
|
||||
return findDecoder(VP8_MIME_TYPE, supportedVp8HwCodecPrefixes) != null;
|
||||
}
|
||||
|
||||
private static boolean isH264HwSupported() {
|
||||
public static boolean isH264HwSupported() {
|
||||
return findDecoder(H264_MIME_TYPE, supportedH264HwCodecPrefixes) != null;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user