y4m

package
v1.9.8 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const FourCC = "YUV4"

Variables

This section is empty.

Functions

func GetSize

func GetSize(fmtp string) int

func NewImage

func NewImage(fmtp string) func(frame []byte) image.Image

func ParseHeader added in v1.9.4

func ParseHeader(b []byte) (fmtp string)

Types

type Consumer

type Consumer struct {
	core.Connection
	// contains filtered or unexported fields
}

func NewConsumer

func NewConsumer() *Consumer

func (*Consumer) AddTrack

func (c *Consumer) AddTrack(media *core.Media, _ *core.Codec, track *core.Receiver) error

func (*Consumer) WriteTo

func (c *Consumer) WriteTo(wr io.Writer) (int64, error)

type Producer

type Producer struct {
	core.Connection
	// contains filtered or unexported fields
}

func Open

func Open(r io.Reader) (*Producer, error)

func (*Producer) Start

func (c *Producer) Start() error

Jump to

Keyboard shortcuts

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