Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
4e8f8922
Commit
4e8f8922
authored
Aug 29, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7170 from alalek:fix_build
parents
da0e07bc
5383a625
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
28 deletions
+8
-28
parallel.cpp
modules/core/src/parallel.cpp
+1
-1
precomp.hpp
modules/highgui/src/precomp.hpp
+0
-8
precomp.hpp
modules/imgcodecs/src/precomp.hpp
+0
-8
cap_ffmpeg.cpp
modules/videoio/src/cap_ffmpeg.cpp
+6
-10
precomp.hpp
modules/videoio/src/precomp.hpp
+1
-1
No files found.
modules/core/src/parallel.cpp
View file @
4e8f8922
...
...
@@ -521,7 +521,7 @@ int cv::getNumberOfCPUs(void)
{
#if defined WIN32 || defined _WIN32
SYSTEM_INFO
sysinfo
;
#if
defined(_M_ARM) || defined(_M_X64) || defined(WINRT)
#if
(defined(_M_ARM) || defined(_M_X64) || defined(WINRT)) && _WIN32_WINNT >= 0x501
GetNativeSystemInfo
(
&
sysinfo
);
#else
GetSystemInfo
(
&
sysinfo
);
...
...
modules/highgui/src/precomp.hpp
View file @
4e8f8922
...
...
@@ -63,14 +63,6 @@
#include <assert.h>
#if defined WIN32 || defined WINCE
#if !defined _WIN32_WINNT
#ifdef HAVE_MSMF
#define _WIN32_WINNT 0x0600 // Windows Vista
#else
#define _WIN32_WINNT 0x0500 // Windows 2000
#endif
#endif
#include <windows.h>
#undef small
#undef min
...
...
modules/imgcodecs/src/precomp.hpp
View file @
4e8f8922
...
...
@@ -59,14 +59,6 @@
#include <assert.h>
#if defined WIN32 || defined WINCE
#if !defined _WIN32_WINNT
#ifdef HAVE_MSMF
#define _WIN32_WINNT 0x0600 // Windows Vista
#else
#define _WIN32_WINNT 0x0500 // Windows 2000
#endif
#endif
#include <windows.h>
#undef small
#undef min
...
...
modules/videoio/src/cap_ffmpeg.cpp
View file @
4e8f8922
...
...
@@ -65,9 +65,11 @@ static cv::Mutex _icvInitFFMPEG_mutex;
static
const
HMODULE
cv_GetCurrentModule
()
{
HMODULE
h
=
0
;
#if _WIN32_WINNT >= 0x0501
::
GetModuleHandleEx
(
GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS
|
GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT
,
reinterpret_cast
<
LPCTSTR
>
(
cv_GetCurrentModule
),
&
h
);
#endif
return
h
;
}
#endif
...
...
@@ -98,22 +100,16 @@ private:
icvInitFFMPEG
()
{
#if defined WIN32 || defined _WIN32
# ifdef WINRT
const
wchar_t
*
module_name
=
L"opencv_ffmpeg"
const
wchar_t
*
module_name_
=
L"opencv_ffmpeg"
CVAUX_STRW
(
CV_MAJOR_VERSION
)
CVAUX_STRW
(
CV_MINOR_VERSION
)
CVAUX_STRW
(
CV_SUBMINOR_VERSION
)
#if (defined _MSC_VER && defined _M_X64) || (defined __GNUC__ && defined __x86_64__)
L"_64"
#endif
L".dll"
;
icvFFOpenCV
=
LoadPackagedLibrary
(
module_name
,
0
);
# ifdef WINRT
icvFFOpenCV
=
LoadPackagedLibrary
(
module_name
_
,
0
);
# else
const
std
::
wstring
module_name
=
L"opencv_ffmpeg"
CVAUX_STRW
(
CV_MAJOR_VERSION
)
CVAUX_STRW
(
CV_MINOR_VERSION
)
CVAUX_STRW
(
CV_SUBMINOR_VERSION
)
#if (defined _MSC_VER && defined _M_X64) || (defined __GNUC__ && defined __x86_64__)
L"_64"
#endif
L".dll"
;
const
std
::
wstring
module_name
(
module_name_
);
const
wchar_t
*
ffmpeg_env_path
=
_wgetenv
(
L"OPENCV_FFMPEG_DLL_DIR"
);
std
::
wstring
module_path
=
...
...
modules/videoio/src/precomp.hpp
View file @
4e8f8922
...
...
@@ -66,7 +66,7 @@
#ifdef HAVE_MSMF
#define _WIN32_WINNT 0x0600 // Windows Vista
#else
#define _WIN32_WINNT 0x050
0 // Windows 2000
#define _WIN32_WINNT 0x050
1 // Windows XP
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment