frame

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: BSD-2-Clause Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ChromaMargin = LumaMargin / 2
View Source
const LumaMargin = 32

Variables

This section is empty.

Functions

This section is empty.

Types

type Motion added in v1.1.0

type Motion struct {
	BlocksWide int
	BlocksHigh int
	Mv         [2][][2]int16
	RefIdx     [2][]int8
	RefPOC     [2][]int32
}

func NewMotion added in v1.1.0

func NewMotion(widthMBs, heightMBs int) *Motion

func (*Motion) Index added in v1.1.0

func (m *Motion) Index(bx, by int) int

type Picture

type Picture struct {
	Y       []byte
	Cb      []byte
	Cr      []byte
	StrideY int
	StrideC int
	Width   int
	Height  int

	CropWidth  int
	CropHeight int

	POC      int
	FrameNum uint32
	IDR      bool
	LongTerm bool

	Motion *Motion
}

func NewPicture

func NewPicture(widthMBs, heightMBs int) *Picture

func (*Picture) ChromaOffset

func (p *Picture) ChromaOffset(x, y int) int

func (*Picture) CopyIn

func (p *Picture) CopyIn(src []byte)

func (*Picture) CopyOut

func (p *Picture) CopyOut(dst []byte)

func (*Picture) ExtendBorders

func (p *Picture) ExtendBorders()

func (*Picture) LumaOffset

func (p *Picture) LumaOffset(x, y int) int

func (*Picture) OriginC

func (p *Picture) OriginC() int

func (*Picture) OriginY

func (p *Picture) OriginY() int

func (*Picture) Size

func (p *Picture) Size() int

Jump to

Keyboard shortcuts

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