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

Unified Diff: media/base/android/media_codec_bridge.h

Issue 23517002: MediaSourcePlayer implements IsTypeSupported(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: media/base/android/media_codec_bridge.h
diff --git a/media/base/android/media_codec_bridge.h b/media/base/android/media_codec_bridge.h
index 3469b1804e7525fb423244162284c617169e7bee..76f4000ae7ff51fcd8b4c6501e641c906e50f6b9 100644
--- a/media/base/android/media_codec_bridge.h
+++ b/media/base/android/media_codec_bridge.h
@@ -39,6 +39,10 @@ class MEDIA_EXPORT MediaCodecBridge {
// Returns true if MediaCodec is available on the device.
static bool IsAvailable();
+ // Returns whether MediaCodecBridge has a decoder that |is_secure| and can
+ // decode |codec| type.
+ static bool CanDecode(const std::string& codec, bool is_secure);
+
virtual ~MediaCodecBridge();
// Resets both input and output, all indices previously returned in calls to
@@ -100,7 +104,7 @@ class MEDIA_EXPORT MediaCodecBridge {
static bool RegisterMediaCodecBridge(JNIEnv* env);
protected:
- explicit MediaCodecBridge(const char* mime);
+ explicit MediaCodecBridge(const std::string& mime);
// Calls start() against the media codec instance. Used in StartXXX() after
// configuring media codec.
@@ -137,7 +141,7 @@ class AudioCodecBridge : public MediaCodecBridge {
void SetVolume(double volume);
private:
- explicit AudioCodecBridge(const char* mime);
+ explicit AudioCodecBridge(const std::string& mime);
// Configure the java MediaFormat object with the extra codec data passed in.
bool ConfigureMediaFormat(jobject j_format, const AudioCodec codec,
@@ -156,7 +160,7 @@ class MEDIA_EXPORT VideoCodecBridge : public MediaCodecBridge {
jobject media_crypto);
private:
- explicit VideoCodecBridge(const char* mime);
+ explicit VideoCodecBridge(const std::string& mime);
};
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698