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
Click to show internal directories.
Click to hide internal directories.