bigtiff

package
v0.0.0-...-4b31f30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2016 License: BSD-3-Clause Imports: 11 Imported by: 12

Documentation

Overview

Package bigtiff implements structures and functionality for working with BigTIFF data structures.

References:

[BIGTIFF]:       http://www.awaresystems.be/imaging/tiff/bigtiff.html
[BIGTIFFDESIGN]: http://www.remotesensing.org/libtiff/bigtiffdesign.html

Index

Constants

View Source
const (
	MagicBigEndian        = "MM\x00\x2B"
	MagicLitEndian        = "II\x2B\x00"
	Version        uint16 = 0x2B
	VersionName    string = "BigTIFF"
)

Variables

View Source
var (
	FTLong8  = tiff.NewFieldType(16, "LONG8", 8, false, reprLong8, rvalLong8, typU64)
	FTSLong8 = tiff.NewFieldType(17, "SLONG8", 8, true, reprSLong8, rvalSLong8, typI64)
	FTIFD8   = tiff.NewFieldType(18, "IFD8", 8, false, reprLong8, rvalLong8, typU64)
)
View Source
var BTFieldTypeSet = tiff.NewFieldTypeSet("BigTIFF")

Functions

func GetTiffFieldPrintFullFieldValue

func GetTiffFieldPrintFullFieldValue() bool

func ParseBigTIFF

func ParseBigTIFF(ordr [2]byte, vers uint16, br tiff.BReader, tsp tiff.TagSpace, ftsp tiff.FieldTypeSpace) (out tiff.TIFF, err error)

func ParseField

func ParseField(br tiff.BReader, tsp tiff.TagSpace, ftsp tiff.FieldTypeSpace) (out tiff.Field, err error)

func ParseIFD

func ParseIFD(br tiff.BReader, offset uint64, tsp tiff.TagSpace, ftsp tiff.FieldTypeSpace) (out tiff.IFD, err error)

func SetTiffFieldPrintFullFieldValue

func SetTiffFieldPrintFullFieldValue(b bool)

func UnmarshalSubIFDs

func UnmarshalSubIFDs(ifd tiff.IFD, br tiff.BReader, tsp tiff.TagSpace, out interface{}) error

Types

type BigTIFF

type BigTIFF struct {
	// contains filtered or unexported fields
}

func (*BigTIFF) FirstOffset

func (t *BigTIFF) FirstOffset() uint64

func (*BigTIFF) IFDs

func (t *BigTIFF) IFDs() []tiff.IFD

func (*BigTIFF) OffsetSize

func (t *BigTIFF) OffsetSize() uint16

func (*BigTIFF) Order

func (t *BigTIFF) Order() string

func (*BigTIFF) R

func (t *BigTIFF) R() tiff.BReader

func (*BigTIFF) Version

func (t *BigTIFF) Version() uint16

type Entry

type Entry interface {
	TagID() uint16
	TypeID() uint16
	Count() uint64
	ValueOffset() [8]byte
}

Entry represents a single entry in an IFD in a BigTIFF file. This is the mostly uninterpreted core 20 byte data structure only.

func ParseEntry

func ParseEntry(br tiff.BReader) (out Entry, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL