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

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

Issue 2146753002: Android: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 static bool IsKnownUnaccelerated(const std::string& mime_type, 66 static bool IsKnownUnaccelerated(const std::string& mime_type,
67 MediaCodecDirection direction); 67 MediaCodecDirection direction);
68 68
69 // Test whether a URL contains "m3u8". (Using exactly the same logic as 69 // Test whether a URL contains "m3u8". (Using exactly the same logic as
70 // NuPlayer does to determine if a stream is HLS.) 70 // NuPlayer does to determine if a stream is HLS.)
71 static bool IsHLSURL(const GURL& url); 71 static bool IsHLSURL(const GURL& url);
72 72
73 // Test whether the path of a URL ends with ".m3u8". 73 // Test whether the path of a URL ends with ".m3u8".
74 static bool IsHLSPath(const GURL& url); 74 static bool IsHLSPath(const GURL& url);
75 75
76 static bool RegisterMediaCodecUtil(JNIEnv* env);
77
78 // Indicates if the vp8 decoder or encoder is available on this device. 76 // Indicates if the vp8 decoder or encoder is available on this device.
79 static bool IsVp8DecoderAvailable(); 77 static bool IsVp8DecoderAvailable();
80 static bool IsVp8EncoderAvailable(); 78 static bool IsVp8EncoderAvailable();
81 79
82 // Indicates if the vp9 decoder is available on this device. 80 // Indicates if the vp9 decoder is available on this device.
83 static bool IsVp9DecoderAvailable(); 81 static bool IsVp9DecoderAvailable();
84 82
85 // Indicates if SurfaceView and MediaCodec work well together on this device. 83 // Indicates if SurfaceView and MediaCodec work well together on this device.
86 static bool IsSurfaceViewOutputSupported(); 84 static bool IsSurfaceViewOutputSupported();
87 }; 85 };
88 86
89 } // namespace media 87 } // namespace media
90 88
91 #endif // MEDIA_BASE_ANDROID_MEDIA_CODEC_UTIL_H_ 89 #endif // MEDIA_BASE_ANDROID_MEDIA_CODEC_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698