video

package
v0.0.0-...-2af7037 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ScreencastFPS = 30

ScreencastFPS refers to screensharing fps

Variables

View Source
var (
	Ratio4to3   = &Resolution{1024, 768}
	Ratio5to4   = &Resolution{1280, 1024}
	Ratio3to2   = &Resolution{2160, 1440}
	Ratio16to10 = &Resolution{1280, 800}
	Ratio16to9  = &Resolution{1366, 768}
	Ratio21to9  = &Resolution{2560, 1080}
	Ratio32to9  = &Resolution{3840, 1080}
	Ratios      = []*Resolution{Ratio4to3, Ratio5to4, Ratio3to2, Ratio16to10, Ratio16to9, Ratio21to9, Ratio32to9}
)

A list of supported aspect ratio

Functions

func Screenshot

func Screenshot() ([]*image.YCbCr, error)

Screenshot takes a screenshot from all display

Types

type Resolution

type Resolution struct {
	Width, Height int
}

Resolution refers to the resolution of one casted display

Jump to

Keyboard shortcuts

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