Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Side by Side Diff: media/base/android/media_codec_util.h

Issue 1690063002: Fix mime type mappings when the unified media pipeline is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix all teh things. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 the platform supports Opus or VP9. Does not check whether
70 // MediaCodec is available or can successfully be configured.
71 static bool PlatformHasOpusSupport();
72 static bool PlatformHasVp9Support();
73
74 // Indicates if vp8 is blacklisted on this device.
75 static bool IsVp8Blacklisted();
68 }; 76 };
69 77
70 } // namespace media 78 } // namespace media
71 79
72 #endif // MEDIA_BASE_ANDROID_MEDIA_CODEC_UTIL_H_ 80 #endif // MEDIA_BASE_ANDROID_MEDIA_CODEC_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698