codec

package
v0.0.0-...-771d5d4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FrameReader

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

func (*FrameReader) Read

func (f *FrameReader) Read() (img image.Image, release func(), err error)

func (*FrameReader) SetFrame

func (f *FrameReader) SetFrame(frame emulator.IFrame)

type IAudioEncoder

type IAudioEncoder interface {
	// Encode PCM to opus packet, Emulator outputs float32 PCM
	Encode(pcm []float32) ([]byte, error)
}

func NewAudioEncoder

func NewAudioEncoder(sampleRate int) (IAudioEncoder, error)

type IVideoEncoder

type IVideoEncoder interface {
	Encode(frame emulator.IFrame) ([]byte, func(), error)
	Close()
}

func NewVideoEncoder

func NewVideoEncoder(codec string, width, height int) (IVideoEncoder, error)

type VideoEncoder

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

func NewVpxEncoder

func NewVpxEncoder(media prop.Media, version int) (*VideoEncoder, error)

func NewX264Encoder

func NewX264Encoder(media prop.Media) (*VideoEncoder, error)

func (*VideoEncoder) Close

func (v *VideoEncoder) Close()

func (*VideoEncoder) Encode

func (v *VideoEncoder) Encode(frame emulator.IFrame) ([]byte, func(), error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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