mpegps

package
v4.11.9 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StartCodePS        = 0x000001ba
	StartCodeSYS       = 0x000001bb
	StartCodeMAP       = 0x000001bc
	StartCodeVideo     = 0x000001e0
	StartCodeAudio     = 0x000001c0
	PrivateStreamCode  = 0x000001bd
	MEPGProgramEndCode = 0x000001b9
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EsHandler

type EsHandler interface {
	ReceiveAudio(MpegPsEsStream)
	ReceiveVideo(MpegPsEsStream)
}

type MpegPsEsStream

type MpegPsEsStream struct {
	Type byte
	util.Buffer
	PTS uint32
	DTS uint32
}

type MpegPsStream

type MpegPsStream struct {
	EsHandler
	// contains filtered or unexported fields
}

func (*MpegPsStream) Drop

func (ps *MpegPsStream) Drop()

func (*MpegPsStream) Feed

func (ps *MpegPsStream) Feed(data util.Buffer) (err error)

func (*MpegPsStream) ReadPayload

func (ps *MpegPsStream) ReadPayload(data *util.Buffer) (payload []byte, err error)

Jump to

Keyboard shortcuts

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