-
Notifications
You must be signed in to change notification settings - Fork 152
WIP: Add GFX ([MS-RDPEGFX]) support #648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Based on ironrdp-pdu/gfx code. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Use the dedicated ironrdp-egfx crate instead. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
Converted to draft to hint that the PR is WIP. |
|
Hi @elmarco - thanks for starting this work. I'm building on IronRDP for a More speficically I've implemented some server-side EGFX functionality that might complement
Are you planning to continue this PR? If so, I'd be happy to contribute these Let me know what works best. Thanks, |
|
hi @glamberson! feel free to close this PR once you have one that supersedes it. thanks! |
Extends the EGFX server implementation with complete server-side support for H.264/AVC420 video streaming. This builds on the foundation from PR Devolutions#648 by @elmarco. Server enhancements: - State machine for capability negotiation workflow - Surface creation and mapping to output - Frame sending with StartFrame/WireToSurface1/EndFrame sequence - Flow control via FrameAcknowledge tracking - Configurable backpressure (max frames in flight) - Output queue for proactive frame transmission New H.264 utilities: - `Avc420Region` - Region metadata for H.264 frames - `annex_b_to_avc()` - Convert Annex B to AVC format (length-prefixed NALs) - `align_to_16()` - Align dimensions to H.264 macroblock boundaries - `encode_avc420_bitmap_stream()` - Create AVC420 bitmap streams The server now supports the full EGFX protocol flow: 1. Client sends CapabilitiesAdvertise 2. Server responds with CapabilitiesConfirm (V8.1 with AVC420) 3. Server sends ResetGraphics, CreateSurface, MapSurfaceToOutput 4. For each frame: StartFrame → WireToSurface1 → EndFrame 5. Client sends FrameAcknowledge for flow control Refs: Devolutions#427 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add complete MS-RDPEGFX implementation with PDU types and server logic. PDU layer (based on work by @elmarco in Devolutions#648): - All 23 RDPGFX PDUs (WireToSurface, CreateSurface, ResetGraphics, etc.) - Capability sets V8 through V10.7 - AVC420/AVC444 bitmap stream codecs - Timestamp, QuantQuality, and supporting types Server implementation: - Multi-surface management (Offscreen Surfaces ADM element) - Frame tracking with flow control (Unacknowledged Frames ADM element) - V8/V8.1/V10/V10.1-V10.7 capability negotiation - AVC420 and AVC444 frame sending - QoE metrics processing - Cache import handling - Resize coordination - Backpressure via client queue depth Client-side DVC processor (from Devolutions#648): - Basic message processing scaffolding Credits: @elmarco for PDU definitions and protocol research in PR Devolutions#648. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add complete MS-RDPEGFX implementation with PDU types and server logic. PDU layer (based on work by @elmarco in Devolutions#648): - All 23 RDPGFX PDUs (WireToSurface, CreateSurface, ResetGraphics, etc.) - Capability sets V8 through V10.7 - AVC420/AVC444 bitmap stream codecs - Timestamp, QuantQuality, and supporting types Server implementation: - Multi-surface management (Offscreen Surfaces ADM element) - Frame tracking with flow control (Unacknowledged Frames ADM element) - V8/V8.1/V10/V10.1-V10.7 capability negotiation - AVC420 and AVC444 frame sending - QoE metrics processing - Cache import handling - Resize coordination - Backpressure via client queue depth Client-side DVC processor (from Devolutions#648): - Basic message processing scaffolding Credits: @elmarco for PDU definitions and protocol research in PR Devolutions#648.
Probably left out in this PR, since I'd rather focus on AVC444 atm:
See also #427