RfbBitmap configuration logic. Refactored redundant code blocks for different pixel format (bpp) configurations into a single, streamlined method. This change enhances maintainability and clarity of the bitmap configuration process.
- Added cursor pseudo encoding support. - Added Windows support for cursor image capturing in `get_cursor_image` method. Implemented Windows-specific logic using the `win32gui`, `win32ui`, and related libraries to capture the current cursor image, enhancing the cross-platform capability of the application. - Fixed issues in `get_bitmap` method for handling different bpp formats. Specifically addressed the processing logic for 16 bpp (BGR565) format, ensuring that the image conversion and rendering are handled correctly for VNC clients expecting this format. - Added initial Tight encoding support. - Updated the `send_image` method in the Tight encoding class to correctly handle JPEG and ZLIB compression. This includes proper signaling to the client about the type of compression used (JPEG or ZLIB) and ensuring that the data is formatted and sent according to the Tight encoding specifications. - Added checks and conversions in `send_image` to handle different image modes (like RGBX and RGBA) and convert them to the appropriate format (RGB) before compression and transmission. - Implemented a more robust and accurate method for determining when to use JPEG compression in Tight encoding based on the unique color count and image characteristics. These updates significantly improve the functionality, stability, and compatibility of the VNC server, particularly in handling different pixel formats and encoding methods.
PyVNCs
Simple command line multiplatform python VNC Server.
This is a simple command line VNC server, aimed to quick remote support situations.
This VNC Server is proven to work on:
- Linux (Xorg, Wayland not supported so far)
- Mac OS
- Windows (7 & onwards)
Supported encodings:
- raw
- zlib
TODO:
- Add support for more (efficient) encodings
- VeNCrypt support (WIP)
- Add support for uPnP (for incomming connections on supported nat gateways)
FAQ:
Q: Why a VNC server on python?
A: Because python is fun!
Description
Languages
Python
100%