aboutsummaryrefslogtreecommitdiffstats
path: root/videocodec/OMXVideoEncoderAVC.cpp
diff options
context:
space:
mode:
authorShuo Liu <shuo.liu@intel.com>2011-11-25 05:30:12 +0800
committerPatrick Tjin <pattjin@google.com>2014-07-21 22:02:45 -0700
commit2bfa6ad0118934357b8eb42c85c5b8d075e0bf23 (patch)
tree73e484c98a2548fa78703938afd732c656fd0330 /videocodec/OMXVideoEncoderAVC.cpp
parent3e9f7696ef75665a44a3f9542e10f7a6be4de464 (diff)
downloadandroid_hardware_intel_common_omx-components-2bfa6ad0118934357b8eb42c85c5b8d075e0bf23.tar.gz
android_hardware_intel_common_omx-components-2bfa6ad0118934357b8eb42c85c5b8d075e0bf23.tar.bz2
android_hardware_intel_common_omx-components-2bfa6ad0118934357b8eb42c85c5b8d075e0bf23.zip
CAMERA: modify hardware omx encoder to support avc capture
BZ: 15257 1. add setParameter() for storeMetaDataInBuffers 2. comment the prefixed length nalu format and restore the start code nalu format Change-Id: Ia3c239a7d1e8788e1acddd060245c37ee4040f7d Signed-off-by: Shuo Liu <shuo.liu@intel.com> Reviewed-on: http://android.intel.com:8080/25226 Reviewed-by: Seibel, Eric <eric.seibel@intel.com> Tested-by: Seibel, Eric <eric.seibel@intel.com> Reviewed-by: Gross, Mark <mark.gross@intel.com> Tested-by: Gross, Mark <mark.gross@intel.com> Reviewed-by: buildbot <buildbot@intel.com> Tested-by: buildbot <buildbot@intel.com>
Diffstat (limited to 'videocodec/OMXVideoEncoderAVC.cpp')
-rw-r--r--videocodec/OMXVideoEncoderAVC.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/videocodec/OMXVideoEncoderAVC.cpp b/videocodec/OMXVideoEncoderAVC.cpp
index 5f8db8e..dddbb44 100644
--- a/videocodec/OMXVideoEncoderAVC.cpp
+++ b/videocodec/OMXVideoEncoderAVC.cpp
@@ -51,8 +51,8 @@ OMX_ERRORTYPE OMXVideoEncoderAVC::InitOutputPortFormatSpecific(OMX_PARAM_PORTDEF
SetTypeHeader(&mNalStreamFormat, sizeof(mNalStreamFormat));
mNalStreamFormat.nPortIndex = OUTPORT_INDEX;
// TODO: check if this is desired Nalu Format
- // mNalStreamFormat.eNaluFormat = OMX_NaluFormatStartCodesSeparateFirstHeader;
- mNalStreamFormat.eNaluFormat = OMX_NaluFormatLengthPrefixedSeparateFirstHeader;
+ mNalStreamFormat.eNaluFormat = OMX_NaluFormatStartCodesSeparateFirstHeader;
+ //mNalStreamFormat.eNaluFormat = OMX_NaluFormatLengthPrefixedSeparateFirstHeader;
// OMX_VIDEO_CONFIG_AVCINTRAPERIOD
memset(&mConfigAvcIntraPeriod, 0, sizeof(mConfigAvcIntraPeriod));
SetTypeHeader(&mConfigAvcIntraPeriod, sizeof(mConfigAvcIntraPeriod));
@@ -280,6 +280,7 @@ OMX_ERRORTYPE OMXVideoEncoderAVC::ProcessorProcess(
outBuf.format = OUTPUT_CODEC_DATA;
ret = mVideoEncoder->getOutput(&outBuf);
CHECK_ENCODE_STATUS("getOutput");
+
// Return code could not be ENCODE_BUFFER_TOO_SMALL
// If we don't return error, we will have dead lock issue
if (ret == ENCODE_BUFFER_TOO_SMALL) {