summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/ACodec.cpp
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2012-05-07 12:29:52 -0700
committerJames Dong <jdong@google.com>2012-05-07 12:29:52 -0700
commit7c25df82dfc8bbedb58608242f0d923a4594bb14 (patch)
tree465490eaf86b8e8716671f9bbb32d576aef23ca0 /media/libstagefright/ACodec.cpp
parentf53c36c6463d899895719b8b17ba45bd2d552cee (diff)
downloadframeworks_av-7c25df82dfc8bbedb58608242f0d923a4594bb14.zip
frameworks_av-7c25df82dfc8bbedb58608242f0d923a4594bb14.tar.gz
frameworks_av-7c25df82dfc8bbedb58608242f0d923a4594bb14.tar.bz2
Get rid of vendor specific video encoder component names from ACodec and OMXCodec
o related-to-bug: 6446245 Change-Id: I1fa07ad8a39337e3b19ac51c10533a2de8c11bb5
Diffstat (limited to 'media/libstagefright/ACodec.cpp')
-rw-r--r--media/libstagefright/ACodec.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/media/libstagefright/ACodec.cpp b/media/libstagefright/ACodec.cpp
index 7d99064..1e00c5d 100644
--- a/media/libstagefright/ACodec.cpp
+++ b/media/libstagefright/ACodec.cpp
@@ -1715,7 +1715,9 @@ status_t ACodec::setupAVCEncoderParameters(const sp<AMessage> &msg) {
}
// XXX
- if (!strncmp(mComponentName.c_str(), "OMX.TI.DUCATI1", 14)) {
+ if (h264type.eProfile != OMX_VIDEO_AVCProfileBaseline) {
+ ALOGW("Use baseline profile instead of %d for AVC recording",
+ h264type.eProfile);
h264type.eProfile = OMX_VIDEO_AVCProfileBaseline;
}
@@ -1750,10 +1752,6 @@ status_t ACodec::setupAVCEncoderParameters(const sp<AMessage> &msg) {
h264type.bMBAFF = OMX_FALSE;
h264type.eLoopFilterMode = OMX_VIDEO_AVCLoopFilterEnable;
- if (!strcasecmp("OMX.Nvidia.h264.encoder", mComponentName.c_str())) {
- h264type.eLevel = OMX_VIDEO_AVCLevelMax;
- }
-
err = mOMX->setParameter(
mNode, OMX_IndexParamVideoAvc, &h264type, sizeof(h264type));