codecmunger

package
v1.4.3-dev5 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: Apache-2.0 Imports: 5 Imported by: 1 module, 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

This section is empty.

Variables

View Source
var (
	ErrNotVP8                          = errors.New("not VP8")
	ErrOutOfOrderVP8PictureIdCacheMiss = errors.New("out-of-order VP8 picture id not found in cache")
	ErrFilteredVP8TemporalLayer        = errors.New("filtered VP8 temporal layer")
)

Functions

This section is empty.

Types

type CodecMunger

type CodecMunger interface {
	GetState() interface{}
	SeedState(state interface{})

	SetLast(extPkt *buffer.ExtPacket)
	UpdateOffsets(extPkt *buffer.ExtPacket)

	UpdateAndGet(extPkt *buffer.ExtPacket, snOutOfOrder bool, snHasGap bool, maxTemporal int32) ([]byte, error)

	UpdateAndGetPadding(newPicture bool) ([]byte, error)
}

type Null

type Null struct {
	// contains filtered or unexported fields
}

func NewNull

func NewNull(_logger logger.Logger) *Null

func (*Null) GetSeededState

func (n *Null) GetSeededState() interface{}

func (*Null) GetState

func (n *Null) GetState() interface{}

func (*Null) SeedState

func (n *Null) SeedState(state interface{})

func (*Null) SetLast

func (n *Null) SetLast(_extPkt *buffer.ExtPacket)

func (*Null) UpdateAndGet

func (n *Null) UpdateAndGet(_extPkt *buffer.ExtPacket, snOutOfOrder bool, snHasGap bool, maxTemporal int32) ([]byte, error)

func (*Null) UpdateAndGetPadding

func (n *Null) UpdateAndGetPadding(newPicture bool) ([]byte, error)

func (*Null) UpdateOffsets

func (n *Null) UpdateOffsets(_extPkt *buffer.ExtPacket)

type VP8

type VP8 struct {
	// contains filtered or unexported fields
}

func NewVP8

func NewVP8(logger logger.Logger) *VP8

func NewVP8FromNull

func NewVP8FromNull(cm CodecMunger, logger logger.Logger) *VP8

func (*VP8) GetState

func (v *VP8) GetState() interface{}

func (*VP8) PictureIdOffset

func (v *VP8) PictureIdOffset(extPictureId int32) (int32, bool)

for testing only

func (*VP8) SeedState

func (v *VP8) SeedState(seed interface{})

func (*VP8) SetLast

func (v *VP8) SetLast(extPkt *buffer.ExtPacket)

func (*VP8) UpdateAndGet

func (v *VP8) UpdateAndGet(extPkt *buffer.ExtPacket, snOutOfOrder bool, snHasGap bool, maxTemporalLayer int32) ([]byte, error)

func (*VP8) UpdateAndGetPadding

func (v *VP8) UpdateAndGetPadding(newPicture bool) ([]byte, error)

func (*VP8) UpdateOffsets

func (v *VP8) UpdateOffsets(extPkt *buffer.ExtPacket)

type VP8PictureIdWrapHandler

type VP8PictureIdWrapHandler struct {
	// contains filtered or unexported fields
}

func (*VP8PictureIdWrapHandler) Init

func (v *VP8PictureIdWrapHandler) Init(extPictureId int32, mBit bool)

func (*VP8PictureIdWrapHandler) MaxPictureId

func (v *VP8PictureIdWrapHandler) MaxPictureId() int32

func (*VP8PictureIdWrapHandler) Unwrap

func (v *VP8PictureIdWrapHandler) Unwrap(pictureId uint16, mBit bool) int32

unwrap picture id and update the maxPictureId. return unwrapped value

func (*VP8PictureIdWrapHandler) UpdateMaxPictureId

func (v *VP8PictureIdWrapHandler) UpdateMaxPictureId(extPictureId int32, mBit bool)

type VP8State

type VP8State struct {
	ExtLastPictureId int32
	PictureIdUsed    bool
	LastTl0PicIdx    uint8
	Tl0PicIdxUsed    bool
	TidUsed          bool
	LastKeyIdx       uint8
	KeyIdxUsed       bool
}

func (VP8State) String

func (v VP8State) String() string

Jump to

Keyboard shortcuts

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