diff options
author | bolunliu <bolun.liu@intel.com> | 2014-04-21 10:12:49 +0800 |
---|---|---|
committer | Patrick Tjin <pattjin@google.com> | 2014-07-21 22:02:59 -0700 |
commit | c7c62e049c2339d74164c393ee637890cf00454b (patch) | |
tree | 6e0eebbb971897170987289871a208fa8287e8bf | |
parent | 6c36d9722df768cfe63e015193459d870f3cdaa9 (diff) | |
download | android_hardware_intel_common_omx-components-c7c62e049c2339d74164c393ee637890cf00454b.tar.gz android_hardware_intel_common_omx-components-c7c62e049c2339d74164c393ee637890cf00454b.tar.bz2 android_hardware_intel_common_omx-components-c7c62e049c2339d74164c393ee637890cf00454b.zip |
Enable Setting ref frame structure nPeriodicity and nLayerID in OMXENC
BZ: 189356
Add setting nPeriodicity and nLayerID in OMX Component.
Change-Id: Ic72128b41dc621efca1027db1d8b9db7226ddd8f
Signed-off-by: bolunliu <bolun.liu@intel.com>
-rw-r--r-- | videocodec/OMXVideoEncoderBase.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/videocodec/OMXVideoEncoderBase.cpp b/videocodec/OMXVideoEncoderBase.cpp index 89eb10a..88cc8b7 100644 --- a/videocodec/OMXVideoEncoderBase.cpp +++ b/videocodec/OMXVideoEncoderBase.cpp @@ -884,6 +884,7 @@ OMX_ERRORTYPE OMXVideoEncoderBase::SetTemporalLayerNumber(OMX_PTR pStructure) { OMX_ERRORTYPE ret; OMX_VIDEO_PARAM_INTEL_TEMPORAL_LAYER *p = (OMX_VIDEO_PARAM_INTEL_TEMPORAL_LAYER *)pStructure; VideoParamsTemporalLayerNumber TemporalLayerNumber; + OMX_U32 i; CHECK_TYPE_HEADER(p); CHECK_PORT_INDEX(p, OUTPORT_INDEX); @@ -891,6 +892,10 @@ OMX_ERRORTYPE OMXVideoEncoderBase::SetTemporalLayerNumber(OMX_PTR pStructure) { LOGE("SetTemporalLayerNumber (enabled = %d)", p->nNumberOfTemporalLayer); TemporalLayerNumber.numberOfLayer = p->nNumberOfTemporalLayer; + TemporalLayerNumber.nPeriodicity = p->nPeriodicity; + for(i=0;i<p->nPeriodicity;i++) + TemporalLayerNumber.nLayerID[i] = p->nLayerID[i]; + if (mVideoEncoder->setParameters(&TemporalLayerNumber) != ENCODE_SUCCESS) return OMX_ErrorNotReady; |