Documentation
¶
Overview ¶
Package tagdata defines the values shared by the codec metadata parsers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ID3GenreName ¶
ID3GenreName returns the name for a standard ID3v1 genre index. ID3v2.4 Appendix A lists the indexes used by ID3 and iTunes.
Types ¶
type Artwork ¶
type Artwork struct {
MIMEType string
Role ArtworkRole
Description string
Size int64
// contains filtered or unexported fields
}
Artwork is a bounded view of an encoded image. Its input must remain open while the returned reader is in use.
func NewArtwork ¶
func NewArtwork(source io.ReaderAt, offset, size int64, mime string, role ArtworkRole, description string) Artwork
NewArtwork records an already validated byte extent.
func NewTransformedArtwork ¶
func NewTransformedArtwork(source io.ReaderAt, offset, storedSize, decodedSize int64, mime string, role ArtworkRole, description string, decode func(io.Reader) io.Reader) Artwork
NewTransformedArtwork records a stored byte extent that is decoded on open. A decoded size of -1 means it cannot be determined from the headers.
type ArtworkRole ¶
type ArtworkRole uint8
ArtworkRole describes how the source identified an image.
const ( Other ArtworkRole = iota FrontCover BackCover )