Add log info to see if NV12 fast path is active
This commit is contained in:
@@ -346,18 +346,21 @@ namespace ANSCENTER {
|
|||||||
effUvLinesize = gpuData->uvLinesize;
|
effUvLinesize = gpuData->uvLinesize;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Log path selection once
|
// Log path selection once — both spdlog and DebugView
|
||||||
if (!m_nv12PathLogged) {
|
if (!m_nv12PathLogged) {
|
||||||
m_nv12PathLogged = true;
|
m_nv12PathLogged = true;
|
||||||
const char* pathName = useZeroCopy ? "CUDA_ZERO_COPY" : "CPU_NV12_UPLOAD";
|
const char* pathName = useZeroCopy ? "CUDA_ZERO_COPY" : "CPU_NV12_UPLOAD";
|
||||||
logger.LogInfo(std::string(tag) + "::NV12Helper",
|
auto msg = std::string("Path: ") + pathName +
|
||||||
std::string("Path: ") + pathName +
|
|
||||||
" | isCuda=" + std::to_string(isCudaDevice) +
|
" | isCuda=" + std::to_string(isCudaDevice) +
|
||||||
" gpuMatch=" + std::to_string(gpuMatch) +
|
" gpuMatch=" + std::to_string(gpuMatch) +
|
||||||
" decodeGpu=" + std::to_string(gpuData->gpuIndex) +
|
" decodeGpu=" + std::to_string(gpuData->gpuIndex) +
|
||||||
" infGpu=" + std::to_string(inferenceGpu) +
|
" infGpu=" + std::to_string(inferenceGpu) +
|
||||||
" frame=" + std::to_string(frameW) + "x" + std::to_string(frameH),
|
" frame=" + std::to_string(frameW) + "x" + std::to_string(frameH);
|
||||||
__FILE__, __LINE__);
|
logger.LogInfo(std::string(tag) + "::NV12Helper", msg, __FILE__, __LINE__);
|
||||||
|
#ifdef _WIN32
|
||||||
|
auto dbg = std::string("[NV12 ACTIVE] ") + tag + " " + msg + "\n";
|
||||||
|
OutputDebugStringA(dbg.c_str());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
cv::cuda::Stream stream;
|
cv::cuda::Stream stream;
|
||||||
|
|||||||
Reference in New Issue
Block a user