Documentation ¶
Index ¶
Constants ¶
View Source
const ( // BasePID is the PID for all ATSC PSIP tables BasePID = uint16(0x1FFB) MGTTableID = uint8(0xC7) TVCTTableID = uint8(0xC8) CVCTTableID = uint8(0xC9) SVCTTableID = uint8(0xDA) )
View Source
const (
MODULATION_8VSB = 0x04
)
Variables ¶
View Source
var ( // returned when expected T-VCT packet is not found when // reading TS packets. ErrVCTNotFound = errors.New("No T-VCT was found while reading TS") // returned when a Terrerstrial VCT cannot be parsed because there are not enough bytes ErrInvalidTVCTLength = errors.New("too few bytes to parse T-VCT") // returned when the table ID of the VCT is unknown ErrInvalidTableID = errors.New("invalid VCT table ID (unknown VCT table type)") // returned when updating PSIP tables and a Continuity Error occurs. Continuity errors happen // when a packet does not contain a Payload Unit Start and the last packet received was not // the previous packet as indicated by the MPEG header continuity counter ErrContinuity = errors.New("continuity error") ErrShortBuffer = errors.New("Buffer too short to parse") )
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel interface { ShortName() string MajorNumber() uint16 MinorNumber() uint16 ModulationMode() uint8 CarrierFrequency() uint32 TSID() uint16 Program() uint16 ETMLocation() uint8 AccessControlled() bool Hidden() bool HideGuide() bool ServiceType() uint8 SourceID() uint16 DescriptorsLength() int Descriptors() []psi.Descriptor Length() int CRC() []byte }
type MGT ¶
type MGT interface { NumTables() int Tables() []TableInfo Descriptors() []psi.Descriptor }
Master Guide Table
type PSIPHandler ¶
type PSIPHandler struct {
// contains filtered or unexported fields
}
type TVCT ¶
type TVCT struct {
*Table
}
func (*TVCT) AdditionalDescriptorsLength ¶
func (*TVCT) NumChannelsInSection ¶
type Table ¶
func (*Table) ProtocolVersion ¶
type TableInfo ¶
type TableInfo []byte
func (TableInfo) Descriptors ¶
func (t TableInfo) Descriptors() []psi.Descriptor
func (TableInfo) DescriptorsLength ¶
func (TableInfo) TableLength ¶
Click to show internal directories.
Click to hide internal directories.