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

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

Issue 605883002: Fix wrong selection of VP8 video decoder on some Samsung devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing nit Created 6 years, 3 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 2d046465d4e1fe7a1a622c3fc0f9734aa0f7b1ee..da2348f497556b9b86cc715dc038552721c6de7d 100644
--- a/media/base/android/media_codec_bridge.h
+++ b/media/base/android/media_codec_bridge.h
@@ -58,6 +58,9 @@ class MEDIA_EXPORT MediaCodecBridge {
// Returns true if MediaCodec.setParameters() is available on the device.
static bool SupportsSetParameters();
+ // Returns true if MediaCodec.getName() is available on the device.
+ static bool SupportsGetName();
+
// Returns whether MediaCodecBridge has a decoder that |is_secure| and can
// decode |codec| type.
static bool CanDecode(const std::string& codec, bool is_secure);
@@ -74,6 +77,10 @@ class MEDIA_EXPORT MediaCodecBridge {
// Get a list of supported codecs.
static std::vector<CodecsInfo> GetCodecsInfo();
+ // Get default codec name for |mime_type|.
+ static std::string GetDefaultCodecName(const std::string& mime_type,
+ MediaCodecDirection direction);
+
virtual ~MediaCodecBridge();
// Resets both input and output, all indices previously returned in calls to
« no previous file with comments | « media/base/android/java/src/org/chromium/media/MediaCodecBridge.java ('k') | media/base/android/media_codec_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698