Documentation
¶
Overview ¶
Package rdpgfx implements the RDP Graphics Pipeline Extension channel (MS-RDPEGFX), the modern drawing path where a server composites surfaces and sends them as compressed bitmaps.
It is a dynamic virtual channel, so it only starts once the drdynvc layer has created it and both sides have exchanged capabilities.
Index ¶
Constants ¶
const ( CapsVersion8 = 0x00080004 CapsVersion81 = 0x00080105 )
Capability versions. 8.0 and 8.1 are the ones a decoder of RemoteFX and raw bitmaps can honestly claim; the 10.x versions advertise AVC support.
0x00080105 rather than 0x00080100: the low byte is part of the version, not padding. See MS-RDPEGFX 2.2.3.2.
const DVCChannelName = "Microsoft::Windows::RDS::Graphics"
RDPGFX_DVC_CHANNEL_NAME is the dynamic virtual channel name.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Frame ¶
Frame is one completed frame: the id the server assigned and the surfaces that were touched. The pixels live on the surfaces.
type GfxClient ¶
GfxClient is the RDPGFX channel handler.
func (*GfxClient) OnData ¶
OnData implements drdynvc.DynChannel. The payload is a ZGFX stream that may hold several PDUs.
type Reset ¶
type Reset struct {
Width, Height int
}
Reset describes a Reset Graphics PDU: the size of the desktop the server will composite into. Any previously known surfaces are gone.
type Surface ¶
type Surface struct {
ID uint16
Width int
Height int
PixelFormat uint8
// contains filtered or unexported fields
}
Surface is a decoded surface: a set of pixels that the server composites into frames. Surfaces are addressed by a 16 bit id.
type SurfacePlacement ¶ added in v0.3.0
SurfacePlacement reports that the server mapped a surface somewhere on the desktop.