package tenc
import "41.neocities.org/sofia/tenc"
Index
Types
type Box
type Box struct { BoxHeader sofia.BoxHeader FullBoxHeader sofia.FullBoxHeader Extends struct { DefaultIsProtected uint8 DefaultPerSampleIvSize uint8 // contains filtered or unexported fields } DefaultKid sofia.Uuid }
ISO/IEC 23001-7
aligned(8) class TrackEncryptionBox extends FullBox('tenc', version, flags=0) { unsigned int(8) reserved = 0; if (version==0) { unsigned int(8) reserved = 0; } else { // version is 1 or greater unsigned int(4) default_crypt_byte_block; unsigned int(4) default_skip_byte_block; } unsigned int(8) default_isProtected; unsigned int(8) default_Per_Sample_IV_Size; unsigned int(8)[16] default_KID; if (default_isProtected ==1 && default_Per_Sample_IV_Size == 0) { unsigned int(8) default_constant_IV_size; unsigned int(8)[default_constant_IV_size] default_constant_IV; } }
func (*Box) Append
func (b *Box) Append(buf []byte) ([]byte, error)
func (*Box) Read
func (b *Box) Read(buf []byte) error