vpx

package
v3.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// Target bandwidth to use for this stream, in kilobits per second.
	Bitrate uint
	// Force keyframe interval.
	KeyframeInt uint
}

type Vpx

type Vpx struct {
	// contains filtered or unexported fields
}

func NewEncoder

func NewEncoder(w, h int, opts *Options) (*Vpx, error)

func (*Vpx) Encode

func (vpx *Vpx) Encode() []byte

Encode encodes yuv image with the VPX8 encoder. see: https://chromium.googlesource.com/webm/libvpx/+/master/examples/simple_encoder.c

func (*Vpx) IntraRefresh

func (vpx *Vpx) IntraRefresh()

func (*Vpx) LoadBuf

func (vpx *Vpx) LoadBuf(yuv []byte)

func (*Vpx) Shutdown

func (vpx *Vpx) Shutdown() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL