vpx

package
Version: v0.0.0-...-47b04f3 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

DefaultViewConfig configures vpx as the encoder for a view.

Functions

func NewEncoder

func NewEncoder(codecVersion Version, width, height, keyFrameInterval int, logger golog.Logger) (ourcodec.Encoder, error)

NewEncoder returns a vpx encoder of the given type that can encode images of the given width and height. It will also ensure that it produces key frames at the given interval.

func NewEncoderFactory

func NewEncoderFactory(codecVersion Version) codec.EncoderFactory

NewEncoderFactory returns a vpx factory for the given vpx codec.

Types

type Version

type Version string

Version determines the version of a vpx codec.

const (
	Version8 Version = "vp8"
	Version9 Version = "vp9"
)

The set of allowed vpx versions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL