diff options
| author | Zhao Liang <leo.zhao@intel.com> | 2013-08-23 14:21:16 +0800 |
|---|---|---|
| committer | Patrick Tjin <pattjin@google.com> | 2014-07-21 22:02:53 -0700 |
| commit | 88c8d2ab4d97fe48ed25c3adff105f2cef5a2d36 (patch) | |
| tree | 36bc56a577c464b86342f0c30d9bcb59e9e97d1d /videocodec/OMXVideoEncoderVP8.cpp | |
| parent | dccea72fa33ead9951c7863344d4b1c99deb820a (diff) | |
| download | android_hardware_intel_common_omx-components-88c8d2ab4d97fe48ed25c3adff105f2cef5a2d36.tar.gz android_hardware_intel_common_omx-components-88c8d2ab4d97fe48ed25c3adff105f2cef5a2d36.tar.bz2 android_hardware_intel_common_omx-components-88c8d2ab4d97fe48ed25c3adff105f2cef5a2d36.zip | |
Support Sync mode video encoding in omx
BZ: 131021
Use one new ext parameter to control sync mode, this mode is used for timelapse recording
Signed-off-by: Zhao Liang <leo.zhao@intel.com>
Change-Id: I099d62d02bdf28598893d7167486b4d5f1623120
Reviewed-on: http://android.intel.com:8080/127318
Reviewed-by: Zhao, Leo <leo.zhao@intel.com>
Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
Diffstat (limited to 'videocodec/OMXVideoEncoderVP8.cpp')
| -rw-r--r-- | videocodec/OMXVideoEncoderVP8.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/videocodec/OMXVideoEncoderVP8.cpp b/videocodec/OMXVideoEncoderVP8.cpp index 84eb632..a1d7616 100644 --- a/videocodec/OMXVideoEncoderVP8.cpp +++ b/videocodec/OMXVideoEncoderVP8.cpp @@ -118,7 +118,10 @@ OMX_ERRORTYPE OMXVideoEncoderVP8::ProcessorProcess(OMX_BUFFERHEADERTYPE **buffer LOGV("Get buffer done\n"); outflags |= OMX_BUFFERFLAG_ENDOFFRAME; mFrameRetrieved = OMX_TRUE; - retains[INPORT_INDEX] = BUFFER_RETAIN_ACCUMULATE; + if (mSyncEncoding) + retains[INPORT_INDEX] = BUFFER_RETAIN_NOT_RETAIN; + else + retains[INPORT_INDEX] = BUFFER_RETAIN_ACCUMULATE; } else { retains[INPORT_INDEX] = BUFFER_RETAIN_GETAGAIN; //get again |
