Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
江流儿的夏天
opencv
提交
4b1a4bdb
O
opencv
项目概览
江流儿的夏天
/
opencv
与 Fork 源项目一致
Fork自
OpenCV / opencv
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
opencv
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
4b1a4bdb
编写于
8月 27, 2023
作者:
K
Kumataro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
imgcodecs: fix libtiff homepage
上级
588ddf1b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
4 deletion
+6
-4
3rdparty/readme.txt
3rdparty/readme.txt
+3
-1
modules/imgcodecs/src/grfmt_tiff.cpp
modules/imgcodecs/src/grfmt_tiff.cpp
+3
-3
未找到文件。
3rdparty/readme.txt
浏览文件 @
4b1a4bdb
...
...
@@ -39,7 +39,9 @@ libspng Portable Network Graphics library.
libtiff Tag Image File Format (TIFF) Software
Copyright (c) 1988-1997 Sam Leffler
Copyright (c) 1991-1997 Silicon Graphics, Inc.
See libtiff home page http://www.libtiff.org/
See libtiff home page #1 http://www.simplesystems.org/libtiff/
#2 https://libtiff.gitlab.io/libtiff/
#3 http://libtiff.maptools.org/
for details and links to the source code
WITH_TIFF CMake option must be ON to add libtiff & zlib support to imgcodecs.
...
...
modules/imgcodecs/src/grfmt_tiff.cpp
浏览文件 @
4b1a4bdb
...
...
@@ -245,7 +245,7 @@ bool TiffDecoder::readHeader()
if
(
!
tif
)
{
// TIFFOpen() mode flags are different to fopen(). A 'b' in mode "rb" has no effect when reading.
// http://www.
remotesensing.org/libtiff/man/TIFFOpen.3tiff
.html
// http://www.
simplesystems.org/libtiff/functions/TIFFOpen
.html
if
(
!
m_buf
.
empty
()
)
{
m_buf_pos
=
0
;
...
...
@@ -1118,7 +1118,7 @@ public:
TIFF
*
open
()
{
// do NOT put "wb" as the mode, because the b means "big endian" mode, not "binary" mode.
// http://www.
remotesensing.org/libtiff/man/TIFFOpen.3tiff
.html
// http://www.
simplesystems.org/libtiff/functions/TIFFOpen
.html
return
TIFFClientOpen
(
""
,
"w"
,
reinterpret_cast
<
thandle_t
>
(
this
),
&
TiffEncoderBufHelper
::
read
,
&
TiffEncoderBufHelper
::
write
,
&
TiffEncoderBufHelper
::
seek
,
&
TiffEncoderBufHelper
::
close
,
&
TiffEncoderBufHelper
::
size
,
...
...
@@ -1200,7 +1200,7 @@ static bool readParam(const std::vector<int>& params, int key, int& value)
bool
TiffEncoder
::
writeLibTiff
(
const
std
::
vector
<
Mat
>&
img_vec
,
const
std
::
vector
<
int
>&
params
)
{
// do NOT put "wb" as the mode, because the b means "big endian" mode, not "binary" mode.
// http://www.
remotesensing.org/libtiff/man/TIFFOpen.3tiff
.html
// http://www.
simplesystems.org/libtiff/functions/TIFFOpen
.html
TIFF
*
tif
=
NULL
;
TiffEncoderBufHelper
buf_helper
(
m_buf
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录