vp9

package
v1.8.15 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package vp9 contains a VP9 header parser.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Header struct {
	Profile            uint8
	ShowExistingFrame  bool
	FrameToShowMapIdx  uint8
	NonKeyFrame        bool
	ShowFrame          bool
	ErrorResilientMode bool
	ColorConfig        *HeaderColorConfig
	FrameSize          *HeaderFrameSize
}

Header is a VP9 Frame header. Specification: https://storage.googleapis.com/downloads.webmproject.org/docs/vp9/vp9-bitstream-specification-v0.6-20160331-draft.pdf

func (Header) Height

func (h Header) Height() uint16

Height returns the video height.

func (*Header) Unmarshal

func (h *Header) Unmarshal(buf []byte) error

Unmarshal decodes a Header.

func (Header) Width

func (h Header) Width() uint16

Width returns the video width.

type HeaderColorConfig

type HeaderColorConfig struct {
	TenOrTwelveBit bool
	BitDepth       uint8
	ColorSpace     uint8
	ColorRange     bool
	SubsamplingX   bool
	SubsamplingY   bool
}

HeaderColorConfig is the color_config member of an header.

type HeaderFrameSize

type HeaderFrameSize struct {
	FrameWidthMinus1  uint16
	FrameHeightMinus1 uint16
}

HeaderFrameSize is the frame_size member of an header.

Jump to

Keyboard shortcuts

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