tenc

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 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
	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 added in v1.6.3

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

func (*Box) Read

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

Jump to

Keyboard shortcuts

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