rtpparser

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessRtpPacketH264

func ProcessRtpPacketH264(packet *Packet)

Types

type EncodingContext

type EncodingContext struct {
	// contains filtered or unexported fields
}

func NewEncodingContext

func NewEncodingContext(param *EncodingContextParam) *EncodingContext

func (EncodingContext) GetCurrentSpatialLayer

func (p EncodingContext) GetCurrentSpatialLayer() int16

func (EncodingContext) GetCurrentTemporalLayer

func (p EncodingContext) GetCurrentTemporalLayer() int16

func (EncodingContext) GetSpatialLayers

func (p EncodingContext) GetSpatialLayers() uint8

func (EncodingContext) GetTargetSpatialLayer

func (p EncodingContext) GetTargetSpatialLayer() int16

func (EncodingContext) GetTargetTemporalLayer

func (p EncodingContext) GetTargetTemporalLayer() int16

func (EncodingContext) GetTemporalLayers

func (p EncodingContext) GetTemporalLayers() uint8

func (EncodingContext) IsKSvc

func (p EncodingContext) IsKSvc() bool

func (*EncodingContext) SetCurrentSpatialLayer

func (p *EncodingContext) SetCurrentSpatialLayer(spatialLayer int16)

func (*EncodingContext) SetCurrentTemporalLayer

func (p *EncodingContext) SetCurrentTemporalLayer(temporalLayer int16)

func (*EncodingContext) SetTargetSpatialLayer

func (p *EncodingContext) SetTargetSpatialLayer(spatialLayer int16)

func (*EncodingContext) SetTargetTemporalLayer

func (p *EncodingContext) SetTargetTemporalLayer(temporalLayer int16)

type EncodingContextParam

type EncodingContextParam struct {
	SpatialLayers  uint8
	TemporalLayers uint8
	Ksvc           bool
}

type FrameMarking

type FrameMarking struct {
	// contains filtered or unexported fields
}

func Unmarshal

func Unmarshal(buf []byte) *FrameMarking

type Packet

type Packet struct {
	*rtp.Packet
	// contains filtered or unexported fields
}

func Parse

func Parse(buf []byte) (*Packet, error)

func (*Packet) GetLen

func (p *Packet) GetLen() int

func (*Packet) GetMid added in v1.0.6

func (p *Packet) GetMid() string

func (*Packet) GetRid added in v1.0.6

func (p *Packet) GetRid() string

func (*Packet) GetSpatialLayer

func (p *Packet) GetSpatialLayer() uint8

func (*Packet) GetTemporalLayer

func (p *Packet) GetTemporalLayer() uint8

func (*Packet) IsKeyFrame

func (p *Packet) IsKeyFrame() bool

func (*Packet) ReadFrameMarking

func (p *Packet) ReadFrameMarking(frameMarking *FrameMarking, length *uint8) bool

func (*Packet) SetAbsSendTimeExtensionId

func (p *Packet) SetAbsSendTimeExtensionId(id uint8)

func (*Packet) SetFrameMarking07ExtensionId

func (p *Packet) SetFrameMarking07ExtensionId(id uint8)

func (*Packet) SetFrameMarkingExtensionId

func (p *Packet) SetFrameMarkingExtensionId(id uint8)

func (*Packet) SetMidExtensionId

func (p *Packet) SetMidExtensionId(id uint8)

func (*Packet) SetPayloadDescriptorHandler

func (p *Packet) SetPayloadDescriptorHandler(payloadDescriptorHandler PayloadDescriptorHandler)

func (*Packet) SetRepairedRidExtensionId

func (p *Packet) SetRepairedRidExtensionId(id uint8)

func (*Packet) SetRidExtensionId

func (p *Packet) SetRidExtensionId(id uint8)

func (*Packet) SetSsrcAudioLevelExtensionId

func (p *Packet) SetSsrcAudioLevelExtensionId(id uint8)

func (*Packet) SetTransportWideCc01ExtensionId

func (p *Packet) SetTransportWideCc01ExtensionId(id uint8)

func (*Packet) SetVideoOrientationExtensionId

func (p *Packet) SetVideoOrientationExtensionId(id uint8)

func (*Packet) UpdateMid added in v1.0.3

func (p *Packet) UpdateMid(mid string) error

type PayloadDescriptor

type PayloadDescriptor struct {
}

type PayloadDescriptorHandler

type PayloadDescriptorHandler interface {
	GetSpatialLayer() uint8
	GetTemporalLayer() uint8
	IsKeyFrame() bool
}

Jump to

Keyboard shortcuts

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