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

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

Issue 2106133003: [M52] Make AVDA fall back to software decoding if needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 6 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
« no previous file with comments | « media/base/android/ndk_media_codec_bridge.cc ('k') | media/base/android/sdk_media_codec_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/sdk_media_codec_bridge.h
diff --git a/media/base/android/sdk_media_codec_bridge.h b/media/base/android/sdk_media_codec_bridge.h
index 2c52ede9060d8fe8d91dfa6cc31280974ecfb788..a02e1b785971a988e0406450a570781cb89d8ad0 100644
--- a/media/base/android/sdk_media_codec_bridge.h
+++ b/media/base/android/sdk_media_codec_bridge.h
@@ -68,14 +68,15 @@ class MEDIA_EXPORT SdkMediaCodecBridge : public MediaCodecBridge {
size_t offset,
const uint8_t** addr,
size_t* capacity) override;
+ bool IsSoftwareCodec() override;
static bool RegisterSdkMediaCodecBridge(JNIEnv* env);
protected:
SdkMediaCodecBridge(const std::string& mime,
bool is_secure,
- MediaCodecDirection direction);
-
+ MediaCodecDirection direction,
+ bool require_software_codec);
jobject media_codec() { return j_media_codec_.obj(); }
MediaCodecDirection direction_;
@@ -171,7 +172,8 @@ class MEDIA_EXPORT VideoCodecBridge : public SdkMediaCodecBridge {
jobject surface, // Output surface, optional.
jobject media_crypto, // MediaCrypto object, optional.
bool allow_adaptive_playback =
- true); // Should adaptive playback be allowed if supported.
+ true, // Should adaptive playback be allowed if supported.
+ bool require_software_codec = false); // Require software decoder?
// Create, start, and return a VideoCodecBridge encoder or NULL on failure.
static VideoCodecBridge* CreateEncoder(
@@ -202,7 +204,8 @@ class MEDIA_EXPORT VideoCodecBridge : public SdkMediaCodecBridge {
private:
VideoCodecBridge(const std::string& mime,
bool is_secure,
- MediaCodecDirection direction);
+ MediaCodecDirection direction,
+ bool require_software_codec);
int adaptive_playback_supported_for_testing_;
};
« no previous file with comments | « media/base/android/ndk_media_codec_bridge.cc ('k') | media/base/android/sdk_media_codec_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698