summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Mok <kmok@cyngn.com>2015-12-07 16:24:32 -0800
committerSteve Kondik <shade@chemlab.org>2015-12-07 20:34:01 -0800
commit41ccd68b80a426236ee8ff511c22119e955bc548 (patch)
treecc00e68bc676f047ecc02a2c9b7835e2338bfe90
parent697a7ab8c538ca84a92b605e50824da1cbf9b466 (diff)
downloadframeworks_av-41ccd68b80a426236ee8ff511c22119e955bc548.zip
frameworks_av-41ccd68b80a426236ee8ff511c22119e955bc548.tar.gz
frameworks_av-41ccd68b80a426236ee8ff511c22119e955bc548.tar.bz2
stagefright: Add OMX.ffmpeg. checking
Port from L, add "OMX.ffmpeg." checking in additional to "OMX.google." for software codec Change-Id: I3ef70a965573d7c2818236a70d4f99b6b7873468
-rw-r--r--media/libstagefright/AwesomePlayer.cpp1
-rw-r--r--media/libstagefright/OMXClient.cpp2
-rw-r--r--media/libstagefright/OMXCodec.cpp3
3 files changed, 4 insertions, 2 deletions
diff --git a/media/libstagefright/AwesomePlayer.cpp b/media/libstagefright/AwesomePlayer.cpp
index 778dfa5..5a43caf 100644
--- a/media/libstagefright/AwesomePlayer.cpp
+++ b/media/libstagefright/AwesomePlayer.cpp
@@ -1245,6 +1245,7 @@ void AwesomePlayer::initRenderer_l() {
setVideoScalingMode_l(mVideoScalingMode);
if (USE_SURFACE_ALLOC
&& !strncmp(component, "OMX.", 4)
+ && strncmp(component, "OMX.ffmpeg.", 11)
&& strncmp(component, "OMX.google.", 11)) {
// Hardware decoders avoid the CPU color conversion by decoding
// directly to ANativeBuffers, so we must use a renderer that
diff --git a/media/libstagefright/OMXClient.cpp b/media/libstagefright/OMXClient.cpp
index ac925f7..eff07f9 100644
--- a/media/libstagefright/OMXClient.cpp
+++ b/media/libstagefright/OMXClient.cpp
@@ -189,7 +189,7 @@ bool MuxOMX::CanLiveLocally(const char *name) {
return false;
#else
// 32 bit processes run only OMX.google.* components locally
- return !strncasecmp(name, "OMX.google.", 11);
+ return !strncasecmp(name, "OMX.google.", 11) || !strncasecmp(name, "OMX.ffmpeg.", 11);
#endif
}
diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp
index 80026b1..6bd54f1 100644
--- a/media/libstagefright/OMXCodec.cpp
+++ b/media/libstagefright/OMXCodec.cpp
@@ -155,7 +155,8 @@ static void InitOMXParams(T *params) {
}
static bool IsSoftwareCodec(const char *componentName) {
- if (!strncmp("OMX.google.", componentName, 11)) {
+ if (!strncmp("OMX.google.", componentName, 11)
+ || !strncmp("OMX.ffmpeg.", componentName, 11)) {
return true;
}