arib

package
v0.0.0-...-79cd74e Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TagConditionalAccess           ts.DescriptorTag = 0x09 // Conditional access descriptor
	TagCopyright                   ts.DescriptorTag = 0x0D // Copyright descriptor
	TagCarouselIdentifier          ts.DescriptorTag = 0x13 // Carousel identifier descriptor
	TagAssociationTag              ts.DescriptorTag = 0x14 // Association tag descriptor
	TagDeferredAssociationTags     ts.DescriptorTag = 0x15 // Deferred association tags descriptor
	TagAVCVideo                    ts.DescriptorTag = 0x28 // AVC video descriptor
	TagAVCTimingAndHRD             ts.DescriptorTag = 0x2A // AVC timing and HRD descriptor
	TagNetworkName                 ts.DescriptorTag = 0x40 // Network name descriptor
	TagServiceList                 ts.DescriptorTag = 0x41 // Service list descriptor
	TagStuffing                    ts.DescriptorTag = 0x42 // Stuffing descriptor
	TagSatelliteDeliverySystem     ts.DescriptorTag = 0x43 // Satellite delivery system descriptor
	TagCableDistributionSystem     ts.DescriptorTag = 0x44 // Cable distribution system descriptor
	TagBouquetName                 ts.DescriptorTag = 0x47 // Bouquet name descriptor
	TagService                     ts.DescriptorTag = 0x48 // Service descriptor
	TagCountryAvailability         ts.DescriptorTag = 0x49 // Country availability descriptor
	TagLinkage                     ts.DescriptorTag = 0x4A // Linkage descriptor
	TagNVODReference               ts.DescriptorTag = 0x4B // NVOD reference descriptor
	TagTimeShiftedService          ts.DescriptorTag = 0x4C // Time shifted service descriptor
	TagShortEvent                  ts.DescriptorTag = 0x4D // Short event descriptor
	TagExtendedEvent               ts.DescriptorTag = 0x4E // Extended event descriptor
	TagTimeShiftedEvent            ts.DescriptorTag = 0x4F // Time shifted event descriptor
	TagComponent                   ts.DescriptorTag = 0x50 // Component descriptor
	TagMosaic                      ts.DescriptorTag = 0x51 // Mosaic descriptor
	TagStreamIdentifier            ts.DescriptorTag = 0x52 // Stream identifier descriptor
	TagCAIdentifier                ts.DescriptorTag = 0x53 // CA identifier descriptor
	TagContent                     ts.DescriptorTag = 0x54 // Content descriptor
	TagParentalRating              ts.DescriptorTag = 0x55 // Parental rating descriptor
	TagLocalTimeOffset             ts.DescriptorTag = 0x58 // Local time offset descriptor
	TagPartialTransportStream      ts.DescriptorTag = 0x63 // Partial Transport Stream descriptor
	TagHierarchicalTransmission    ts.DescriptorTag = 0xC0 // Hierarchical transmission descriptor
	TagDigitalCopyControl          ts.DescriptorTag = 0xC1 // Digital copy control descriptor
	TagNetworkIdentification       ts.DescriptorTag = 0xC2 // Network identification descriptor
	TagPartialTransportStreamTime  ts.DescriptorTag = 0xC3 // Partial Transport Stream time descriptor
	TagAudioComponent              ts.DescriptorTag = 0xC4 // Audio component descriptor
	TagHyperlink                   ts.DescriptorTag = 0xC5 // Hyperlink descriptor
	TagTargetRegion                ts.DescriptorTag = 0xC6 // Target region descriptor
	TagDataContent                 ts.DescriptorTag = 0xC7 // Data content descriptor
	TagVideoDecodeControl          ts.DescriptorTag = 0xC8 // Video decode control descriptor
	TagDownloadContent             ts.DescriptorTag = 0xC9 // Download content descriptor
	TagCAEMMTS                     ts.DescriptorTag = 0xCA // CA_EMM_TS descriptor
	TagCAContractInformation       ts.DescriptorTag = 0xCB // CA contract information descriptor
	TagCAService                   ts.DescriptorTag = 0xCC // CA service descriptor
	TagTSInformation               ts.DescriptorTag = 0xCD // TS information descriptor
	TagExtendedBroadcaster         ts.DescriptorTag = 0xCE // Extended broadcaster descriptor
	TagLogoTransmission            ts.DescriptorTag = 0xCF // Logo transmission descriptor
	TagBasicLocalEvent             ts.DescriptorTag = 0xD0 // Basic local event descriptor
	TagReference                   ts.DescriptorTag = 0xD1 // Reference descriptor
	TagNodeRelation                ts.DescriptorTag = 0xD2 // Node relation descriptor
	TagShortNodeInformation        ts.DescriptorTag = 0xD3 // Short node information descriptor
	TagSTCReference                ts.DescriptorTag = 0xD4 // STC reference descriptor
	TagSeries                      ts.DescriptorTag = 0xD5 // Series descriptor
	TagEventGroup                  ts.DescriptorTag = 0xD6 // Event group descriptor
	TagSIParameter                 ts.DescriptorTag = 0xD7 // SI parameter descriptor
	TagBroadcasterName             ts.DescriptorTag = 0xD8 // Broadcaster name descriptor
	TagComponentGroup              ts.DescriptorTag = 0xD9 // Component group descriptor
	TagSIPrimeTS                   ts.DescriptorTag = 0xDA // SI prime TS descriptor
	TagBoardInformation            ts.DescriptorTag = 0xDB // Board information descriptor
	TagLDTLinkage                  ts.DescriptorTag = 0xDC // LDT linkage descriptor
	TagConnectedTransmission       ts.DescriptorTag = 0xDD // Connected transmission descriptor
	TagContentAvailability         ts.DescriptorTag = 0xDE // Content availability descriptor
	TagCompositeDescriptor         ts.DescriptorTag = 0xDF // For tag value extension
	TagServiceGroup                ts.DescriptorTag = 0xE0 // Service group descriptor
	TagCarouselCompatibleComposite ts.DescriptorTag = 0xF7 // Carousel compatible composite descriptor
	TagConditionalPlayback         ts.DescriptorTag = 0xF8 // Conditional playback descriptor
	TagCableTSDivisionSystem       ts.DescriptorTag = 0xF9 // Cable TS division system descriptor
	TagTerrestrialDeliverySystem   ts.DescriptorTag = 0xFA // Terrestrial delivery system descriptor
	TagPartialReception            ts.DescriptorTag = 0xFB // Partial reception descriptor
	TagEmergencyInformation        ts.DescriptorTag = 0xFC // Emergency information descriptor
	TagDataComponent               ts.DescriptorTag = 0xFD // Data component descriptor
	TagSystemManagement            ts.DescriptorTag = 0xFE // System management descriptor

)

