codecs

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: MIT Imports: 1 Imported by: 262 modules, 393 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type G711Payloader added in v1.1.4

type G711Payloader struct{}

G711Payloader payloads G711 packets

func (*G711Payloader) Payload added in v1.1.4

func (p *G711Payloader) Payload(mtu int, payload []byte) [][]byte

Payload fragments an G711 packet across one or more byte arrays

type G722Payloader

type G722Payloader struct{}

G722Payloader payloads G722 packets

func (*G722Payloader) Payload

func (p *G722Payloader) Payload(mtu int, payload []byte) [][]byte

Payload fragments an G722 packet across one or more byte arrays

type H264Payloader

type H264Payloader struct{}

H264Payloader payloads H264 packets

func (*H264Payloader) Payload

func (p *H264Payloader) Payload(mtu int, payload []byte) [][]byte

Payload fragments a H264 packet across one or more byte arrays

type OpusPacket

type OpusPacket struct {
	Payload []byte
}

OpusPacket represents the VP8 header that is stored in the payload of an RTP Packet

func (*OpusPacket) Unmarshal

func (p *OpusPacket) Unmarshal(packet []byte) ([]byte, error)

Unmarshal parses the passed byte slice and stores the result in the OpusPacket this method is called upon

type OpusPartitionHeadChecker added in v1.2.0

type OpusPartitionHeadChecker struct{}

OpusPartitionHeadChecker checks Opus partition head

func (*OpusPartitionHeadChecker) IsPartitionHead added in v1.2.0

func (*OpusPartitionHeadChecker) IsPartitionHead(packet []byte) bool

IsPartitionHead checks whether if this is a head of the Opus partition

type OpusPayloader

type OpusPayloader struct{}

OpusPayloader payloads Opus packets

func (*OpusPayloader) Payload

func (p *OpusPayloader) Payload(mtu int, payload []byte) [][]byte

Payload fragments an Opus packet across one or more byte arrays

type VP8Packet

type VP8Packet struct {
	// Required Header
	X   uint8 /* extended controlbits present */
	N   uint8 /* (non-reference frame)  when set to 1 this frame can be discarded */
	S   uint8 /* start of VP8 partition */
	PID uint8 /* partition index */

	// Optional Header
	I         uint8  /* 1 if PictureID is present */
	L         uint8  /* 1 if TL0PICIDX is present */
	T         uint8  /* 1 if TID is present */
	K         uint8  /* 1 if KEYIDX is present */
	PictureID uint16 /* 8 or 16 bits, picture ID */
	TL0PICIDX uint8  /* 8 bits temporal level zero index */

	Payload []byte
}

VP8Packet represents the VP8 header that is stored in the payload of an RTP Packet

func (*VP8Packet) Unmarshal

func (p *VP8Packet) Unmarshal(payload []byte) ([]byte, error)

Unmarshal parses the passed byte slice and stores the result in the VP8Packet this method is called upon

type VP8PartitionHeadChecker added in v1.2.0

type VP8PartitionHeadChecker struct{}

VP8PartitionHeadChecker checks VP8 partition head

func (*VP8PartitionHeadChecker) IsPartitionHead added in v1.2.0

func (*VP8PartitionHeadChecker) IsPartitionHead(packet []byte) bool

IsPartitionHead checks whether if this is a head of the VP8 partition

type VP8Payloader

type VP8Payloader struct{}

VP8Payloader payloads VP8 packets

func (*VP8Payloader) Payload

func (p *VP8Payloader) Payload(mtu int, payload []byte) [][]byte

Payload fragments a VP8 packet across one or more byte arrays

Jump to

Keyboard shortcuts

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