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
641c2ba8
Commit
641c2ba8
authored
Jul 16, 2010
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repaired build on mac after libtiff update
parent
396aa53e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
41 additions
and
8 deletions
+41
-8
tiffconf.h
3rdparty/include/tiffconf.h
+8
-0
tiffio.h
3rdparty/include/tiffio.h
+1
-1
tif_config.h
3rdparty/libtiff/tif_config.h
+8
-1
tif_dirinfo.c
3rdparty/libtiff/tif_dirinfo.c
+16
-0
tif_unix.c
3rdparty/libtiff/tif_unix.c
+0
-4
highguitest.cpp
tests/cv/src/highguitest.cpp
+8
-2
No files found.
3rdparty/include/tiffconf.h
View file @
641c2ba8
...
@@ -26,13 +26,21 @@
...
@@ -26,13 +26,21 @@
#define TIFF_INT64_FORMAT "%I64d"
#define TIFF_INT64_FORMAT "%I64d"
/* Signed 64-bit type */
/* Signed 64-bit type */
#ifdef _MSC_VER
#define TIFF_INT64_T signed __int64
#define TIFF_INT64_T signed __int64
#else
#define TIFF_INT64_T long long
#endif
/* Unsigned 64-bit type formatter */
/* Unsigned 64-bit type formatter */
#define TIFF_UINT64_FORMAT "%I64u"
#define TIFF_UINT64_FORMAT "%I64u"
/* Unsigned 64-bit type */
/* Unsigned 64-bit type */
#ifdef _MSC_VER
#define TIFF_UINT64_T unsigned __int64
#define TIFF_UINT64_T unsigned __int64
#else
#define TIFF_UINT64_T unsigned long long
#endif
/* Compatibility stuff. */
/* Compatibility stuff. */
...
...
3rdparty/include/tiffio.h
View file @
641c2ba8
...
@@ -64,7 +64,7 @@ typedef uint16 tsample_t; /* sample number */
...
@@ -64,7 +64,7 @@ typedef uint16 tsample_t; /* sample number */
typedef
uint32
tstrile_t
;
/* strip or tile number */
typedef
uint32
tstrile_t
;
/* strip or tile number */
typedef
tstrile_t
tstrip_t
;
/* strip number */
typedef
tstrile_t
tstrip_t
;
/* strip number */
typedef
tstrile_t
ttile_t
;
/* tile number */
typedef
tstrile_t
ttile_t
;
/* tile number */
typedef
int32
tsize_t
;
/* i/o size in bytes */
typedef
size_t
tsize_t
;
/* i/o size in bytes */
typedef
void
*
tdata_t
;
/* image data ref */
typedef
void
*
tdata_t
;
/* image data ref */
typedef
uint32
toff_t
;
/* file offset */
typedef
uint32
toff_t
;
/* file offset */
...
...
3rdparty/libtiff/tif_config.h
View file @
641c2ba8
...
@@ -32,11 +32,18 @@
...
@@ -32,11 +32,18 @@
/* The size of a `long', as computed by sizeof. */
/* The size of a `long', as computed by sizeof. */
#define SIZEOF_LONG 4
#define SIZEOF_LONG 4
#ifdef _MSC_VER
/* Signed 64-bit type */
/* Signed 64-bit type */
#define TIFF_INT64_T signed __int64
#define TIFF_INT64_T signed __int64
/* Unsigned 64-bit type */
/* Unsigned 64-bit type */
#define TIFF_UINT64_T unsigned __int64
#define TIFF_UINT64_T unsigned __int64
#else
/* Signed 64-bit type */
#define TIFF_INT64_T long long
/* Signed 64-bit type */
#define TIFF_UINT64_T unsigned long long
#endif
/* Set the native cpu bit order */
/* Set the native cpu bit order */
#define HOST_FILLORDER FILLORDER_LSB2MSB
#define HOST_FILLORDER FILLORDER_LSB2MSB
...
...
3rdparty/libtiff/tif_dirinfo.c
View file @
641c2ba8
...
@@ -771,6 +771,22 @@ _TIFFFindFieldInfo(TIFF* tif, ttag_t tag, TIFFDataType dt)
...
@@ -771,6 +771,22 @@ _TIFFFindFieldInfo(TIFF* tif, ttag_t tag, TIFFDataType dt)
return
tif
->
tif_foundfield
=
(
ret
?
*
ret
:
NULL
);
return
tif
->
tif_foundfield
=
(
ret
?
*
ret
:
NULL
);
}
}
#undef lfind
static
void
*
lfind
(
const
void
*
key
,
const
void
*
base
,
size_t
*
nmemb
,
size_t
size
,
int
(
*
compar
)(
const
void
*
,
const
void
*
))
{
char
*
element
,
*
end
;
end
=
(
char
*
)
base
+
*
nmemb
*
size
;
for
(
element
=
(
char
*
)
base
;
element
<
end
;
element
+=
size
)
if
(
!
compar
(
element
,
key
))
/* key found */
return
element
;
return
NULL
;
}
const
TIFFFieldInfo
*
const
TIFFFieldInfo
*
_TIFFFindFieldInfoByName
(
TIFF
*
tif
,
const
char
*
field_name
,
TIFFDataType
dt
)
_TIFFFindFieldInfoByName
(
TIFF
*
tif
,
const
char
*
field_name
,
TIFFDataType
dt
)
{
{
...
...
3rdparty/libtiff/tif_unix.c
View file @
641c2ba8
...
@@ -46,10 +46,6 @@
...
@@ -46,10 +46,6 @@
# include <fcntl.h>
# include <fcntl.h>
#endif
#endif
#ifdef HAVE_IO_H
# include <io.h>
#endif
#include "tiffiop.h"
#include "tiffiop.h"
static
tsize_t
static
tsize_t
...
...
tests/cv/src/highguitest.cpp
View file @
641c2ba8
...
@@ -66,8 +66,14 @@ using namespace std;
...
@@ -66,8 +66,14 @@ using namespace std;
struct
TempDirHolder
struct
TempDirHolder
{
{
const
string
temp_folder
;
string
temp_folder
;
TempDirHolder
()
{
char
*
p
=
tmpnam
(
0
);
if
(
p
[
0
]
==
'\\'
)
p
++
;
temp_folder
=
p
;
exec_cmd
(
"mkdir "
+
temp_folder
);
}
TempDirHolder
()
{
char
*
p
=
tmpnam
(
0
);
if
(
p
[
0
]
==
'\\'
)
p
++
;
temp_folder
=
string
(
p
);
exec_cmd
(
"mkdir "
+
temp_folder
);
}
~
TempDirHolder
()
{
exec_cmd
(
"rm -rf "
+
temp_folder
);
}
~
TempDirHolder
()
{
exec_cmd
(
"rm -rf "
+
temp_folder
);
}
static
void
exec_cmd
(
const
string
&
cmd
)
{
marker
(
cmd
);
int
res
=
system
(
cmd
.
c_str
()
);
(
void
)
res
;
}
static
void
exec_cmd
(
const
string
&
cmd
)
{
marker
(
cmd
);
int
res
=
system
(
cmd
.
c_str
()
);
(
void
)
res
;
}
...
...
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