Tags for descriptor.

View Source
const (
	// PidNIT is the PID for NIT.
	PidNIT = 0x0010

	// PidSDT is the PID for SDT.
	PidSDT = 0x0011

	// PidBAT is the PID for BAT.
	PidBAT = 0x0011

	// PidEIT1 is the PID for EIT.
	PidEIT1 = 0x0012

	// PidEIT2 is the PID for EIT.
	PidEIT2 = 0x0026

	// PidEIT3 is the PID for EIT.
	PidEIT3 = 0x0027

	// PidRST is the PID for RST.
	PidRST = 0x0013

	// PidTDT is the PID for TDT.
	PidTDT = 0x0014

	// PidTOT is the PID for TOT.
	PidTOT = 0x0014

	// PidDCT is the PID for DCT.
	PidDCT = 0x0017

	// PidDIT is the PID for DIT.
	PidDIT = 0x001E

	// PidSIT is the PID for SIT.
	PidSIT = 0x001F

	// PidLIT is the PID for LIT.
	PidLIT = 0x0020

	// PidERT is the PID for ERT.
	PidERT = 0x0021

	// PidPCAT is the PID for PCAT.
	PidPCAT = 0x0022

	// PidSDTT1 is the PID for SDTT.
	PidSDTT1 = 0x0023

	// PidSDTT2 is the PID for SDTT.
	PidSDTT2 = 0x0028

	// PidBIT is the PID for BIT.
	PidBIT = 0x0024

	// PidNBIT is the PID for NBIT.
	PidNBIT = 0x0025

	// PidLDT is the PID for LDT.
	PidLDT = 0x0025

	// PidCDT is the PID for CDT.
	PidCDT = 0x0029

	// PidTLV is the PID for TLV splitted.
	PidTLV = 0x002D

	// PidAMT is the PID for AMT.
	PidAMT = 0x002E

	// PidMFH is the PID for Multiple frame header information.
	PidMFH = 0x002F
)

