format

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2018 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const HeaderSize = 256

HeaderSize specifies the length of a serialized Header in bytes.

View Source
const IndexTableEntrySize = 8

IndexTableEntrySize specifies how many bytes a serialized IndexTableEntry uses.

View Source
const Tag string = "MOVI"

Tag is the identifier key of a MOVI container.

Variables

This section is empty.

Functions

This section is empty.

Types

type Header struct {
	// Tag is the identifier key of a MOVI container
	Tag [4]byte
	// IndexEntryCount specifies how many index entries are in the index.
	IndexEntryCount int32
	// IndexSize specifies how long the index is.
	IndexSize int32
	// ContentSize specifies the length of the content.
	ContentSize int32
	// DurationFraction is the length of the media in 1/0x10000 second units.
	DurationFraction uint16
	// DurationSeconds is the length of the media in seconds.
	DurationSeconds byte

	Unused0013 byte

	Unknown0014 [4]byte

	// VideoWidth specifies the width of the video.
	VideoWidth uint16
	// VideoHeight specifies the height of the video.
	VideoHeight uint16

	Unknown001C int16
	Unknown001E int16
	Unknown0020 int16
	Unknown0022 int32

	// SampleRate specifies the sample rate of the audio.
	SampleRate uint16

	Zero [216]byte
}

Header is the first entry of a MOVI container.

func (*Header) String

func (header *Header) String() (result string)

type IndexTableEntry

type IndexTableEntry struct {
	TimestampFraction uint16
	TimestampSecond   byte
	Type              byte
	DataOffset        int32
}

IndexTableEntry describes one data entry of a MOVI container.

Jump to

Keyboard shortcuts

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