psi

package
v0.0.0-...-ce18db6 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Descriptor

type Descriptor []byte

func Descriptors

func Descriptors(data []byte) []Descriptor

func (Descriptor) Data

func (d Descriptor) Data() []byte

func (Descriptor) Length

func (d Descriptor) Length() int

func (Descriptor) Tag

func (d Descriptor) Tag() uint8

type PAT

type PAT struct {
	Table
}

func (*PAT) Entries

func (pat *PAT) Entries() []PATEntry

type PATEntry

type PATEntry []byte

func (PATEntry) PID

func (pe PATEntry) PID() uint16

func (PATEntry) Program

func (pe PATEntry) Program() uint16

type PMT

type PMT struct {
	Table
}

type Table

type Table []byte

func CreateTable

func CreateTable(id uint8, data []byte) Table

func (Table) CRC

func (t Table) CRC() []byte

func (Table) Data

func (t Table) Data() []byte

func (Table) ID

func (t Table) ID() uint8

func (Table) IDExtension

func (t Table) IDExtension() uint16

func (Table) IsCurrent

func (t Table) IsCurrent() bool

func (Table) IsNext

func (t Table) IsNext() bool

func (Table) LastSectionNumber

func (t Table) LastSectionNumber() uint8

func (Table) PrivateIndicator

func (t Table) PrivateIndicator() bool

func (Table) SectionLength

func (t Table) SectionLength() int

func (Table) SectionNumber

func (t Table) SectionNumber() uint8

func (Table) SectionSyntaxIndicator

func (t Table) SectionSyntaxIndicator() bool

func (Table) VersionNumber

func (t Table) VersionNumber() uint8

type TableBuffer

type TableBuffer interface {
	Append([]byte)
	Flush()
	HasNext() bool
	Next() Table
}

type TableDemux

type TableDemux interface {
	Handle(pkt ts.Packet)
	Clear(id uint8)
	Select(id uint8, handler TableHandler)
}

func NewTableDemux

func NewTableDemux() TableDemux

type TableHandler

type TableHandler interface {
	Handle(table Table)
}

type TableHandlerFunc

type TableHandlerFunc func(table Table)

func (TableHandlerFunc) Handle

func (thf TableHandlerFunc) Handle(table Table)

Jump to

Keyboard shortcuts

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