Documentation ¶
Index ¶
- func RegisterEXIFDecoder(d func(context.Context, []byte, ...image.ReadOption) (*EXIF, error))
- func RegisterEXIFEncoder(e func(context.Context, *EXIF, ...image.WriteOption) ([]byte, error))
- func RegisterICCDecoder(d func(context.Context, []byte, ...image.ReadOption) (*ICC, error))
- func RegisterICCEncoder(e func(context.Context, *ICC, ...image.WriteOption) ([]byte, error))
- func RegisterXMPDecoder(d func(context.Context, []byte, ...image.ReadOption) (*XMP, error))
- func RegisterXMPEncoder(e func(context.Context, *XMP, ...image.WriteOption) ([]byte, error))
- type EXIF
- type ICC
- type ProfileVersion
- type Response16
- type S15Fixed16
- type U16Fixed16
- type U8Fixed8
- type XMP
- type XYZNumber
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterEXIFDecoder ¶
func RegisterEXIFEncoder ¶
func RegisterICCDecoder ¶
func RegisterICCEncoder ¶
func RegisterXMPDecoder ¶
func RegisterXMPEncoder ¶
Types ¶
type ICC ¶
type ICC struct { CMMTypeSignature uint32 ProfileVersion ProfileVersion ProfileClassSignature uint32 ColorSpace uint32 ProfileConnectionSpace uint32 ProfileCreationTime time.Time PrimaryPlatformSignature uint32 CMMFlags uint32 DeviceManufacturer uint32 DeviceModel uint32 DeviceAttributes uint32 RenderingIntent uint32 ProfileConnectionSpaceIlluminant XYZNumber ProfileCreatorSignature uint32 }
ICC holds an ICC color profile.
type ProfileVersion ¶
type ProfileVersion struct { // Major holds a BCD encoded major version number. Major uint8 // Minor holds a BCD encoded minor and patch number. The first digit // is the minor version while the second is the patch level. Minor uint8 }
ProfileVersion holds a BCD encoded profile version number.
type Response16 ¶
type Response16 struct { // Interval holds the interval value Interval uint16 // Measurement holds the measurement value. Measurement S15Fixed16 }
Response16 holds an iCC response16Number.
type S15Fixed16 ¶
S15Fixed16 holds a signed 32 bit fixed point number, with 1 sign bit, 15 integer bits, and 16 fractional bits.
type U16Fixed16 ¶
U16Fixed16 holds an unsigned 32 bit fixed point number with 16 integer bits and 16 fractional bits.
type U8Fixed8 ¶
type U8Fixed8 struct { // Integer holds the unsigned 8 bit integer portion of the number. Integer uint8 // Fraction holds the 8 bit fractional portion of the number. Fraction uint8 }
U8Fixed8 holds an unsigned 16 bit fixed point number, with 8 integer bits and 8 fraction bits.
type XYZNumber ¶
type XYZNumber struct { X S15Fixed16 Y S15Fixed16 Z S15Fixed16 }
XYZ number holds a CIE XYZ tristimulus value.
Directories ¶
Path | Synopsis |
---|---|
Package exif encodes and decodes EXIF format image metadata.
|
Package exif encodes and decodes EXIF format image metadata. |
Package icc encodes and decodes ICC color profiles.
|
Package icc encodes and decodes ICC color profiles. |
Package xmp encodes and decodes XMP format image metadata.
|
Package xmp encodes and decodes XMP format image metadata. |
Click to show internal directories.
Click to hide internal directories.