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
9c3f9578
Commit
9c3f9578
authored
Sep 02, 2015
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5282 from mshabunin:mingw-51
parents
c223c05b
8c65f8a0
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
42 additions
and
28 deletions
+42
-28
CMakeLists.txt
CMakeLists.txt
+1
-1
base.hpp
modules/core/include/opencv2/core/base.hpp
+2
-2
cuda.inl.hpp
modules/core/include/opencv2/core/cuda.inl.hpp
+2
-2
system.cpp
modules/core/src/system.cpp
+3
-0
NCVHaarObjectDetection.hpp
...acy/include/opencv2/cudalegacy/NCVHaarObjectDetection.hpp
+2
-2
NPP_staging.cu
modules/cudalegacy/src/cuda/NPP_staging.cu
+1
-1
agast.cpp
modules/features2d/src/agast.cpp
+1
-1
agast_score.cpp
modules/features2d/src/agast_score.cpp
+1
-1
window_w32.cpp
modules/highgui/src/window_w32.cpp
+2
-2
grfmt_jpeg.cpp
modules/imgcodecs/src/grfmt_jpeg.cpp
+1
-1
grfmt_png.cpp
modules/imgcodecs/src/grfmt_png.cpp
+1
-1
hough.cpp
modules/imgproc/src/hough.cpp
+1
-1
cap_dshow.cpp
modules/videoio/src/cap_dshow.cpp
+5
-0
build_sdk.py
platforms/android/build_sdk.py
+19
-13
No files found.
CMakeLists.txt
View file @
9c3f9578
...
@@ -171,7 +171,7 @@ OCV_OPTION(WITH_GSTREAMER "Include Gstreamer support" ON
...
@@ -171,7 +171,7 @@ OCV_OPTION(WITH_GSTREAMER "Include Gstreamer support" ON
OCV_OPTION
(
WITH_GSTREAMER_0_10
"Enable Gstreamer 0.10 support (instead of 1.x)"
OFF
)
OCV_OPTION
(
WITH_GSTREAMER_0_10
"Enable Gstreamer 0.10 support (instead of 1.x)"
OFF
)
OCV_OPTION
(
WITH_GTK
"Include GTK support"
ON
IF
(
UNIX AND NOT APPLE AND NOT ANDROID
)
)
OCV_OPTION
(
WITH_GTK
"Include GTK support"
ON
IF
(
UNIX AND NOT APPLE AND NOT ANDROID
)
)
OCV_OPTION
(
WITH_GTK_2_X
"Use GTK version 2"
OFF
IF
(
UNIX AND NOT APPLE AND NOT ANDROID
)
)
OCV_OPTION
(
WITH_GTK_2_X
"Use GTK version 2"
OFF
IF
(
UNIX AND NOT APPLE AND NOT ANDROID
)
)
OCV_OPTION
(
WITH_IPP
"Include Intel IPP support"
ON
IF
(
X86_64 OR X86
)
AND NOT WINRT
)
OCV_OPTION
(
WITH_IPP
"Include Intel IPP support"
NOT MINGW
IF
(
X86_64 OR X86
)
AND NOT WINRT
)
OCV_OPTION
(
WITH_JASPER
"Include JPEG2K support"
ON
IF
(
NOT IOS
)
)
OCV_OPTION
(
WITH_JASPER
"Include JPEG2K support"
ON
IF
(
NOT IOS
)
)
OCV_OPTION
(
WITH_JPEG
"Include JPEG support"
ON
)
OCV_OPTION
(
WITH_JPEG
"Include JPEG support"
ON
)
OCV_OPTION
(
WITH_WEBP
"Include WebP support"
ON
IF
(
NOT IOS AND NOT WINRT
)
)
OCV_OPTION
(
WITH_WEBP
"Include WebP support"
ON
IF
(
NOT IOS AND NOT WINRT
)
)
...
...
modules/core/include/opencv2/core/base.hpp
View file @
9c3f9578
...
@@ -271,7 +271,7 @@ enum BorderTypes {
...
@@ -271,7 +271,7 @@ enum BorderTypes {
# endif
# endif
#endif
#endif
#ifndef CV_StaticAssert
#ifndef CV_StaticAssert
# if
defined(__GNUC__) && (__GNUC__ > 3) && (__GNUC_MINOR__ >
2)
# if
!defined(__clang__) && defined(__GNUC__) && (__GNUC__*100 + __GNUC_MINOR__ > 30
2)
# define CV_StaticAssert(condition, reason) ({ extern int __attribute__((error("CV_StaticAssert: " reason " " #condition))) CV_StaticAssert(); ((condition) ? 0 : CV_StaticAssert()); })
# define CV_StaticAssert(condition, reason) ({ extern int __attribute__((error("CV_StaticAssert: " reason " " #condition))) CV_StaticAssert(); ((condition) ? 0 : CV_StaticAssert()); })
# else
# else
template
<
bool
x
>
struct
CV_StaticAssert_failed
;
template
<
bool
x
>
struct
CV_StaticAssert_failed
;
...
@@ -296,7 +296,7 @@ enum BorderTypes {
...
@@ -296,7 +296,7 @@ enum BorderTypes {
CV_DO_PRAGMA(warning(push)) \
CV_DO_PRAGMA(warning(push)) \
CV_DO_PRAGMA(warning(disable: 4996))
CV_DO_PRAGMA(warning(disable: 4996))
#define CV_SUPPRESS_DEPRECATED_END CV_DO_PRAGMA(warning(pop))
#define CV_SUPPRESS_DEPRECATED_END CV_DO_PRAGMA(warning(pop))
#elif defined (__clang__) || ((__GNUC__) && (
(__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5))
))
#elif defined (__clang__) || ((__GNUC__) && (
__GNUC__*100 + __GNUC_MINOR__ > 405
))
#define CV_SUPPRESS_DEPRECATED_START \
#define CV_SUPPRESS_DEPRECATED_START \
CV_DO_PRAGMA(GCC diagnostic push) \
CV_DO_PRAGMA(GCC diagnostic push) \
CV_DO_PRAGMA(GCC diagnostic ignored "-Wdeprecated-declarations")
CV_DO_PRAGMA(GCC diagnostic ignored "-Wdeprecated-declarations")
...
...
modules/core/include/opencv2/core/cuda.inl.hpp
View file @
9c3f9578
...
@@ -578,7 +578,7 @@ int DeviceInfo::deviceID() const
...
@@ -578,7 +578,7 @@ int DeviceInfo::deviceID() const
inline
inline
size_t
DeviceInfo
::
freeMemory
()
const
size_t
DeviceInfo
::
freeMemory
()
const
{
{
size_t
_totalMemory
,
_freeMemory
;
size_t
_totalMemory
=
0
,
_freeMemory
=
0
;
queryMemory
(
_totalMemory
,
_freeMemory
);
queryMemory
(
_totalMemory
,
_freeMemory
);
return
_freeMemory
;
return
_freeMemory
;
}
}
...
@@ -586,7 +586,7 @@ size_t DeviceInfo::freeMemory() const
...
@@ -586,7 +586,7 @@ size_t DeviceInfo::freeMemory() const
inline
inline
size_t
DeviceInfo
::
totalMemory
()
const
size_t
DeviceInfo
::
totalMemory
()
const
{
{
size_t
_totalMemory
,
_freeMemory
;
size_t
_totalMemory
=
0
,
_freeMemory
=
0
;
queryMemory
(
_totalMemory
,
_freeMemory
);
queryMemory
(
_totalMemory
,
_freeMemory
);
return
_totalMemory
;
return
_totalMemory
;
}
}
...
...
modules/core/src/system.cpp
View file @
9c3f9578
...
@@ -1191,6 +1191,9 @@ TLSData<CoreTLSData>& getCoreTlsData()
...
@@ -1191,6 +1191,9 @@ TLSData<CoreTLSData>& getCoreTlsData()
#pragma warning(disable:4447) // Disable warning 'main' signature found without threading model
#pragma warning(disable:4447) // Disable warning 'main' signature found without threading model
#endif
#endif
extern
"C"
BOOL
WINAPI
DllMain
(
HINSTANCE
,
DWORD
fdwReason
,
LPVOID
lpReserved
);
extern
"C"
extern
"C"
BOOL
WINAPI
DllMain
(
HINSTANCE
,
DWORD
fdwReason
,
LPVOID
lpReserved
)
BOOL
WINAPI
DllMain
(
HINSTANCE
,
DWORD
fdwReason
,
LPVOID
lpReserved
)
{
{
...
...
modules/cudalegacy/include/opencv2/cudalegacy/NCVHaarObjectDetection.hpp
View file @
9c3f9578
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
// Guaranteed size cross-platform classifier structures
// Guaranteed size cross-platform classifier structures
//
//
//==============================================================================
//==============================================================================
#if defined __GNUC__ &&
__GNUC__ > 2 && __GNUC_MINOR__ > 4
#if defined __GNUC__ &&
(__GNUC__*100 + __GNUC_MINOR__ > 204)
typedef
Ncv32f
__attribute__
((
__may_alias__
))
Ncv32f_a
;
typedef
Ncv32f
__attribute__
((
__may_alias__
))
Ncv32f_a
;
#else
#else
typedef
Ncv32f
Ncv32f_a
;
typedef
Ncv32f
Ncv32f_a
;
...
@@ -208,7 +208,7 @@ struct HaarClassifierNodeDescriptor32
...
@@ -208,7 +208,7 @@ struct HaarClassifierNodeDescriptor32
}
}
};
};
#if defined __GNUC__ &&
__GNUC__ > 2 && __GNUC_MINOR__ > 4
#if defined __GNUC__ &&
(__GNUC__*100 + __GNUC_MINOR__ > 204)
typedef
Ncv32u
__attribute__
((
__may_alias__
))
Ncv32u_a
;
typedef
Ncv32u
__attribute__
((
__may_alias__
))
Ncv32u_a
;
#else
#else
typedef
Ncv32u
Ncv32u_a
;
typedef
Ncv32u
Ncv32u_a
;
...
...
modules/cudalegacy/src/cuda/NPP_staging.cu
View file @
9c3f9578
...
@@ -1593,7 +1593,7 @@ NCVStatus nppsStCompact_32s(Ncv32s *d_src, Ncv32u srcLen,
...
@@ -1593,7 +1593,7 @@ NCVStatus nppsStCompact_32s(Ncv32s *d_src, Ncv32u srcLen,
}
}
#if defined __GNUC__ &&
__GNUC__ > 2 && __GNUC_MINOR__ > 4
#if defined __GNUC__ &&
(__GNUC__*100 + __GNUC_MINOR__ > 204)
typedef Ncv32u __attribute__((__may_alias__)) Ncv32u_a;
typedef Ncv32u __attribute__((__may_alias__)) Ncv32u_a;
#else
#else
typedef Ncv32u Ncv32u_a;
typedef Ncv32u Ncv32u_a;
...
...
modules/features2d/src/agast.cpp
View file @
9c3f9578
...
@@ -45,7 +45,7 @@ The references are:
...
@@ -45,7 +45,7 @@ The references are:
#include "precomp.hpp"
#include "precomp.hpp"
#include "agast_score.hpp"
#include "agast_score.hpp"
#ifdef _
WIN32
#ifdef _
MSC_VER
#pragma warning( disable : 4127 )
#pragma warning( disable : 4127 )
#endif
#endif
...
...
modules/features2d/src/agast_score.cpp
View file @
9c3f9578
...
@@ -44,7 +44,7 @@ The references are:
...
@@ -44,7 +44,7 @@ The references are:
#include "agast_score.hpp"
#include "agast_score.hpp"
#ifdef _
WIN32
#ifdef _
MSC_VER
#pragma warning( disable : 4127 )
#pragma warning( disable : 4127 )
#endif
#endif
...
...
modules/highgui/src/window_w32.cpp
View file @
9c3f9578
...
@@ -2036,8 +2036,8 @@ icvCreateTrackbar( const char* trackbar_name, const char* window_name,
...
@@ -2036,8 +2036,8 @@ icvCreateTrackbar( const char* trackbar_name, const char* window_name,
trackbar
=
icvFindTrackbarByName
(
window
,
trackbar_name
);
trackbar
=
icvFindTrackbarByName
(
window
,
trackbar_name
);
if
(
!
trackbar
)
if
(
!
trackbar
)
{
{
TBBUTTON
tbs
=
{
0
};
TBBUTTON
tbs
=
{};
TBBUTTONINFO
tbis
=
{
0
};
TBBUTTONINFO
tbis
=
{};
RECT
rect
;
RECT
rect
;
int
bcount
;
int
bcount
;
int
len
=
(
int
)
strlen
(
trackbar_name
);
int
len
=
(
int
)
strlen
(
trackbar_name
);
...
...
modules/imgcodecs/src/grfmt_jpeg.cpp
View file @
9c3f9578
...
@@ -213,7 +213,7 @@ ImageDecoder JpegDecoder::newDecoder() const
...
@@ -213,7 +213,7 @@ ImageDecoder JpegDecoder::newDecoder() const
bool
JpegDecoder
::
readHeader
()
bool
JpegDecoder
::
readHeader
()
{
{
bool
result
=
false
;
volatile
bool
result
=
false
;
close
();
close
();
JpegState
*
state
=
new
JpegState
;
JpegState
*
state
=
new
JpegState
;
...
...
modules/imgcodecs/src/grfmt_png.cpp
View file @
9c3f9578
...
@@ -140,7 +140,7 @@ void PngDecoder::readDataFromBuf( void* _png_ptr, uchar* dst, size_t size )
...
@@ -140,7 +140,7 @@ void PngDecoder::readDataFromBuf( void* _png_ptr, uchar* dst, size_t size )
bool
PngDecoder
::
readHeader
()
bool
PngDecoder
::
readHeader
()
{
{
bool
result
=
false
;
volatile
bool
result
=
false
;
close
();
close
();
png_structp
png_ptr
=
png_create_read_struct
(
PNG_LIBPNG_VER_STRING
,
0
,
0
,
0
);
png_structp
png_ptr
=
png_create_read_struct
(
PNG_LIBPNG_VER_STRING
,
0
,
0
,
0
);
...
...
modules/imgproc/src/hough.cpp
View file @
9c3f9578
/*M///////////////////////////////////////////////////////////////////////////////////////
/*M///////////////////////////////////////////////////////////////////////////////////////
//
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
//
...
...
modules/videoio/src/cap_dshow.cpp
View file @
9c3f9578
...
@@ -93,6 +93,11 @@ Thanks to:
...
@@ -93,6 +93,11 @@ Thanks to:
#pragma warning(disable: 4995)
#pragma warning(disable: 4995)
#endif
#endif
#ifdef __MINGW32__
// MinGW does not understand COM interfaces
#pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
#endif
#include <tchar.h>
#include <tchar.h>
#include <stdlib.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdio.h>
...
...
platforms/android/build_sdk.py
View file @
9c3f9578
...
@@ -10,16 +10,16 @@ class Fail(Exception):
...
@@ -10,16 +10,16 @@ class Fail(Exception):
def
__str__
(
self
):
def
__str__
(
self
):
return
"ERROR"
if
self
.
t
is
None
else
self
.
t
return
"ERROR"
if
self
.
t
is
None
else
self
.
t
def
execute
(
cmd
):
def
execute
(
cmd
,
shell
=
False
):
try
:
try
:
log
.
info
(
"Executing:
%
s"
%
cmd
)
log
.
info
(
"Executing:
%
s"
%
cmd
)
retcode
=
subprocess
.
call
(
cmd
)
retcode
=
subprocess
.
call
(
cmd
,
shell
=
shell
)
if
retcode
<
0
:
if
retcode
<
0
:
raise
Fail
(
"Child was terminated by signal:"
%
s
-
retcode
)
raise
Fail
(
"Child was terminated by signal:"
%
s
-
retcode
)
elif
retcode
>
0
:
elif
retcode
>
0
:
raise
Fail
(
"Child returned:
%
s"
%
retcode
)
raise
Fail
(
"Child returned:
%
s"
%
retcode
)
except
OSError
as
e
:
except
OSError
as
e
:
raise
Fail
(
"Execution failed:
%
s"
%
e
)
raise
Fail
(
"Execution failed:
%
d /
%
s"
%
(
e
.
errno
,
e
.
strerror
)
)
def
rm_one
(
d
):
def
rm_one
(
d
):
d
=
os
.
path
.
abspath
(
d
)
d
=
os
.
path
.
abspath
(
d
)
...
@@ -169,6 +169,7 @@ class Builder:
...
@@ -169,6 +169,7 @@ class Builder:
for
ver
,
d
in
self
.
extra_packs
+
[(
"3.0.0"
,
os
.
path
.
join
(
self
.
libdest
,
"lib"
))]:
for
ver
,
d
in
self
.
extra_packs
+
[(
"3.0.0"
,
os
.
path
.
join
(
self
.
libdest
,
"lib"
))]:
r
=
ET
.
Element
(
"library"
,
attrib
=
{
"version"
:
ver
})
r
=
ET
.
Element
(
"library"
,
attrib
=
{
"version"
:
ver
})
log
.
info
(
"Adding libraries from
%
s"
,
d
)
log
.
info
(
"Adding libraries from
%
s"
,
d
)
for
f
in
glob
.
glob
(
os
.
path
.
join
(
d
,
abi
.
name
,
"*.so"
)):
for
f
in
glob
.
glob
(
os
.
path
.
join
(
d
,
abi
.
name
,
"*.so"
)):
log
.
info
(
"Copy file:
%
s"
,
f
)
log
.
info
(
"Copy file:
%
s"
,
f
)
shutil
.
copy2
(
f
,
apklibdest
)
shutil
.
copy2
(
f
,
apklibdest
)
...
@@ -176,11 +177,15 @@ class Builder:
...
@@ -176,11 +177,15 @@ class Builder:
continue
continue
log
.
info
(
"Register file:
%
s"
,
os
.
path
.
basename
(
f
))
log
.
info
(
"Register file:
%
s"
,
os
.
path
.
basename
(
f
))
n
=
ET
.
SubElement
(
r
,
"file"
,
attrib
=
{
"name"
:
os
.
path
.
basename
(
f
)})
n
=
ET
.
SubElement
(
r
,
"file"
,
attrib
=
{
"name"
:
os
.
path
.
basename
(
f
)})
xmlname
=
os
.
path
.
join
(
apkxmldest
,
"config
%
s.xml"
%
ver
.
replace
(
"."
,
""
))
log
.
info
(
"Generating XML config:
%
s"
,
xmlname
)
if
len
(
list
(
r
))
>
0
:
ET
.
ElementTree
(
r
)
.
write
(
xmlname
,
encoding
=
"utf-8"
)
xmlname
=
os
.
path
.
join
(
apkxmldest
,
"config
%
s.xml"
%
ver
.
replace
(
"."
,
""
))
log
.
info
(
"Generating XML config:
%
s"
,
xmlname
)
ET
.
ElementTree
(
r
)
.
write
(
xmlname
,
encoding
=
"utf-8"
)
execute
([
"ninja"
,
"opencv_engine"
])
execute
([
"ninja"
,
"opencv_engine"
])
execute
([
"ant"
,
"-f"
,
os
.
path
.
join
(
apkdest
,
"build.xml"
),
"debug"
])
execute
([
"ant"
,
"-f"
,
os
.
path
.
join
(
apkdest
,
"build.xml"
),
"debug"
],
shell
=
(
sys
.
platform
==
'win32'
))
# TODO: Sign apk
# TODO: Sign apk
def
build_javadoc
(
self
):
def
build_javadoc
(
self
):
...
@@ -278,12 +283,13 @@ if __name__ == "__main__":
...
@@ -278,12 +283,13 @@ if __name__ == "__main__":
log
.
info
(
"Detected OpenCV version:
%
s"
,
builder
.
opencv_version
)
log
.
info
(
"Detected OpenCV version:
%
s"
,
builder
.
opencv_version
)
log
.
info
(
"Detected Engine version:
%
s"
,
builder
.
engine_version
)
log
.
info
(
"Detected Engine version:
%
s"
,
builder
.
engine_version
)
for
one
in
args
.
extra_pack
:
if
args
.
extra_pack
:
i
=
one
.
find
(
":"
)
for
one
in
args
.
extra_pack
:
if
i
>
0
and
i
<
len
(
one
)
-
1
:
i
=
one
.
find
(
":"
)
builder
.
add_extra_pack
(
one
[:
i
],
one
[
i
+
1
:])
if
i
>
0
and
i
<
len
(
one
)
-
1
:
else
:
builder
.
add_extra_pack
(
one
[:
i
],
one
[
i
+
1
:])
raise
Fail
(
"Bad extra pack provided:
%
s, should be in form '<version>:<path-to-native-libs>'"
%
one
)
else
:
raise
Fail
(
"Bad extra pack provided:
%
s, should be in form '<version>:<path-to-native-libs>'"
%
one
)
engines
=
[]
engines
=
[]
for
i
,
abi
in
enumerate
(
ABIs
):
for
i
,
abi
in
enumerate
(
ABIs
):
...
...
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