summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/ACodec.cpp
diff options
context:
space:
mode:
authorManoj Kumar AVM <manojavm@codeaurora.org>2015-09-03 16:26:25 -0700
committerSatish Kamuju <skamuj@codeaurora.org>2015-10-06 17:38:07 +0530
commit63edd77ab527f615afc193ea50e15dfcdeb9fe6f (patch)
tree1d177718037f6b8964524da7dff21afdf8e08854 /media/libstagefright/ACodec.cpp
parent1ee2a02ee471d8c5d7b3c3bd3ab720f3dcfea056 (diff)
downloadframeworks_av-63edd77ab527f615afc193ea50e15dfcdeb9fe6f.zip
frameworks_av-63edd77ab527f615afc193ea50e15dfcdeb9fe6f.tar.gz
frameworks_av-63edd77ab527f615afc193ea50e15dfcdeb9fe6f.tar.bz2
Stagefright: Addition of DS capability
Adding support for sending and receiving DS Mode events. Change-Id: I5be1c1e9b7c33b55f0f3aa71725b90cd0f90f0ad
Diffstat (limited to 'media/libstagefright/ACodec.cpp')
-rw-r--r--media/libstagefright/ACodec.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/media/libstagefright/ACodec.cpp b/media/libstagefright/ACodec.cpp
index 238cd47..43006f3 100644
--- a/media/libstagefright/ACodec.cpp
+++ b/media/libstagefright/ACodec.cpp
@@ -5205,6 +5205,8 @@ bool ACodec::BaseState::onOMXFillBufferDone(
reply->setInt32("buffer-id", info->mBufferID);
+ (void)mCodec->setDSModeHint(reply, flags, timeUs);
+
notify->setMessage("reply", reply);
notify->post();
@@ -5259,8 +5261,9 @@ void ACodec::BaseState::onOutputBufferDrained(const sp<AMessage> &msg) {
ALOGW_IF(err != NO_ERROR, "failed to set crop: %d", err);
}
+ bool skip = mCodec->getDSModeHint(msg);
int32_t render;
- if (mCodec->mNativeWindow != NULL
+ if (!skip && mCodec->mNativeWindow != NULL
&& msg->findInt32("render", &render) && render != 0
&& info->mData != NULL && info->mData->size() != 0) {
ATRACE_NAME("render");