Documentation
¶
Index ¶
- func Decode(r io.Reader) (img image.Image, err error)
- func DecodeConfig(r io.Reader) (cfg image.Config, err error)
- func ListRegisteredTagPresenceIDs() []uint16
- func RegisterCompression(c Compression)
- func RegisterHandlerByMake(m string, h TIFFHandler)
- func RegisterHandlerByTagPresence(t uint16, h TIFFHandler)
- type Baseline
- type BaselineDecoder
- type BaselineHandler
- type Bilevel
- type Compression
- type CompressionError
- type CompressionNotSupported
- type Decoder
- type FullColorRGB
- type Grayscale
- type IFDHandler
- type PaletteColor
- type TIFFHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListRegisteredTagPresenceIDs ¶
func ListRegisteredTagPresenceIDs() []uint16
func RegisterCompression ¶
func RegisterCompression(c Compression)
func RegisterHandlerByMake ¶
func RegisterHandlerByMake(m string, h TIFFHandler)
func RegisterHandlerByTagPresence ¶
func RegisterHandlerByTagPresence(t uint16, h TIFFHandler)
Types ¶
type Baseline ¶
type Baseline struct { NewSubfileType *uint32 `tiff:"field,tag=254"` SubfileType *uint16 `tiff:"field,tag=255"` ImageWidth *uint32 `tiff:"field,tag=256"` ImageLength *uint32 `tiff:"field,tag=257"` BitsPerSample []uint16 `tiff:"field,tag=258"` Compression *uint16 `tiff:"field,tag=259"` PhotometricInterpretation *uint16 `tiff:"field,tag=262"` Threshholding *uint16 `tiff:"field,tag=263"` CellWidth *uint16 `tiff:"field,tag=264"` CellLength *uint16 `tiff:"field,tag=265"` FillOrder *uint16 `tiff:"field,tag=266"` ImageDescription *string `tiff:"field,tag=270"` Make *string `tiff:"field,tag=271"` Model *string `tiff:"field,tag=272"` StripOffsets []uint32 `tiff:"field,tag=273"` Orientation *uint16 `tiff:"field,tag=274"` SamplesPerPixel *uint16 `tiff:"field,tag=277"` RowsPerStrip *uint32 `tiff:"field,tag=278"` StripByteCounts []uint32 `tiff:"field,tag=279"` MinSampleValue *uint16 `tiff:"field,tag=280"` MaxSampleValue *uint16 `tiff:"field,tag=281"` XResolution *big.Rat `tiff:"field,tag=282"` YResolution *big.Rat `tiff:"field,tag=283"` PlanarConfiguration *uint16 `tiff:"field,tag=284"` FreeOffsets []uint32 `tiff:"field,tag=288"` FreeByteCounts []uint32 `tiff:"field,tag=289"` GrayResponseUnit *uint16 `tiff:"field,tag=290"` GrayResponseCurve []uint16 `tiff:"field,tag=291"` ResolutionUnit *uint16 `tiff:"field,tag=296"` Software *string `tiff:"field,tag=305"` DateTime *string `tiff:"field,tag=306"` Artist *string `tiff:"field,tag=315"` HostComputer *string `tiff:"field,tag=316"` ColorMap []uint16 `tiff:"field,tag=320"` ExtraSamples []byte `tiff:"field,tag=338"` Copyright *string `tiff:"field,tag=33432"` }
type BaselineDecoder ¶
type BaselineDecoder struct { //We only really care about these fields. ImageWidth *uint32 `tiff:"field,tag=256"` ImageLength *uint32 `tiff:"field,tag=257"` BitsPerSample []uint16 `tiff:"field,tag=258"` Compression *uint16 `tiff:"field,tag=259"` PhotometricInterpretation *uint16 `tiff:"field,tag=262"` StripOffsets []uint32 `tiff:"field,tag=273"` SamplesPerPixel *uint16 `tiff:"field,tag=277"` RowsPerStrip *uint32 `tiff:"field,tag=278"` StripByteCounts []uint32 `tiff:"field,tag=279"` XResolution *big.Rat `tiff:"field,tag=282"` YResolution *big.Rat `tiff:"field,tag=283"` ResolutionUnit *uint16 `tiff:"field,tag=296"` ColorMap []uint16 `tiff:"field,tag=320"` // contains filtered or unexported fields }
Required fields for baseline
type BaselineHandler ¶
type BaselineHandler struct{}
type Compression ¶
type Compression interface { ID() uint16 Name() string Compress([]byte) ([]byte, error) Decompress([]byte) ([]byte, error) }
func GetCompression ¶
func GetCompression(id uint16) Compression
func NewCompression ¶
type CompressionError ¶
func (CompressionError) Error ¶
func (ce CompressionError) Error() string
type CompressionNotSupported ¶
type CompressionNotSupported struct {
Method uint16
}
func (CompressionNotSupported) Error ¶
func (cni CompressionNotSupported) Error() string
type FullColorRGB ¶
type FullColorRGB struct{}
type IFDHandler ¶
type PaletteColor ¶
type PaletteColor struct{}
type TIFFHandler ¶
func GetHandlerByMake ¶
func GetHandlerByMake(m string) TIFFHandler
func GetHandlerByTagPresence ¶
func GetHandlerByTagPresence(t uint16) TIFFHandler
Click to show internal directories.
Click to hide internal directories.