Variables

This section is empty.

Functions

func IsAudioComponentDescriptor

func IsAudioComponentDescriptor(d ts.Descriptor) bool

IsAudioComponentDescriptor reports whether the descriptor is the audio_component_descriptor.

func IsComponentDescriptor

func IsComponentDescriptor(d ts.Descriptor) bool

IsComponentDescriptor reports whether the descriptor is the component_descriptor.

func IsContentDescriptor

func IsContentDescriptor(d ts.Descriptor) bool

IsContentDescriptor reports whether the descriptor is the content_descriptor.

func IsDataContentDescriptor

func IsDataContentDescriptor(d ts.Descriptor) bool

IsDataContentDescriptor reports whether the descriptor is the data_content_descriptor.

func IsDigitalCopyControlDescriptor

func IsDigitalCopyControlDescriptor(d ts.Descriptor) bool

IsDigitalCopyControlDescriptor reports whether the descriptor is the digital_copy_control_descriptor.

func IsEIT

func IsEIT(p ts.Packet) bool

func IsEventGroupDescriptor

func IsEventGroupDescriptor(d ts.Descriptor) bool

IsEventGroupDescriptor reports whether the descriptor is the event_group_descriptor.

func IsSatelliteDeliverySystemDescriptor

func IsSatelliteDeliverySystemDescriptor(d ts.Descriptor) bool

IsSatelliteDeliverySystemDescriptor reports whether the descriptor is the satellite_delivery_system_descriptor.

func IsServiceDescriptor

func IsServiceDescriptor(d ts.Descriptor) bool

IsServiceDescriptor reports whether the descriptor is the service_descriptor.

func IsServiceListDescriptor

func IsServiceListDescriptor(d ts.Descriptor) bool

IsServiceListDescriptor reports whether the descriptor is the service_list_descriptor.

func IsShortEventDescriptor

func IsShortEventDescriptor(d ts.Descriptor) bool

IsShortEventDescriptor reports whether the descriptor is the short_event_descriptor.

Types

type AudioComponentDescriptor

type AudioComponentDescriptor ts.Descriptor

AudioComponentDescriptor is the audio_component_descriptor.

func ToAudioComponentDescriptor

func ToAudioComponentDescriptor(d ts.Descriptor) (AudioComponentDescriptor, error)

ToAudioComponentDescriptor converts the descriptor to the audio_component_descriptor.

func (AudioComponentDescriptor) ComponentTag

func (d AudioComponentDescriptor) ComponentTag() byte

func (AudioComponentDescriptor) ComponentType

func (d AudioComponentDescriptor) ComponentType() byte

func (AudioComponentDescriptor) ESMultiLingualFlag

func (d AudioComponentDescriptor) ESMultiLingualFlag() bool

func (AudioComponentDescriptor) ISO639LanguageCode

func (d AudioComponentDescriptor) ISO639LanguageCode() (string, error)

ISO639LanguageCode returns the language code.

func (AudioComponentDescriptor) ISO639LanguageCode2

func (d AudioComponentDescriptor) ISO639LanguageCode2() (string, error)

ISO639LanguageCode2 returns the second language code if the audio_component_descriptor is multi lingual.

func (AudioComponentDescriptor) MainComponentFlag

func (d AudioComponentDescriptor) MainComponentFlag() bool

func (AudioComponentDescriptor) QualityIndicator

func (d AudioComponentDescriptor) QualityIndicator() bool

func (AudioComponentDescriptor) SamplingRate

func (d AudioComponentDescriptor) SamplingRate() byte

func (AudioComponentDescriptor) SimulcastGroupTag

func (d AudioComponentDescriptor) SimulcastGroupTag() byte

func (AudioComponentDescriptor) StreamContent

func (d AudioComponentDescriptor) StreamContent() byte

func (AudioComponentDescriptor) StreamType

func (d AudioComponentDescriptor) StreamType() byte

func (AudioComponentDescriptor) Text

Text returns the text of the audio_component_descriptor.

type ComponentDescriptor

type ComponentDescriptor ts.Descriptor

ComponentDescriptor is the component_descriptor.

func ToComponentDescriptor

func ToComponentDescriptor(d ts.Descriptor) (ComponentDescriptor, error)

ToComponentDescriptor converts the descriptor to the component_descriptor.

