Skip to content
This repository was archived by the owner on Mar 22, 2020. It is now read-only.

Commit 0ed2a4a

Browse files
committed
Merge remote-tracking branch 'hunter/2.4' into hunter-2.4
Conflicts: cmake/OpenCVModule.cmake
2 parents 7ff75ab + 163771b commit 0ed2a4a

File tree

546 files changed

+405091
-6050
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

546 files changed

+405091
-6050
lines changed

3rdparty/ffmpeg/ffmpeg_version.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ set(HAVE_FFMPEG_CODEC 1)
33
set(HAVE_FFMPEG_FORMAT 1)
44
set(HAVE_FFMPEG_UTIL 1)
55
set(HAVE_FFMPEG_SWSCALE 1)
6+
set(HAVE_FFMPEG_RESAMPLE 0)
67
set(HAVE_GENTOO_FFMPEG 1)
78

89
set(ALIASOF_libavcodec_VERSION 55.18.102)
910
set(ALIASOF_libavformat_VERSION 55.12.100)
1011
set(ALIASOF_libavutil_VERSION 52.38.100)
1112
set(ALIASOF_libswscale_VERSION 2.3.100)
13+
set(ALIASOF_libavresample_VERSION 1.0.1)

3rdparty/libjpeg/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if(CMAKE_COMPILER_IS_GNUCXX)
2626
endif()
2727

2828
ocv_warnings_disable(CMAKE_C_FLAGS -Wcast-align -Wshadow -Wunused)
29-
ocv_warnings_disable(CMAKE_C_FLAGS -Wunused-parameter) # clang
29+
ocv_warnings_disable(CMAKE_C_FLAGS -Wunused-parameter -Wshift-negative-value) # clang
3030

