codecs

package
v0.0.0-...-4d6a7a9 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Keyframe

func Keyframe(codec string, packet *rtp.Packet) (bool, bool)

Keyframe determines if packet is the start of a keyframe. It returns (true, true) if that is the case, (false, true) if that is definitely not the case, and (false, false) if the information cannot be determined.

func KeyframeDimensions

func KeyframeDimensions(codec string, packet *rtp.Packet) (uint32, uint32)

func RewritePacket

func RewritePacket(codec string, data []byte, setMarker bool, seqno uint16, delta uint16) error

Types

type Flags

type Flags struct {
	Seqno           uint16
	Marker          bool
	Start           bool
	End             bool
	Keyframe        bool
	Pid             uint16 // only returned for VP8
	Tid             uint8
	Sid             uint8
	TidUpSync       bool
	SidUpSync       bool
	SidNonReference bool
	Discardable     bool
}

func PacketFlags

func PacketFlags(codec string, buf []byte) (Flags, error)

Jump to

Keyboard shortcuts

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