Documentation
¶
Index ¶
- Constants
- func MangleValue(value string) string
- func MatchesValue(input string, value interface{}, prefix string) bool
- func NewEIT(tid mutablehome.DVBTableType, r *TSReader) (section mutablehome.DVBSection, err error)
- func NewNIT(tid mutablehome.DVBTableType, r *TSReader) (section mutablehome.DVBSection, err error)
- func NewPAT(tid mutablehome.DVBTableType, r *TSReader) (section mutablehome.DVBSection, err error)
- func NewPMT(tid mutablehome.DVBTableType, r *TSReader) (section mutablehome.DVBSection, err error)
- func NewSDT(tid mutablehome.DVBTableType, r *TSReader) (section mutablehome.DVBSection, err error)
- func NewSectionEvent(source gopi.Unit, filter mutablehome.DVBFilter, section mutablehome.DVBSection) mutablehome.DVBSectionEvent
- func TSRead(fd uintptr) (mutablehome.DVBSection, error)
- type Demux
- type Event
- type Filter
- func (this *Filter) AddPid(pid uint16) error
- func (this *Filter) AddPids(pids []uint16) error
- func (this *Filter) Close() error
- func (this *Filter) Fd() uintptr
- func (this *Filter) RemovePid(pid uint16) error
- func (this *Filter) SetBufferSize(size uint32) error
- func (this *Filter) Start() error
- func (this *Filter) Stop() error
- type Frontend
- type NITStream
- type PMTStream
- type Program
- type RowDescriptor
- type SectionEIT
- type SectionFilter
- type SectionHeader
- type SectionNIT
- type SectionPAT
- type SectionPMT
- type SectionSDT
- type Service
- type StreamFilter
- type TSReader
- func (this *TSReader) Bytes(sz int) (v []byte)
- func (this *TSReader) DateTime() time.Time
- func (this *TSReader) Duration() time.Duration
- func (this *TSReader) IsEOF() bool
- func (this *TSReader) SetLength(len int)
- func (this *TSReader) Size() int
- func (this *TSReader) String() string
- func (this *TSReader) Uint16() (v uint16)
- func (this *TSReader) Uint8() (v uint8)
- type Table
Constants ¶
View Source
const ( TS_PACKET_LENGTH = 188 TS_SECTION_BUFSIZE = 4096 )
Variables ¶
This section is empty.
Functions ¶
func MangleValue ¶
func MatchesValue ¶
func NewEIT ¶
func NewEIT(tid mutablehome.DVBTableType, r *TSReader) (section mutablehome.DVBSection, err error)
func NewNIT ¶
func NewNIT(tid mutablehome.DVBTableType, r *TSReader) (section mutablehome.DVBSection, err error)
func NewPAT ¶
func NewPAT(tid mutablehome.DVBTableType, r *TSReader) (section mutablehome.DVBSection, err error)
func NewPMT ¶
func NewPMT(tid mutablehome.DVBTableType, r *TSReader) (section mutablehome.DVBSection, err error)
func NewSDT ¶
func NewSDT(tid mutablehome.DVBTableType, r *TSReader) (section mutablehome.DVBSection, err error)
func NewSectionEvent ¶
func NewSectionEvent(source gopi.Unit, filter mutablehome.DVBFilter, section mutablehome.DVBSection) mutablehome.DVBSectionEvent
func TSRead ¶
func TSRead(fd uintptr) (mutablehome.DVBSection, error)
Types ¶
type Demux ¶
type Demux struct {
Adapter uint
Demux uint
Frontend mutablehome.DVBFrontend
FilePoll gopi.FilePoll
Bus gopi.Bus
}
type Event ¶
type Filter ¶
func (*Filter) SetBufferSize ¶
type NITStream ¶
type NITStream struct {
Pid uint16
NetworkId uint16
Descriptors []*RowDescriptor
}
type PMTStream ¶
type PMTStream struct {
Type mutablehome.DVBStreamType
Pid uint16
Length uint16
Descriptors []*RowDescriptor
}
type RowDescriptor ¶
func NewDescriptors ¶
func NewDescriptors(r *TSReader) []*RowDescriptor
func (*RowDescriptor) String ¶
func (this *RowDescriptor) String() string
type SectionEIT ¶
type SectionEIT struct {
SectionHeader
StreamId uint16
NetworkId uint16
LastSection uint8
LastTable uint8
Events []*Event
CRC []byte
}
func (*SectionEIT) String ¶
func (this *SectionEIT) String() string
type SectionFilter ¶
type SectionFilter struct {
Filter
dvb.DMXSectionFilter
}
func NewSectionFilter ¶
func NewSectionFilter(adapter, demux uint, pid uint16, tid home.DVBTableType) (*SectionFilter, error)
type SectionHeader ¶
type SectionHeader struct {
TableId mutablehome.DVBTableType
ServiceId uint16
Version uint8
Current bool
Section uint8
LastSection uint8
}
func NewHeader ¶
func NewHeader(tableId mutablehome.DVBTableType, r *TSReader) SectionHeader
func (*SectionHeader) String ¶
func (this *SectionHeader) String() string
func (*SectionHeader) Type ¶
func (this *SectionHeader) Type() mutablehome.DVBTableType
type SectionNIT ¶
type SectionNIT struct {
SectionHeader
Descriptors []*RowDescriptor
Streams []*NITStream
CRC []byte
}
func (*SectionNIT) String ¶
func (this *SectionNIT) String() string
type SectionPAT ¶
type SectionPAT struct {
SectionHeader
Programs []*Program
CRC []byte
}
func (*SectionPAT) String ¶
func (this *SectionPAT) String() string
type SectionPMT ¶
type SectionPMT struct {
SectionHeader
ClockPid uint16
Descriptors []*RowDescriptor
Streams []*PMTStream
CRC []byte
}
func (*SectionPMT) String ¶
func (this *SectionPMT) String() string
type SectionSDT ¶
type SectionSDT struct {
SectionHeader
NetworkId uint16
Services []*Service
CRC []byte
}
func (*SectionSDT) String ¶
func (this *SectionSDT) String() string
type Service ¶
type StreamFilter ¶
type StreamFilter struct {
Filter
dvb.DMXStreamFilter
}
func NewStreamFilter ¶
func NewStreamFilter(adapter, demux uint, pid uint16, in dvb.DMXInput, out dvb.DMXOutput, streamType dvb.DMXStreamType) (*StreamFilter, error)
type TSReader ¶
type TSReader struct {
// contains filtered or unexported fields
}
func NewTSReader ¶
Click to show internal directories.
Click to hide internal directories.