sidx package

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

Index

type Box

ISO/IEC 14496-12

aligned(8) class SegmentIndexBox extends FullBox('sidx', version, 0) {
   unsigned int(32) reference_ID;
   unsigned int(32) timescale;
   if (version==0) {
      unsigned int(32) earliest_presentation_time;
      unsigned int(32) first_offset;
   } else {
      unsigned int(64) earliest_presentation_time;
      unsigned int(64) first_offset;
   }
   unsigned int(16) reserved = 0;
   unsigned int(16) reference_count;
   for(i=1; i <= reference_count; i++) {
      bit (1) reference_type;
      unsigned int(31) referenced_size;
      unsigned int(32) subsegment_duration;
      bit(1) starts_with_SAP;
      unsigned int(3) SAP_type;
      unsigned int(28) SAP_delta_time;
   }
}

func (*Box) Append

func (*Box) GetSize

func (*Box) Read

type Reference

func (*Reference) Append

func (*Reference) Decode

func (*Reference) SetSize

func (*Reference) Size

this is the size of the fragment, typically `moof` + `mdat`

Source Files

sidx.go