summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/OMXCodec.cpp
diff options
context:
space:
mode:
authorShalaj Jain <shalajj@codeaurora.org>2013-01-22 18:45:15 -0800
committerSteve Kondik <shade@chemlab.org>2013-02-19 11:13:40 -0800
commite4a52e7469c5a7c247424777c2350e6a85ea685e (patch)
treea33b6c38314be36543d6a300b99a4a87629aaec9 /media/libstagefright/OMXCodec.cpp
parent63614c132b320a6146b6be85b8f3131135db4ba2 (diff)
downloadframeworks_av-e4a52e7469c5a7c247424777c2350e6a85ea685e.zip
frameworks_av-e4a52e7469c5a7c247424777c2350e6a85ea685e.tar.gz
frameworks_av-e4a52e7469c5a7c247424777c2350e6a85ea685e.tar.bz2
libstagefright: Add support for frame-by-frame mode
- Set decoder in frame-by-frame mode always, except for interlaced content, for which arbitary mode should be set Change-Id: I8195a40549898b43a0e03d65663c7148f458c448
Diffstat (limited to 'media/libstagefright/OMXCodec.cpp')
-rw-r--r--media/libstagefright/OMXCodec.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp
index 5988061..02993d0 100644
--- a/media/libstagefright/OMXCodec.cpp
+++ b/media/libstagefright/OMXCodec.cpp
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2009 The Android Open Source Project
- * Copyright (c) 2010 - 2012, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2010 - 2013, The Linux Foundation. All rights reserved.
*
* Not a Contribution, Apache license notifications and license are retained
* for attribution purposes only.
@@ -611,6 +611,10 @@ status_t OMXCodec::configureCodec(const sp<MetaData> &meta) {
return err;
}
+#ifdef QCOM_HARDWARE
+ QCOMXCodec::checkIfInterlaced((const uint8_t *)data, meta);
+#endif
+
CODEC_LOGI(
"AVC profile = %u (%s), level = %u",
profile, AVCProfileToString(profile), level);