aboutsummaryrefslogtreecommitdiff
path: root/include/linux/vcodec/user
diff options
context:
space:
mode:
authorMeizu OpenSource <patchwork@meizu.com>2016-08-15 10:19:42 +0800
committerMeizu OpenSource <patchwork@meizu.com>2016-08-15 10:19:42 +0800
commitd2e1446d81725c351dc73a03b397ce043fb18452 (patch)
tree4dbc616b7f92aea39cd697a9084205ddb805e344 /include/linux/vcodec/user
first commit
Diffstat (limited to 'include/linux/vcodec/user')
-rw-r--r--include/linux/vcodec/user/val_log.h74
1 files changed, 74 insertions, 0 deletions
diff --git a/include/linux/vcodec/user/val_log.h b/include/linux/vcodec/user/val_log.h
new file mode 100644
index 000000000..a117843fe
--- /dev/null
+++ b/include/linux/vcodec/user/val_log.h
@@ -0,0 +1,74 @@
+/**
+ * @file
+ * val_log.h
+ *
+ * @par Project:
+ * Video
+ *
+ * @par Description:
+ * log system
+ *
+ * @par Author:
+ * Jackal Chen (mtk02532)
+ *
+ * @par $Revision: #1 $
+ * @par $Modtime:$
+ * @par $Log:$
+ *
+ */
+
+#ifndef _VAL_LOG_H_
+#define _VAL_LOG_H_
+
+#ifdef LOG_TAG
+#undef LOG_TAG
+#endif
+#define LOG_TAG "MFV_COMMON" ///< LOG_TAG "MFV_COMMON"
+#include <utils/Log.h>
+#include <cutils/xlog.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define MFV_LOG_ERROR ///< error
+#ifdef MFV_LOG_ERROR
+#define MFV_LOGE(...) xlog_printf(ANDROID_LOG_ERROR, "VDO_LOG", __VA_ARGS__); ///< show error log
+#define VDO_LOGE(...) xlog_printf(ANDROID_LOG_ERROR, "VDO_LOG", __VA_ARGS__); ///< show error log
+#else
+#define MFV_LOGE(...) ///< NOT show error log
+#define VDO_LOGE(...) ///< NOT show error log
+#endif
+
+#define MFV_LOG_WARNING ///< warning
+#ifdef MFV_LOG_WARNING
+#define MFV_LOGW(...) xlog_printf(ANDROID_LOG_WARN, "VDO_LOG", __VA_ARGS__); ///< show warning log
+#define VDO_LOGW(...) xlog_printf(ANDROID_LOG_WARN, "VDO_LOG", __VA_ARGS__); ///< show warning log
+#else
+#define MFV_LOGW(...) ///< NOT show warning log
+#define VDO_LOGW(...) ///< NOT show warning log
+#endif
+
+//#define MFV_LOG_DEBUG ///< debug information
+#ifdef MFV_LOG_DEBUG
+#define MFV_LOGD(...) xlog_printf(ANDROID_LOG_DEBUG, "VDO_LOG", __VA_ARGS__); ///< show debug information log
+#define VDO_LOGD(...) xlog_printf(ANDROID_LOG_DEBUG, "VDO_LOG", __VA_ARGS__); ///< show debug information log
+#else
+#define MFV_LOGD(...) ///< NOT show debug information log
+#define VDO_LOGD(...) ///< NOT show debug information log
+#endif
+
+#define MFV_LOG_INFO ///< information
+#ifdef MFV_LOG_INFO
+#define MFV_LOGI(...) xlog_printf(ANDROID_LOG_INFO, "VDO_LOG", __VA_ARGS__); ///< show information log
+#define VDO_LOGI(...) xlog_printf(ANDROID_LOG_INFO, "VDO_LOG", __VA_ARGS__); ///< show information log
+#else
+#define MFV_LOGI(...) ///< NOT show information log
+#define VDO_LOGI(...) ///< NOT show information log
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // #ifndef _VAL_LOG_H_