Skip to content

Commit 3f762db

Browse files
committed
Merge branch 'update-vxl-20241227'
9e62486 Merge branch 'upstream-VXL' into update-vxl-20241227 a0c6ee3 VXL 2024-12-27 (b852f514)
2 parents 569ede6 + 9e62486 commit 3f762db

File tree

499 files changed

+20732
-13005
lines changed

Some content is hidden

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

499 files changed

+20732
-13005
lines changed

Modules/ThirdParty/VNL/src/vxl/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
cmake_minimum_required(VERSION 3.16.3)
1717
if(CMAKE_VERSION VERSION_LESS 3.12.0)
1818
cmake_policy(VERSION ${CMAKE_VERSION})
19-
else()
20-
cmake_policy(VERSION 3.10.2...3.20.3)
2119
endif()
2220

2321
if(NOT CMAKE_CXX_STANDARD)
@@ -67,7 +65,7 @@ foreach(p
6765
endforeach()
6866

6967
project(VXL #Project name must be all caps to have properly generated VXL_VERSION_* variables
70-
VERSION 5.3.0.0 # defines #MAJOR,MINOR,PATCH,TWEAK}
68+
VERSION 5.5.1.0 # defines #MAJOR,MINOR,PATCH,TWEAK}
7169
DESCRIPTION "A multi-platform collection of C++ software libraries for Computer Vision and Image Understanding."
7270
LANGUAGES CXX C)
7371

Modules/ThirdParty/VNL/src/vxl/config/cmake/Modules/FindOpenJPEG2.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,3 @@ else()
7272
endif ()
7373
endif()
7474
endif()
75-

Modules/ThirdParty/VNL/src/vxl/config/cmake/Modules/NewCMake/FindDC1394.cmake

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,3 @@ if(APPLE AND DC1394_FOUND)
2626
"-framework CoreServices"
2727
"-framework IOKit" )
2828
endif()
29-
30-
31-
32-
33-

Modules/ThirdParty/VNL/src/vxl/config/cmake/Modules/NewCMake/FindGEOTIFF.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,3 @@ if(GEOTIFF_INCLUDE_DIR)
3030
set( GEOTIFF_LIBRARIES ${GEOTIFF_LIBRARY} )
3131
endif()
3232
endif()
33-

Modules/ThirdParty/VNL/src/vxl/config/cmake/Modules/NewCMake/FindSIMVoleon.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,3 @@ endif()
7272
if(SIMVOLEON_LIBRARY)
7373
set( SIMVOLEON_FOUND "YES" )
7474
endif()
75-

Modules/ThirdParty/VNL/src/vxl/config/cmake/Modules/NewCMake/FindWin32SDK.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,3 @@ if( WIN32 )
5252
)
5353

5454
endif()
55-
56-

Modules/ThirdParty/VNL/src/vxl/config/cmake/Modules/readme.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,3 @@ If you are adding some new functionality to VXL and you need a third party libra
1717
that VXL can depend on this additional library) then you can temporarily add the file to the NewCMake subdirectory.
1818
Please also submit it to CMake at cmake@www.cmake.org, and delete it from the VXL repository when the next
1919
version of CMake is widely available.
20-
21-
Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
#include <iostream>
22

3-
int main()
3+
int
4+
main()
45
{
5-
#if __cplusplus >= VXL_CXX_TEST_VERSION
6-
std::cout << __cplusplus << ">=" << VXL_CXX_TEST_VERSION << std::endl;
7-
return 0;
8-
#else
9-
#error "VERSION TEST FAILED" VXL_CXX_TEST_VERSION
10-
std::cout << __cplusplus << ">=" << VXL_CXX_TEST_VERSION << std::endl;
11-
return 1;
12-
#endif
6+
#if __cplusplus >= VXL_CXX_TEST_VERSION
7+
std::cout << __cplusplus << ">=" << VXL_CXX_TEST_VERSION << std::endl;
8+
return 0;
9+
#else
10+
# error "VERSION TEST FAILED" VXL_CXX_TEST_VERSION
11+
std::cout << __cplusplus << ">=" << VXL_CXX_TEST_VERSION << std::endl;
12+
return 1;
13+
#endif
1314
}

Modules/ThirdParty/VNL/src/vxl/config/cmake/config/vxl_platform_tests.cxx

Lines changed: 83 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,26 @@
33

