Add zlmediakit.
This commit is contained in:
71
3rdparty/libopencv/include/opencv2/core/utils/filesystem.hpp
vendored
Normal file
71
3rdparty/libopencv/include/opencv2/core/utils/filesystem.hpp
vendored
Normal file
@ -0,0 +1,71 @@
|
||||
// This file is part of OpenCV project.
|
||||
// It is subject to the license terms in the LICENSE file found in the top-level directory
|
||||
// of this distribution and at http://opencv.org/license.html.
|
||||
|
||||
#ifndef OPENCV_UTILS_FILESYSTEM_HPP
|
||||
#define OPENCV_UTILS_FILESYSTEM_HPP
|
||||
|
||||
namespace cv { namespace utils { namespace fs {
|
||||
|
||||
|
||||
CV_EXPORTS bool exists(const cv::String& path);
|
||||
CV_EXPORTS bool isDirectory(const cv::String& path);
|
||||
|
||||
CV_EXPORTS void remove_all(const cv::String& path);
|
||||
|
||||
|
||||
CV_EXPORTS cv::String getcwd();
|
||||
|
||||
/** Join path components */
|
||||
CV_EXPORTS cv::String join(const cv::String& base, const cv::String& path);
|
||||
|
||||
/**
|
||||
* Generate a list of all files that match the globbing pattern.
|
||||
*
|
||||
* Result entries are prefixed by base directory path.
|
||||
*
|
||||
* @param directory base directory
|
||||
* @param pattern filter pattern (based on '*'/'?' symbols). Use empty string to disable filtering and return all results
|
||||
* @param[out] result result of globing.
|
||||
* @param recursive scan nested directories too
|
||||
* @param includeDirectories include directories into results list
|
||||
*/
|
||||
CV_EXPORTS void glob(const cv::String& directory, const cv::String& pattern,
|
||||
CV_OUT std::vector<cv::String>& result,
|
||||
bool recursive = false, bool includeDirectories = false);
|
||||
|
||||
/**
|
||||
* Generate a list of all files that match the globbing pattern.
|
||||
*
|
||||
* @param directory base directory
|
||||
* @param pattern filter pattern (based on '*'/'?' symbols). Use empty string to disable filtering and return all results
|
||||
* @param[out] result globbing result with relative paths from base directory
|
||||
* @param recursive scan nested directories too
|
||||
* @param includeDirectories include directories into results list
|
||||
*/
|
||||
CV_EXPORTS void glob_relative(const cv::String& directory, const cv::String& pattern,
|
||||
CV_OUT std::vector<cv::String>& result,
|
||||
bool recursive = false, bool includeDirectories = false);
|
||||
|
||||
|
||||
CV_EXPORTS bool createDirectory(const cv::String& path);
|
||||
CV_EXPORTS bool createDirectories(const cv::String& path);
|
||||
|
||||
#ifdef __OPENCV_BUILD
|
||||
// TODO
|
||||
//CV_EXPORTS cv::String getTempDirectory();
|
||||
|
||||
/**
|
||||
* @brief Returns directory to store OpenCV cache files
|
||||
* Create sub-directory in common OpenCV cache directory if it doesn't exist.
|
||||
* @param sub_directory_name name of sub-directory. NULL or "" value asks to return root cache directory.
|
||||
* @param configuration_name optional name of configuration parameter name which overrides default behavior.
|
||||
* @return Path to cache directory. Returns empty string if cache directories support is not available. Returns "disabled" if cache disabled by user.
|
||||
*/
|
||||
CV_EXPORTS cv::String getCacheDirectory(const char* sub_directory_name, const char* configuration_name = NULL);
|
||||
|
||||
#endif
|
||||
|
||||
}}} // namespace
|
||||
|
||||
#endif // OPENCV_UTILS_FILESYSTEM_HPP
|
22
3rdparty/libopencv/include/opencv2/core/utils/logger.defines.hpp
vendored
Normal file
22
3rdparty/libopencv/include/opencv2/core/utils/logger.defines.hpp
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
// This file is part of OpenCV project.
|
||||
// It is subject to the license terms in the LICENSE file found in the top-level directory
|
||||
// of this distribution and at http://opencv.org/license.html.
|
||||
|
||||
#ifndef OPENCV_LOGGER_DEFINES_HPP
|
||||
#define OPENCV_LOGGER_DEFINES_HPP
|
||||
|
||||
//! @addtogroup core_logging
|
||||
//! @{
|
||||
|
||||
// Supported logging levels and their semantic
|
||||
#define CV_LOG_LEVEL_SILENT 0 //!< for using in setLogLevel() call
|
||||
#define CV_LOG_LEVEL_FATAL 1 //!< Fatal (critical) error (unrecoverable internal error)
|
||||
#define CV_LOG_LEVEL_ERROR 2 //!< Error message
|
||||
#define CV_LOG_LEVEL_WARN 3 //!< Warning message
|
||||
#define CV_LOG_LEVEL_INFO 4 //!< Info message
|
||||
#define CV_LOG_LEVEL_DEBUG 5 //!< Debug message. Disabled in the "Release" build.
|
||||
#define CV_LOG_LEVEL_VERBOSE 6 //!< Verbose (trace) messages. Requires verbosity level. Disabled in the "Release" build.
|
||||
|
||||
//! @}
|
||||
|
||||
#endif // OPENCV_LOGGER_DEFINES_HPP
|
87
3rdparty/libopencv/include/opencv2/core/utils/logger.hpp
vendored
Normal file
87
3rdparty/libopencv/include/opencv2/core/utils/logger.hpp
vendored
Normal file
@ -0,0 +1,87 @@
|
||||
// This file is part of OpenCV project.
|
||||
// It is subject to the license terms in the LICENSE file found in the top-level directory
|
||||
// of this distribution and at http://opencv.org/license.html.
|
||||
|
||||
#ifndef OPENCV_LOGGER_HPP
|
||||
#define OPENCV_LOGGER_HPP
|
||||
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <limits.h> // INT_MAX
|
||||
|
||||
#include "logger.defines.hpp"
|
||||
|
||||
//! @addtogroup core_logging
|
||||
// This section describes OpenCV logging utilities.
|
||||
//
|
||||
//! @{
|
||||
|
||||
namespace cv {
|
||||
namespace utils {
|
||||
namespace logging {
|
||||
|
||||
//! Supported logging levels and their semantic
|
||||
enum LogLevel {
|
||||
LOG_LEVEL_SILENT = 0, //!< for using in setLogVevel() call
|
||||
LOG_LEVEL_FATAL = 1, //!< Fatal (critical) error (unrecoverable internal error)
|
||||
LOG_LEVEL_ERROR = 2, //!< Error message
|
||||
LOG_LEVEL_WARNING = 3, //!< Warning message
|
||||
LOG_LEVEL_INFO = 4, //!< Info message
|
||||
LOG_LEVEL_DEBUG = 5, //!< Debug message. Disabled in the "Release" build.
|
||||
LOG_LEVEL_VERBOSE = 6, //!< Verbose (trace) messages. Requires verbosity level. Disabled in the "Release" build.
|
||||
#ifndef CV_DOXYGEN
|
||||
ENUM_LOG_LEVEL_FORCE_INT = INT_MAX
|
||||
#endif
|
||||
};
|
||||
|
||||
/** Set global logging level
|
||||
@return previous logging level
|
||||
*/
|
||||
CV_EXPORTS LogLevel setLogLevel(LogLevel logLevel);
|
||||
/** Get global logging level */
|
||||
CV_EXPORTS LogLevel getLogLevel();
|
||||
|
||||
namespace internal {
|
||||
/** Write log message */
|
||||
CV_EXPORTS void writeLogMessage(LogLevel logLevel, const char* message);
|
||||
} // namespace
|
||||
|
||||
/**
|
||||
* \def CV_LOG_STRIP_LEVEL
|
||||
*
|
||||
* Define CV_LOG_STRIP_LEVEL=CV_LOG_LEVEL_[DEBUG|INFO|WARN|ERROR|FATAL|DISABLED] to compile out anything at that and before that logging level
|
||||
*/
|
||||
#ifndef CV_LOG_STRIP_LEVEL
|
||||
# if defined NDEBUG
|
||||
# define CV_LOG_STRIP_LEVEL CV_LOG_LEVEL_DEBUG
|
||||
# else
|
||||
# define CV_LOG_STRIP_LEVEL CV_LOG_LEVEL_VERBOSE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
#define CV_LOG_FATAL(tag, ...) for(;;) { if (cv::utils::logging::getLogLevel() < cv::utils::logging::LOG_LEVEL_FATAL) break; std::stringstream ss; ss << __VA_ARGS__; cv::utils::logging::internal::writeLogMessage(cv::utils::logging::LOG_LEVEL_FATAL, ss.str().c_str()); break; }
|
||||
#define CV_LOG_ERROR(tag, ...) for(;;) { if (cv::utils::logging::getLogLevel() < cv::utils::logging::LOG_LEVEL_ERROR) break; std::stringstream ss; ss << __VA_ARGS__; cv::utils::logging::internal::writeLogMessage(cv::utils::logging::LOG_LEVEL_ERROR, ss.str().c_str()); break; }
|
||||
#define CV_LOG_WARNING(tag, ...) for(;;) { if (cv::utils::logging::getLogLevel() < cv::utils::logging::LOG_LEVEL_WARNING) break; std::stringstream ss; ss << __VA_ARGS__; cv::utils::logging::internal::writeLogMessage(cv::utils::logging::LOG_LEVEL_WARNING, ss.str().c_str()); break; }
|
||||
#if CV_LOG_STRIP_LEVEL <= CV_LOG_LEVEL_INFO
|
||||
#define CV_LOG_INFO(tag, ...)
|
||||
#else
|
||||
#define CV_LOG_INFO(tag, ...) for(;;) { if (cv::utils::logging::getLogLevel() < cv::utils::logging::LOG_LEVEL_INFO) break; std::stringstream ss; ss << __VA_ARGS__; cv::utils::logging::internal::writeLogMessage(cv::utils::logging::LOG_LEVEL_INFO, ss.str().c_str()); break; }
|
||||
#endif
|
||||
#if CV_LOG_STRIP_LEVEL <= CV_LOG_LEVEL_DEBUG
|
||||
#define CV_LOG_DEBUG(tag, ...)
|
||||
#else
|
||||
#define CV_LOG_DEBUG(tag, ...) for(;;) { if (cv::utils::logging::getLogLevel() < cv::utils::logging::LOG_LEVEL_DEBUG) break; std::stringstream ss; ss << __VA_ARGS__; cv::utils::logging::internal::writeLogMessage(cv::utils::logging::LOG_LEVEL_DEBUG, ss.str().c_str()); break; }
|
||||
#endif
|
||||
#if CV_LOG_STRIP_LEVEL <= CV_LOG_LEVEL_VERBOSE
|
||||
#define CV_LOG_VERBOSE(tag, v, ...)
|
||||
#else
|
||||
#define CV_LOG_VERBOSE(tag, v, ...) for(;;) { if (cv::utils::logging::getLogLevel() < cv::utils::logging::LOG_LEVEL_VERBOSE) break; std::stringstream ss; ss << "[VERB" << v << ":" << cv::utils::getThreadID() << "] " << __VA_ARGS__; cv::utils::logging::internal::writeLogMessage(cv::utils::logging::LOG_LEVEL_VERBOSE, ss.str().c_str()); break; }
|
||||
#endif
|
||||
|
||||
|
||||
}}} // namespace
|
||||
|
||||
//! @}
|
||||
|
||||
#endif // OPENCV_LOGGER_HPP
|
250
3rdparty/libopencv/include/opencv2/core/utils/trace.hpp
vendored
Normal file
250
3rdparty/libopencv/include/opencv2/core/utils/trace.hpp
vendored
Normal file
@ -0,0 +1,250 @@
|
||||
// This file is part of OpenCV project.
|
||||
// It is subject to the license terms in the LICENSE file found in the top-level directory
|
||||
// of this distribution and at http://opencv.org/license.html.
|
||||
|
||||
#ifndef OPENCV_TRACE_HPP
|
||||
#define OPENCV_TRACE_HPP
|
||||
|
||||
#include <opencv2/core/cvdef.h>
|
||||
|
||||
//! @addtogroup core_logging
|
||||
// This section describes OpenCV tracing utilities.
|
||||
//
|
||||
//! @{
|
||||
|
||||
namespace cv {
|
||||
namespace utils {
|
||||
namespace trace {
|
||||
|
||||
//! Macro to trace function
|
||||
#define CV_TRACE_FUNCTION()
|
||||
|
||||
#define CV_TRACE_FUNCTION_SKIP_NESTED()
|
||||
|
||||
//! Trace code scope.
|
||||
//! @note Dynamic names are not supported in this macro (on stack or heap). Use string literals here only, like "initialize".
|
||||
#define CV_TRACE_REGION(name_as_static_string_literal)
|
||||
//! mark completed of the current opened region and create new one
|
||||
//! @note Dynamic names are not supported in this macro (on stack or heap). Use string literals here only, like "step1".
|
||||
#define CV_TRACE_REGION_NEXT(name_as_static_string_literal)
|
||||
|
||||
//! Macro to trace argument value
|
||||
#define CV_TRACE_ARG(arg_id)
|
||||
|
||||
//! Macro to trace argument value (expanded version)
|
||||
#define CV_TRACE_ARG_VALUE(arg_id, arg_name, value)
|
||||
|
||||
//! @cond IGNORED
|
||||
#define CV_TRACE_NS cv::utils::trace
|
||||
|
||||
namespace details {
|
||||
|
||||
#ifndef __OPENCV_TRACE
|
||||
# if defined __OPENCV_BUILD && !defined __OPENCV_TESTS && !defined __OPENCV_APPS
|
||||
# define __OPENCV_TRACE 1
|
||||
# else
|
||||
# define __OPENCV_TRACE 0
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef CV_TRACE_FILENAME
|
||||
# define CV_TRACE_FILENAME __FILE__
|
||||
#endif
|
||||
|
||||
#ifndef CV__TRACE_FUNCTION
|
||||
# if defined _MSC_VER
|
||||
# define CV__TRACE_FUNCTION __FUNCSIG__
|
||||
# elif defined __GNUC__
|
||||
# define CV__TRACE_FUNCTION __PRETTY_FUNCTION__
|
||||
# else
|
||||
# define CV__TRACE_FUNCTION "<unknown>"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
//! Thread-local instance (usually allocated on stack)
|
||||
class CV_EXPORTS Region
|
||||
{
|
||||
public:
|
||||
struct LocationExtraData;
|
||||
struct LocationStaticStorage
|
||||
{
|
||||
LocationExtraData** ppExtra; //< implementation specific data
|
||||
const char* name; //< region name (function name or other custom name)
|
||||
const char* filename; //< source code filename
|
||||
int line; //< source code line
|
||||
int flags; //< flags (implementation code path: Plain, IPP, OpenCL)
|
||||
};
|
||||
|
||||
Region(const LocationStaticStorage& location);
|
||||
inline ~Region()
|
||||
{
|
||||
if (implFlags != 0)
|
||||
destroy();
|
||||
CV_DbgAssert(implFlags == 0);
|
||||
CV_DbgAssert(pImpl == NULL);
|
||||
}
|
||||
|
||||
class Impl;
|
||||
Impl* pImpl; // NULL if current region is not active
|
||||
int implFlags; // see RegionFlag, 0 if region is ignored
|
||||
|
||||
bool isActive() const { return pImpl != NULL; }
|
||||
|
||||
void destroy();
|
||||
private:
|
||||
Region(const Region&); // disabled
|
||||
Region& operator= (const Region&); // disabled
|
||||
};
|
||||
|
||||
//! Specify region flags
|
||||
enum RegionLocationFlag {
|
||||
REGION_FLAG_FUNCTION = (1 << 0), //< region is function (=1) / nested named region (=0)
|
||||
REGION_FLAG_APP_CODE = (1 << 1), //< region is Application code (=1) / OpenCV library code (=0)
|
||||
REGION_FLAG_SKIP_NESTED = (1 << 2), //< avoid processing of nested regions
|
||||
|
||||
REGION_FLAG_IMPL_IPP = (1 << 16), //< region is part of IPP code path
|
||||
REGION_FLAG_IMPL_OPENCL = (2 << 16), //< region is part of OpenCL code path
|
||||
REGION_FLAG_IMPL_OPENVX = (3 << 16), //< region is part of OpenVX code path
|
||||
|
||||
REGION_FLAG_IMPL_MASK = (15 << 16),
|
||||
|
||||
REGION_FLAG_REGION_FORCE = (1 << 30),
|
||||
REGION_FLAG_REGION_NEXT = (1 << 31), //< close previous region (see #CV_TRACE_REGION_NEXT macro)
|
||||
|
||||
ENUM_REGION_FLAG_FORCE_INT = INT_MAX
|
||||
};
|
||||
|
||||
struct CV_EXPORTS TraceArg {
|
||||
public:
|
||||
struct ExtraData;
|
||||
ExtraData** ppExtra;
|
||||
const char* name;
|
||||
int flags;
|
||||
};
|
||||
/** @brief Add meta information to current region (function)
|
||||
* See CV_TRACE_ARG macro
|
||||
* @param arg argument information structure (global static cache)
|
||||
* @param value argument value (can by dynamic string literal in case of string, static allocation is not required)
|
||||
*/
|
||||
CV_EXPORTS void traceArg(const TraceArg& arg, const char* value);
|
||||
//! @overload
|
||||
CV_EXPORTS void traceArg(const TraceArg& arg, int value);
|
||||
//! @overload
|
||||
CV_EXPORTS void traceArg(const TraceArg& arg, int64 value);
|
||||
//! @overload
|
||||
CV_EXPORTS void traceArg(const TraceArg& arg, double value);
|
||||
|
||||
#define CV__TRACE_LOCATION_VARNAME(loc_id) CVAUX_CONCAT(CVAUX_CONCAT(__cv_trace_location_, loc_id), __LINE__)
|
||||
#define CV__TRACE_LOCATION_EXTRA_VARNAME(loc_id) CVAUX_CONCAT(CVAUX_CONCAT(__cv_trace_location_extra_, loc_id) , __LINE__)
|
||||
|
||||
#define CV__TRACE_DEFINE_LOCATION_(loc_id, name, flags) \
|
||||
static CV_TRACE_NS::details::Region::LocationExtraData* CV__TRACE_LOCATION_EXTRA_VARNAME(loc_id) = 0; \
|
||||
static const CV_TRACE_NS::details::Region::LocationStaticStorage \
|
||||
CV__TRACE_LOCATION_VARNAME(loc_id) = { &(CV__TRACE_LOCATION_EXTRA_VARNAME(loc_id)), name, CV_TRACE_FILENAME, __LINE__, flags};
|
||||
|
||||
#define CV__TRACE_DEFINE_LOCATION_FN(name, flags) CV__TRACE_DEFINE_LOCATION_(fn, name, (flags | CV_TRACE_NS::details::REGION_FLAG_FUNCTION))
|
||||
|
||||
|
||||
#define CV__TRACE_OPENCV_FUNCTION() \
|
||||
CV__TRACE_DEFINE_LOCATION_FN(CV__TRACE_FUNCTION, 0); \
|
||||
const CV_TRACE_NS::details::Region __region_fn(CV__TRACE_LOCATION_VARNAME(fn));
|
||||
|
||||
#define CV__TRACE_OPENCV_FUNCTION_NAME(name) \
|
||||
CV__TRACE_DEFINE_LOCATION_FN(name, 0); \
|
||||
const CV_TRACE_NS::details::Region __region_fn(CV__TRACE_LOCATION_VARNAME(fn));
|
||||
|
||||
#define CV__TRACE_APP_FUNCTION() \
|
||||
CV__TRACE_DEFINE_LOCATION_FN(CV__TRACE_FUNCTION, CV_TRACE_NS::details::REGION_FLAG_APP_CODE); \
|
||||
const CV_TRACE_NS::details::Region __region_fn(CV__TRACE_LOCATION_VARNAME(fn));
|
||||
|
||||
#define CV__TRACE_APP_FUNCTION_NAME(name) \
|
||||
CV__TRACE_DEFINE_LOCATION_FN(name, CV_TRACE_NS::details::REGION_FLAG_APP_CODE); \
|
||||
const CV_TRACE_NS::details::Region __region_fn(CV__TRACE_LOCATION_VARNAME(fn));
|
||||
|
||||
|
||||
#define CV__TRACE_OPENCV_FUNCTION_SKIP_NESTED() \
|
||||
CV__TRACE_DEFINE_LOCATION_FN(CV__TRACE_FUNCTION, CV_TRACE_NS::details::REGION_FLAG_SKIP_NESTED); \
|
||||
const CV_TRACE_NS::details::Region __region_fn(CV__TRACE_LOCATION_VARNAME(fn));
|
||||
|
||||
#define CV__TRACE_OPENCV_FUNCTION_NAME_SKIP_NESTED(name) \
|
||||
CV__TRACE_DEFINE_LOCATION_FN(name, CV_TRACE_NS::details::REGION_FLAG_SKIP_NESTED); \
|
||||
const CV_TRACE_NS::details::Region __region_fn(CV__TRACE_LOCATION_VARNAME(fn));
|
||||
|
||||
#define CV__TRACE_APP_FUNCTION_SKIP_NESTED() \
|
||||
CV__TRACE_DEFINE_LOCATION_FN(CV__TRACE_FUNCTION, CV_TRACE_NS::details::REGION_FLAG_SKIP_NESTED | CV_TRACE_NS::details::REGION_FLAG_APP_CODE); \
|
||||
const CV_TRACE_NS::details::Region __region_fn(CV__TRACE_LOCATION_VARNAME(fn));
|
||||
|
||||
|
||||
#define CV__TRACE_REGION_(name_as_static_string_literal, flags) \
|
||||
CV__TRACE_DEFINE_LOCATION_(region, name_as_static_string_literal, flags); \
|
||||
CV_TRACE_NS::details::Region CVAUX_CONCAT(__region_, __LINE__)(CV__TRACE_LOCATION_VARNAME(region));
|
||||
|
||||
#define CV__TRACE_REGION(name_as_static_string_literal) CV__TRACE_REGION_(name_as_static_string_literal, 0)
|
||||
#define CV__TRACE_REGION_NEXT(name_as_static_string_literal) CV__TRACE_REGION_(name_as_static_string_literal, CV_TRACE_NS::details::REGION_FLAG_REGION_NEXT)
|
||||
|
||||
#define CV__TRACE_ARG_VARNAME(arg_id) CVAUX_CONCAT(__cv_trace_arg_ ## arg_id, __LINE__)
|
||||
#define CV__TRACE_ARG_EXTRA_VARNAME(arg_id) CVAUX_CONCAT(__cv_trace_arg_extra_ ## arg_id, __LINE__)
|
||||
|
||||
#define CV__TRACE_DEFINE_ARG_(arg_id, name, flags) \
|
||||
static CV_TRACE_NS::details::TraceArg::ExtraData* CV__TRACE_ARG_EXTRA_VARNAME(arg_id) = 0; \
|
||||
static const CV_TRACE_NS::details::TraceArg \
|
||||
CV__TRACE_ARG_VARNAME(arg_id) = { &(CV__TRACE_ARG_EXTRA_VARNAME(arg_id)), name, flags };
|
||||
|
||||
#define CV__TRACE_ARG_VALUE(arg_id, arg_name, value) \
|
||||
CV__TRACE_DEFINE_ARG_(arg_id, arg_name, 0); \
|
||||
CV_TRACE_NS::details::traceArg((CV__TRACE_ARG_VARNAME(arg_id)), value);
|
||||
|
||||
#define CV__TRACE_ARG(arg_id) CV_TRACE_ARG_VALUE(arg_id, #arg_id, (arg_id))
|
||||
|
||||
} // namespace
|
||||
|
||||
#ifndef OPENCV_DISABLE_TRACE
|
||||
#undef CV_TRACE_FUNCTION
|
||||
#undef CV_TRACE_FUNCTION_SKIP_NESTED
|
||||
#if __OPENCV_TRACE
|
||||
#define CV_TRACE_FUNCTION CV__TRACE_OPENCV_FUNCTION
|
||||
#define CV_TRACE_FUNCTION_SKIP_NESTED CV__TRACE_OPENCV_FUNCTION_SKIP_NESTED
|
||||
#else
|
||||
#define CV_TRACE_FUNCTION CV__TRACE_APP_FUNCTION
|
||||
#define CV_TRACE_FUNCTION_SKIP_NESTED CV__TRACE_APP_FUNCTION_SKIP_NESTED
|
||||
#endif
|
||||
|
||||
#undef CV_TRACE_REGION
|
||||
#define CV_TRACE_REGION CV__TRACE_REGION
|
||||
|
||||
#undef CV_TRACE_REGION_NEXT
|
||||
#define CV_TRACE_REGION_NEXT CV__TRACE_REGION_NEXT
|
||||
|
||||
#undef CV_TRACE_ARG_VALUE
|
||||
#define CV_TRACE_ARG_VALUE(arg_id, arg_name, value) \
|
||||
if (__region_fn.isActive()) \
|
||||
{ \
|
||||
CV__TRACE_ARG_VALUE(arg_id, arg_name, value); \
|
||||
}
|
||||
|
||||
#undef CV_TRACE_ARG
|
||||
#define CV_TRACE_ARG CV__TRACE_ARG
|
||||
|
||||
#endif // OPENCV_DISABLE_TRACE
|
||||
|
||||
#ifdef OPENCV_TRACE_VERBOSE
|
||||
#define CV_TRACE_FUNCTION_VERBOSE CV_TRACE_FUNCTION
|
||||
#define CV_TRACE_REGION_VERBOSE CV_TRACE_REGION
|
||||
#define CV_TRACE_REGION_NEXT_VERBOSE CV_TRACE_REGION_NEXT
|
||||
#define CV_TRACE_ARG_VALUE_VERBOSE CV_TRACE_ARG_VALUE
|
||||
#define CV_TRACE_ARG_VERBOSE CV_TRACE_ARG
|
||||
#else
|
||||
#define CV_TRACE_FUNCTION_VERBOSE(...)
|
||||
#define CV_TRACE_REGION_VERBOSE(...)
|
||||
#define CV_TRACE_REGION_NEXT_VERBOSE(...)
|
||||
#define CV_TRACE_ARG_VALUE_VERBOSE(...)
|
||||
#define CV_TRACE_ARG_VERBOSE(...)
|
||||
#endif
|
||||
|
||||
//! @endcond
|
||||
|
||||
}}} // namespace
|
||||
|
||||
//! @}
|
||||
|
||||
#endif // OPENCV_TRACE_HPP
|
Reference in New Issue
Block a user