func (ComponentDescriptor) ComponentTag

func (d ComponentDescriptor) ComponentTag() byte

func (ComponentDescriptor) ComponentType

func (d ComponentDescriptor) ComponentType() byte

func (ComponentDescriptor) ISO639LanguageCode

func (d ComponentDescriptor) ISO639LanguageCode() (string, error)

ISO639LanguageCode returns the language code.

func (ComponentDescriptor) StreamContent

func (d ComponentDescriptor) StreamContent() byte

func (ComponentDescriptor) Text

func (d ComponentDescriptor) Text() (string, error)

Text returns the text of the component_descriptor.

type ContentDescriptor

type ContentDescriptor ts.Descriptor

ContentDescriptor is the content_descriptor.

func ToContentDescriptor

func ToContentDescriptor(d ts.Descriptor) (ContentDescriptor, error)

ToContentDescriptor converts the descriptor to the content_descriptor.

func (ContentDescriptor) Nibbles

func (d ContentDescriptor) Nibbles() []Nibble

type DataContentDescriptor

type DataContentDescriptor ts.Descriptor

DataContentDescriptor is the data_content_descriptor.

func ToDataContentDescriptor

func ToDataContentDescriptor(d ts.Descriptor) (DataContentDescriptor, error)

ToDataContentDescriptor converts the descriptor to the data_content_descriptor.

func (DataContentDescriptor) ComponentRefs

func (d DataContentDescriptor) ComponentRefs() []byte

TODO

func (DataContentDescriptor) DataComponentID

func (d DataContentDescriptor) DataComponentID() []byte

TODO

func (DataContentDescriptor) EntryComponent

func (d DataContentDescriptor) EntryComponent() byte

TODO

func (DataContentDescriptor) ISO639LanguageCode

func (d DataContentDescriptor) ISO639LanguageCode() (string, error)

ISO639LanguageCode returns the language code.

func (DataContentDescriptor) NumOfComponentRef

func (d DataContentDescriptor) NumOfComponentRef() int

TODO

func (DataContentDescriptor) SelectorBytes

func (d DataContentDescriptor) SelectorBytes() []byte

TODO

func (DataContentDescriptor) SelectorLength

func (d DataContentDescriptor) SelectorLength() int

TODO

func (DataContentDescriptor) Text

func (d DataContentDescriptor) Text() (string, error)

Text returns the text of the data_content_descriptor.

func (DataContentDescriptor) TextLength

func (d DataContentDescriptor) TextLength() int

TextLength returns the length of the text.

type DigitalCopyControlComponent

type DigitalCopyControlComponent []byte

DigitalCopyControlComponent is the component of the digital_copy_control_descriptor.

func (DigitalCopyControlComponent) DigitalRecordingControlData

func (c DigitalCopyControlComponent) DigitalRecordingControlData() byte

DigitalRecordingControlData returns the digital recording control data.

func (DigitalCopyControlComponent) HasMaximumBitrate

func (c DigitalCopyControlComponent) HasMaximumBitrate() bool

HasMaximumBitrate reports whether the component has maximum bitrate.

func (DigitalCopyControlComponent) MaximumBitrate

func (c DigitalCopyControlComponent) MaximumBitrate() int

MaximumBitrate returns the maximum bitrate of the component.

func (DigitalCopyControlComponent) MaximumBitrateFlag

func (c DigitalCopyControlComponent) MaximumBitrateFlag() bool

MaximumBitrateFlag returns maximum bitrate flag.

func (DigitalCopyControlComponent) Tag

Tag returns the tag of the component.

type DigitalCopyControlDescriptor

type DigitalCopyControlDescriptor ts.Descriptor

DigitalCopyControlDescriptor is the digital_copy_control_descriptor. descriptor_tag 8 [0] descriptor_length 8 [1] digital_recording_control_data 2 [2] maximum_bitrate_flag 1 [2] component_control_flag 1 [2] user_defined 4 [2] maximum_bitrate if maximum_bitrate 8 [3?] component_control_length if component_control 8 [4?] for

component_tag                               8 [0]
digital_recording_control_data              2 [1]
maximum_bitrate_flag                        1 [1]
reserved_future_use                         1 [1]
user_defined                                4 [1]
maximum_bitrate if maximum_bitrate          8 [2?]

func ToDigitalCopyControlDescriptor

