package
0.0.0-20200819101157-a247bce72039
Repository: https://github.com/dsoprea/go-iso-bmf.git
Documentation: pkg.go.dev
# Functions
BoxNameIsValid returns true if no invalid characters are in the box-name.
ChildBoxes is a simple wrapper that gets all children of the given type or panics if none.
ClearRegistrations drops all registrations.
Dump prints the box hierarchy.
DumpBytes prints a list of hex-encoded bytes.
EpochToTime returns a the given MP4 epoch as a `time.Time`.
GetDurationString Helper function to print a duration value in the form H:MM:SS.MS .
GetFactory returns the factory for the given box-type.
GetParentBoxName returns the name of the given CB.
NewBox returns a new Box struct.
NewResource returns a new Resource struct.
NewStandard32TimeSupport returns a new Standard32TimeSupport struct.
NowTime returns a UTC time.Time that has been rounded to the nearest second.
PushBox pushes a box to the given byte-slice pointer.
PushBytes encodes the given integer and pushes to the byte-slice pointer.
RationalUint16ToFixedPoint16 returns a FixedPoint16 given the rational and encoding-parameters.
RationalUint32ToFixedPoint32 returns a FixedPoint16 given the rational and encoding-parameters.
RegisterBoxType registers the factory for a box-type.
TimeToEpoch returns the number of seconds since the MP4 epoch.
Uint16ToFixedPoint16 returns a float produced by shifting bits in the uint16.
Uint32ToFixedPoint32 returns an encapsulated float produced by shifting bits in the uint32.
# Variables
DefaultEndianness is the default endianness of stored integers.
ErrNoChildren indicates that the given box does not support children.
# Structs
Box defines an Atom Box structure.
FixedPoint16 encapsulates a uint32 and decodes it to a float32.
FixedPoint32 encapsulates a uint32 and decodes it to a float32.
IndexedBoxEntry represents a unique entry in a FullBoxIndex.
Resource defines a file structure.
Standard32TimeSupport packages some common time-handling fields and functionality.
# Interfaces
BoxChildIndexer is a box that has children.
BoxFactory knows how to construct a box struct.
ChildBoxIndexSetter is a box that is known to support children and will be called, after they were parsed, to store them.
CommonBox is one parsed box.
# Type aliases
Boxes is a slice of boxes that have been parsed and are ready to be acted on.
Data64BitDescribed indicates that the data should be written with a 32-bit size.
FullBoxIndex describes all boxes encountered (immediately loaded, and loaded in the order encountered such that one box's parsing logic will be able to reference earlier siblings).
FullyQualifiedBoxName is the name of a box fully-qualified with its parents.
LoadedBoxIndex provides a GetChildBoxes() method that returns a child box if present or panics with a descriptive error.
Volume represents the audio volume of the media.