resource

package
v0.0.0-...-8810693 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IR_RESINFO     = 0x03ED
	IR_IPTC_NAA    = 0x0404
	IR_THUMBNAIL   = 0x040C
	IR_VERSIONINFO = 0x421
	IR_XMP         = 0x0424
)
View Source
const DEBUG = false

Variables

This section is empty.

Functions

func RegisterID

func RegisterID(id uint16, decode func(io.Reader, uint16, uint32) (interface{}, uint32, error))

Register a photoshop image resource decoder which returns its own resource instance, number of bytes read, error

Types

type ImageResource

type ImageResource struct {
	Magic      [4]byte
	Id         uint16
	Name       string
	DataLength uint32
	Data       interface{} // Could be bytes or concrete type
}

func Decode

func Decode(r io.Reader) (*ImageResource, uint32, error)

type ImageResourceData

type ImageResourceData interface {
	Id() uint16
}

type ImageResourceDecoder

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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