tenc

package
v1.6.8 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: OSL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Box

type Box struct {
	BoxHeader sofia.BoxHeader
	S         struct {
		FullBoxHeader          sofia.FullBoxHeader
		Reserved               uint8
		ByteBlock              uint8
		DefaultIsProtected     uint8
		DefaultPerSampleIvSize uint8
		DefaultKid             sofia.Uuid
	}
	DefaultConstantIvSize uint8
	DefaultConstantIv     []uint8
}

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(data []byte) ([]byte, error)

func (*Box) Read

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

Jump to

Keyboard shortcuts

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