frameserver

package
v0.0.0-...-487786b Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FrameServer

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

func New

func New(reader io.ReadSeeker, cachedFrameSeekTable []int64) *FrameServer

func NewXZCompressed

func NewXZCompressed(reader io.ReadSeeker, cachedFrameSeekTable []int64) *FrameServer

func (*FrameServer) GetAllFrames

func (s *FrameServer) GetAllFrames() *frame.Stream

GetAllFrames gets all frames from start to end. Locks on every iteration. See GetAllFramesLock

func (*FrameServer) GetAllFramesLock

func (s *FrameServer) GetAllFramesLock() *frame.Stream

GetAllFramesLock gets all frames from start to end. Locks on every iteration. See GetAllFramesLock

func (*FrameServer) GetFrame

func (s *FrameServer) GetFrame(frameNumber int) (f frame.Frame, err error)

func (*FrameServer) GetFrameSeekTable

func (s *FrameServer) GetFrameSeekTable() []int64

func (*FrameServer) GetFrames

func (s *FrameServer) GetFrames(startFrameNumber, endFrameNumber int) *frame.Stream

GetFrames gets a range of frames, like a slice [0, 1] will return just one frame.Frame. Locks on every iteration. See GetFramesLock

func (*FrameServer) GetFramesLock

func (s *FrameServer) GetFramesLock(startFrameNumber, endFrameNumber int) *frame.Stream

GetFramesLock gets a range of frames, but locks during all of them. See GetFrames

type Pool

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

Pool automatically grows and shrinks as-needed based on how many frame requests come in.

func NewPool

func NewPool(sourcePath string, cachedFrameSeekTable []int64) *Pool

func (*Pool) GetAllFrames

func (p *Pool) GetAllFrames() *frame.Stream

func (*Pool) GetFrameSeekTable

func (p *Pool) GetFrameSeekTable() []int64

func (*Pool) GetFrames

func (p *Pool) GetFrames(startFrameNumber, endFrameNumber int) *frame.Stream

Jump to

Keyboard shortcuts

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