v2

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderLength = 32
	MinorVersion = 0
	MajorVersion = 2
)
View Source
const (
	FppMaxCompressionBlockLength = 64 * 2014 // 2014 is not a typo, copied from https://github.com/FalconChristmas/fpp/blob/master/src/fseq/FSEQFile.cpp#L774
	FppMaxCompressionBlockCount  = math.MaxUint8
	FppWithheldFrameCount        = 10
)

Variables

View Source
var Identifier = []uint8("PESQ")

Functions

This section is empty.

Types

type Compression

type Compression uint8
const (
	None Compression = 0
	Zstd Compression = 1
	Zlib Compression = 2
)

func (Compression) String added in v0.1.2

func (c Compression) String() string

type CompressionBlock

type CompressionBlock struct {
	FrameNumber uint32
	Length      uint32
}
type Header struct {
	Identifier             [4]uint8
	ChannelDataStartOffset uint16
	MinorVersion           uint8
	MajorVersion           uint8
	HeaderLength           uint16
	ChannelCount           uint32
	FrameCount             uint32
	StepTimeMilliseconds   uint8
	Flags1                 uint8 `fppignored:"true" fppdefault:"0"`
	Compression            Compression
	CompressionBlockCount  uint8
	SparseRangeCount       uint8
	Flags2                 uint8 `fppignored:"true" fppdefault:"0"`
	UniqueID               uint64
}

func (Header) ComputeMaxBlocks

func (h Header) ComputeMaxBlocks(maxBlockLength, maxBlockCount, withheldFrameCount int) (blockCount, withheldFrameLength, framesPerBlock int)

func (Header) Duration added in v0.2.4

func (h Header) Duration() time.Duration

func (Header) FramesPerSecond added in v0.2.5

func (h Header) FramesPerSecond() int

type SparseRange

type SparseRange struct {
	StartChannel uint24.Uint24
	ChannelCount uint24.Uint24
}

Jump to

Keyboard shortcuts

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