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
47b3e785
Commit
47b3e785
authored
Aug 16, 2013
by
Roman Donchenko
Committed by
OpenCV Buildbot
Aug 16, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1252 from asmorkalov:winrt_api_cert_highgui_fix
parents
a3bbb3dd
9af2c166
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
52 additions
and
3 deletions
+52
-3
CMakeLists.txt
3rdparty/libpng/CMakeLists.txt
+4
-0
opencv-libpng.path
3rdparty/libpng/opencv-libpng.path
+22
-0
pngpriv.h
3rdparty/libpng/pngpriv.h
+2
-2
version.hpp
modules/core/include/opencv2/core/version.hpp
+3
-0
cap_ffmpeg.cpp
modules/highgui/src/cap_ffmpeg.cpp
+12
-0
cap_ffmpeg_impl.hpp
modules/highgui/src/cap_ffmpeg_impl.hpp
+9
-1
No files found.
3rdparty/libpng/CMakeLists.txt
View file @
47b3e785
...
...
@@ -29,6 +29,10 @@ if(MSVC)
add_definitions
(
-D_CRT_SECURE_NO_DEPRECATE
)
endif
(
MSVC
)
if
(
HAVE_WINRT
)
add_definitions
(
-DHAVE_WINRT
)
endif
()
add_library
(
${
PNG_LIBRARY
}
STATIC
${
lib_srcs
}
${
lib_hdrs
}
)
target_link_libraries
(
${
PNG_LIBRARY
}
${
ZLIB_LIBRARY
}
)
...
...
3rdparty/libpng/opencv-libpng.path
0 → 100644
View file @
47b3e785
diff --git a/3rdparty/libpng/pngpriv.h b/3rdparty/libpng/pngpriv.h
index 07b2b0b..e7824b8 100644
--- a/3rdparty/libpng/pngpriv.h
+++ b/3rdparty/libpng/pngpriv.h
@@ -360,7 +360,7 @@ typedef PNG_CONST png_uint_16p FAR * png_const_uint_16pp;
/* Memory model/platform independent fns */
#ifndef PNG_ABORT
-# ifdef _WINDOWS_
+# if defined(_WINDOWS_) && !defined(HAVE_WINRT)
# define PNG_ABORT() ExitProcess(0)
# else
# define PNG_ABORT() abort()
@@ -378,7 +378,7 @@ typedef PNG_CONST png_uint_16p FAR * png_const_uint_16pp;
# define png_memcpy _fmemcpy
# define png_memset _fmemset
#else
-# ifdef _WINDOWS_ /* Favor Windows over C runtime fns */
+# if defined(_WINDOWS_) && !defined(HAVE_WINRT) /* Favor Windows over C runtime fns */
# define CVT_PTR(ptr) (ptr)
# define CVT_PTR_NOCHECK(ptr) (ptr)
# define png_strlen lstrlenA
3rdparty/libpng/pngpriv.h
View file @
47b3e785
...
...
@@ -360,7 +360,7 @@ typedef PNG_CONST png_uint_16p FAR * png_const_uint_16pp;
/* Memory model/platform independent fns */
#ifndef PNG_ABORT
# if
def _WINDOWS_
# if
defined(_WINDOWS_) && !defined(HAVE_WINRT)
# define PNG_ABORT() ExitProcess(0)
# else
# define PNG_ABORT() abort()
...
...
@@ -378,7 +378,7 @@ typedef PNG_CONST png_uint_16p FAR * png_const_uint_16pp;
# define png_memcpy _fmemcpy
# define png_memset _fmemset
#else
# if
def _WINDOWS_
/* Favor Windows over C runtime fns */
# if
defined(_WINDOWS_) && !defined(HAVE_WINRT)
/* Favor Windows over C runtime fns */
# define CVT_PTR(ptr) (ptr)
# define CVT_PTR_NOCHECK(ptr) (ptr)
# define png_strlen lstrlenA
...
...
modules/core/include/opencv2/core/version.hpp
View file @
47b3e785
...
...
@@ -55,6 +55,9 @@
#define CVAUX_STR_EXP(__A) #__A
#define CVAUX_STR(__A) CVAUX_STR_EXP(__A)
#define CVAUX_STRW_EXP(__A) L#__A
#define CVAUX_STRW(__A) CVAUX_STRW_EXP(__A)
#if CV_VERSION_REVISION
# define CV_VERSION CVAUX_STR(CV_VERSION_EPOCH) "." CVAUX_STR(CV_VERSION_MAJOR) "." CVAUX_STR(CV_VERSION_MINOR) "." CVAUX_STR(CV_VERSION_REVISION)
#else
...
...
modules/highgui/src/cap_ffmpeg.cpp
View file @
47b3e785
...
...
@@ -85,6 +85,16 @@ private:
icvInitFFMPEG
()
{
#if defined WIN32 || defined _WIN32
# ifdef HAVE_WINRT
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
);
# else
const
char
*
module_name
=
"opencv_ffmpeg"
CVAUX_STR
(
CV_MAJOR_VERSION
)
CVAUX_STR
(
CV_MINOR_VERSION
)
CVAUX_STR
(
CV_SUBMINOR_VERSION
)
#if (defined _MSC_VER && defined _M_X64) || (defined __GNUC__ && defined __x86_64__)
...
...
@@ -93,6 +103,8 @@ private:
".dll"
;
icvFFOpenCV
=
LoadLibrary
(
module_name
);
# endif
if
(
icvFFOpenCV
)
{
icvCreateFileCapture_FFMPEG_p
=
...
...
modules/highgui/src/cap_ffmpeg_impl.hpp
View file @
47b3e785
...
...
@@ -366,7 +366,15 @@ private:
struct
ImplMutex
::
Impl
{
void
init
()
{
InitializeCriticalSection
(
&
cs
);
refcount
=
1
;
}
void
init
()
{
#if (_WIN32_WINNT >= 0x0600)
::
InitializeCriticalSectionEx
(
&
cs
,
1000
,
0
);
#else
::
InitializeCriticalSection
(
&
cs
);
#endif
refcount
=
1
;
}
void
destroy
()
{
DeleteCriticalSection
(
&
cs
);
}
void
lock
()
{
EnterCriticalSection
(
&
cs
);
}
...
...
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