esio

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 5 Imported by: 6

Documentation

Index

Constants

View Source
const (
	TagForbidden = Tag(iota)
	TagObjectDescriptor
	TagInitialObjectDescriptor
	TagESDescriptor
	TagDecoderConfigDescriptor
	TagDecoderSpecificInfo
	TagSLConfigDescriptor
)

ISO/IEC 14496-1:2004 7.2.2 Table 1

View Source
const (
	SLConfigCustom = SLConfigPredefined(iota)
	SLConfigNull
	SLConfigMP4
)

ISO/IEC 14496-1:2004 7.3.2.3.2 Table 12

View Source
const ObjectTypeAudio = ObjectType(0x40)

ISO/IEC 14496-1 7.2.6.6.2 Table 5

View Source
const StreamTypeAudioStream = StreamType(0x05)

ISO/IEC 14496-1 7.2.6.6.2 Table 6

Variables

This section is empty.

Functions

This section is empty.

Types

type DecoderConfigDescriptor

type DecoderConfigDescriptor struct {
	ObjectType ObjectType
	StreamType StreamType
	BufferSize uint32
	MaxBitrate uint32
	AvgBitrate uint32

	AudioSpecific []byte
}

func DecoderConfigFromCodecData

func DecoderConfigFromCodecData(stream av.CodecData) (*DecoderConfigDescriptor, error)

type ObjectType

type ObjectType uint8

type SLConfigDescriptor

type SLConfigDescriptor struct {
	Predefined SLConfigPredefined
	Custom     []byte
}

type SLConfigPredefined

type SLConfigPredefined uint8

SLConfigPredefined references a standard SL config by index

type StreamDescriptor

type StreamDescriptor struct {
	ESID      uint16
	DependsOn *uint16
	URL       *string
	OCR       *uint16

	DecoderConfig *DecoderConfigDescriptor
	SLConfig      *SLConfigDescriptor
}

func ParseStreamDescriptor

func ParseStreamDescriptor(start []byte) (desc *StreamDescriptor, remainder []byte, err error)

func (*StreamDescriptor) Marshal

func (s *StreamDescriptor) Marshal() ([]byte, error)

type StreamType

type StreamType uint8

type Tag

type Tag uint8

Tag identifies element stream descriptor types

Jump to

Keyboard shortcuts

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