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.
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, and MIT-SHM or the desktop portal's
PipeWire stream on Linux.
Backend is the capture backend for this session: PLANCK_CAPTURE_BACKEND
when set ("x11" or "portal"), the desktop portal in a Wayland session,
X11 where only $DISPLAY is set.
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); FPS is also the rate X11 capture polls at. 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
}
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
}
Open captures the display with this ID; empty opens the primary one.
Frames are capture.DMABuf surfaces on no GPU device: the encoder
uploads or imports them.