diff options
author | Weian Chen <weian.chen@intel.com> | 2012-07-16 09:21:23 -0400 |
---|---|---|
committer | Patrick Tjin <pattjin@google.com> | 2014-07-21 22:02:48 -0700 |
commit | c1241ad0d5cde2667d058cad8b2bf725514301e2 (patch) | |
tree | e903e00c44f716f9d76e81d8d8367ebecdf19e95 | |
parent | 089da52d797fb6710ecc1de6840df194931019df (diff) | |
download | android_hardware_intel_common_omx-components-c1241ad0d5cde2667d058cad8b2bf725514301e2.tar.gz android_hardware_intel_common_omx-components-c1241ad0d5cde2667d058cad8b2bf725514301e2.tar.bz2 android_hardware_intel_common_omx-components-c1241ad0d5cde2667d058cad8b2bf725514301e2.zip |
[PORT FROM ICS] [OMX IL] Enable low delay mode
BZ: 43755
Enable low delay mode to reduce the latecy, which is critical to remote desktop
use case
Signed-off-by: Weian Chen <weian.chen@intel.com>
Change-Id: I54f0c67e9c683d6554fd9bd94bcae806243f95d0
Reviewed-on: http://android.intel.com:8080/59879
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
-rw-r--r-- | videocodec/OMXVideoDecoderAVC.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/videocodec/OMXVideoDecoderAVC.cpp b/videocodec/OMXVideoDecoderAVC.cpp index d982979..e24df66 100644 --- a/videocodec/OMXVideoDecoderAVC.cpp +++ b/videocodec/OMXVideoDecoderAVC.cpp @@ -101,6 +101,11 @@ OMX_ERRORTYPE OMXVideoDecoderAVC::ProcessorProcess( OMX_ERRORTYPE OMXVideoDecoderAVC::PrepareConfigBuffer(VideoConfigBuffer *p) { OMX_ERRORTYPE ret; + + if (mParamAvc.eProfile == OMX_VIDEO_AVCProfileBaseline) { + p->flag |= WANT_LOW_DELAY; + } + ret = OMXVideoDecoderBase::PrepareConfigBuffer(p); CHECK_RETURN_VALUE("OMXVideoDecoderBase::PrepareConfigBuffer"); |