config

package
v0.0.0-...-03ee275 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package config contains models for user settings

Index

Constants

View Source
const (
	ImagesInputRootDir string = "D:/timelapse/input"
	// ImagesInputRootDir  string = "Y:/"
	VideosOutputRootDir string = "D:/timelapse/output"
)

TODO: change to Linux once ready for Docker

Variables

View Source
var Cfg = config{}

Cfg is the current app configuration

Functions

func GetApproxTotalDuration

func GetApproxTotalDuration() time.Duration

GetApproxTotalDuration uses the configured framerate and list of image filenames to predict the approximate final timelapse video duration.

func Init

func Init() (err error)

Init prepares the required in- and output directories.

func SetImagesPerSecond

func SetImagesPerSecond(framerate float64)

SetImagesPerSecond saves the framerate to the current config. No validation is performed.

func SetInputDir

func SetInputDir(d string)

SetInputDir saves the input directory to the current config. No validation is performed.

func SetOutputFilename

func SetOutputFilename(f string)

SetOutputFilename saves the output filename to the current config. No validation is performed.

func SetTimerange

func SetTimerange(from time.Time, to time.Time)

SetTimerange saves the input photo timerange to the current config. No validation is performed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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