nvenc

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PresetOptions       = []string{"P1", "P2", "P3", "P4", "P5", "P6", "P7"}
	AQOptions           = []string{"none", "aq-temporal", "aq"}
	AQOptionsForPreview = []string{"none", "temporal", "spatial"}
)
View Source
var DefaultVPPEdgeLevel = VPPEdgeLevel{
	Strength:  10.0,
	Threshold: 20.0,
	Black:     0,
	White:     0,
}
View Source
var DefaultVPPKNN = VPPKNN{
	Radius:   3,
	Strength: 0.08,
	Lerp:     0.2,
	ThLerp:   0.8,
}
View Source
var DefaultVPPPMD = VPPPMD{
	ApplyCount: 2,
	Strength:   100,
	Threshold:  100,
}
View Source
var DefaultVPPUnSharp = VPPUnSharp{
	Radius:    3,
	Weight:    0.5,
	Threshold: 10.0,
}

Functions

This section is empty.

Types

type NVENC

type NVENC struct {
	Cmd *exec.Cmd
	// contains filtered or unexported fields
}

func New

func New(binaryPath string) *NVENC

func (*NVENC) CheckDevice

func (n *NVENC) CheckDevice() (name string, err error)

func (*NVENC) IsEncoding

func (n *NVENC) IsEncoding() bool

func (*NVENC) RunCommand

func (n *NVENC) RunCommand(cmd string) ([]byte, []byte, error)

func (*NVENC) RunEncode

func (n *NVENC) RunEncode(inputPath string, outputPath string, args []string) (<-chan string, <-chan Progress, error)

func (*NVENC) Stop

func (n *NVENC) Stop()

type Progress

type Progress struct {
	Percent         float64
	FramesProcessed int
	FPS             float64
	Bitrate         float64
	Remain          string
	GPU             int
	VE              int
	VD              int
	EstOutSize      string
	VerboseText     string
}

Progress ...

type VPPEdgeLevel

type VPPEdgeLevel struct {
	Strength  float32
	Threshold float32
	Black     float32
	White     float32
}

type VPPKNN

type VPPKNN struct {
	Radius   int32
	Strength float32
	Lerp     float32
	ThLerp   float32
}

type VPPPMD

type VPPPMD struct {
	ApplyCount int32
	Strength   int32
	Threshold  int32
}

type VPPUnSharp

type VPPUnSharp struct {
	Radius    int32
	Weight    float32
	Threshold float32
}

Jump to

Keyboard shortcuts

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