av1

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

Package av1 - parsing of av1 AV1CodecConfigurationRecord.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidMarker       = errors.New("invalid marker value found in AV1CodecConfigurationRecord")
	ErrInvalidVersion      = errors.New("unsupported AV1CodecConfigurationRecord version")
	ErrNonZeroReservedBits = errors.New("non-zero reserved bits found in AV1CodecConfigurationRecord")
)

AV1 parsing errors

Functions

This section is empty.

Types

type CodecConfRec

type CodecConfRec struct {
	Version                          byte
	SeqProfile                       byte
	SeqLevelIdx0                     byte
	SeqTier0                         byte
	HighBitdepth                     byte
	TwelveBit                        byte
	MonoChrome                       byte
	ChromaSubsamplingX               byte
	ChromaSubsamplingY               byte
	ChromaSamplePosition             byte
	InitialPresentationDelayPresent  byte
	InitialPresentationDelayMinusOne byte
	ConfigOBUs                       []byte
}

CodecConfRec - AV1CodecConfigurationRecord Specified in https://github.com/AOMediaCodec/av1-isobmff/releases/tag/v1.2.0

func DecodeAV1CodecConfRec

func DecodeAV1CodecConfRec(data []byte) (CodecConfRec, error)

DecodeAVCDecConfRec - decode an AV1CodecConfRec

func (*CodecConfRec) Encode

func (a *CodecConfRec) Encode(w io.Writer) error

EncodeSW- write an AV1CodecConfRec to w

func (*CodecConfRec) EncodeSW

func (a *CodecConfRec) EncodeSW(sw bits.SliceWriter) error

EncodeSW- write an AV1CodecConfRec to sw

func (*CodecConfRec) Size

func (a *CodecConfRec) Size() uint64

Size - total size in bytes

Jump to

Keyboard shortcuts

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