Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ErrBrandNotSupported = errors.New("error brand not supported") ErrBufLength = errors.New("insufficient buffer length") ErrItemTypeWS = errors.New("itemType doesn't end on whitespace") ErrRemainLengthInsufficient = errors.New("remain length insufficient") ErrFlagsLength = errors.New("failed to read 4 bytes of Flags") ErrItemTypeLength = errors.New("insufficient itemType Length") ErrWrongBoxType = errors.New("error wrong box type") // ErrInfeVersionNotSupported is returned when an infe box with an unsupported was found. ErrInfeVersionNotSupported = errors.New("infe box version not supported") )
Errors
var (
Logger zerolog.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stdout}).Level(zerolog.PanicLevel)
)
Functions ¶
This section is empty.
Types ¶
type CNCVBox ¶
type CNCVBox struct {
// contains filtered or unexported fields
}
CNCVBox is Canon Compressor Version box CaNon Codec Version?
type CR3MetaBox ¶
type CR3MetaBox struct { //CCTP CCTPBox //THMB THMBBox CNCV CNCVBox CTBO CTBOBox Exif [4]meta.ExifHeader }
CR3MetaBox is a uuidBox that contains Metadata for CR3 files
type CTBOBox ¶
type CTBOBox struct {
// contains filtered or unexported fields
}
CTBOBox is a Canon tracks base offsets Box? items are [2]{offset,length}
func (CTBOBox) MarshalZerologArray ¶
MarshalZerologArray is a zerolog interface for logging
type CrxMoovBox ¶
type CrxMoovBox struct { Meta CR3MetaBox Trak [5]CR3Trak }
CrxMoovBox is a Canon Raw Moov Box
type ExifReader ¶
type ExifReader func(r io.Reader, h meta.ExifHeader) error
type FileTypeBox ¶
type FileTypeBox struct { Compatible [maxBrandCount]Brand // all 4 bytes MinorVersion [4]byte // 4 bytes MajorBrand Brand // 4 bytes }
FileTypeBox is a BMFF FileTypeBox
type ItemPropertiesBox ¶
type ItemPropertiesBox struct { PropertyContainer ItemPropertyContainerBox //Associations []ItemPropertyAssociation // at least 1 Associations ItemPropertyAssociation }
ItemPropertiesBox is an ISOBMFF "iprp" box
type ItemPropertyAssociation ¶
type ItemPropertyAssociation struct { //Flags Flags //EntryCount uint32 Entries []IpmaItem }
ItemPropertyAssociation is an ISOBMFF "ipma" box
type ItemPropertyContainerBox ¶
type ItemPropertyContainerBox struct{}
type ItemTypeReferenceBox ¶
type ItemTypeReferenceBox struct{}
ItemTypeReferenceBox is an "iref" box.
Item Reference box iref enables creating directional links from an item to one or several other items. Item references are extensively used by HEIF. For instance, thumbnail images are recognized from a thumbnail type reference which links from the thumbnail image to the master image. dimg -> derived image thmb -> thumbnail cdsc -> context description ref / exif
type Reader ¶
type Reader struct { ExifReader func(r io.Reader, h meta.ExifHeader) error XMPReader func(r io.Reader) error // contains filtered or unexported fields }
Reader is a ISO BMFF reader
func (*Reader) Close ¶
func (r *Reader) Close()
Close the Reader. Returns the underlying bufio.Reader to the reader pool.
func (*Reader) ReadFTYP ¶
ReadFTYP reads an 'ftyp' box from a BMFF file.
This should be the first read function called.