vpx

package
v0.0.0-...-3f9f10d Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT 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