func ToDigitalCopyControlDescriptor(d ts.Descriptor) (DigitalCopyControlDescriptor, error)

ToDigitalCopyControlDescriptor converts the descriptor to the audio_component_descriptor.

func (DigitalCopyControlDescriptor) ComponentControlFlag

func (d DigitalCopyControlDescriptor) ComponentControlFlag() bool

ComponentControlFlag returns component control flag.

func (DigitalCopyControlDescriptor) ComponentControlLength

func (d DigitalCopyControlDescriptor) ComponentControlLength() int

ComponentControlLength returns the length of component controls.

func (DigitalCopyControlDescriptor) Components

Components returns components of the descriptor.

func (DigitalCopyControlDescriptor) DigitalRecordingControlData

func (d DigitalCopyControlDescriptor) DigitalRecordingControlData() byte

DigitalRecordingControlData returns the digital recording control data.

func (DigitalCopyControlDescriptor) HasComponentControl

func (d DigitalCopyControlDescriptor) HasComponentControl() bool

HasComponentControl reports whether the descriptor has component controls.

func (DigitalCopyControlDescriptor) HasMaximumBitrate

func (d DigitalCopyControlDescriptor) HasMaximumBitrate() bool

HasMaximumBitrate reports whether the descriptor has maximum bitrate.

func (DigitalCopyControlDescriptor) MaximumBitrate

func (d DigitalCopyControlDescriptor) MaximumBitrate() int

MaximumBitrate returns the maximum bitrate of the descriptor.

func (DigitalCopyControlDescriptor) MaximumBitrateFlag

func (d DigitalCopyControlDescriptor) MaximumBitrateFlag() bool

MaximumBitrateFlag returns maximum bitrate flag.

type EIT

type EIT ts.PSI

EIT is a Event Information Table.

func (EIT) CurrentNextIndicator

func (t EIT) CurrentNextIndicator() byte

CurrentNextIndicator returns the current_next_indicator.

func (EIT) Events

func (t EIT) Events() []Event

Events returns the events.

func (EIT) LastSectionNumber

func (t EIT) LastSectionNumber() byte

LastSectionNumber returns the last_section_number.

func (EIT) LastTableID

func (t EIT) LastTableID() ts.TableID

LastTableID returns the last_table_id.

func (EIT) OriginalNetworkID

func (t EIT) OriginalNetworkID() OriginalNetworkID

OriginalNetworkID returns the OriginalNetworkID.

func (EIT) SectionNumber

func (t EIT) SectionNumber() byte

SectionNumber returns the section_number.

func (EIT) SegmentLastSectionNumber

func (t EIT) SegmentLastSectionNumber() int

SegmentLastSectionNumber returns the segment_last_section_number.

func (EIT) ServiceID

func (t EIT) ServiceID() ServiceID

ServiceID returns the ServiceID.

func (EIT) TransportStreamID

func (t EIT) TransportStreamID() ts.TransportStreamID

TransportStreamID returns the TransportStreamID.

func (EIT) VersionNumber

func (t EIT) VersionNumber() int

VersionNumber returns the version_number.

type Event

type Event []byte

Event is an information for the event.

func (Event) Descriptors

func (e Event) Descriptors() []ts.Descriptor

Descriptors returns the descriptors.

func (Event) DescriptorsLoopLength

func (e Event) DescriptorsLoopLength() int

DescriptorsLoopLength returns the descriptors_loop_length.

func (Event) Duration

func (e Event) Duration() time.Duration

Duration returns the duration.

func (Event) FreeCAMode

func (e Event) FreeCAMode() byte

FreeCAMode returns the free_CA_mode.

func (Event) ID

func (e Event) ID() EventID

ID returns the event_id.

func (Event) IsFreeCA

func (e Event) IsFreeCA() bool

IsFreeCA reports whether the event is free_CA_mode.

func (Event) RunningStatus

func (e Event) RunningStatus() RunningStatus

RunningStatus returns the running_status.

func (Event) StartTime

func (e Event) StartTime() time.Time

StartTime returns the start_time.

type EventGroupDescriptor

type EventGroupDescriptor ts.Descriptor

EventGroupDescriptor is the event_group_descriptor. descriptor_tag 8 [0] descriptor_length 8 [1] group_type 4 [2] event_count 4 [2] for event_count

service_id             16 [0]
event_id               16 [2]

