diff options
author | Guoliang Ji <guoliang.ji@intel.com> | 2012-07-23 16:48:45 +0800 |
---|---|---|
committer | Patrick Tjin <pattjin@google.com> | 2014-07-21 22:02:47 -0700 |
commit | 4ce57b82fa719f2aa9247c7f4a44853715a29987 (patch) | |
tree | 00353493feb4f2fffec749c076b092c7b9c98b42 /videocodec/OMXVideoEncoderBase.h | |
parent | 7951f06f8e3b6a91d385508b6f24720bc382df96 (diff) | |
download | android_hardware_intel_common_omx-components-4ce57b82fa719f2aa9247c7f4a44853715a29987.tar.gz android_hardware_intel_common_omx-components-4ce57b82fa719f2aa9247c7f4a44853715a29987.tar.bz2 android_hardware_intel_common_omx-components-4ce57b82fa719f2aa9247c7f4a44853715a29987.zip |
Video omx-component: video enhancement implementation
BZ: 48107
Delete the share buffer mechanism, add the meta data mode modification.
Change-Id: Icdc0ae1d8e3c0e012966631055591553362e5542
Signed-off-by: Guoliang Ji <guoliang.ji@intel.com>
Signed-off-by: Zhao Liang <leo.zhao@intel.com>
Reviewed-on: http://android.intel.com:8080/58200
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Diffstat (limited to 'videocodec/OMXVideoEncoderBase.h')
-rw-r--r-- | videocodec/OMXVideoEncoderBase.h | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/videocodec/OMXVideoEncoderBase.h b/videocodec/OMXVideoEncoderBase.h index 2d658bf..3a7f5bf 100644 --- a/videocodec/OMXVideoEncoderBase.h +++ b/videocodec/OMXVideoEncoderBase.h @@ -26,7 +26,6 @@ #include<VideoEncoderHost.h> using android::sp; -using android::BufferShareRegistry; #define SHARED_BUFFER_CNT 7 @@ -68,17 +67,7 @@ protected: DECLARE_HANDLER(OMXVideoEncoderBase, StoreMetaDataInBuffers); protected: - virtual OMX_ERRORTYPE InitBSMode(void); - virtual OMX_ERRORTYPE DeinitBSMode(void); - virtual OMX_ERRORTYPE StartBufferSharing(void); - virtual OMX_ERRORTYPE StopBufferSharing(void); virtual OMX_ERRORTYPE SetVideoEncoderParam(); -private: - OMX_ERRORTYPE CheckAndEnableBSMode(); - OMX_ERRORTYPE AllocateSharedBuffers(int width, int height); - OMX_ERRORTYPE UploadSharedBuffers(); - OMX_ERRORTYPE SetBSInfoToPort(); - OMX_ERRORTYPE TriggerBSMode(); protected: OMX_VIDEO_PARAM_BITRATETYPE mParamBitrate; OMX_VIDEO_CONFIG_PRI_INFOTYPE mConfigPriInfo; @@ -95,16 +84,7 @@ protected: OMX_U32 mFrameOutputCount; OMX_BOOL mFirstFrame; OMX_BOOL mFrameRetrieved; - - enum { - BS_STATE_INVALID, - BS_STATE_LOADED, - BS_STATE_EXECUTING, - BS_STATE_FAILD - } mBsState; - - SharedBufferType *mSharedBufArray; - OMX_BOOL mForceBufferSharing; + OMX_BOOL mStoreMetaDataInBuffers; private: @@ -120,8 +100,6 @@ private: OUTPORT_BUFFER_SIZE = 1382400, }; - sp<BufferShareRegistry> mBsInstance; - OMX_U32 mSharedBufCnt; OMX_U32 mPFrames; }; |