3131
set_target_properties(${JPEG_LIBRARY}
3232
PROPERTIES OUTPUT_NAME ${JPEG_LIBRARY}

3rdparty/libpng/CMakeLists.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# ----------------------------------------------------------------------------
55

6-
if(NEON)
6+
if(ARM AND ENABLE_NEON AND NOT AARCH64)
77
project(${PNG_LIBRARY} ASM)
88
else()
99
project(${PNG_LIBRARY})
@@ -14,9 +14,11 @@ ocv_include_directories("${CMAKE_CURRENT_SOURCE_DIR}" ${ZLIB_INCLUDE_DIR})
1414
file(GLOB lib_srcs *.c)
1515
file(GLOB lib_hdrs *.h)
1616

17-
if(ARM AND NEON)
18-
list(APPEND lib_srcs arm/filter_neon.S)
19-
add_definitions(-DPNG_ARM_NEON)
17+
if(ARM AND ENABLE_NEON AND NOT AARCH64)
18+
list(APPEND lib_srcs arm/filter_neon.S arm/arm_init.c)
19+
add_definitions(-DPNG_ARM_NEON_OPT=2)
20+
else()
21+
add_definitions(-DPNG_ARM_NEON_OPT=0)
2022
endif()
2123

2224
# ----------------------------------------------------------------------------------

3rdparty/libpng/LICENSE

Lines changed: 42 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,16 @@ this sentence.
1010

1111
This code is released under the libpng license.
1212

13-
libpng versions 1.2.6, August 15, 2004, through 1.5.12, July 11, 2012, are
14-
Copyright (c) 2004, 2006-2012 Glenn Randers-Pehrson, and are
15-
distributed according to the same disclaimer and license as libpng-1.2.5
16-
with the following individual added to the list of Contributing Authors
17-
18-
Cosmin Truta
19-
20-
libpng versions 1.0.7, July 1, 2000, through 1.2.5 - October 3, 2002, are
21-
Copyright (c) 2000-2002 Glenn Randers-Pehrson, and are
22-
distributed according to the same disclaimer and license as libpng-1.0.6
23-
with the following individuals added to the list of Contributing Authors
13+
libpng versions 1.0.7, July 1, 2000, through 1.5.27, May 26, 2016, are
14+
Copyright (c) 2000-2002, 2004, 2006-2016 Glenn Randers-Pehrson, are
15+
derived from libpng-1.0.6, and are distributed according to the same
16+
disclaimer and license as libpng-1.0.6 with the following individuals
17+
added to the list of Contributing Authors:
2418

2519
Simon-Pierre Cadieux
2620
Eric S. Raymond
21+
Mans Rullgard
22+
Cosmin Truta
2723
Gilles Vollant
2824

2925
and with the following additions to the disclaimer:
@@ -36,18 +32,20 @@ and with the following additions to the disclaimer:
3632
the user.
3733

3834
libpng versions 0.97, January 1998, through 1.0.6, March 20, 2000, are
39-
Copyright (c) 1998, 1999 Glenn Randers-Pehrson, and are
40-
distributed according to the same disclaimer and license as libpng-0.96,
41-
with the following individuals added to the list of Contributing Authors:
35+
Copyright (c) 1998-2000 Glenn Randers-Pehrson, are derived from
36+
libpng-0.96, and are distributed according to the same disclaimer and
37+
license as libpng-0.96, with the following individuals added to the list
38+
of Contributing Authors:
4239

4340
Tom Lane
4441
Glenn Randers-Pehrson
4542
Willem van Schaik
4643

4744
libpng versions 0.89, June 1996, through 0.96, May 1997, are
48-
Copyright (c) 1996, 1997 Andreas Dilger
49-
Distributed according to the same disclaimer and license as libpng-0.88,
50-
with the following individuals added to the list of Contributing Authors:
45+
Copyright (c) 1996-1997 Andreas Dilger, are derived from libpng-0.88,
46+
and are distributed according to the same disclaimer and license as
47+
libpng-0.88, with the following individuals added to the list of
48+
Contributing Authors:
5149

5250
John Bowler
5351
Kevin Bracey
@@ -57,7 +55,7 @@ with the following individuals added to the list of Contributing Authors:
5755
Tom Tanner
5856

5957
libpng versions 0.5, May 1995, through 0.88, January 1996, are
60-
Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.
58+
Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.
6159

6260
For the purposes of this copyright and license, "Contributing Authors"
6361
is defined as the following set of individuals:
@@ -80,32 +78,45 @@ Permission is hereby granted to use, copy, modify, and distribute this
8078
source code, or portions hereof, for any purpose, without fee, subject
8179
to the following restrictions:
8280

83-
1. The origin of this source code must not be misrepresented.
81+
1. The origin of this source code must not be misrepresented.
8482

85-
2. Altered versions must be plainly marked as such and must not
86-
be misrepresented as being the original source.
83+
2. Altered versions must be plainly marked as such and must not
84+
be misrepresented as being the original source.
8785

88-
3. This Copyright notice may not be removed or altered from any
89-
source or altered source distribution.
86+
3. This Copyright notice may not be removed or altered from any
87+
source or altered source distribution.
9088

9189
The Contributing Authors and Group 42, Inc. specifically permit, without
9290
fee, and encourage the use of this source code as a component to
9391
supporting the PNG file format in commercial products. If you use this
9492
source code in a product, acknowledgment is not required but would be
9593
appreciated.
9694

95+
END OF COPYRIGHT NOTICE, DISCLAIMER, and LICENSE.
96+
97+
TRADEMARK:
98+
99+
The name "libpng" has not been registered by the Copyright owner
100+
as a trademark in any jurisdiction. However, because libpng has
101+
been distributed and maintained world-wide, continually since 1995,
102+
the Copyright owner claims "common-law trademark protection" in any
103+
jurisdiction where common-law trademark is recognized.
97104

98-
A "png_get_copyright" function is available, for convenient use in "about"
99-
boxes and the like:
105+
OSI CERTIFICATION:
100106

101-
printf("%s",png_get_copyright(NULL));
107+
Libpng is OSI Certified Open Source Software. OSI Certified Open Source is
108+
a certification mark of the Open Source Initiative. OSI has not addressed
109+
the additional disclaimers inserted at version 1.0.7.
102110

103-
Also, the PNG logo (in PNG format, of course) is supplied in the
104-
files "pngbar.png" and "pngbar.jpg (88x31) and "pngnow.png" (98x31).
111+
EXPORT CONTROL:
105112

106-
Libpng is OSI Certified Open Source Software. OSI Certified Open Source is a
107-
certification mark of the Open Source Initiative.
113+
The Copyright owner believes that the Export Control Classification
114+
Number (ECCN) for libpng is EAR99, which means not subject to export
115+
controls or International Traffic in Arms Regulations (ITAR) because
116+
it is open source, publicly available software, that does not contain
117+
any encryption software. See the EAR, paragraphs 734.3(b)(3) and
118+
734.7(b).
108119

109120
Glenn Randers-Pehrson
110121
glennrp at users.sourceforge.net
111-
July 11, 2012
122+
May 26, 2016

3rdparty/libpng/README

Lines changed: 36 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
README for libpng version 1.5.12 - July 11, 2012 (shared library 15.0)
1+
README for libpng version 1.5.27 - May 26, 2016 (shared library 15.0)
22
See the note about version numbers near the top of png.h
33

44
See INSTALL for instructions on how to install libpng.
55

6-
Libpng comes in several distribution formats. Get libpng-*.tar.gz,
7-
libpng-*.tar.xz or libpng-*.tar.bz2 if you want UNIX-style line endings
8-
in the text files, or lpng*.zip if you want DOS-style line endings.
6+
Libpng comes in several distribution formats. Get libpng-*.tar.gz or
7+
libpng-*.tar.xz or if you want UNIX-style line endings in the text files,
8+
or lpng*.7z or lpng*.zip if you want DOS-style line endings.
99

1010
Version 0.89 was the first official release of libpng. Don't let the
1111
fact that it's the first release fool you. The libpng library has been in
@@ -23,18 +23,25 @@ earlier versions if you are using a shared library. The type of the
2323
png_uint_32, which will affect shared-library applications that use
2424
this function.
2525

26-
To avoid problems with changes to the internals of png_info_struct,
26+
To avoid problems with changes to the internals of the png info_struct,
2727
new APIs have been made available in 0.95 to avoid direct application
2828
access to info_ptr. These functions are the png_set_<chunk> and
2929
png_get_<chunk> functions. These functions should be used when
3030
accessing/storing the info_struct data, rather than manipulating it
3131
directly, to avoid such problems in the future.
3232

33-
It is important to note that the APIs do not make current programs
33+
It is important to note that the APIs did not make current programs
3434
that access the info struct directly incompatible with the new
35-
library. However, it is strongly suggested that new programs use
36-
the new APIs (as shown in example.c and pngtest.c), and older programs
37-
be converted to the new format, to facilitate upgrades in the future.
35+
library, through libpng-1.2.x. In libpng-1.4.x, which was meant to
36+
be a transitional release, members of the png_struct and the
37+
info_struct can still be accessed, but the compiler will issue a
38+
warning about deprecated usage. Since libpng-1.5.0, direct access
39+
to these structs is not allowed, and the definitions of the structs
40+
reside in private pngstruct.h and pnginfo.h header files that are not
41+
accessible to applications. It is strongly suggested that new
42+
programs use the new APIs (as shown in example.c and pngtest.c), and
43+
older programs be converted to the new format, to facilitate upgrades
44+
in the future.
3845
****
3946

4047
Additions since 0.90 include the ability to compile libpng as a
@@ -77,17 +84,21 @@ compression library that is useful for more things than just PNG files.
7784
You can use zlib as a drop-in replacement for fread() and fwrite() if
7885
you are so inclined.
7986

80-
zlib should be available at the same place that libpng is, or at.
81-
ftp://ftp.info-zip.org/pub/infozip/zlib
87+
zlib should be available at the same place that libpng is, or at zlib.net.
8288

8389
You may also want a copy of the PNG specification. It is available
8490
as an RFC, a W3C Recommendation, and an ISO/IEC Standard. You can find
8591
these at http://www.libpng.org/pub/png/documents/
8692

8793
This code is currently being archived at libpng.sf.net in the
88-
[DOWNLOAD] area, and on CompuServe, Lib 20 (PNG SUPPORT)
89-
at GO GRAPHSUP. If you can't find it in any of those places,
90-
e-mail me, and I'll help you find it.
94+
[DOWNLOAD] area, and at ftp://ftp.simplesystems.org. If you can't find it
95+
in any of those places, e-mail me, and I'll help you find it.
96+
97+
I am not a lawyer, but I believe that the Export Control Classification
98+
Number (ECCN) for libpng is EAR99, which means not subject to export
99+
controls or International Traffic in Arms Regulations (ITAR) because it
100+
is open source, publicly available software, that does not contain any
101+
encryption software. See the EAR, paragraphs 734.3(b)(3) and 734.7(b).
91102

92103
If you have any code changes, requests, problems, etc., please e-mail
93104
them to me. Also, I'd appreciate any make files or project files,
@@ -105,7 +116,7 @@ based in a large way on Guy's and Andreas' earlier work), and the PNG
105116
development group.
106117

