Versions in this module Expand all Collapse all v2 v2.2.1 Feb 6, 2023 v2.2.0 Aug 19, 2022 Changes in this version + const LowerPtsRolloverThreshold + const MaxPtsTicks + const MaxPtsValue + const PTS_DTS_INDICATOR_BOTH + const PTS_DTS_INDICATOR_NONE + const PTS_DTS_INDICATOR_ONLY_PTS + const PtsClockRate + const PtsNegativeInfinity + const PtsPositiveInfinity + const UpperPtsRolloverThreshold + var ErrAccumulatorDone = errors.New("Accumulation is complete.") + var ErrAccumulatorInvalidState = errors.New("Accumulator is in an invalid state.") + var ErrAdaptationFieldCannotGrow = errors.New("adaptation field cannot cannot grow beyond its allocated length") + var ErrAdaptationFieldTooLarge = errors.New("adaptation field is too large and cannot shrink") + var ErrAdaptationFieldZeroLength = errors.New("adaptation field is empty") + var ErrBadSyncByte = errors.New("sync byte is not valid") + var ErrInvalidAFCFlag = errors.New("invalid packet length") + var ErrInvalidEBPLength = errors.New("invalid EBP data length") + var ErrInvalidPATLength = errors.New("too few bytes to parse PAT") + var ErrInvalidPacketLength = errors.New("invalid packet length") + var ErrInvalidSCTE35Length = errors.New("too few bytes to parse SCTE35") + var ErrInvalidTSCFlag = errors.New("invalid transport scrambling control option.") + var ErrNilPAT = errors.New("Nil PAT not allowed here.") + var ErrNoAdaptationField = errors.New("packet does not contain an adaptation field") + var ErrNoAdaptationFieldExtension = errors.New("adaptation field has no Adaptation Field Extension") + var ErrNoEBP = errors.New("packet does not contain EBP") + var ErrNoEBPData = errors.New("empty data provided to EBP parser") + var ErrNoOPCR = errors.New("adaptation field has no Original Program Clock Reference") + var ErrNoPCR = errors.New("adaptation field has no Program Clock Reference") + var ErrNoPayload = errors.New("packet does not contain payload") + var ErrNoPayloadUnitStartIndicator = errors.New("packet does not have payload unit start indicator") + var ErrNoPrivateTransportData = errors.New("adaptation field has no private transport data") + var ErrNoSplicePoint = errors.New("adaptation field has no splice point") + var ErrPATNotFound = errors.New("No PAT was found while reading TS") + var ErrPIDNotInPMT = errors.New("PID(s) %d not found in PMT.") + var ErrPMTNotFound = errors.New("No PMT was found while reading TS") + var ErrPMTParse = errors.New("PMT malformed.") + var ErrParsePMTDescriptor = errors.New("unable to parse PMT descriptor") + var ErrSCTE35DescriptorNotFound = errors.New("Cannot close descriptor that's not in the open list") + var ErrSCTE35DuplicateDescriptor = errors.New("Duplicate or equivalent descriptor received by scte35.State") + var ErrSCTE35EncryptionUnsupported = errors.New("SCTE35 is encrypted, which is not supported") + var ErrSCTE35InvalidDescriptor = errors.New("Invalid descriptor given the current state") + var ErrSCTE35InvalidDescriptorID = errors.New("SCTE35 segmentation descriptor has a id that is not \"CUEI\"") + var ErrSCTE35MissingOut = errors.New("In descriptor received with no matching out") + var ErrSCTE35UnsupportedSpliceCommand = errors.New(...) + var ErrShortPayload = errors.New("provided data is too short to parse") + var ErrSyncByteNotFound = errors.New("Sync-byte not found.") + var ErrUnknownTableID = errors.New("Unknown table id received") + var ErrUnrecognizedEbpType = errors.New("unrecognized EBP") + var ErrVSSSignalIdNotFound = errors.New("VSS Signal ID not found in the VSS signal received.") + func ComputeCRC(input []byte) []byte + func ExtractPCR(bytes []byte) uint64 + func ExtractTime(bytes []byte) uint64 + func InsertPCR(b []byte, pcr uint64) + func InsertPTS(b []byte, pts uint64) + type PTS uint64 + func (p PTS) Add(x PTS) PTS + func (p PTS) After(other PTS) bool + func (p PTS) DurationFrom(from PTS) uint64 + func (p PTS) GreaterOrEqual(other PTS) bool + func (p PTS) RolledOver(other PTS) bool Other modules containing this package github.com/Comcast/gots