Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d3bccd7

Browse files
authored
Merge pull request #24199 from Kumataro:fixlibTiffSite
imgcodecs: fix libtiff URL in opencv source code
2 parents c53b3c5 + 4b1a4bd commit d3bccd7

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

3rdparty/readme.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ libspng Portable Network Graphics library.
3939
libtiff Tag Image File Format (TIFF) Software
4040
Copyright (c) 1988-1997 Sam Leffler
4141
Copyright (c) 1991-1997 Silicon Graphics, Inc.
42-
See libtiff home page http://www.libtiff.org/
42+
See libtiff home page #1 http://www.simplesystems.org/libtiff/
43+
#2 https://libtiff.gitlab.io/libtiff/
44+
#3 http://libtiff.maptools.org/
4345
for details and links to the source code
4446

4547
WITH_TIFF CMake option must be ON to add libtiff & zlib support to imgcodecs.

modules/imgcodecs/src/grfmt_tiff.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ bool TiffDecoder::readHeader()
245245
if (!tif)
246246
{
247247
// TIFFOpen() mode flags are different to fopen(). A 'b' in mode "rb" has no effect when reading.
248-
// http://www.remotesensing.org/libtiff/man/TIFFOpen.3tiff.html
248+
// http://www.simplesystems.org/libtiff/functions/TIFFOpen.html
249249
if ( !m_buf.empty() )
250250
{
251251
m_buf_pos = 0;
@@ -1118,7 +1118,7 @@ class TiffEncoderBufHelper
11181118
TIFF* open ()
11191119
{
11201120
// do NOT put "wb" as the mode, because the b means "big endian" mode, not "binary" mode.
1121-
// http://www.remotesensing.org/libtiff/man/TIFFOpen.3tiff.html
1121+
// http://www.simplesystems.org/libtiff/functions/TIFFOpen.html
11221122
return TIFFClientOpen( "", "w", reinterpret_cast<thandle_t>(this), &TiffEncoderBufHelper::read,
11231123
&TiffEncoderBufHelper::write, &TiffEncoderBufHelper::seek,
11241124
&TiffEncoderBufHelper::close, &TiffEncoderBufHelper::size,
@@ -1200,7 +1200,7 @@ static bool readParam(const std::vector<int>& params, int key, int& value)
12001200
bool TiffEncoder::writeLibTiff( const std::vector<Mat>& img_vec, const std::vector<int>& params)
12011201
{
12021202
// do NOT put "wb" as the mode, because the b means "big endian" mode, not "binary" mode.
1203-
// http://www.remotesensing.org/libtiff/man/TIFFOpen.3tiff.html
1203+
// http://www.simplesystems.org/libtiff/functions/TIFFOpen.html
12041204
TIFF* tif = NULL;
12051205

12061206
TiffEncoderBufHelper buf_helper(m_buf);

0 commit comments

Comments
 (0)