107118
Send comments/corrections/commendations to png-mng-implement at
108-
lists.sourceforge.net (subscription required; visit
119+
lists.sourceforge.net (subscription required; visit
109120
https://lists.sourceforge.net/lists/listinfo/png-mng-implement
110121
to subscribe) or to glennrp at users.sourceforge.net
111122

@@ -123,7 +134,7 @@ and ...". If in doubt, send questions to me. I'll bounce them
123134
to others, if necessary.
124135

125136
Please do not send suggestions on how to change PNG. We have
126-
been discussing PNG for sixteen years now, and it is official and
137+
been discussing PNG for twenty years now, and it is official and
127138
finished. If you have suggestions for libpng, however, I'll
128139
gladly listen. Even if your suggestion is not used immediately,
129140
it may be used later.
@@ -167,23 +178,23 @@ Files in this distribution:
167178
pngwrite.c => High-level write functions
168179
pngwtran.c => Write data transformations
169180
pngwutil.c => Write utility functions
181+
arm => Contains optimized code for the ARM platform
170182
contrib => Contributions
171183
gregbook => source code for PNG reading and writing, from
172184
Greg Roelofs' "PNG: The Definitive Guide",
173185
O'Reilly, 1999
174-
msvctest => Builds and runs pngtest using a MSVC workspace
175-
pngminus => Simple pnm2png and png2pnm programs
176-
pngsuite => Test images
177-
visupng => Contains a MSVC workspace for VisualPng
186+
libtests => Test programs
187+
pngminim => Minimal decoder, encoder, and progressive decoder
188+
programs demonstrating use of pngusr.dfa
189+
pngminus => Simple pnm2png and png2pnm programs
190+
pngsuite => Test images
191+
visupng => Contains a MSVC workspace for VisualPng
178192
projects => Contains project files and workspaces for
179193
building a DLL
180-
cbuilder5 => Contains a Borland workspace for building
181-
libpng and zlib
182-
visualc6 => Contains a Microsoft Visual C++ (MSVC)
183-
workspace for building libpng and zlib
194+
owatcom => Contains a WATCOM project for building libpng
184195
visualc71 => Contains a Microsoft Visual C++ (MSVC)
185196
workspace for building libpng and zlib
186-
xcode => Contains an Apple xcode
197+
vstudio => Contains a Microsoft Visual C++ (MSVC)
187198
workspace for building libpng and zlib
188199
scripts => Directory containing scripts for building libpng:
189200
(see scripts/README.txt for the list of scripts)

0 commit comments

Comments
 (0)