Documentation ¶
Index ¶
- type ChunkLargeOffset
- type ChunkOffset
- type CompactSampleSize
- type CompositionOffset
- type CompositionOffsetEntry
- type CompositionOffsetEntryV0
- type CompositionOffsetEntryV1
- type Copyright
- type DataEntry
- type DataEntryURL
- type DataEntryURN
- type DataInformation
- type DataReference
- type EditBox
- type EditList
- type EditListV0
- type EditListV1
- type EditLister
- type Extent
- type File
- type FileType
- type Handler
- type HintMediaHeader
- type IodsBox
- type ItemEntry
- type ItemLocation
- type Media
- type MediaHeader
- type MediaInformation
- type Metadata
- type Movie
- type MovieHeader
- type NullMediaHeader
- type SampleDependenciesTable
- type SampleDependencyEntry
- type SampleDescription
- type SampleEntry
- type SampleSize
- type SampleTable
- type SampleToChunk
- type SampleToChunkEntry
- type ShadowSyncEntry
- type ShadowSyncSample
- type SoundMediaHeader
- type SyncSample
- type TimeToSample
- type TimeToSampleEntry
- type TrackHeader
- type TrackReference
- type TrackReferenceType
- type TrakBox
- type UserData
- type VideoMediaHeader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChunkLargeOffset ¶
type ChunkLargeOffset struct { Entries []uint64 // contains filtered or unexported fields }
type ChunkOffset ¶
type ChunkOffset struct { Entries []uint32 // contains filtered or unexported fields }
type CompactSampleSize ¶
type CompositionOffset ¶
type CompositionOffset struct { Entries []CompositionOffsetEntry // contains filtered or unexported fields }
CompositionOffset provides the offset between decoding time and composition time.
type CompositionOffsetEntry ¶
CompositionOffsetEntry represents a single entry
type CompositionOffsetEntryV0 ¶
type CompositionOffsetEntryV0 struct {
// contains filtered or unexported fields
}
CompositionOffsetEntryV0 represents a V0 entry, offset is unsigned
func (CompositionOffsetEntryV0) Offset ¶
func (e CompositionOffsetEntryV0) Offset() int32
Offset returns the offset
func (CompositionOffsetEntryV0) Samples ¶
func (e CompositionOffsetEntryV0) Samples() uint32
Samples returns the number of samples
type CompositionOffsetEntryV1 ¶
type CompositionOffsetEntryV1 struct {
// contains filtered or unexported fields
}
CompositionOffsetEntryV1 represents a V1 entry, offset is signed
func (CompositionOffsetEntryV1) Offset ¶
func (e CompositionOffsetEntryV1) Offset() int32
Offset returns the offset
func (CompositionOffsetEntryV1) Samples ¶
func (e CompositionOffsetEntryV1) Samples() uint32
Samples returns the number of samples
type DataEntryURL ¶
type DataEntryURL struct {
// contains filtered or unexported fields
}
func (*DataEntryURL) InFile ¶
func (b *DataEntryURL) InFile() bool
func (*DataEntryURL) Location ¶
func (b *DataEntryURL) Location() string
func (*DataEntryURL) Name ¶
func (b *DataEntryURL) Name() string
type DataEntryURN ¶
type DataEntryURN struct {
// contains filtered or unexported fields
}
func (*DataEntryURN) InFile ¶
func (b *DataEntryURN) InFile() bool
func (*DataEntryURN) Location ¶
func (b *DataEntryURN) Location() string
func (*DataEntryURN) Name ¶
func (b *DataEntryURN) Name() string
type DataInformation ¶
type DataInformation struct { Reference *DataReference Unknown []*box // contains filtered or unexported fields }
type DataReference ¶
type DataReference struct { Entries []DataEntry // contains filtered or unexported fields }
type EditList ¶
type EditList struct { Versioned EditLister MediaRate int16 MediaRateFraction int16 // contains filtered or unexported fields }
type EditListV0 ¶
type EditListV0 struct {
// contains filtered or unexported fields
}
func (*EditListV0) MediaTime ¶
func (b *EditListV0) MediaTime() int64
func (*EditListV0) SegmentDuration ¶
func (b *EditListV0) SegmentDuration() uint64
type EditListV1 ¶
type EditListV1 struct {
// contains filtered or unexported fields
}
func (*EditListV1) MediaTime ¶
func (b *EditListV1) MediaTime() int64
func (*EditListV1) SegmentDuration ¶
func (b *EditListV1) SegmentDuration() uint64
type EditLister ¶
type File ¶
type FileType ¶
type FileType struct { MajorBrand string MinorVersion int CompatibleBrands []string // contains filtered or unexported fields }
FileType is short-formed as 'ftyp'. Files written to this version of this specification must contain a file‐type box. For compatibility with an earlier version of this specification, files may be conformant to this specification and not contain a file-type box. Files with no file‐type box should be read as if they contained an FTYP box with Major_brand='mp41', minor_version=0, and the single compatible brand 'mp41'.
type Handler ¶
type Handler struct { Predefined uint32 HandlerType string Name string // contains filtered or unexported fields }
Handler is short-formed as 'hdlr'. This box within a Media Box declares media type of the track, and thus the process by which the media‐data in the track is presented. For example, a format for which the decoder delivers video would be stored in a video track, identified by being handled by a video handler. The documentation of the storage of a media format identifies the media type which that format uses. This box when present within a Meta Box, declares the structure or format of the 'meta' box contents. There is a general handler for metadata streams of any type; the specific format is identified by the sample entry, as for video or audio, for example.
type HintMediaHeader ¶
type ItemLocation ¶
type ItemLocation struct { Items []ItemEntry // contains filtered or unexported fields }
type Media ¶
type Media struct { Header *MediaHeader Handler *Handler Information *MediaInformation Unknown []*box // contains filtered or unexported fields }
type MediaHeader ¶
type MediaHeader struct { TimeScale uint32 Duration uint64 LanguageCode string Predefined uint16 // contains filtered or unexported fields }
func (*MediaHeader) CreationTime ¶
func (b *MediaHeader) CreationTime() time.Time
CreationTime is when this track was created
func (*MediaHeader) ModificationTime ¶
func (b *MediaHeader) ModificationTime() time.Time
ModificationTime is when this track was most recently edited
type MediaInformation ¶
type MediaInformation struct { DataInformation *DataInformation NullMediaHeader *NullMediaHeader VideoMediaHeader *VideoMediaHeader SoundMediaHeader *SoundMediaHeader HintMediaHeader *HintMediaHeader SampleTable *SampleTable Unknown []*box // contains filtered or unexported fields }
type Metadata ¶
type Metadata struct { Handler *Handler ItemLocation *ItemLocation Unknown []*box // contains filtered or unexported fields }
type Movie ¶
type Movie struct { Header *MovieHeader Tracks []*TrakBox Iods *IodsBox Metadata *Metadata UserData *UserData Unknown []*box // contains filtered or unexported fields }
The Movie Box is short-formed as the type 'moov'. The metadata for a presentation is stored in the single Movie Box which occurs at the top‐level of a file. Normally this box is close to the beginning or end of the file, though this is not required.
type MovieHeader ¶
type NullMediaHeader ¶
type NullMediaHeader struct {
// contains filtered or unexported fields
}
type SampleDependenciesTable ¶
type SampleDependenciesTable struct { Entries []SampleDependencyEntry // contains filtered or unexported fields }
type SampleDependencyEntry ¶
type SampleDescription ¶
type SampleDescription struct { Entries []*SampleEntry // contains filtered or unexported fields }
type SampleEntry ¶
type SampleEntry struct {
// contains filtered or unexported fields
}
type SampleSize ¶
type SampleTable ¶
type SampleTable struct { Ctts *CompositionOffset Stsd *SampleDescription Sdtp *SampleDependenciesTable Stts *TimeToSample Stsc *SampleToChunk Stss *SyncSample Stsz *SampleSize Stz2 *CompactSampleSize Stsh *ShadowSyncSample Stco *ChunkOffset Co64 *ChunkLargeOffset Unknown []*box // contains filtered or unexported fields }
type SampleToChunk ¶
type SampleToChunk struct { Entries []SampleToChunkEntry // contains filtered or unexported fields }
type SampleToChunkEntry ¶
type SampleToChunkEntry struct {
// contains filtered or unexported fields
}
type ShadowSyncEntry ¶
type ShadowSyncSample ¶
type ShadowSyncSample struct { Entries []ShadowSyncEntry // contains filtered or unexported fields }
type SoundMediaHeader ¶
type SoundMediaHeader struct {
// contains filtered or unexported fields
}
type SyncSample ¶
type SyncSample struct { Entries []uint32 // contains filtered or unexported fields }
type TimeToSample ¶
type TimeToSample struct { Entries []TimeToSampleEntry // contains filtered or unexported fields }
type TimeToSampleEntry ¶
type TimeToSampleEntry struct {
// contains filtered or unexported fields
}
type TrackHeader ¶
type TrackHeader struct { TrackID uint32 Duration uint64 Layer int16 AlternateGroup int16 Volume int16 Matrix [9]int32 Width fixed.Uint16_16 Height fixed.Uint16_16 // contains filtered or unexported fields }
func (*TrackHeader) CreationTime ¶
func (b *TrackHeader) CreationTime() time.Time
CreationTime is when this track was created
func (*TrackHeader) Enabled ¶
func (b *TrackHeader) Enabled() bool
Enabled indicates that the track is present. A track which is not enabled should be treated as not present.
func (*TrackHeader) InMovie ¶
func (b *TrackHeader) InMovie() bool
InMovie indicates that the track is used in the presentation
func (*TrackHeader) InPreview ¶
func (b *TrackHeader) InPreview() bool
InPreview indiciates the track is used when previewing the presentation
func (*TrackHeader) ModificationTime ¶
func (b *TrackHeader) ModificationTime() time.Time
ModificationTime is when this track was most recently edited
func (*TrackHeader) SizeIsAspectRatio ¶
func (b *TrackHeader) SizeIsAspectRatio() bool
SizeIsAspectRatio indicates that the width and height values are not expressed in pixel units. The values have the same unit but the unit is not specified, the values are only an indication of the desired aspect ratio. If the aspect ratios of this track and other related tracks are not identical then the respective positioning is undefined, possibly defined by external contexts.
type TrackReference ¶
type TrackReference struct { TypeBoxes []*TrackReferenceType // contains filtered or unexported fields }
TrackReference provides a reference from the containing track to another track in the presentation.
type TrackReferenceType ¶
type TrackReferenceType struct { TrackIDs []uint32 // contains filtered or unexported fields }
TrackReferenceType is a child from the `tref` box. It contains information such as: - `hint` will reference links from the containing hint track to the media data it hints. - `cdsc` links a descriptive or metadata track to the content it describes See ISO 14936-12 8.3.3.3 for additional definitions.
type TrakBox ¶
type TrakBox struct { Header *TrackHeader Reference *TrackReference Media *Media EditBox *EditBox UserData *UserData // contains filtered or unexported fields }
type UserData ¶
type UserData struct { Copyright *Copyright Boxes []*box // contains filtered or unexported fields }
type VideoMediaHeader ¶
type VideoMediaHeader struct {
// contains filtered or unexported fields
}