mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
Remove log.cpp
This commit is contained in:
@@ -1,6 +0,0 @@
|
|||||||
#include "log.h"
|
|
||||||
|
|
||||||
int LogDummy()
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
@@ -18,20 +18,7 @@ using namespace std::chrono;
|
|||||||
|
|
||||||
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_INFO
|
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_INFO
|
||||||
|
|
||||||
// SPDLOG_TRACE(...)
|
constexpr auto LOGGER_NAME = "rt";
|
||||||
// SPDLOG_DEBUG(...)
|
|
||||||
// SPDLOG_INFO(...)
|
|
||||||
// SPDLOG_WARN(...)
|
|
||||||
// SPDLOG_ERROR(...)
|
|
||||||
// SPDLOG_CRITICAL(...)
|
|
||||||
|
|
||||||
#ifdef SIGNAL_LOGGER
|
|
||||||
constexpr auto LOGGER_NAME = "siganl";
|
|
||||||
#else
|
|
||||||
constexpr auto LOGGER_NAME = "rtc";
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int LogDummy();
|
|
||||||
|
|
||||||
#define LOG_INFO(...) \
|
#define LOG_INFO(...) \
|
||||||
if (nullptr == spdlog::get(LOGGER_NAME)) { \
|
if (nullptr == spdlog::get(LOGGER_NAME)) { \
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ void nv12ToI420(unsigned char *Src_data, int src_width, int src_height,
|
|||||||
int src_stride_y = src_width;
|
int src_stride_y = src_width;
|
||||||
int src_stride_uv = src_width;
|
int src_stride_uv = src_width;
|
||||||
|
|
||||||
// dst: buffer address of Y channel<EFBFBD><EFBFBD>U channel and V channel
|
// dst: buffer address of Y channel、U channel and V channel
|
||||||
unsigned char *Y_data_Dst = Dst_data;
|
unsigned char *Y_data_Dst = Dst_data;
|
||||||
unsigned char *U_data_Dst = Dst_data + I420_Y_Size;
|
unsigned char *U_data_Dst = Dst_data + I420_Y_Size;
|
||||||
unsigned char *V_data_Dst = Dst_data + I420_Y_Size + I420_U_Size;
|
unsigned char *V_data_Dst = Dst_data + I420_Y_Size + I420_U_Size;
|
||||||
|
|||||||
@@ -3,7 +3,8 @@ set_version("0.0.1")
|
|||||||
set_license("LGPL-3.0")
|
set_license("LGPL-3.0")
|
||||||
|
|
||||||
add_rules("mode.release", "mode.debug")
|
add_rules("mode.release", "mode.debug")
|
||||||
set_languages("c++14")
|
set_languages("c++17")
|
||||||
|
set_encodings("utf-8")
|
||||||
|
|
||||||
set_installdir("$(projectdir)/out")
|
set_installdir("$(projectdir)/out")
|
||||||
|
|
||||||
@@ -34,7 +35,7 @@ end
|
|||||||
|
|
||||||
target("log")
|
target("log")
|
||||||
set_kind("object")
|
set_kind("object")
|
||||||
add_files("src/log/log.cpp")
|
add_headerfiles("src/log/log.h")
|
||||||
add_includedirs("src/log", {public = true})
|
add_includedirs("src/log", {public = true})
|
||||||
|
|
||||||
target("common")
|
target("common")
|
||||||
|
|||||||
Reference in New Issue
Block a user