OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_BASE_ANDROID_MEDIA_CODEC_UTIL_H_ | 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_CODEC_UTIL_H_ |
6 #define MEDIA_BASE_ANDROID_MEDIA_CODEC_UTIL_H_ | 6 #define MEDIA_BASE_ANDROID_MEDIA_CODEC_UTIL_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 MediaCodecDirection direction); | 58 MediaCodecDirection direction); |
59 | 59 |
60 // Test whether the path of a URL ends with ".m3u8". | 60 // Test whether the path of a URL ends with ".m3u8". |
61 static bool IsHLSURL(const GURL& url); | 61 static bool IsHLSURL(const GURL& url); |
62 | 62 |
63 // Test whether a URL contains "m3u8". (Using exactly the same logic as | 63 // Test whether a URL contains "m3u8". (Using exactly the same logic as |
64 // NuPlayer does to determine if a stream is HLS.) | 64 // NuPlayer does to determine if a stream is HLS.) |
65 static bool IsHLSPath(const GURL& url); | 65 static bool IsHLSPath(const GURL& url); |
66 | 66 |
67 static bool RegisterMediaCodecUtil(JNIEnv* env); | 67 static bool RegisterMediaCodecUtil(JNIEnv* env); |
| 68 |
| 69 // Indicates if vp8 is blacklisted on this device. |
| 70 static bool IsVp8Blacklisted(); |
68 }; | 71 }; |
69 | 72 |
70 } // namespace media | 73 } // namespace media |
71 | 74 |
72 #endif // MEDIA_BASE_ANDROID_MEDIA_CODEC_UTIL_H_ | 75 #endif // MEDIA_BASE_ANDROID_MEDIA_CODEC_UTIL_H_ |
OLD | NEW |