y4m

package
v0.0.0-...-487786b Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: BSD-2-Clause Imports: 10 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(reader io.Reader, settings map[string]any) (*Decoder, error)

func NewXZCompressedDecoder

func NewXZCompressedDecoder(reader io.Reader, settings map[string]any) (*Decoder, error)

func (*Decoder) Close

func (s *Decoder) Close()

func (*Decoder) Decode

func (s *Decoder) Decode() (frame.Frame, error)

func (*Decoder) DecodeStream

func (s *Decoder) DecodeStream() *frame.Stream

func (*Decoder) FramePTS

func (s *Decoder) FramePTS(n int) int64

FramePTS Returns -1 if not found

func (*Decoder) GetFrame

func (s *Decoder) GetFrame() (parameters map[Parameter][]string, frameObject frame.Frame, err error)

func (*Decoder) GetFrameSeekTable

func (s *Decoder) GetFrameSeekTable() []int64

func (*Decoder) IsVFR

func (s *Decoder) IsVFR() bool

func (*Decoder) Properties

func (s *Decoder) Properties() frame.StreamProperties

func (*Decoder) SeekToFrame

func (s *Decoder) SeekToFrame(frameNumber int) (err error)

func (*Decoder) Version

func (s *Decoder) Version() string

type Parameter

type Parameter byte
const (
	ParameterFrameWidth       Parameter = 'W'
	ParameterFrameHeight      Parameter = 'H'
	ParameterFrameRate        Parameter = 'F'
	ParameterInterlacing      Parameter = 'I'
	ParameterPixelAspectRatio Parameter = 'A'
	ParameterColorFormat      Parameter = 'C'
	ParameterExtension        Parameter = 'X'
)

Jump to

Keyboard shortcuts

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