Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Devolutions/IronRDP/llms.txt
Use this file to discover all available pages before exploring further.
Version: 0.7.0
Docs.rs: ironrdp-graphics
Docs.rs: ironrdp-graphics
Overview
Theironrdp-graphics crate provides image processing primitives and compression algorithms used in RDP graphics rendering:
- Color space conversions (RGB ↔ YUV)
- Image compression (RLE, RLGR)
- Bulk compression (ZGFX)
- RemoteFX encoding components (DWT, quantization)
- Bitmap difference calculations
Key Modules
Color Conversion
Compression Algorithms
RLE (Run-Length Encoding)
RLGR (Run-Length Golomb-Rice)
ZGFX (Bulk Compression)
RemoteFX Components
DWT (Discrete Wavelet Transform)
Quantization
Subband Reconstruction
RDP 6 Compression
Image Processing Utilities
Rectangle Processing
Bitmap Difference
Pointer (Cursor) Handling
RemoteFX Encoding
The crate provides a high-level function for encoding RemoteFX components:Component data (must be 4096 elements = 64×64 pixels). Modified in-place during encoding.
Buffer to receive encoded data
Quantization parameters from
ironrdp_pdu::codecs::rfx::QuantEntropy algorithm (RLGR1 or RLGR3)
input.len() != 4096.
Example:
- DWT (Discrete Wavelet Transform)
- Quantization
- Subband reconstruction
- RLGR entropy encoding
Dependencies
This crate depends on:ironrdp-core- Core traits (public)ironrdp-pdu- PDU structures for codec parameters (public)yuv- YUV color conversion with RDP-specific featuresbit_field,bitflags,bitvec- Bit manipulation
Usage Notes
Performance:
Many functions in this crate operate on large buffers in-place. Pre-allocate buffers and reuse them to avoid repeated allocations:
Many functions in this crate operate on large buffers in-place. Pre-allocate buffers and reuse them to avoid repeated allocations:
Image Formats:
RemoteFX operates on 64×64 tiles in YUV color space. Convert from RGB before encoding:
RemoteFX operates on 64×64 tiles in YUV color space. Convert from RGB before encoding:
See Also
- ironrdp-pdu - Codec parameter structures
- ironrdp-session - Session-level graphics handling
- MS-RDPRFX - RemoteFX protocol specification

