| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 68 |
| 69 // Indicates if the vp8 decoder is available on this device. | 69 // Indicates if the vp8 decoder or encoder is available on this device. |
| 70 static bool IsVp8DecoderAvailable(); | 70 static bool IsVp8DecoderAvailable(); |
| 71 static bool IsVp8EncoderAvailable(); |
| 71 }; | 72 }; |
| 72 | 73 |
| 73 } // namespace media | 74 } // namespace media |
| 74 | 75 |
| 75 #endif // MEDIA_BASE_ANDROID_MEDIA_CODEC_UTIL_H_ | 76 #endif // MEDIA_BASE_ANDROID_MEDIA_CODEC_UTIL_H_ |
| OLD | NEW |