44
#ifdef VXL_UNISTD_USLEEP_IS_VOID
55
// VXL_UNISTD_USLEEP_IS_VOID is set to 1 if this test fails
6-
#include <unistd.h>
6+
# include <unistd.h>
77

8-
int main() { int x = usleep(0); return x*0; }
8+
int
9+
main()
10+
{
11+
int x = usleep(0);
12+
return x * 0;
13+
}
914
#endif // VXL_UNISTD_USLEEP_IS_VOID
1015
//-------------------------------------
1116
#ifdef VCL_NUMERIC_LIMITS_HAS_INFINITY
1217
// Does vcl_numeric_limits<float>::has_infinity == 1?
1318

1419
// Several versions of gcc (3.0, 3.1, and 3.2) come with a
1520
// numeric_limits that reports that they have no infinity.
16-
#include <limits>
17-
int main() {
18-
return std::numeric_limits<double>::has_infinity &&
19-
std::numeric_limits<float>::has_infinity ? 0 : 1;
21+
# include <limits>
22+
int
23+
main()
24+
{
25+
return std::numeric_limits<double>::has_infinity && std::numeric_limits<float>::has_infinity ? 0 : 1;
2026
}
2127
#endif // VCL_NUMERIC_LIMITS_HAS_INFINITY
2228

@@ -29,30 +35,33 @@ int main() {
2935
// functional. (It can't be cast to a double, for example.)
3036

3137
// CHAR_BIT is the number of bits per char.
32-
#include <climits>
33-
#ifndef CHAR_BIT
34-
# define CHAR_BIT 8
35-
#endif
38+
# include <climits>
39+
# ifndef CHAR_BIT
40+
# define CHAR_BIT 8
41+
# endif
3642

37-
#include "config.h"
43+
# include "config.h"
3844

39-
#if INTEGRAL_TYPE
40-
double cast( THE_TYPE a, unsigned THE_TYPE b, signed THE_TYPE c )
45+
# if INTEGRAL_TYPE
46+
double
47+
cast(THE_TYPE a, unsigned THE_TYPE b, signed THE_TYPE c)
4148
{
42-
return double( a ) + double( b ) + double( c );
49+
return double(a) + double(b) + double(c);
4350
}
44-
#else // INTEGRAL_TYPE
45-
double cast( THE_TYPE a )
51+
# else // INTEGRAL_TYPE
52+
double
53+
cast(THE_TYPE a)
4654
{
47-
return double( a );
55+
return double(a);
4856
}
49-
#endif // INTEGRAL_TYPE
57+
# endif // INTEGRAL_TYPE
5058

5159
// These declarations conflict unless the sizes match.
5260
extern int (*verify_size)[sizeof(THE_TYPE) * CHAR_BIT];
5361
extern int (*verify_size)[THE_SIZE];
5462

55-
int main()
63+
int
64+
main()
5665
{
5766
return 0;
5867
}
@@ -63,18 +72,19 @@ int main()
6372
#ifdef VCL_HAS_LFS
6473

6574
// Return 1 if compiler has #define-switchable Large File Support
66-
#define _LARGEFILE_SOURCE
67-
#define _FILE_OFFSET_BITS 64
75+
# define _LARGEFILE_SOURCE
76+
# define _FILE_OFFSET_BITS 64
6877

69-
#include <fstream>
70-
#include <iostream>
78+
# include <fstream>
79+
# include <iostream>
7180

72-
int main(int argc, char * argv[])
81+
int
82+
main(int argc, char * argv[])
7383
{
74-
if( sizeof(std::streamoff)==8 )
75-
return 0 ;
76-
else
77-
return 1;
84+
if (sizeof(std::streamoff) == 8)
85+
return 0;
86+
else
87+
return 1;
7888
}
7989

8090
#endif // VCL_HAS_LFS
@@ -84,39 +94,50 @@ int main(int argc, char * argv[])
8494
#ifdef VXL_HAS_DBGHELP_H
8595

8696
// This is a Windows header, and needs windows.h included first to make it compile properly.
87-
#include <Windows.h>
88-
#include <DbgHelp.h>
97+
# include <Windows.h>
98+
# include <DbgHelp.h>
8999

90-
int main() { MINIDUMP_EXCEPTION_INFORMATION dummy; return 0; }
100+
int
101+
main()
102+
{
103+
MINIDUMP_EXCEPTION_INFORMATION dummy;
104+
return 0;
105+
}
91106
#endif // VXL_HAS_DBGHELP_H
92107

93108
//-------------------------------------
94109

95110
//-------------------------------------
96111
#ifdef VXL_HAS_WIN_WCHAR_T
97112

98-
#ifdef _WCHAR_T_DEFINED
99-
#include <cwchar>
100-
int main()
113+
# ifdef _WCHAR_T_DEFINED
114+
# include <cwchar>
115+
int
116+
main()
101117
{
102-
wchar_t buf [10];
118+
wchar_t buf[10];
103119
buf[0] = L'1';
104120
buf[1] = L'\0';
105121
return 0;
106122
}
107-
#else
108-
int main() { return 1; }
109-
#endif
123+
# else
124+
int
125+
main()
126+
{
127+
return 1;
128+
}
129+
# endif
110130

111131
#endif
112132

113133
//-------------------------------------
114134

115135
#ifdef VXL_HAS_MM_MALLOC
116-
#include <emmintrin.h>
117-
int main()
136+
# include <emmintrin.h>
137+
int
138+
main()
118139
{
119-
void* x = _mm_malloc(4*sizeof(float),16);
140+
void * x = _mm_malloc(4 * sizeof(float), 16);
120141
_mm_free(x);
121142
return 0;
122143
}
@@ -125,10 +146,11 @@ int main()
125146
//-------------------------------------
126147

127148
#ifdef VXL_HAS_ALIGNED_MALLOC
128-
#include <malloc.h>
129-
int main()
149+
# include <malloc.h>
150+
int
151+
main()
130152
{
131-
void* x = _aligned_malloc(4*sizeof(float),16);
153+
void * x = _aligned_malloc(4 * sizeof(float), 16);
132154
_aligned_free(x);
133155
return 0;
134156
}
@@ -137,10 +159,11 @@ int main()
137159
//-------------------------------------
138160

139161
#ifdef VXL_HAS_MINGW_ALIGNED_MALLOC
140-
#include <malloc.h>
141-
int main()
162+
# include <malloc.h>
163+
int
164+
main()
142165
{
143-
void* x = __mingw_aligned_malloc(4*sizeof(float),16);
166+
void * x = __mingw_aligned_malloc(4 * sizeof(float), 16);
144167
__mingw_aligned_free(x);
145168
return 0;
146169
}
@@ -149,10 +172,11 @@ int main()
149172
//-------------------------------------
150173

151174
#ifdef VXL_HAS_POSIX_MEMALIGN
152-
#include <cstdlib>
153-
int main()
175+
# include <cstdlib>
176+
int
177+
main()
154178
{
155-
void* x = memalign(16,4*sizeof(float));
179+
void * x = memalign(16, 4 * sizeof(float));
156180
free(x);
157181
return 0;
158182
}
@@ -161,18 +185,19 @@ int main()
161185
//-------------------------------------
162186

163187
#if defined(VXL_HAS_SSE2_HARDWARE_SUPPORT) || defined(VXL_SSE2_HARDWARE_SUPPORT_POSSIBLE)
164-
#include <emmintrin.h>
165-
int main()
188+
# include <emmintrin.h>
189+
int
190+
main()
166191
{
167-
//try to do some sse2 calculations
168-
double d_a[] = { 6.75, 3.42 };
169-
double d_b[] = { 2.3, 9.2 };
170-
double res[2] = {0.0};
192+
// try to do some sse2 calculations
193+
double d_a[] = { 6.75, 3.42 };
194+
double d_b[] = { 2.3, 9.2 };
195+
double res[2] = { 0.0 };
171196

172197
__m128d z;
173-
z = _mm_mul_pd(_mm_loadu_pd(d_a),_mm_loadu_pd(d_b));
198+
z = _mm_mul_pd(_mm_loadu_pd(d_a), _mm_loadu_pd(d_b));
174199

175-
_mm_storeu_pd(res,z);
200+
_mm_storeu_pd(res, z);
176201

177202
return 0;
178203
}
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11

2-
void vxl_static_test_function(int i);
2+
void
3+
vxl_static_test_function(int i);
34

4-
void vxl_shared_test_function(int i)
5+
void
6+
vxl_shared_test_function(int i)
57
{
68
vxl_static_test_function(i);
79
}

0 commit comments

Comments
 (0)