diff options
author | Zhao Liang <leo.zhao@intel.com> | 2013-01-16 17:09:01 +0800 |
---|---|---|
committer | Patrick Tjin <pattjin@google.com> | 2014-07-21 22:02:49 -0700 |
commit | dbb4b89361b47ddf1988c654c5cc8e07818dd5ec (patch) | |
tree | 9403652a6f2b98e074d0af169e2ce05a8a501e35 /videocodec/OMXVideoEncoderH263.cpp | |
parent | 7ac0b6c4ed773c7f43dfb35f098f6f989a52d6e2 (diff) | |
download | android_hardware_intel_common_omx-components-dbb4b89361b47ddf1988c654c5cc8e07818dd5ec.tar.gz android_hardware_intel_common_omx-components-dbb4b89361b47ddf1988c654c5cc8e07818dd5ec.tar.bz2 android_hardware_intel_common_omx-components-dbb4b89361b47ddf1988c654c5cc8e07818dd5ec.zip |
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: Id1332a7a32f02c65a63b2af405a216194178902c
Signed-off-by: Zhao Liang <leo.zhao@intel.com>
Reviewed-on: http://android.intel.com:8080/87035
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/OMXVideoEncoderH263.cpp')
-rw-r--r-- | videocodec/OMXVideoEncoderH263.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/videocodec/OMXVideoEncoderH263.cpp b/videocodec/OMXVideoEncoderH263.cpp index 00d66e7..866a0f5 100644 --- a/videocodec/OMXVideoEncoderH263.cpp +++ b/videocodec/OMXVideoEncoderH263.cpp @@ -110,10 +110,15 @@ OMX_ERRORTYPE OMXVideoEncoderH263::ProcessorProcess( if (bAndroidOpaqueFormat) { mCurHandle = rgba2nv12conversion(buffers[INPORT_INDEX]); + if (mCurHandle < 0) + return OMX_ErrorUndefined; } 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; LOGV("buffer_in.data=%x, data_size=%d", (unsigned)inBuf.data, inBuf.size); @@ -148,7 +153,7 @@ OMX_ERRORTYPE OMXVideoEncoderH263::ProcessorProcess( LOGV("output data size = %d", outBuf.dataSize); outfilledlen = outBuf.dataSize; - outtimestamp = buffers[INPORT_INDEX]->nTimeStamp; + outtimestamp = outBuf.timeStamp; if (outBuf.flag & ENCODE_BUFFERFLAG_SYNCFRAME) { |