Documentation ¶
Overview ¶
Package xmpbase implements the XMP namespace as defined by XMP Specification Part 2.
Package xmpbase implements the XMP namespace as defined by XMP Specification Part 2.
Index ¶
- Variables
- func NewModel(name string) xmp.Model
- type Area
- type AreaUnit
- type Identifier
- type IdentifierArray
- func (x *IdentifierArray) Add(value string)
- func (x *IdentifierArray) AddUnique(v string) error
- func (x *IdentifierArray) Contains(v string) bool
- func (x *IdentifierArray) Index(val string) int
- func (x IdentifierArray) IsZero() bool
- func (x IdentifierArray) MarshalXMP(e *xmp.Encoder, node *xmp.Node, m xmp.Model) error
- func (x *IdentifierArray) Remove(v string)
- func (x IdentifierArray) Typ() xmp.ArrayType
- func (x *IdentifierArray) UnmarshalXMP(d *xmp.Decoder, node *xmp.Node, m xmp.Model) error
- type Rating
- type Thumbnail
- type ThumbnailArray
- type XmpBase
- func (x *XmpBase) AddID(id string)
- func (x *XmpBase) AddIDWithScheme(id, scheme string)
- func (x XmpBase) Can(nsName string) bool
- func (x *XmpBase) CanTag(tag string) bool
- func (x *XmpBase) GetTag(tag string) (string, error)
- func (x XmpBase) Namespaces() xmp.NamespaceList
- func (x *XmpBase) SetTag(tag, value string) error
- func (x *XmpBase) SyncFromXMP(d *xmp.Document) error
- func (x *XmpBase) SyncModel(d *xmp.Document) error
- func (x XmpBase) SyncToXMP(d *xmp.Document) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NsXmp = xmp.NewNamespace("xmp", "http://ns.adobe.com/xap/1.0/", NewModel)
)
Functions ¶
Types ¶
type Area ¶
type Area struct { X float64 `xmp:"stArea:x,attr"` Y float64 `xmp:"stArea:y,attr"` W float64 `xmp:"stArea:w,attr"` H float64 `xmp:"stArea:h,attr"` D float64 `xmp:"stArea:d,attr"` Unit AreaUnit `xmp:"stArea:unit,attr"` }
Metadata Workinggroup Guidelines 2.0, 2010 stArea http://ns.adobe.com/xmp/sType/Area#
type Identifier ¶
func (Identifier) MarshalText ¶
func (x Identifier) MarshalText() ([]byte, error)
func (Identifier) MarshalXMP ¶
func (*Identifier) UnmarshalText ¶
func (x *Identifier) UnmarshalText(data []byte) error
func (*Identifier) UnmarshalXMP ¶
type IdentifierArray ¶
type IdentifierArray []Identifier
func NewIdentifierArray ¶
func NewIdentifierArray(items ...interface{}) IdentifierArray
func (*IdentifierArray) Add ¶
func (x *IdentifierArray) Add(value string)
func (*IdentifierArray) AddUnique ¶
func (x *IdentifierArray) AddUnique(v string) error
func (*IdentifierArray) Contains ¶
func (x *IdentifierArray) Contains(v string) bool
func (*IdentifierArray) Index ¶
func (x *IdentifierArray) Index(val string) int
func (IdentifierArray) IsZero ¶
func (x IdentifierArray) IsZero() bool
func (IdentifierArray) MarshalXMP ¶
func (*IdentifierArray) Remove ¶
func (x *IdentifierArray) Remove(v string)
func (IdentifierArray) Typ ¶
func (x IdentifierArray) Typ() xmp.ArrayType
func (*IdentifierArray) UnmarshalXMP ¶
type Thumbnail ¶
type Thumbnail struct { Format string `xmp:"xmpGImg:format"` Width int64 `xmp:"xmpGImg:height"` Height int64 `xmp:"xmpGImg:width"` Image []byte `xmp:"xmpGImg:image"` }
Part 2: 1.2.2.4 Thumbnail
type ThumbnailArray ¶
type ThumbnailArray []Thumbnail
func (ThumbnailArray) MarshalXMP ¶
func (ThumbnailArray) Typ ¶
func (x ThumbnailArray) Typ() xmp.ArrayType
func (*ThumbnailArray) UnmarshalXMP ¶
type XmpBase ¶
type XmpBase struct { Advisory xmp.StringArray `xmp:"xmp:Advisory"` BaseURL xmp.Uri `xmp:"xmp:BaseURL"` CreateDate xmp.Date `xmp:"xmp:CreateDate"` CreatorTool xmp.AgentName `xmp:"xmp:CreatorTool"` Identifier IdentifierArray `xmp:"xmp:Identifier"` Label string `xmp:"xmp:Label"` MetadataDate xmp.Date `xmp:"xmp:MetadataDate"` ModifyDate xmp.Date `xmp:"xmp:ModifyDate"` Nickname string `xmp:"xmp:Nickname"` Rating Rating `xmp:"xmp:Rating"` Thumbnails ThumbnailArray `xmp:"xmp:Thumbnails"` Extensions xmp.NamedExtensionArray `xmp:"xmp:extension"` }
func (*XmpBase) AddIDWithScheme ¶
func (XmpBase) Namespaces ¶
func (x XmpBase) Namespaces() xmp.NamespaceList
Click to show internal directories.
Click to hide internal directories.