Crate rfb_encodings

Crate rfb_encodings 

Source
Expand description

RFB (Remote Framebuffer) protocol encoding implementations.

This crate provides encoding implementations for the VNC/RFB protocol, including all standard encodings: Raw, RRE, CoRRE, Hextile, Tight, TightPng, Zlib, ZlibHex, ZRLE, and ZYWRLE.

Re-exports§

pub use corre::CorRreEncoding;
pub use hextile::HextileEncoding;
pub use raw::RawEncoding;
pub use rre::RreEncoding;
pub use tight::TightEncoding;
pub use tightpng::TightPngEncoding;
pub use zlib::encode_zlib_persistent;
pub use zlibhex::encode_zlibhex_persistent;
pub use zrle::encode_zrle_persistent;
pub use zywrle::zywrle_analyze;
pub use common::*;

Modules§

common
Common helper functions shared across multiple VNC encodings.
corre
VNC CoRRE (Compact RRE) encoding implementation.
hextile
VNC Hextile encoding implementation.
jpeg
JPEG encoding support for Tight encoding.
raw
VNC Raw encoding implementation.
rre
VNC RRE (Rise-and-Run-length Encoding) implementation.
tight
VNC Tight encoding implementation - RFC 6143 compliant with full optimization
tightpng
VNC TightPng encoding implementation.
translate
Pixel format translation between server and client formats.
zlib
VNC Zlib encoding implementation.
zlibhex
VNC ZlibHex encoding implementation.
zrle
ZRLE (Zlib Run-Length Encoding) implementation for VNC.
zywrle
VNC ZYWRLE (Zlib+Wavelet+Run-Length Encoding) implementation.

Structs§

PixelFormat
Represents the pixel format used in RFB protocol.

Constants§

ENCODING_COPYRECT
Encoding type: Copy Rectangle.
ENCODING_CORRE
Encoding type: Compact RRE.
ENCODING_HEXTILE
Encoding type: Hextile.
ENCODING_RAW
Encoding type: Raw pixel data.
ENCODING_RRE
Encoding type: Rise-and-Run-length Encoding.
ENCODING_TIGHT
Encoding type: Tight.
ENCODING_TIGHTPNG
Encoding type: TightPng.
ENCODING_ZLIB
Encoding type: Zlib compressed.
ENCODING_ZLIBHEX
Encoding type: ZlibHex.
ENCODING_ZRLE
Encoding type: Zlib compressed TRLE.
ENCODING_ZYWRLE
Encoding type: ZYWRLE (Zlib+Wavelet+Run-Length Encoding).
HEXTILE_ANY_SUBRECTS
Hextile: Tile contains subrectangles.
HEXTILE_BACKGROUND_SPECIFIED
Hextile: Background color is specified.
HEXTILE_FOREGROUND_SPECIFIED
Hextile: Foreground color is specified.
HEXTILE_RAW
Hextile: Raw pixel data for this tile.
HEXTILE_SUBRECTS_COLOURED
Hextile: Subrectangles are colored (not monochrome).
TIGHT_PNG
Tight/TightPng: PNG compression subencoding.

Traits§

Encoding
Trait defining the interface for RFB encoding implementations.

Functions§

get_encoder
Creates an encoder instance for the specified encoding type.