ffwork

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Width, Height int
	FPS           int
	RTSPURL       string
	Transport     string
	UseWallClock  bool
	HWAccel       string
	OnFrame       func(frame *FrameData)
	Name          string
}

type FrameCapture

type FrameCapture struct {
	Name string

	FrameCh chan *FrameData

	OnFrame func(frame *FrameData)
	// contains filtered or unexported fields
}

func NewFrameCapture

func NewFrameCapture(cfg Config) (*FrameCapture, error)

func (*FrameCapture) Error

func (fc *FrameCapture) Error() <-chan error

func (*FrameCapture) FrameSize

func (fc *FrameCapture) FrameSize() int

func (*FrameCapture) Frames

func (fc *FrameCapture) Frames() <-chan *FrameData

func (*FrameCapture) GetFrame

func (fc *FrameCapture) GetFrame(timeout time.Duration) (*FrameData, error)

func (*FrameCapture) GetStats

func (fc *FrameCapture) GetStats() Stats

func (*FrameCapture) Log

func (fc *FrameCapture) Log() []string

func (*FrameCapture) Start

func (fc *FrameCapture) Start() error

func (*FrameCapture) Stop

func (fc *FrameCapture) Stop() error

type FrameData

type FrameData struct {
	FrameNum  uint64
	Timestamp time.Time
	Data      []byte
}

type Stats

type Stats struct {
	Name                  string
	FrameCount, SkipCount uint64
	LastFrame             time.Time
	FrameSize             int
	IsRunning             bool
}

Jump to

Keyboard shortcuts

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