vpx

package
v0.0.0-...-07c3fde Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

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

func NewDecoder

func NewDecoder(width, height int) (*Decoder, error)

func (*Decoder) Close

func (d *Decoder) Close() error

func (*Decoder) Decode

func (d *Decoder) Decode(b []byte) (image.Image, error)

type Encoder

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

func NewEncoder

func NewEncoder(width, height int) (*Encoder, error)

func (*Encoder) Close

func (e *Encoder) Close() error

func (*Encoder) Encode

func (e *Encoder) Encode(vpxFrame []byte, img image.Image, pts int, forceKeyframe bool) (n int, err error)

type VPXCodecErr

type VPXCodecErr int
const (
	VPX_CODEC_OK VPXCodecErr = iota
	VPX_CODEC_ERROR
	VPX_CODEC_MEM_ERROR
	VPX_CODEC_ABI_MISMATCH
	VPX_CODEC_INCAPABLE
	VPX_CODEC_UNSUP_BITSTREAM
	VPX_CODEC_UNSUP_FEATURE
	VPX_CODEC_CORRUPT_FRAME
	VPX_CODEC_INVALID_PARAM
	VPX_CODEC_LIST_END
)

func (VPXCodecErr) Error

func (e VPXCodecErr) Error() string

Jump to

Keyboard shortcuts

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