Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
type Attributes struct {
Size int64 `json:"size,omitempty"`
ContentType string `json:"contentType,omitempty"`
Digest map[string]string `json:"digest,omitempty"`
MediaAttributes
Info
}
func ResolveAttrs ¶
func ResolveAttrs(b blob.Blob, opts ...Option) (Attributes, error)
func (Attributes) Equal ¶
func (a1 Attributes) Equal(a2 Attributes) bool
func (Attributes) Ext ¶
func (a Attributes) Ext() string
func (Attributes) Type ¶
func (a Attributes) Type() string
type Info ¶
type MediaAttributes ¶
type MediaAttributes struct {
Width int `json:"width,omitempty"`
Height int `json:"height,omitempty"`
Duration float64 `json:"duration,omitempty"`
HasAudio bool `json:"hasAudio,omitempty"`
FrameCount int `json:"frameCount,omitempty"`
}
func (MediaAttributes) AspectRatio ¶
func (ma MediaAttributes) AspectRatio() float64
func (MediaAttributes) Megapixels ¶
func (ma MediaAttributes) Megapixels() float64
Click to show internal directories.
Click to hide internal directories.