if group_type == 4 || 5

for
  original_network_id  16 [0]
  transport_stream_id  16 [2]
  service_id           16 [4]
  event_id             16 [6]

else

for
  private_data_byte     8 []

func ToEventGroupDescriptor

func ToEventGroupDescriptor(d ts.Descriptor) (EventGroupDescriptor, error)

ToEventGroupDescriptor converts the descriptor to the event_group_descriptor.

func (EventGroupDescriptor) EventCount

func (d EventGroupDescriptor) EventCount() int

func (EventGroupDescriptor) Events

func (d EventGroupDescriptor) Events() []*EventGroupEvent

func (EventGroupDescriptor) GroupType

func (d EventGroupDescriptor) GroupType() int

type EventGroupEvent

type EventGroupEvent struct {
	// contains filtered or unexported fields
}

func (*EventGroupEvent) EventID

func (e *EventGroupEvent) EventID() uint16

func (*EventGroupEvent) PrivateDataBytes

func (e *EventGroupEvent) PrivateDataBytes() []byte

func (*EventGroupEvent) RelatedEvents

func (e *EventGroupEvent) RelatedEvents() []RelatedEvent

func (*EventGroupEvent) ServiceID

func (e *EventGroupEvent) ServiceID() []byte

type EventID

type EventID uint16

type NIT

type NIT ts.PSI

NIT is a Network Information Table.

func (NIT) CurrentNextIndicator

func (t NIT) CurrentNextIndicator() byte

CurrentNextIndicator returns the current_next_indicator.

func (NIT) Descriptors

func (t NIT) Descriptors() []ts.Descriptor

Descriptors returns the descriptors.

func (NIT) LastSectionNumber

func (t NIT) LastSectionNumber() byte

LastSectionNumber returns the last_section_number.

func (NIT) NetworkDescriptorsLength

func (t NIT) NetworkDescriptorsLength() int

NetworkDescriptorsLength returns the network_descriptors_length.

func (NIT) NetworkID

func (t NIT) NetworkID() NetworkID

NetworkID returns the NetworkID.

func (NIT) NetworkTransportStreams

func (t NIT) NetworkTransportStreams() []NetworkTransportStream

NetworkTransportStreams returns the list of NetworkTransportStream.

func (NIT) SectionNumber

func (t NIT) SectionNumber() byte

SectionNumber returns the section_number.

func (NIT) TransportStreamLoopLength

func (t NIT) TransportStreamLoopLength() int

TransportStreamLoopLength returns the transport_stream_loop_length.

func (NIT) VersionNumber

func (t NIT) VersionNumber() int

VersionNumber returns the version_number.

type NetworkID

type NetworkID uint16

NetworkID is a network_id which serves as a label to identify the delivery system, about which the NIT informs, from any other delivery system. The standardization organization shall specify allocation of the value of this field.

type NetworkTransportStream

type NetworkTransportStream []byte

NetworkTransportStream is an information relating to the physical organization of the TS carried via a given network.

func (NetworkTransportStream) Descriptors

func (nts NetworkTransportStream) Descriptors() []ts.Descriptor

Descriptors returns descriptors.

func (NetworkTransportStream) OriginalNetworkID

func (nts NetworkTransportStream) OriginalNetworkID() OriginalNetworkID

OriginalNetworkID returns the original_network_id.

func (NetworkTransportStream) TransportDescriptorsLength

func (nts NetworkTransportStream) TransportDescriptorsLength() int

TransportDescriptorsLength returns the transport_descriptors_length.

func (NetworkTransportStream) TransportStreamID

func (nts NetworkTransportStream) TransportStreamID() ts.TransportStreamID

TransportStreamID returns the transport_stream_id.

type Nibble

type Nibble []byte

Nibble is the genre of the event.

func (Nibble) ContentNibbleLevel1

func (n Nibble) ContentNibbleLevel1() byte

ContentNibbleLevel1 returns the genre of the content 1.

func (Nibble) ContentNibbleLevel2

func (n Nibble) ContentNibbleLevel2() byte

ContentNibbleLevel2 returns the genre of the content 2.

func (Nibble) UserNibble1

func (n Nibble) UserNibble1() byte

UserNibble1 returns the user defined genre 1.

func (Nibble) UserNibble2

func (n Nibble) UserNibble2() byte

UserNibble2 returns the user defined genre 2.

