diff options
| author | Zhao Liang <leo.zhao@intel.com> | 2012-09-24 16:08:15 +0800 |
|---|---|---|
| committer | Patrick Tjin <pattjin@google.com> | 2014-07-21 22:02:49 -0700 |
| commit | 0d275ff362298b443c828f09f593bfb674112bbd (patch) | |
| tree | f966f44e9ea31fe014b6dfbcfefd1897eae534b9 /videocodec/OMXVideoEncoderMPEG4.cpp | |
| parent | ab82a0fd294f033d336bc53cdffe8d1708d947cc (diff) | |
| download | android_hardware_intel_common_omx-components-0d275ff362298b443c828f09f593bfb674112bbd.tar.gz android_hardware_intel_common_omx-components-0d275ff362298b443c828f09f593bfb674112bbd.tar.bz2 android_hardware_intel_common_omx-components-0d275ff362298b443c828f09f593bfb674112bbd.zip | |
MRFLD highprofile encoding support
BZ: 76824
enable HiP Video Encode support in omx-componment
1) infrastructure
2) Cache implementation / operation
3) EOS/EOE processing
4) Adapt with new encode/getOutput model
5) Frame status analysis / set according to parameters like Profile/B frame etc
6) Use pPlatformPrivate to store NSTOP info
7) add the unsupport setting return info
Change-Id: I8cc469dd7ea37b1c9989a55adec3b1834c4aa905
Signed-off-by: Zhao Liang <leo.zhao@intel.com>
Reviewed-on: http://android.intel.com:8080/67485
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/OMXVideoEncoderMPEG4.cpp')
| -rw-r--r-- | videocodec/OMXVideoEncoderMPEG4.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/videocodec/OMXVideoEncoderMPEG4.cpp b/videocodec/OMXVideoEncoderMPEG4.cpp index 918b391..c2df1fd 100644 --- a/videocodec/OMXVideoEncoderMPEG4.cpp +++ b/videocodec/OMXVideoEncoderMPEG4.cpp @@ -104,6 +104,9 @@ OMX_ERRORTYPE OMXVideoEncoderMPEG4::ProcessorProcess( inBuf.data = buffers[INPORT_INDEX]->pBuffer + buffers[INPORT_INDEX]->nOffset; inBuf.size = buffers[INPORT_INDEX]->nFilledLen; + inBuf.type = FTYPE_UNKNOWN; + inBuf.flag = 0; + inBuf.timeStamp = buffers[INPORT_INDEX]->nTimeStamp; if (bAndroidOpaqueFormat) { mCurHandle = rgba2nv12conversion(buffers[INPORT_INDEX]); @@ -160,7 +163,7 @@ OMX_ERRORTYPE OMXVideoEncoderMPEG4::ProcessorProcess( outfilledlen = outBuf.dataSize; - outtimestamp = buffers[INPORT_INDEX]->nTimeStamp; + outtimestamp = outBuf.timeStamp; if (outBuf.flag & ENCODE_BUFFERFLAG_SYNCFRAME) { outflags |= OMX_BUFFERFLAG_SYNCFRAME; |
