ps

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const PPSHeader = 0x68

Variables

This section is empty.

Functions

func DecodeProfile

func DecodeProfile(profile string) (idc, iop byte)

func EncodeProfile

func EncodeProfile(idc, iop byte) string

Types

type PPS

type PPS struct{}

func (*PPS) Marshal

func (p *PPS) Marshal() []byte

func (*PPS) Unmarshal

func (p *PPS) Unmarshal(data []byte) (err error)

type SPS

type SPS struct {
	Profile    string
	ProfileIDC uint8
	ProfileIOP uint8
	LevelIDC   uint8
	Width      uint16
	Height     uint16
}

func NewSPS

func NewSPS(profile string, level uint8, width uint16, height uint16) *SPS

func (*SPS) Marshal

func (s *SPS) Marshal() []byte

func (*SPS) Unmarshal

func (s *SPS) Unmarshal(data []byte) (err error)

Jump to

Keyboard shortcuts

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