From 0d275ff362298b443c828f09f593bfb674112bbd Mon Sep 17 00:00:00 2001 From: Zhao Liang Date: Mon, 24 Sep 2012 16:08:15 +0800 Subject: 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 Reviewed-on: http://android.intel.com:8080/67485 Reviewed-by: Yuan, Shengquan Reviewed-by: Shi, PingX Tested-by: Shi, PingX Reviewed-by: cactus Tested-by: cactus --- videocodec/OMXVideoEncoderMPEG4.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'videocodec/OMXVideoEncoderMPEG4.cpp') 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; -- cgit v1.2.3