mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-30 01:27:26 +08:00
1 parent
17a9a03361
commit
c4b81155a9
19 files changed
+410
-142
No files matched your search
+3
-3
@@ -25,6 +25,9 @@ import (
|
||||
"io"
|
||||
)
|
||||
|
||||
// errTIFFRandomAccess 表示目录链需要回读,仅流式输入需重新打开资源
|
||||
var errTIFFRandomAccess = errors.New("TIFF directory requires random access")
|
||||
|
||||
// tiffImageLayout 保存单页TIFF的尺寸、方向、采样及压缩参数
|
||||
type tiffImageLayout struct {
|
||||
width, height int
|
||||
@@ -39,9 +42,6 @@ type tiffImageLayout struct {
|
||||
t4, t6 uint32
|
||||
}
|
||||
|
||||
// errTIFFRandomAccess 表示目录链需要回读,仅流式输入需重新打开资源
|
||||
var errTIFFRandomAccess = errors.New("TIFF directory requires random access")
|
||||
|
||||
// tiffDirectoryInput 只替换解码视图中的首目录偏移,不复制或改写原始资源
|
||||
type tiffDirectoryInput struct {
|
||||
reader *bytes.Reader
|
||||
|
||||
Reference in new issue
Block a user