vpx

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 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 logging.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