type OriginalNetworkID

type OriginalNetworkID uint16

OriginalNetworkID is a original_network_id which gives the label identifying the network_id of the originating delivery system.

type RelatedEvent

type RelatedEvent []byte

func (RelatedEvent) EventID

func (e RelatedEvent) EventID() uint16

func (RelatedEvent) OriginalNetworkID

func (e RelatedEvent) OriginalNetworkID() []byte

func (RelatedEvent) ServiceID

func (e RelatedEvent) ServiceID() []byte

func (RelatedEvent) TransportStreamID

func (e RelatedEvent) TransportStreamID() []byte

type RunningStatus

type RunningStatus byte

type SDT

type SDT ts.PSI

SDT is a Service Description Table.

func (SDT) CurrentNextIndicator

func (t SDT) CurrentNextIndicator() byte

CurrentNextIndicator returns the current_next_indicator.

func (SDT) LastSectionNumber

func (t SDT) LastSectionNumber() byte

LastSectionNumber returns the last_section_number.

func (SDT) OriginalNetworkID

func (t SDT) OriginalNetworkID() OriginalNetworkID

OriginalNetworkID returns the OriginalNetworkID.

func (SDT) SectionNumber

func (t SDT) SectionNumber() byte

SectionNumber returns the section_number.

func (SDT) Services

func (t SDT) Services() []Service

Services returns the list of Service.

func (SDT) TransportStreamID

func (t SDT) TransportStreamID() ts.TransportStreamID

TransportStreamID returns the TransportStreamID.

func (SDT) VersionNumber

func (t SDT) VersionNumber() int

VersionNumber returns the version_number.

type SatelliteDeliverySystemDescriptor

type SatelliteDeliverySystemDescriptor ts.Descriptor

SatelliteDeliverySystemDescriptor is the satellite_delivery_system_descriptor. 衛星分配システム記述子

satellite_delivery_system_descriptor(){
    descriptor_tag               8 uimsbf [0]
    descriptor_length            8 uimsbf [1]
    frequency                   32 bslbf  [2-5]
    orbital_position            16 bslbf  [6-7]
    west_east_flag               1 bslbf  [8]
    polarisation                 2 bslbf  [8]
    modulation                   5 bslbf  [8]
    symbol_rate                 28 bslbf  [9-12]
    FEC_inner                    4 bslbf  [12]
}

func ToSatelliteDeliverySystemDescriptor

func ToSatelliteDeliverySystemDescriptor(d ts.Descriptor) (SatelliteDeliverySystemDescriptor, error)

ToSatelliteDeliverySystemDescriptor converts the descriptor to the satellite_delivery_system_descriptor.

func (SatelliteDeliverySystemDescriptor) FECInner

func (SatelliteDeliverySystemDescriptor) Frequency

func (d SatelliteDeliverySystemDescriptor) Frequency() []byte

TODO 32bit 4 ビット BCD コード 8 桁で周波 数を表す 衛星分配システム記述子では、周波数は 4 桁目以降が小数点以下となる GHz 単位で 符号化される。(例 012.73300GHz)

func (SatelliteDeliverySystemDescriptor) Modulation

func (d SatelliteDeliverySystemDescriptor) Modulation() byte

func (SatelliteDeliverySystemDescriptor) OrbitalPosition

func (d SatelliteDeliverySystemDescriptor) OrbitalPosition() []byte

TODO これは 16 ビットのフィールドで、4 ビット BCD コード 4 桁で、 4桁目が小数点以下となる度単位で軌道位置を表す。(例 144.0 度)

func (SatelliteDeliverySystemDescriptor) Polarisation

func (d SatelliteDeliverySystemDescriptor) Polarisation() byte

func (SatelliteDeliverySystemDescriptor) SymbolRate

func (d SatelliteDeliverySystemDescriptor) SymbolRate() []byte

TODO これは 28 ビットフィールドで、4 ビット BCD コード 7 桁で、 4 桁目以降が小数点以下となる Msymbol/s 単位でシンボルレート値を表す。 (例 021.0960)

func (SatelliteDeliverySystemDescriptor) WestEastFlag

func (d SatelliteDeliverySystemDescriptor) WestEastFlag() bool

type Service

type Service []byte

Service is an information for the service that are contained within a TS.

func (Service) Descriptors

func (s Service) Descriptors() []ts.Descriptor

