Documentation
¶
Overview ¶
Package meta and its subpackages provide support for embedded image metadata.
Index ¶
- Variables
- type CodingIndependentCodePoints
- func (c CodingIndependentCodePoints) IsSRGB() bool
- func (src CodingIndependentCodePoints) PipelineTo(dest CodingIndependentCodePoints) *icc.Pipeline
- func (c CodingIndependentCodePoints) PipelineToSRGB() *icc.Pipeline
- func (c CodingIndependentCodePoints) String() string
- func (c CodingIndependentCodePoints) VideoFullRangeIsValid() bool
- type Data
- func (s *Data) Clone() *Data
- func (md *Data) Exif() (*exif.Exif, error)
- func (md *Data) ExifData() []byte
- func (md *Data) ICCProfile() (*icc.Profile, error)
- func (md *Data) ICCProfileData() ([]byte, error)
- func (s *Data) IsSRGB() bool
- func (md *Data) SetExif(e *exif.Exif)
- func (md *Data) SetExifData(data []byte)
- func (md *Data) SetExifError(e error)
- func (md *Data) SetICCProfileData(data []byte)
- func (md *Data) SetICCProfileError(err error)
- type Primaries
- type TransferFunction
- type WellKnownPrimaries
- type XY
Constants ¶
This section is empty.
Variables ¶
var DISPLAY_P3 = CodingIndependentCodePoints{12, 13, 0, 1, true}
var SRGB = CodingIndependentCodePoints{1, 13, 0, 1, true}
Functions ¶
This section is empty.
Types ¶
type CodingIndependentCodePoints ¶ added in v1.8.2
type CodingIndependentCodePoints struct {
ColorPrimaries, TransferCharacteristics, MatrixCoefficients, VideoFullRange uint8
IsSet bool
}
func (CodingIndependentCodePoints) IsSRGB ¶ added in v1.8.2
func (c CodingIndependentCodePoints) IsSRGB() bool
func (CodingIndependentCodePoints) PipelineTo ¶ added in v1.8.2
func (src CodingIndependentCodePoints) PipelineTo(dest CodingIndependentCodePoints) *icc.Pipeline
func (CodingIndependentCodePoints) PipelineToSRGB ¶ added in v1.8.2
func (c CodingIndependentCodePoints) PipelineToSRGB() *icc.Pipeline
func (CodingIndependentCodePoints) String ¶ added in v1.8.2
func (c CodingIndependentCodePoints) String() string
func (CodingIndependentCodePoints) VideoFullRangeIsValid ¶ added in v1.8.2
func (c CodingIndependentCodePoints) VideoFullRangeIsValid() bool
type Data ¶
type Data struct {
Format types.Format
PixelWidth uint32
PixelHeight uint32
BitsPerComponent uint32
HasFrames bool
NumFrames, NumPlays int
CICP CodingIndependentCodePoints
// contains filtered or unexported fields
}
Data represents the metadata for an image.
func (*Data) Exif ¶ added in v1.8.2
Returns an extracted EXIF metadata object from this metadata.
An error is returned if the EXIF profile could not be correctly parsed.
If no EXIF data was found, nil is returned without an error.
func (*Data) ICCProfile ¶
ICCProfile returns an extracted ICC profile from this metadata.
An error is returned if the ICC profile could not be correctly parsed.
If no profile data was found, nil is returned without an error.
func (*Data) ICCProfileData ¶
ICCProfileData returns the raw ICC profile data from this metadata.
An error is returned if the ICC profile could not be correctly extracted from the image.
If no profile data was found, nil is returned without an error.
func (*Data) SetExifData ¶ added in v1.8.2
func (*Data) SetExifError ¶ added in v1.8.2
func (*Data) SetICCProfileData ¶
func (*Data) SetICCProfileError ¶
type Primaries ¶ added in v1.8.2
ColorSpace defines the primaries and white point of a color space.
func (*Primaries) CalculateRGBtoXYZMatrix ¶ added in v1.8.2
CalculateRGBtoXYZMatrix computes the matrix to convert from a linear RGB color space to CIE XYZ.
type TransferFunction ¶ added in v1.8.2
type TransferFunction struct {
ID int
Name string
OETF func(float64) float64 // To non-linear
EOTF func(float64) float64 // To linear
}
TransferFunction defines an Opto-Electronic Transfer Function (OETF) and its inverse Electro-Optical Transfer Function (EOTF).
type WellKnownPrimaries ¶ added in v1.8.2
type WellKnownPrimaries int
Directories
¶
| Path | Synopsis |
|---|---|
|
Package autometa provides support for embedded metadata and automatic detection of image formats.
|
Package autometa provides support for embedded metadata and automatic detection of image formats. |
|
Package icc provides support for working with ICC colour profile data.
|
Package icc provides support for working with ICC colour profile data. |
|
Package jpegmeta provides support for working with embedded JPEG metadata.
|
Package jpegmeta provides support for working with embedded JPEG metadata. |
|
Package pngmeta provides support for working with embedded PNG metadata.
|
Package pngmeta provides support for working with embedded PNG metadata. |
|
Package webpmeta provides support for working with embedded WebP metadata.
|
Package webpmeta provides support for working with embedded WebP metadata. |