icc

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2020 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColorSpace

type ColorSpace uint32
const (
	ColorSpaceXYZ     ColorSpace = 0x58595A20 // 'XYZ '
	ColorSpaceLab     ColorSpace = 0x4C616220 // 'Lab '
	ColorSpaceLuv     ColorSpace = 0x4C757620 // 'Luv '
	ColorSpaceYCbCr   ColorSpace = 0x59436272 // 'YCbr'
	ColorSpaceYxy     ColorSpace = 0x59787920 // 'Yxy '
	ColorSpaceRGB     ColorSpace = 0x52474220 // 'RGB '
	ColorSpaceGray    ColorSpace = 0x47524159 // 'Gray'
	ColorSpaceHSV     ColorSpace = 0x48535620 // 'HSV '
	ColorSpaceHLS     ColorSpace = 0x484C5320 // 'HLS '
	ColorSpaceCMYK    ColorSpace = 0x434D594B // 'CMYK'
	ColorSpaceCMY     ColorSpace = 0x434D5920 // 'CMY '
	ColorSpace2Color  ColorSpace = 0x32434C52 // '2CLR'
	ColorSpace3Color  ColorSpace = 0x33434C52 // '3CLR'
	ColorSpace4Color  ColorSpace = 0x34434C52 // '4CLR'
	ColorSpace5Color  ColorSpace = 0x35434C52 // '5CLR'
	ColorSpace6Color  ColorSpace = 0x36434C52 // '6CLR'
	ColorSpace7Color  ColorSpace = 0x37434C52 // '7CLR'
	ColorSpace8Color  ColorSpace = 0x38434C52 // '8CLR'
	ColorSpace9Color  ColorSpace = 0x39434C52 // '9CLR'
	ColorSpace10Color ColorSpace = 0x41434C52 // 'ACLR'
	ColorSpace11Color ColorSpace = 0x42434C52 // 'BCLR'
	ColorSpace12Color ColorSpace = 0x43434C52 // 'CCLR'
	ColorSpace13Color ColorSpace = 0x44434C52 // 'DCLR'
	ColorSpace14Color ColorSpace = 0x45434C52 // 'ECLR'
	ColorSpace15Color ColorSpace = 0x46434C52 // 'FCLR'
)

func (ColorSpace) String

func (cs ColorSpace) String() string

type DeviceClass

type DeviceClass uint32
const (
	DeviceClassInput      DeviceClass = 0x73636E72 // 'scnr'
	DeviceClassDisplay    DeviceClass = 0x6D6E7472 // 'mntr'
	DeviceClassOutput     DeviceClass = 0x70727472 // 'prtr'
	DeviceClassLink       DeviceClass = 0x6C696E6B // 'link'
	DeviceClassColorSpace DeviceClass = 0x73706163 // 'spac'
	DeviceClassAbstract   DeviceClass = 0x61627374 // 'abst'
	DeviceClassNamedColor DeviceClass = 0x6E6D636C // 'nmcl'
)

func (DeviceClass) String

func (dc DeviceClass) String() string
type Header struct {
	ProfileSize            uint32
	PreferredCMM           Signature
	Version                Version
	DeviceClass            DeviceClass
	DataColorSpace         ColorSpace
	ProfileConnectionSpace ColorSpace
	CreatedAt              time.Time
	PrimaryPlatform        PrimaryPlatform
	Embedded               bool
	DependsOnEmbeddedData  bool
	DeviceManufacturer     Signature
	DeviceModel            Signature
	DeviceAttributes       uint64
	RenderingIntent        RenderingIntent
	PCSIlluminant          [3]uint32
	ProfileCreator         Signature
	ProfileID              [16]byte
}

type MultiLocalisedUnicode

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

type PrimaryPlatform

type PrimaryPlatform uint32
const (
	PrimaryPlatformNone      PrimaryPlatform = 0x00000000
	PrimaryPlatformApple     PrimaryPlatform = 0x4150504C // 'AAPL'
	PrimaryPlatformMicrosoft PrimaryPlatform = 0x4D534654 // 'MSFT'
	PrimaryPlatformSGI       PrimaryPlatform = 0x53474920 // 'SGI '
	PrimaryPlatformSun       PrimaryPlatform = 0x53554E57 // 'SUNW'
)

func (PrimaryPlatform) String

func (pp PrimaryPlatform) String() string

type Profile

type Profile struct {
	Header   Header
	TagTable TagTable
}

func (*Profile) Description

func (p *Profile) Description() (string, error)

type ProfileReader

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

func NewProfileReader

func NewProfileReader(r binary.Reader) *ProfileReader

func (*ProfileReader) ReadProfile

func (pr *ProfileReader) ReadProfile() (*Profile, error)

type RenderingIntent

type RenderingIntent uint32
const (
	PerceptualRenderingIntent           RenderingIntent = 0
	RelativeColorimetricRenderingIntent RenderingIntent = 1
	SaturationRenderingIntent           RenderingIntent = 2
	AbsoluteColorimetricRenderingIntent RenderingIntent = 3
)

func (RenderingIntent) String

func (ri RenderingIntent) String() string

type Signature

type Signature uint32
const (
	ProfileFileSignature           Signature = 0x61637370 // 'acsp'
	DescSignature                  Signature = 0x64657363 // 'desc'
	MultiLocalisedUnicodeSignature Signature = 0x6D6C7563 // 'mluc'
)

func (Signature) String

func (s Signature) String() string

type TagTable

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

type TextDescription

type TextDescription struct {
	ASCII string
}

type Version

type Version struct {
	Major       byte
	MinorAndRev byte
}

func (Version) String

func (pv Version) String() string

Jump to

Keyboard shortcuts

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