codecs

package
v0.0.0-...-c17a681 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 4 Imported by: 1 module, 0 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

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