core

package
v0.0.0-...-14d7b53 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: CC0-1.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LuminanceBlendFrame

func LuminanceBlendFrame(brighten bool, output *image.NRGBA, incoming image.Image)

Takes two frames and either brightens or darkens the resultant image depending on the blemding mode. Mutates the output frame by comparing itself to the incoming frame

func ValidateFrames

func ValidateFrames(files []string) (image.Rectangle, error)

Types

type BlendingMode

type BlendingMode int

func (BlendingMode) String

func (w BlendingMode) String() string

type FrameManager

type FrameManager struct {
	Active    bool
	StartTime time.Time
	Workflow  *Workflow
	Image     *image.NRGBA
	Bounds    image.Rectangle
	Files     []string
}

func InitializeFrameManager

func InitializeFrameManager(wf *Workflow, files []string) (FrameManager, error)

func (*FrameManager) StartProcessing

func (f *FrameManager) StartProcessing() error

type OutputFormat

type OutputFormat int

func (OutputFormat) String

func (w OutputFormat) String() string

type Workflow

type Workflow struct {
	UID          int
	BlendingMode BlendingMode

	OutputLocation string
	OutputFileName string
	OutputFormat   OutputFormat

	CreateStarlapseFrames bool
	CreateStarlapseVideo  bool
	StarlapseLocation     string

	CreateTimelapseFrames bool
	CreateTimelapseVideo  bool
	TimelapseLocation     string

	VerboseLogging bool
}

func CreateDefaultWorkflow

func CreateDefaultWorkflow() *Workflow

Jump to

Keyboard shortcuts

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