1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

videoio: plugins support on Win32

This commit is contained in:
Alexander Alekhin
2019-05-31 16:18:00 +03:00
committed by Alexander Alekhin
parent 66d7956e67
commit 7b099e0fe2
16 changed files with 298 additions and 927 deletions
+8
View File
@@ -91,6 +91,14 @@ CV_EXPORTS cv::String getParent(const cv::String &path)
return std::string(path, 0, loc);
}
CV_EXPORTS std::wstring getParent(const std::wstring& path)
{
std::wstring::size_type loc = path.find_last_of(L"/\\");
if (loc == std::wstring::npos)
return std::wstring();
return std::wstring(path, 0, loc);
}
#if OPENCV_HAVE_FILESYSTEM_SUPPORT
cv::String canonical(const cv::String& path)