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 ¶
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()
Click to show internal directories.
Click to hide internal directories.