Documentation
¶
Index ¶
- Constants
- func New(b bom.BomParser) *asset
- func NewWithReadSeeker(r io.ReadSeeker) (*asset, error)
- type AssetParser
- type BGRA
- type CUIThemeMultisizeImageSetRendition
- type CUIThemePixelRendition
- type CUIThemePixelRenditionV3
- type CarHeader
- type CarextendedMetadata
- type GA8
- type RenditionAttribute
- type RenditionAttributeType
- type RenditionAttrs
- type RenditionCallback
- type RenditionCompressionType
- type RenditionKeyFmt
- type RenditionLayoutType
- type RenditionTLVType
- type RenditionType
- type Renditionkeytoken
Constants ¶
View Source
const ( RenditionTypeImage = RenditionType(0) RenditionTypeData = RenditionType(1) RenditionTypeColor = RenditionType(3) )
Variables ¶
This section is empty.
Functions ¶
func NewWithReadSeeker ¶
func NewWithReadSeeker(r io.ReadSeeker) (*asset, error)
Types ¶
type AssetParser ¶
type AssetParser interface {
}
type CUIThemePixelRendition ¶
type CUIThemePixelRendition struct {
// uint32_t tag; // 'CELM'
Tag bytess.String4
// uint32_t version;
Version uint32
// uint32_t compressionType;
CompressionType RenditionCompressionType
// uint32_t rawDataLength;
RawDataLength uint32
}
type CUIThemePixelRenditionV3 ¶
type CUIThemePixelRenditionV3 struct {
Arg1 uint16
Arg2 uint16
Arg3 uint32
Arg4 uint32
Height uint32
RowDataLen uint16
Arg6 uint16
}
TODO:
type CarHeader ¶
type CarHeader struct {
// uint32_t tag;
Tag bytess.String4
// uint32_t coreuiVersion;
CoreuiVersion uint32
// uint32_t storageVersion;
StorageVersion uint32
// uint32_t storageTimestamp;
StorageTimestamp uint32
// uint32_t renditionCount;
RenditionCount uint32
// char mainVersionString[128];
MainVersionString bytess.String128
// char versionString[256];
VersionString bytess.String256
// uuid_t uuid;
UUID bytess.String16
// uint32_t associatedChecksum;
AssociatedChecksum uint32
// uint32_t schemaVersion;
SchemaVersion uint32
// uint32_t colorSpaceID;
ColorSpaceID uint32
// uint32_t keySemantics;
KeySemantics uint32
}
tag: 'CTAR'
type CarextendedMetadata ¶
type CarextendedMetadata struct {
// uint32_t tag;
Tag bytess.String4
// char thinningArguments[256];
ThinningArguments bytess.String256
// char deploymentPlatformVersion[256];
DeploymentPlatformVersion bytess.String256
// char deploymentPlatform[256];
DeploymentPlatform bytess.String256
// char authoringTool[256];
AuthoringTool bytess.String256
}
tag: 'META'
type RenditionAttribute ¶
type RenditionAttribute struct {
Name uint16
Value uint16hex
}
type RenditionAttributeType ¶
type RenditionAttributeType uint32
func (RenditionAttributeType) String ¶
func (t RenditionAttributeType) String() string
type RenditionAttrs ¶
type RenditionAttrs map[RenditionAttributeType]uint16hex
type RenditionCallback ¶
type RenditionCallback struct {
Attrs RenditionAttrs
Type RenditionType
Err error
Image image.Image
Name string
}
type RenditionCompressionType ¶
type RenditionCompressionType uint32
As seen in _CUIConvertCompressionTypeToString
func (RenditionCompressionType) String ¶
func (t RenditionCompressionType) String() string
type RenditionKeyFmt ¶
type RenditionKeyFmt struct {
// uint32_t tag;
Tag bytess.String4
// uint32_t version;
Version uint32
// uint32_t maximumRenditionKeyTokenCount;
MaximumRenditionKeyTokenCount uint32
// uint32_t renditionKeyTokens[];
RenditionKeyTokens []RenditionAttributeType
}
tag: 'kfmt'
func (*RenditionKeyFmt) Keys ¶
func (r *RenditionKeyFmt) Keys() []string
type RenditionLayoutType ¶
type RenditionLayoutType uint16
type RenditionTLVType ¶
type RenditionTLVType uint32
func (RenditionTLVType) String ¶
func (r RenditionTLVType) String() string
type RenditionType ¶
type RenditionType int
type Renditionkeytoken ¶
type Renditionkeytoken struct {
CursorHotSpot struct {
X uint16
Y uint16
}
NumberOfAttributes uint16
Attributes []RenditionAttribute
}
tag: 'FACETKEYS'
Click to show internal directories.
Click to hide internal directories.