Descriptors returns the descriptors.

func (Service) DescriptorsLoopLength

func (s Service) DescriptorsLoopLength() int

DescriptorsLoopLength returns the descriptors_loop_length.

func (Service) EITPresentFollowingFlag

func (s Service) EITPresentFollowingFlag() byte

EITPresentFollowingFlag returns the EIT_present_following_flag.

func (Service) EITScheduleFlag

func (s Service) EITScheduleFlag() byte

EITScheduleFlag returns the EIT_schedule_flag.

func (Service) EITUserDefinedFlags

func (s Service) EITUserDefinedFlags() byte

EITUserDefinedFlags returns the EIT_user_defined_flags.

func (Service) FreeCAMode

func (s Service) FreeCAMode() byte

FreeCAMode returns the free_CA_mode.

func (Service) ID

func (s Service) ID() ServiceID

ID returns the service_id.

func (Service) IsFreeCA

func (s Service) IsFreeCA() bool

IsFreeCA reports whether the service is free_CA_mode.

func (Service) RunningStatus

func (s Service) RunningStatus() RunningStatus

RunningStatus returns the running_status.

type ServiceDescriptor

type ServiceDescriptor ts.Descriptor

ServiceDescriptor is the service_descriptor.

service_descriptor(){
    descriptor_tag               8 uimsbf
    descriptor_length            8 uimsbf
    service_type                 8 uimsbf
    service_provider_name_length 8 uimsbf
    for (i=0;i<N;i++){
        char                     8 uimsbf
    }
    service_name_length          8 uimsbf
    for (i=0;i<N;i++){
        char                     8 uimsbf
    }
}

func ToServiceDescriptor

func ToServiceDescriptor(d ts.Descriptor) (ServiceDescriptor, error)

ToServiceDescriptor converts the descriptor to the service_descriptor.

func (ServiceDescriptor) Name

func (d ServiceDescriptor) Name() (string, error)

func (ServiceDescriptor) NameLength

func (d ServiceDescriptor) NameLength() int

func (ServiceDescriptor) ProviderName

func (d ServiceDescriptor) ProviderName() (string, error)

func (ServiceDescriptor) ProviderNameLength

func (d ServiceDescriptor) ProviderNameLength() int

func (ServiceDescriptor) Type

func (d ServiceDescriptor) Type() byte

type ServiceID

type ServiceID ts.ProgramNumber

type ServiceListDescriptor

type ServiceListDescriptor ts.Descriptor

ServiceListDescriptor is the service_list_descriptor.

service_list_descriptor(){
    descriptor_tag               8 uimsbf
    descriptor_length            8 uimsbf
    for (i=0;i<N;i++){
        service_id              16 uimsbf
        service_type             8 uimsbf
    }
}

func ToServiceListDescriptor

func ToServiceListDescriptor(d ts.Descriptor) (ServiceListDescriptor, error)

ToServiceListDescriptor converts the descriptor to the service_list_descriptor.

func (ServiceListDescriptor) Services

type ServiceListService

type ServiceListService []byte

func (ServiceListService) ID

func (s ServiceListService) ID() uint16

func (ServiceListService) Type

func (s ServiceListService) Type() byte

type ShortEventDescriptor

type ShortEventDescriptor ts.Descriptor

ShortEventDescriptor is the short_event_descriptor.

func ToShortEventDescriptor

func ToShortEventDescriptor(d ts.Descriptor) (ShortEventDescriptor, error)

ToShortEventDescriptor converts the descriptor to the short_event_descriptor.

func (ShortEventDescriptor) EventName

func (d ShortEventDescriptor) EventName() (string, error)

EventName returns the name of the event.

func (ShortEventDescriptor) EventNameLength

func (d ShortEventDescriptor) EventNameLength() int

EventNameLength returns the length of the event name.

func (ShortEventDescriptor) ISO639LanguageCode

func (d ShortEventDescriptor) ISO639LanguageCode() (string, error)

ISO639LanguageCode returns the language code.

func (ShortEventDescriptor) Text

func (d ShortEventDescriptor) Text() (string, error)

Text returns the text of the short_event_descriptor.

func (ShortEventDescriptor) TextLength

func (d ShortEventDescriptor) TextLength() int

TextLength returns the length of the text.

Directories

Path Synopsis
xcs

Jump to

Keyboard shortcuts

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