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 ¶
GetApproxTotalDuration uses the configured framerate and list of image filenames to predict the approximate final timelapse video duration.
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.