qtff

package module
v0.0.0-...-9866e0b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2019 License: MIT Imports: 5 Imported by: 0

README

qtff-go

This is a small Go package that can be used to walk through QuickTime file atoms. It also contains parsers for some of the common atom types.

See the movtree directory for an example program that prints out info about each atom in a given file.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Atom

type Atom struct {
	Type FourCC
	Size int64

	Data *io.SectionReader
}

func (*Atom) ParseData

func (a *Atom) ParseData() (interface{}, error)

type AtomReader

type AtomReader struct {
	// contains filtered or unexported fields
}

func NewAtomReader

func NewAtomReader(r io.ReaderAt) *AtomReader

func (*AtomReader) Error

func (r *AtomReader) Error() error

func (*AtomReader) Next

func (r *AtomReader) Next() *Atom

type ChunkOffset64Data

type ChunkOffset64Data struct {
	NumberOfEntries int
	Offsets         []uint64
}

func (*ChunkOffset64Data) UnmarshalBinary

func (d *ChunkOffset64Data) UnmarshalBinary(b []byte) error

type ChunkOffsetData

type ChunkOffsetData struct {
	NumberOfEntries int
	Offsets         []uint32
}

func (*ChunkOffsetData) UnmarshalBinary

func (d *ChunkOffsetData) UnmarshalBinary(b []byte) error

type FourCC

type FourCC uint32
const (
	AtomTypeMOOV FourCC = 0x6d6f6f76
	AtomTypeMDAT FourCC = 0x6d646174
)

func FourCCFromString

func FourCCFromString(s string) FourCC

func (FourCC) String

func (t FourCC) String() string

type HandlerReferenceData

type HandlerReferenceData struct {
	ComponentType    FourCC
	ComponentSubtype FourCC
}

func (*HandlerReferenceData) UnmarshalBinary

func (d *HandlerReferenceData) UnmarshalBinary(b []byte) error

type MediaHeaderData

type MediaHeaderData struct {
	TimeScale uint32
	Duration  uint32
}

func (*MediaHeaderData) UnmarshalBinary

func (d *MediaHeaderData) UnmarshalBinary(b []byte) error

type SampleSizeData

type SampleSizeData struct {
	ConstantSampleSize int
	NumberOfEntries    int
	SampleSizes        []int
}

func (*SampleSizeData) SampleSize

func (d *SampleSizeData) SampleSize(n int) int

func (*SampleSizeData) UnmarshalBinary

func (d *SampleSizeData) UnmarshalBinary(b []byte) error

type SampleToChunkData

type SampleToChunkData struct {
	NumberOfEntries int
	Entries         []SampleToChunkDataEntry
}

func (*SampleToChunkData) ChunkFirstSample

func (d *SampleToChunkData) ChunkFirstSample(n int) int

func (*SampleToChunkData) SampleChunk

func (d *SampleToChunkData) SampleChunk(n int) int

func (*SampleToChunkData) UnmarshalBinary

func (d *SampleToChunkData) UnmarshalBinary(b []byte) error

type SampleToChunkDataEntry

type SampleToChunkDataEntry struct {
	FirstChunk      int
	SamplesPerChunk int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL