package tfhd

import "41.neocities.org/sofia/tfhd"

Index

Types

type Box

type Box struct {
	BoxHeader              sofia.BoxHeader
	FullBoxHeader          sofia.FullBoxHeader
	TrackId                uint32
	BaseDataOffset         uint64
	SampleDescriptionIndex uint32
	DefaultSampleDuration  uint32
	DefaultSampleSize      uint32
	DefaultSampleFlags     uint32
}

ISO/IEC 14496-12

aligned(8) class TrackFragmentHeaderBox extends FullBox(
   'tfhd', 0, tf_flags
) {
   unsigned int(32) track_ID;
   // all the following are optional fields
   // their presence is indicated by bits in the tf_flags
   unsigned int(64) base_data_offset;
   unsigned int(32) sample_description_index;
   unsigned int(32) default_sample_duration;
   unsigned int(32) default_sample_size;
   unsigned int(32) default_sample_flags;
}

func (*Box) Append

func (b *Box) Append(buf []byte) ([]byte, error)

func (*Box) Read

func (b *Box) Read(buf []byte) error