Documentation ¶
Overview ¶
AdaptationField provides functions for accessing and reading packet adaptation fields
Index ¶
- func EncoderBoundaryPoint(pkt *packet.Packet) ([]byte, error)
- func HasAdaptationFieldExtension(pkt *packet.Packet) bool
- func HasOPCR(pkt *packet.Packet) bool
- func HasPCR(pkt *packet.Packet) bool
- func HasSplicingPoint(pkt *packet.Packet) bool
- func HasTransportPrivateData(pkt *packet.Packet) bool
- func IsDiscontinuous(pkt *packet.Packet) bool
- func IsESHigherPriority(pkt *packet.Packet) bool
- func IsRandomAccess(pkt *packet.Packet) bool
- func Length(pkt *packet.Packet) uint8
- func OPCR(pkt *packet.Packet) ([]byte, error)
- func PCR(pkt *packet.Packet) ([]byte, error)
- func SpliceCountdown(pkt *packet.Packet) (uint8, error)
- func TransportPrivateData(pkt *packet.Packet) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncoderBoundaryPoint ¶
EncoderBoundaryPoint returns the byte array located in the optional TransportPrivateData of the (also optional) AdaptationField of the Packet. If either of these optional fields are missing an empty byte array is returned with an error
func HasAdaptationFieldExtension ¶
HasAdaptationFieldExtension returns true if this adaptation field contains an extension field
func HasSplicingPoint ¶
HasSplicingPoint returns true when the splicing countdown field is present
func HasTransportPrivateData ¶
HasTransportPrivateData returns true when the private data field is present
func IsDiscontinuous ¶
IsDiscontinuous returns the discontinuity indicator for this adaptation field
func IsESHigherPriority ¶
IsESHigherPriority returns true if this elementary stream is high priority. Corresponds to the elementary stream priority indicator.
func IsRandomAccess ¶
IsRandomAccess returns the random access indicator for this adaptation field
func OPCR ¶
OPCR is the Original Program Clock Reference. First 33 bits are original PCR base. Next 6 bits are reserved. Final 9 bits are original PCR extension.
func PCR ¶
PCR is the Program Clock Reference. First 33 bits are PCR base. Next 6 bits are reserved. Final 9 bits are PCR extension.
func SpliceCountdown ¶
SpliceCountdown returns a count of how many packets after this one until a splice point occurs or an error if none exist. This function calls HasSplicingPoint to check for the existence of a splice countdown.
Types ¶
This section is empty.