diff options
| author | xiao <fengx.xiao@intel.com> | 2012-02-02 13:12:22 +0800 |
|---|---|---|
| committer | Patrick Tjin <pattjin@google.com> | 2014-07-21 22:02:45 -0700 |
| commit | 1bc54a746704bde863a7487b0b50ac675d6eb579 (patch) | |
| tree | e56f7be1ae19f722a80ed6bf2143cd59e134b1a8 /videocodec/OMXVideoDecoderPAVC.cpp | |
| parent | edc549bb8da3889bbb10e32f979832a8bf0fc917 (diff) | |
| download | android_hardware_intel_common_omx-components-1bc54a746704bde863a7487b0b50ac675d6eb579.tar.gz android_hardware_intel_common_omx-components-1bc54a746704bde863a7487b0b50ac675d6eb579.tar.bz2 android_hardware_intel_common_omx-components-1bc54a746704bde863a7487b0b50ac675d6eb579.zip | |
OMX: porting patch from R2 to R3.
BZ: 21936
Orignal patch:24452
Set "RenderDone" flag to true when buffer is freed or refilled.
Change-Id: I62da59d4f47d5c6151fb6732c8e514a7dfeb3518
Signed-off-by: xiao <fengx.xiao@intel.com>
Reviewed-on: http://android.intel.com:8080/33659
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Diffstat (limited to 'videocodec/OMXVideoDecoderPAVC.cpp')
| -rw-r--r-- | videocodec/OMXVideoDecoderPAVC.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/videocodec/OMXVideoDecoderPAVC.cpp b/videocodec/OMXVideoDecoderPAVC.cpp index d9f01b2..0510d6f 100644 --- a/videocodec/OMXVideoDecoderPAVC.cpp +++ b/videocodec/OMXVideoDecoderPAVC.cpp @@ -52,7 +52,7 @@ OMX_ERRORTYPE OMXVideoDecoderPAVC::InitInputPortFormatSpecific(OMX_PARAM_PORTDEF SetTypeHeader(&mParamAvc, sizeof(mParamAvc)); mParamAvc.nPortIndex = INPORT_INDEX; // TODO: check eProfile/eLevel - mParamAvc.eProfile = OMX_VIDEO_AVCProfileHigh; //OMX_VIDEO_AVCProfileBaseline; + mParamAvc.eProfile = OMX_VIDEO_AVCProfileMain; //OMX_VIDEO_AVCProfileBaseline; mParamAvc.eLevel = OMX_VIDEO_AVCLevel41; //OMX_VIDEO_AVCLevel1; mCurrentProfile = mParamAvc.eProfile; @@ -85,8 +85,11 @@ OMX_ERRORTYPE OMXVideoDecoderPAVC::PrepareConfigBuffer(VideoConfigBuffer *p) { OMX_ERRORTYPE ret; ret = OMXVideoDecoderBase::PrepareConfigBuffer(p); CHECK_RETURN_VALUE("OMXVideoDecoderBase::PrepareConfigBuffer"); - - p->flag |= WANT_SURFACE_PROTECTION; + p->width = 1920; + p->height = 1088; + p->surfaceNumber = 16; + p->profile = VAProfileH264High; + p->flag = WANT_SURFACE_PROTECTION | HAS_VA_PROFILE | HAS_SURFACE_NUMBER; return OMX_ErrorNone; } |
