sofia package

import "41.neocities.org/sofia"

Index

Constants

type Box

ISO/IEC 14496-12

aligned(8) class Box(
   unsigned int(32) boxtype,
   optional unsigned int(8)[16] extended_type
) {
   BoxHeader(boxtype, extended_type);
   // the remaining bytes are the BoxPayload
}

func (*Box) Append

func (*Box) Read

type BoxError

func (*BoxError) Error

type BoxHeader

ISO/IEC 14496-12

aligned(8) class BoxHeader(
   unsigned int(32) boxtype,
   optional unsigned int(8)[16] extended_type
) {
   unsigned int(32) size;
   unsigned int(32) type = boxtype;
   if (size==1) {
      unsigned int(64) largesize;
   } else if (size==0) {
      // box extends to end of file
   }
   if (boxtype=='uuid') {
      unsigned int(8)[16] usertype = extended_type;
   }
}

func (*BoxHeader) Append

func (*BoxHeader) Decode

func (*BoxHeader) GetSize

type FullBoxHeader

ISO/IEC 14496-12

aligned(8) class FullBoxHeader(unsigned int(8) v, bit(24) f) {
   unsigned int(8) version = v;
   bit(24) flags = f;
}

func (*FullBoxHeader) GetFlags

type SampleEntry

ISO/IEC 14496-12

aligned(8) abstract class SampleEntry(
   unsigned int(32) format
) extends Box(format) {
   const unsigned int(8)[6] reserved = 0;
   unsigned int(16) data_reference_index;
}

func (*SampleEntry) Append

func (*SampleEntry) Decode

type Type

func (Type) String

type Uuid

func (*Uuid) String

Source Files

sofia.go

Directories

Path Synopsis
enca
encv
file
frma
internal/2024/os-test
internal/2024/write-at
mdat
mdhd
mdia
minf
moof
moov
pssh
schi
senc
sidx
sinf
stbl
stsd
tenc
tfhd
traf
trak
trun

Forge

https://github.com/3052/sofia

git clone
https://github.com/3052/sofia.git
git@github.com:3052/sofia.git