aboutsummaryrefslogtreecommitdiffstats
path: root/videocodec/OMXVideoEncoderH263.cpp
diff options
context:
space:
mode:
authorChang Ying <ying.chang@intel.com>2013-06-18 17:04:45 +0800
committerPatrick Tjin <pattjin@google.com>2014-07-21 22:02:52 -0700
commitfd26403f7320f4d298493acc6edf3e60151022c6 (patch)
treedb2d76b3c1ecb7849b52fb30769564d1adae280a /videocodec/OMXVideoEncoderH263.cpp
parentcda35cc015a649d2bca468cbbc2477d6b88dc2f7 (diff)
downloadandroid_hardware_intel_common_omx-components-fd26403f7320f4d298493acc6edf3e60151022c6.tar.gz
android_hardware_intel_common_omx-components-fd26403f7320f4d298493acc6edf3e60151022c6.tar.bz2
android_hardware_intel_common_omx-components-fd26403f7320f4d298493acc6edf3e60151022c6.zip
263 encoder: return the 1st frame without delay
BZ: 115782 Current impl delays the output of the 1st frame from 263 encoder. If we only encode one frame this behavior will cause problem. Change-Id: I10257f4524b74ce0011b5efec1b2894299aaf290 Signed-off-by: Chang Ying <ying.chang@intel.com> Reviewed-on: http://android.intel.com:8080/114048 Reviewed-by: cactus <cactus@intel.com> Reviewed-by: Zhao, Leo <leo.zhao@intel.com> Reviewed-by: Ding, Haitao <haitao.ding@intel.com> Reviewed-by: Shi, PingX <pingx.shi@intel.com> Tested-by: Shi, PingX <pingx.shi@intel.com> Reviewed-by: buildbot <buildbot@intel.com> Tested-by: buildbot <buildbot@intel.com>
Diffstat (limited to 'videocodec/OMXVideoEncoderH263.cpp')
-rw-r--r--videocodec/OMXVideoEncoderH263.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/videocodec/OMXVideoEncoderH263.cpp b/videocodec/OMXVideoEncoderH263.cpp
index b653add..0c62532 100644
--- a/videocodec/OMXVideoEncoderH263.cpp
+++ b/videocodec/OMXVideoEncoderH263.cpp
@@ -143,12 +143,14 @@ OMX_ERRORTYPE OMXVideoEncoderH263::ProcessorProcess(
ports[INPORT_INDEX]->ReturnAllRetainedBuffers();
}
+#ifndef SYNC_MODE
if (mFrameInputCount == 0) {
retains[INPORT_INDEX] = BUFFER_RETAIN_ACCUMULATE;
retains[OUTPORT_INDEX] = BUFFER_RETAIN_GETAGAIN;
mFrameRetrieved = OMX_TRUE;
goto out;
}
+#endif
outBuf.format = OUTPUT_EVERYTHING;
ret = mVideoEncoder->getOutput(&outBuf);