vpx

package module
v0.0.0-...-e4307ef Latest Latest
Warning

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

Go to latest
Published: May 17, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColorFormat

type ColorFormat int
const (
	ColorRGBA ColorFormat = iota
	ColorBGRA
)

type VpxDecoder

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

func NewDecoder

func NewDecoder(format string) (*VpxDecoder, error)

func (*VpxDecoder) Close

func (d *VpxDecoder) Close() error

func (*VpxDecoder) NewSampleBuilder

func (d *VpxDecoder) NewSampleBuilder() *samplebuilder.SampleBuilder

func (*VpxDecoder) Process

func (d *VpxDecoder) Process(src <-chan *media.Sample, out chan<- VpxFrame)

type VpxFrame

type VpxFrame struct {
	IsKeyframe bool
	// contains filtered or unexported fields
}

func (*VpxFrame) Height

func (f *VpxFrame) Height() uint32

func (*VpxFrame) Plane

func (f *VpxFrame) Plane(n int) []byte

func (*VpxFrame) Stride

func (f *VpxFrame) Stride(n int) int

func (*VpxFrame) ToBytes

func (f *VpxFrame) ToBytes(format ColorFormat) []uint8

func (*VpxFrame) ToRGBA

func (f *VpxFrame) ToRGBA() *image.RGBA

func (*VpxFrame) Width

func (f *VpxFrame) Width() uint32

Jump to

Keyboard shortcuts

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