display

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package display lists the capturable displays of this machine and opens one with the platform's capture backend: DXGI Desktop Duplication on Windows, ScreenCaptureKit on macOS.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List() ([]capture.Display, error)

Types

type Options

type Options struct {
	// HDR captures 10-bit or FP16 surfaces when the display is in HDR
	// (Windows).
	HDR bool
	// Width, Height and FPS set the stream size and rate where the backend
	// scales (macOS). Zero takes the display's own.
	Width, Height, FPS int
	// NV12 asks for 4:2:0 frames where the backend converts (macOS); BGRA
	// otherwise.
	NV12 bool
}

Options configure Open.

type Source

type Source struct {
	capture.Source
	Display capture.Display
	// Device is the GPU device the frames live on; encoders open on it for
	// zero-copy.
	Device gpu.Device
}

Source is an open display.

func Open

func Open(id string, opts Options) (*Source, error)

Jump to

Keyboard shortcuts

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