adaptationfield

package
v0.0.0-...-1989dba Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

AdaptationField provides functions for accessing and reading packet adaptation fields

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncoderBoundaryPoint

func EncoderBoundaryPoint(pkt *packet.Packet) ([]byte, error)

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

func HasAdaptationFieldExtension(pkt *packet.Packet) bool

HasAdaptationFieldExtension returns true if this adaptation field contains an extension field

func HasOPCR

func HasOPCR(pkt *packet.Packet) bool

HasOPCR returns true when the OPCR flag is set

func HasPCR

func HasPCR(pkt *packet.Packet) bool

HasPCR returns true when the PCR flag is set

func HasSplicingPoint

func HasSplicingPoint(pkt *packet.Packet) bool

HasSplicingPoint returns true when the splicing countdown field is present

func HasTransportPrivateData

func HasTransportPrivateData(pkt *packet.Packet) bool

HasTransportPrivateData returns true when the private data field is present

func IsDiscontinuous

func IsDiscontinuous(pkt *packet.Packet) bool

IsDiscontinuous returns the discontinuity indicator for this adaptation field

func IsESHigherPriority

func IsESHigherPriority(pkt *packet.Packet) bool

IsESHigherPriority returns true if this elementary stream is high priority. Corresponds to the elementary stream priority indicator.

func IsRandomAccess

func IsRandomAccess(pkt *packet.Packet) bool

IsRandomAccess returns the random access indicator for this adaptation field

func Length

func Length(pkt *packet.Packet) uint8

Length returns the length of the adaptation field in bytes

func OPCR

func OPCR(pkt *packet.Packet) ([]byte, error)

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

func PCR(pkt *packet.Packet) ([]byte, error)

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

func SpliceCountdown(pkt *packet.Packet) (uint8, error)

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.

func TransportPrivateData

func TransportPrivateData(pkt *packet.Packet) ([]byte, error)

TransportPrivateData returns the private data from this adaptation field or an empty array and an error if there is none. This function calls HasTransportPrivateData to check for the existence of private data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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