diff options
author | gji2 <guoliang.ji@intel.com> | 2014-01-06 06:19:38 +0800 |
---|---|---|
committer | Patrick Tjin <pattjin@google.com> | 2014-07-21 22:02:57 -0700 |
commit | 10ec5f6421a756a47d3b129051661e79ffed524f (patch) | |
tree | c806d51b30c0299ac93d76b5cd7984a131bafb40 /videocodec/OMXVideoEncoderBase.h | |
parent | 677a5fb7edf5253fddd7b5daf68feca551f22314 (diff) | |
download | android_hardware_intel_common_omx-components-10ec5f6421a756a47d3b129051661e79ffed524f.tar.gz android_hardware_intel_common_omx-components-10ec5f6421a756a47d3b129051661e79ffed524f.tar.bz2 android_hardware_intel_common_omx-components-10ec5f6421a756a47d3b129051661e79ffed524f.zip |
Enhance the omx-component encode stack log print fucntion.
BZ: 162650
Enhance the omx-component encode stack log print fucntion.
To let the log be easily enabled without rebuild the omx-component stack.
Usage: adb shell setprop omxenc.debug 1
Change-Id: I20c2fc26b3caff89049c31fbdc9067bc3740be00
Signed-off-by: gji2 <guoliang.ji@intel.com>
Diffstat (limited to 'videocodec/OMXVideoEncoderBase.h')
-rw-r--r-- | videocodec/OMXVideoEncoderBase.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/videocodec/OMXVideoEncoderBase.h b/videocodec/OMXVideoEncoderBase.h index 497722f..5034ec0 100644 --- a/videocodec/OMXVideoEncoderBase.h +++ b/videocodec/OMXVideoEncoderBase.h @@ -24,6 +24,11 @@ #include <va/va_android.h> #include <VideoEncoderHost.h> +#define LOGV(...) LOGI_IF(mOmxLogLevel, __VA_ARGS__) +#define LOGI(...) LOGI_IF(mOmxLogLevel, __VA_ARGS__) +#define LOGW(...) LOGI_IF(mOmxLogLevel, __VA_ARGS__) +#define LOGD(...) LOGI_IF(mOmxLogLevel, __VA_ARGS__) + using android::sp; class OMXVideoEncoderBase : public OMXComponentCodecBase { @@ -87,6 +92,7 @@ protected: OMX_BOOL mFrameRetrieved; OMX_BOOL mStoreMetaDataInBuffers; OMX_BOOL mSyncEncoding; + int32_t mOmxLogLevel; private: |