app

package
v0.0.0-...-c6b6372 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = 2.7
)

Functions

This section is empty.

Types

type Application

type Application struct {
	NVENC           *nvenc.NVENC
	MediaInfo       *mediainfo.MediaInfo
	ConfigFile      string
	LockFile        string
	Window          *Window
	Theme           string
	Fonts           *CustomFonts
	Textures        *Textures
	State           *State
	Usage           *Usage
	EncodingPreset  preset.EncodingPresets
	VPPFlags        preset.VPPFlags
	VPPParams       preset.VPPParams
	PreNVEncCArgv   string
	ExtraNVEncCArgv string
	Update          func()
}

func GetInstance

func GetInstance(config *Config) *Application

func (*Application) CheckCore

func (app *Application) CheckCore()

func (*Application) GetMediaInfo

func (app *Application) GetMediaInfo(inputPath string)

func (*Application) InstallCore

func (app *Application) InstallCore()

func (*Application) LoadFont

func (app *Application) LoadFont()

func (*Application) LoadTexture

func (app *Application) LoadTexture()

func (*Application) Mount

func (app *Application) Mount(window *Window) *Application

func (*Application) NewTextureFromMemory

func (app *Application) NewTextureFromMemory(imageByte []byte) (*g.Texture, error)

func (*Application) OnCommand

func (app *Application) OnCommand(command string)

func (*Application) OnDrop

func (app *Application) OnDrop(dropItem []string)

func (*Application) OnInputClick

func (app *Application) OnInputClick()

func (*Application) OnOutputClick

func (app *Application) OnOutputClick()

func (*Application) OnRunClick

func (app *Application) OnRunClick()

func (*Application) OnSecondInstance

func (app *Application) OnSecondInstance()

func (*Application) Render

func (app *Application) Render()

func (*Application) ResetState

func (app *Application) ResetState()

func (*Application) Run

func (app *Application) Run()

func (*Application) ShouldDisableInput

func (app *Application) ShouldDisableInput(b bool) (flag g.WindowFlags)

type Config

type Config struct {
	Theme           string `default:"dark"`
	Presets         preset.EncodingPresets
	VPPFlags        preset.VPPFlags
	VPPParams       preset.VPPParams
	PreNVEncCArgv   string `default:"--check-features"`
	ExtraNVEncCArgv string `` /* 147-byte string literal not displayed */
}

type CustomFonts

type CustomFonts struct {
	// contains filtered or unexported fields
}

type State

type State struct {
	InputPath    string
	OutputPath   string
	Percent      float32
	GPUName      string
	NVENCLog     string
	MediaInfoLog string
}

type Textures

type Textures struct {
	// contains filtered or unexported fields
}

type Usage

type Usage struct {
	GPU int32
	VE  int32
	VD  int32
}

type Window

type Window struct {
	MW         *g.MasterWindow
	GLFWWindow *glfw.Window
}

Jump to

Keyboard shortcuts

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