Directories
¶
| Path | Synopsis |
|---|---|
|
Package assets holds Planck's brand files.
|
Package assets holds Planck's brand files. |
|
cmd
|
|
|
planck-client
command
Command planck-client is the Planck desktop client: the native window with the hosts, pairing and settings screens and the stream view.
|
Command planck-client is the Planck desktop client: the native window with the hosts, pairing and settings screens and the stream view. |
|
planck-host
command
Command planck-host streams this machine's display, audio and input to a Planck client.
|
Command planck-host streams this machine's display, audio and input to a Planck client. |
|
planck-spike2
command
Command planck-spike2 runs the Phase 0 capture and encode measurements.
|
Command planck-spike2 runs the Phase 0 capture and encode measurements. |
|
planck-trace
command
Command planck-trace summarizes the per-frame stage traces planck-host and planck-client write when PLANCK_TRACE_HOST and PLANCK_TRACE_CLIENT name a file: p50, p95, p99 and max of each stage, in microseconds.
|
Command planck-trace summarizes the per-frame stage traces planck-host and planck-client write when PLANCK_TRACE_HOST and PLANCK_TRACE_CLIENT name a file: p50, p95, p99 and max of each stage, in microseconds. |
|
planck-vdd
command
Command planck-vdd checks the SudoVDA virtual display driver, which only exists on Windows.
|
Command planck-vdd checks the SudoVDA virtual display driver, which only exists on Windows. |
|
spike-mygo-surface
command
Command spike-mygo-surface measures the vendored MyGo gpusurface: it draws synthetic frames on the GPU, as a hardware decoder would leave them, and presents each with no CPU copy, reporting submit-to-present latency, frame rate, CPU time and Go heap allocations per frame.
|
Command spike-mygo-surface measures the vendored MyGo gpusurface: it draws synthetic frames on the GPU, as a hardware decoder would leave them, and presents each with no CPU copy, reporting submit-to-present latency, frame rate, CPU time and Go heap allocations per frame. |
|
spike-transport
command
Command spike-transport benchmarks Planck media transports between a host (sender) and a client (receiver): quic-go RFC 9221 datagrams versus raw UDP sealed with keys exported from a QUIC control connection, with sub-frame slicing, Reed-Solomon FEC and simulated loss and jitter.
|
Command spike-transport benchmarks Planck media transports between a host (sender) and a client (receiver): quic-go RFC 9221 datagrams versus raw UDP sealed with keys exported from a QUIC control connection, with sub-frame slicing, Reed-Solomon FEC and simulated loss and jitter. |
|
internal
|
|
|
apple
Package apple loads the CoreFoundation, CoreMedia, CoreVideo, and VideoToolbox entry points Planck needs through purego, with no cgo.
|
Package apple loads the CoreFoundation, CoreMedia, CoreVideo, and VideoToolbox entry points Planck needs through purego, with no cgo. |
|
bench
Package bench collects latency samples and summarizes them.
|
Package bench collects latency samples and summarizes them. |
|
calibrate
Package calibrate measures one client, host and route and picks the stream settings that reach the screen soonest there: the route's round trip, bandwidth and receive burst queue (Phase 1, network), a short synthetic stream through each encoder and decoder pairing both ends can run (Phase 2, codec), and, in a window, the time from present to glass with vsync and phase lock on and off (Phase 3, display).
|
Package calibrate measures one client, host and route and picks the stream settings that reach the screen soonest there: the route's round trip, bandwidth and receive burst queue (Phase 1, network), a short synthetic stream through each encoder and decoder pairing both ends can run (Phase 2, codec), and, in a window, the time from present to glass with vsync and phase lock on and off (Phase 3, display). |
|
linux/evdev
Package evdev holds the Linux input event ABI that Planck's host injector, virtual gamepads and gamepad reader share: event types and codes, the input_event record, and ioctl request numbers.
|
Package evdev holds the Linux input event ABI that Planck's host injector, virtual gamepads and gamepad reader share: event types and codes, the input_event record, and ioctl request numbers. |
|
linux/portal
Package portal calls XDG desktop portal methods that answer through a Request object, on the session bus.
|
Package portal calls XDG desktop portal methods that answer through a Request object, on the session bus. |
|
linux/uinput
Package uinput creates virtual input devices through /dev/uinput.
|
Package uinput creates virtual input devices through /dev/uinput. |
|
rtprio
Package rtprio raises the scheduling class of the threads on Planck's media path: receive, decode and present on the client, receive and encode on the host.
|
Package rtprio raises the scheduling class of the threads on Planck's media path: receive, decode and present on the client, receive and encode on the host. |
|
synth
Package synth draws deterministic desktop-like test frames: gradients, fine text-like detail, and a vertical scroll per frame index, so encoders see realistic spatial detail and motion without a live display.
|
Package synth draws deterministic desktop-like test frames: gradients, fine text-like detail, and a vertical scroll per frame index, so encoders see realistic spatial detail and motion without a live display. |
|
telemetry
Package telemetry sends anonymous usage signals to TelemetryDeck (Ingest API v2): that Planck was installed and launched, and that a stream started and ended, with its codec and the kind of route it took.
|
Package telemetry sends anonymous usage signals to TelemetryDeck (Ingest API v2): that Planck was installed and launched, and that a stream started and ended, with its codec and the kind of route it took. |
|
ui
Package ui is Planck's desktop client interface, drawn with MyGo: the icon rail, the Hosts, Statistics and Settings screens, and the stream view with its overlay.
|
Package ui is Planck's desktop client interface, drawn with MyGo: the icon rail, the Hosts, Statistics and Settings screens, and the stream view with its overlay. |
|
ui/theme
Package theme turns Planck's design tokens into a MyGo theme, and registers the brand fonts and icons the client draws with.
|
Package theme turns Planck's design tokens into a MyGo theme, and registers the brand fonts and icons the client draws with. |
|
version
Package version is the one source of Planck's version.
|
Package version is the one source of Planck's version. |
|
win
Package win holds the minimal COM, DXGI, and Direct3D 11 bindings Planck needs, called through syscall with no cgo.
|
Package win holds the minimal COM, DXGI, and Direct3D 11 bindings Planck needs, called through syscall with no cgo. |
|
winres
Package winres makes the Windows resources of planck-client.exe and planck-host.exe and checks a built exe for them.
|
Package winres makes the Windows resources of planck-client.exe and planck-host.exe and checks a built exe for them. |
|
pkg
|
|
|
audio
Package audio carries Planck's game audio: capture on the host, Opus encode and decode, a jitter buffer on the client, and playback.
|
Package audio carries Planck's game audio: capture on the host, Opus encode and decode, a jitter buffer on the client, and playback. |
|
capture
Package capture defines the screen capture contract shared by the platform backends: DXGI Desktop Duplication on Windows, ScreenCaptureKit on macOS, and PipeWire or KMS on Linux.
|
Package capture defines the screen capture contract shared by the platform backends: DXGI Desktop Duplication on Windows, ScreenCaptureKit on macOS, and PipeWire or KMS on Linux. |
|
capture/cursor
Package cursor reads the host's system cursor: whether it shows, whether an app holds the mouse, and where it is.
|
Package cursor reads the host's system cursor: whether it shows, whether an app holds the mouse, and where it is. |
|
capture/display
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.
|
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. |
|
capture/dxgi
Package dxgi captures a Windows display with DXGI Desktop Duplication.
|
Package dxgi captures a Windows display with DXGI Desktop Duplication. |
|
capture/pipewire
Package pipewire captures a Wayland desktop through the XDG desktop portal's ScreenCast interface: the portal asks the user which monitor to share (once, with a restore token after that) and hands over a PipeWire node, which a PipeWire stream (libpipewire-0.3, loaded with purego) consumes as DMA-BUFs or shared memory.
|
Package pipewire captures a Wayland desktop through the XDG desktop portal's ScreenCast interface: the portal asks the user which monitor to share (once, with a restore token after that) and hands over a PipeWire node, which a PipeWire stream (libpipewire-0.3, loaded with purego) consumes as DMA-BUFs or shared memory. |
|
capture/sck
Package sck captures a macOS display with ScreenCaptureKit through purego, with no cgo.
|
Package sck captures a macOS display with ScreenCaptureKit through purego, with no cgo. |
|
capture/x11
Package x11 captures an Xorg (or XWayland) screen with MIT-SHM: each frame is one XShmGetImage of a monitor's rectangle of the root window into shared memory, which the encoder reads in place.
|
Package x11 captures an Xorg (or XWayland) screen with MIT-SHM: each frame is one XShmGetImage of a monitor's rectangle of the root window into shared memory, which the encoder reads in place. |
|
clipboard
Package clipboard reads, writes and watches the system clipboard for sharing it between host and client.
|
Package clipboard reads, writes and watches the system clipboard for sharing it between host and client. |
|
codec/hevc
Package hevc parses the HEVC syntax a hardware decoder that takes parsed parameters (VA-API) needs from an Annex B stream: NAL units, the sequence and picture parameter sets, slice segment headers, reference picture sets and picture order counts (ITU-T H.265, 7.3 and 8.3); and writes the parameter sets and slice headers of a low-delay stream, for a hardware encoder that takes them packed (VA-API).
|
Package hevc parses the HEVC syntax a hardware decoder that takes parsed parameters (VA-API) needs from an Annex B stream: NAL units, the sequence and picture parameter sets, slice segment headers, reference picture sets and picture order counts (ITU-T H.265, 7.3 and 8.3); and writes the parameter sets and slice headers of a low-delay stream, for a hardware encoder that takes them packed (VA-API). |
|
config
Package config persists Planck host and client settings as JSON in the user's config directory, and manages the host's TLS identity and the client's pinned host certificates.
|
Package config persists Planck host and client settings as JSON in the user's config directory, and manages the host's TLS identity and the client's pinned host certificates. |
|
decode
Package decode defines the hardware video decoder contract shared by the platform backends: Media Foundation on Direct3D 11 (Windows) and VideoToolbox (macOS).
|
Package decode defines the hardware video decoder contract shared by the platform backends: Media Foundation on Direct3D 11 (Windows) and VideoToolbox (macOS). |
|
decode/d3d11
Package d3d11 decodes HEVC and AV1 on the GPU of a Direct3D 11 device through a Media Foundation decoder transform made aware of the device (DXVA).
|
Package d3d11 decodes HEVC and AV1 on the GPU of a Direct3D 11 device through a Media Foundation decoder transform made aware of the device (DXVA). |
|
decode/internal/hostbuf
Package hostbuf keeps decoded Linux pictures in memory: NV12 or P010 planes in memfd-backed mappings, which a Wayland compositor maps as wl_shm buffers with no copy, described by capture.DMABuf with Memory set.
|
Package hostbuf keeps decoded Linux pictures in memory: NV12 or P010 planes in memfd-backed mappings, which a Wayland compositor maps as wl_shm buffers with no copy, described by capture.DMABuf with Memory set. |
|
decode/linuxdec
Package linuxdec picks a Linux hardware decoder: VA-API or NVDEC.
|
Package linuxdec picks a Linux hardware decoder: VA-API or NVDEC. |
|
decode/nvdec
Package nvdec decodes HEVC and AV1 on NVIDIA GPUs under Linux with NVDEC, through libcuda.so.1 and libnvcuvid.so.1 loaded with purego (no cgo).
|
Package nvdec decodes HEVC and AV1 on NVIDIA GPUs under Linux with NVDEC, through libcuda.so.1 and libnvcuvid.so.1 loaded with purego (no cgo). |
|
decode/vaapi
Package vaapi decodes HEVC on Linux with VA-API (Intel, AMD, and NVIDIA through nvidia-vaapi-driver), through libva.so.2 and libva-drm.so.2 loaded with purego (no cgo).
|
Package vaapi decodes HEVC on Linux with VA-API (Intel, AMD, and NVIDIA through nvidia-vaapi-driver), through libva.so.2 and libva-drm.so.2 loaded with purego (no cgo). |
|
decode/vt
Package vt decodes HEVC and AV1 with Apple VideoToolbox through purego, with no cgo.
|
Package vt decodes HEVC and AV1 with Apple VideoToolbox through purego, with no cgo. |
|
defaults
Package defaults picks a session's stream settings from what the host, the client and the route between them can do, with user overrides on top.
|
Package defaults picks a session's stream settings from what the host, the client and the route between them can do, with user overrides on top. |
|
discovery
Package discovery finds Planck hosts on the LAN and the tailnet and picks the best path to one.
|
Package discovery finds Planck hosts on the LAN and the tailnet and picks the best path to one. |
|
encode
Package encode defines the hardware video encoder contract shared by the vendor backends: NVENC, AMF, oneVPL (Quick Sync), and VideoToolbox.
|
Package encode defines the hardware video encoder contract shared by the vendor backends: NVENC, AMF, oneVPL (Quick Sync), and VideoToolbox. |
|
encode/all
Package all registers every hardware encoder backend of the platform with pkg/encode, for encode.Open.
|
Package all registers every hardware encoder backend of the platform with pkg/encode, for encode.Open. |
|
encode/encodetest
Package encodetest runs hardware encoders on synthetic GPU frames for the encode, decode and player tests.
|
Package encodetest runs hardware encoders on synthetic GPU frames for the encode, decode and player tests. |
|
encode/nvenc
Package nvenc drives NVIDIA's hardware encoder through nvEncodeAPI64.dll's function table, with no cgo and no NVIDIA SDK at build time.
|
Package nvenc drives NVIDIA's hardware encoder through nvEncodeAPI64.dll's function table, with no cgo and no NVIDIA SDK at build time. |
|
encode/vaapi
Package vaapi encodes HEVC on Linux with VA-API (Intel's iHD and AMD's radeonsi drivers), through libva.so.2 and libva-drm.so.2 loaded with purego (no cgo).
|
Package vaapi encodes HEVC on Linux with VA-API (Intel's iHD and AMD's radeonsi drivers), through libva.so.2 and libva-drm.so.2 loaded with purego (no cgo). |
|
encode/vt
Package vt drives Apple VideoToolbox hardware HEVC encode and decode through purego, with no cgo.
|
Package vt drives Apple VideoToolbox hardware HEVC encode and decode through purego, with no cgo. |
|
fec
Package fec protects video slices with Reed-Solomon parity sized from the receiver's measured loss, and rebuilds them on the receiving side.
|
Package fec protects video slices with Reed-Solomon parity sized from the receiver's measured loss, and rebuilds them on the receiving side. |
|
gamepad
Package gamepad reads the controllers attached to a client, maps their raw buttons and axes onto the XInput layout Planck sends (with SDL gamecontrollerdb mapping strings for import and export), applies the user's calibration, and drives virtual controllers on a host.
|
Package gamepad reads the controllers attached to a client, maps their raw buttons and axes onto the XInput layout Planck sends (with SDL gamecontrollerdb mapping strings for import and export), applies the user's calibration, and drives virtual controllers on a host. |
|
gpu
Package gpu names graphics adapters across platforms so that capture and encode backends can agree on which device owns a frame.
|
Package gpu names graphics adapters across platforms so that capture and encode backends can agree on which device owns a frame. |
|
input
Package input carries keyboard, mouse, and gamepad input from the client to the host: a fixed binary wire format, key code tables, and host injectors.
|
Package input carries keyboard, mouse, and gamepad input from the client to the host: a fixed binary wire format, key code tables, and host injectors. |
|
linkinfo
Package linkinfo finds the local interface that routes to a peer, whether it is wired, and its link speed.
|
Package linkinfo finds the local interface that routes to a peer, whether it is wired, and its link speed. |
|
phaselock
Package phaselock lines the host's frames up with the client display's scan-out.
|
Package phaselock lines the host's frames up with the client display's scan-out. |
|
player
Package player shows a stream of encoded pictures in a window: a hardware decoder on the window surface's own GPU device, each picture presented from the decoder's texture with no copy.
|
Package player shows a stream of encoded pictures in a window: a hardware decoder on the window surface's own GPU device, each picture presented from the decoder's texture with no copy. |
|
power
Package power keeps this machine awake while it hosts, and locks it.
|
Package power keeps this machine awake while it hosts, and locks it. |
|
pyrowave
Package pyrowave is a Go port of PyroWave, Hans-Kristian Arntzen's intra-only wavelet video codec for local game streaming (https://github.com/Themaister/pyrowave, MIT, bitstream v1 at a32b05e0).
|
Package pyrowave is a Go port of PyroWave, Hans-Kristian Arntzen's intra-only wavelet video codec for local game streaming (https://github.com/Themaister/pyrowave, MIT, bitstream v1 at a32b05e0). |
|
pyrowave/ref
Package ref is a CPU PyroWave encoder and decoder in float32, the reference the GPU kernels are tested against.
|
Package ref is a CPU PyroWave encoder and decoder in float32, the reference the GPU kernels are tested against. |
|
ratectl
Package ratectl picks the video bitrate from receiver feedback, in the style of Google Congestion Control: a delay-gradient trendline detects queue build-up early, loss caps the rate when the path drops packets, and a per-path ceiling bounds both.
|
Package ratectl picks the video bitrate from receiver feedback, in the style of Google Congestion Control: a delay-gradient trendline detects queue build-up early, loss caps the rate when the path drops packets, and a per-path ceiling bounds both. |
|
tailscale
Package tailscale is a small client for the local Tailscale daemon's LocalAPI.
|
Package tailscale is a small client for the local Tailscale daemon's LocalAPI. |
|
transport
Package transport carries Planck sessions.
|
Package transport carries Planck sessions. |
|
vdd
Package vdd drives the SudoVDA indirect display driver on Windows: it adds a virtual monitor per client at the client's resolution and refresh rate, binds its rendering to a chosen GPU, and removes it again.
|
Package vdd drives the SudoVDA indirect display driver on Windows: it adds a virtual monitor per client at the client's resolution and refresh rate, binds its rendering to a chosen GPU, and removes it again. |
|
wire
Package wire defines Planck protocol v1: control messages carried as length-prefixed frames on the QUIC control stream, and the plaintext layouts of media datagrams carried over AEAD-sealed UDP.
|
Package wire defines Planck protocol v1: control messages carried as length-prefixed frames on the QUIC control stream, and the plaintext layouts of media datagrams carried over AEAD-sealed UDP. |
|
scripts
|
|
|
winres
command
Command winres makes the Windows resources (icon and version) of planck-client.exe and planck-host.exe, and checks a built exe for them (internal/winres).
|
Command winres makes the Windows resources (icon and version) of planck-client.exe and planck-host.exe, and checks a built exe for them (internal/winres). |
Click to show internal directories.
Click to hide internal directories.