Versions in this module Expand all Collapse all v1 v1.0.1 Jan 18, 2023 v1.0.0 Jan 13, 2023 Changes in this version + var ErrShortMVHD = formatError("MVHD too short") + var ErrShortTKHD = formatError("TKHD too short") + type Box struct + Child []Box + Ext bool + Offset int64 + Raw []byte + Size int64 + Type string + func (b *Box) ContentSize() int64 + func (b *Box) Find(typ ...string) *Box + func (b *Box) HeaderSize() int64 + type File struct + Header *MVHD + func Parse(r io.Reader) (*File, error) + func (f *File) AddUuid(data []byte) + func (f *File) FrameSize() (width, height int, err error) + func (f *File) Optimize() error + type MVHD struct + DateCreated time.Time + DateModified time.Time + DurationInUnits uint64 + Flags [3]byte + Raw []byte + TimeUnit uint32 + Version byte + func DecodeMVHD(p []byte) (*MVHD, error) + func (m *MVHD) Duration() time.Duration + func (m *MVHD) Len() int + type TKHD struct + DateCreated time.Time + DateModified time.Time + DurationInUnits uint64 + Flags [3]byte + Height uint32 + TrackId uint32 + Version byte + Width uint32 + func DecodeTKHD(p []byte) (*TKHD, error) + func (t *TKHD) FrameSize() (w, h int)