Commit Graph

2 Commits

Author SHA1 Message Date
Nithish Anand B d04dc7f376
updated rbj.js
Support_for_non-standard_server_version
2026-01-08 17:16:53 +05:30
Nithish Anand B 92a6ede78d
Support for non-standard server version 003.005
1) Added support for non-standard server version `003.005` by mapping it to RFB 3.3 in the protocol negotiation switch. File: `core/rfb.js`.
2) Added a warning log when `003.005` is seen so it is clear we are forcing a 3.3 handshake. File: `core/rfb.js`.
3) Stored the server pixel format from ServerInit, and passed it through to decoders so we can decode non-24bpp pixel data safely. File: `core/rfb.js`.
4) Added a compatibility path to force 16bpp and restrict encodings to raw when the server reports non-standard 3.4/3.5. File: `core/rfb.js`.
5) Added 16bpp RAW decoding with proper bit-mask conversion to RGBA (handles 5-5-5 and 5-6-5 formats). File: `core/decoders/raw.js`.
2026-01-08 17:13:39 +05:30