pcr

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PCR

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

PCR defines the MPEG-TS Program Clock Reference.

func (*PCR) Duration

func (c *PCR) Duration() time.Duration

Duration returns the time.Duration that corresponds to the value of the PCR.

func (*PCR) Marshal

func (c *PCR) Marshal() ([]byte, error)

Marshal encodes the PCR into a byte slice.

func (*PCR) Set

func (c *PCR) Set(d time.Duration)

Set overwrites the value of the PCR to match the time.Duration given.

func (*PCR) String

func (c *PCR) String() string

func (*PCR) Unmarshal

func (c *PCR) Unmarshal(b []byte) error

Unmarshal decodes a byte slice into the PCR.

type Source

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

Source represents a source of PCR values.

func NewSource

func NewSource() *Source

NewSource establishes a new PCR source that counts from the current time as of the this call.

func (*Source) Read

func (s *Source) Read(pcr *PCR)

Read sets the given PCR from this Source.

Jump to

Keyboard shortcuts

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