encoder

package
v0.0.0-...-9e2557a Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateFilm

func GenerateFilm(config ConfigEncoderFilms) error

func GenerateImages

func GenerateImages(config ConfigEncoderImages) error

Types

type ConfigEncoderFilms

type ConfigEncoderFilms struct {
	Film      ConfigFilm
	IsPreview bool
	Preview   ConfigFilm
	Images    ConfigEncoderImages
}

func GetFilmConfig

func GetFilmConfig() ConfigEncoderFilms

type ConfigEncoderImages

type ConfigEncoderImages struct {
	Width  string
	Height string
	Input  FilePath
	Output FilePath
}

func GetImagesConfig

func GetImagesConfig() ConfigEncoderImages

func (*ConfigEncoderImages) GetHeight

func (c *ConfigEncoderImages) GetHeight() int

func (*ConfigEncoderImages) GetWidth

func (c *ConfigEncoderImages) GetWidth() int

type ConfigFilm

type ConfigFilm struct {
	Output FilePath
	Input  FilePath
	Fps    string
	Format string
	Codec  string
	Crf    string
	Preset string
}

type FilePath

type FilePath struct {
	Path      string
	Name      string
	Extension string
}

func (*FilePath) GetInputImagePath

func (f *FilePath) GetInputImagePath() string

func (*FilePath) GetOutputImagePath

func (f *FilePath) GetOutputImagePath(number int) string

func (*FilePath) GetPath

func (f *FilePath) GetPath() string

Jump to

Keyboard shortcuts

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