vpx

package
v0.12.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package vpx contains the vpx video codec.

Index

Constants

This section is empty.

Variables

View Source
var DefaultStreamConfig gostream.StreamConfig

DefaultStreamConfig configures vpx as the encoder for a stream.

Functions

func NewEncoder

func NewEncoder(codecVersion Version, width, height, keyFrameInterval int, logger golog.Logger) (ourcodec.VideoEncoder, 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.VideoEncoderFactory

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
y or Y : Canonical URL