Skip to content

Commit 569ede6

Browse files
committed
Revert "VXL 2024-12-27 (b852f514)"
Revert commit a1ed62f (VXL 2024-12-27 (b852f514), 2024-12-30), which did not preserve the intended history structure. Record this as a merge from its parent so `git blame` can see the original history of the restored content.
2 parents 2fd36ab + 74296d2 commit 569ede6

File tree

499 files changed

+13005
-20732
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

+13005
-20732
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
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)
1921
endif()
2022

2123
if(NOT CMAKE_CXX_STANDARD)
@@ -65,7 +67,7 @@ foreach(p
6567
endforeach()
6668

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

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

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

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,8 @@ 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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ 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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,4 @@ 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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,5 @@ if( WIN32 )
5252
)
5353

5454
endif()
55+
56+

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ 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: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
#include <iostream>
22

3-
int
4-
main()
3+
int main()
54
{
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
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
1413
}

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

Lines changed: 58 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,20 @@
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
9-
main()
10-
{
11-
int x = usleep(0);
12-
return x * 0;
13-
}
8+
int main() { int x = usleep(0); return x*0; }
149
#endif // VXL_UNISTD_USLEEP_IS_VOID
1510
//-------------------------------------
1611
#ifdef VCL_NUMERIC_LIMITS_HAS_INFINITY
1712
// Does vcl_numeric_limits<float>::has_infinity == 1?
1813

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

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

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

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

45-
# if INTEGRAL_TYPE
46-
double
47-
cast(THE_TYPE a, unsigned THE_TYPE b, signed THE_TYPE c)
39+
#if INTEGRAL_TYPE
40+
double cast( THE_TYPE a, unsigned THE_TYPE b, signed THE_TYPE c )
4841
{
49-
return double(a) + double(b) + double(c);
42+
return double( a ) + double( b ) + double( c );
5043
}
51-
# else // INTEGRAL_TYPE
52-
double
53-
cast(THE_TYPE a)
44+
#else // INTEGRAL_TYPE
45+
double cast( THE_TYPE a )
5446
{
55-
return double(a);
47+
return double( a );
5648
}
57-
# endif // INTEGRAL_TYPE
49+
#endif // INTEGRAL_TYPE
5850

5951
// These declarations conflict unless the sizes match.
6052
extern int (*verify_size)[sizeof(THE_TYPE) * CHAR_BIT];
6153
extern int (*verify_size)[THE_SIZE];
6254

63-
int
64-
main()
55+
int main()
6556
{
6657
return 0;
6758
}
@@ -72,19 +63,18 @@ main()
7263
#ifdef VCL_HAS_LFS
7364

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

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

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

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

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

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

10893
//-------------------------------------
10994

11095
//-------------------------------------
11196
#ifdef VXL_HAS_WIN_WCHAR_T
11297

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

131111
#endif
132112

133113
//-------------------------------------
134114

135115
#ifdef VXL_HAS_MM_MALLOC
136-
# include <emmintrin.h>
137-
int
138-
main()
116+
#include <emmintrin.h>
117+
int main()
139118
{
140-
void * x = _mm_malloc(4 * sizeof(float), 16);
119+
void* x = _mm_malloc(4*sizeof(float),16);
141120
_mm_free(x);
142121
return 0;
143122
}
@@ -146,11 +125,10 @@ main()
146125
//-------------------------------------
147126

148127
#ifdef VXL_HAS_ALIGNED_MALLOC
149-
# include <malloc.h>
150-
int
151-
main()
128+
#include <malloc.h>
129+
int main()
152130
{
153-
void * x = _aligned_malloc(4 * sizeof(float), 16);
131+
void* x = _aligned_malloc(4*sizeof(float),16);
154132
_aligned_free(x);
155133
return 0;
156134
}
@@ -159,11 +137,10 @@ main()
159137
//-------------------------------------
160138

161139
#ifdef VXL_HAS_MINGW_ALIGNED_MALLOC
162-
# include <malloc.h>
163-
int
164-
main()
140+
#include <malloc.h>
141+
int main()
165142
{
166-
void * x = __mingw_aligned_malloc(4 * sizeof(float), 16);
143+
void* x = __mingw_aligned_malloc(4*sizeof(float),16);
167144
__mingw_aligned_free(x);
168145
return 0;
169146
}
@@ -172,11 +149,10 @@ main()
172149
//-------------------------------------
173150

174151
#ifdef VXL_HAS_POSIX_MEMALIGN
175-
# include <cstdlib>
176-
int
177-
main()
152+
#include <cstdlib>
153+
int main()
178154
{
179-
void * x = memalign(16, 4 * sizeof(float));
155+
void* x = memalign(16,4*sizeof(float));
180156
free(x);
181157
return 0;
182158
}
@@ -185,19 +161,18 @@ main()
185161
//-------------------------------------
186162

187163
#if defined(VXL_HAS_SSE2_HARDWARE_SUPPORT) || defined(VXL_SSE2_HARDWARE_SUPPORT_POSSIBLE)
188-
# include <emmintrin.h>
189-
int
190-
main()
164+
#include <emmintrin.h>
165+
int main()
191166
{
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 };
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};
196171

197172
__m128d z;
198-
z = _mm_mul_pd(_mm_loadu_pd(d_a), _mm_loadu_pd(d_b));
173+
z = _mm_mul_pd(_mm_loadu_pd(d_a),_mm_loadu_pd(d_b));
199174

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

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

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

5-
void
6-
vxl_shared_test_function(int i)
4+
void vxl_shared_test_function(int i)
75
{
86
vxl_static_test_function(i);
97
}

0 commit comments

Comments
 (0)