Repository navigation
GUACAMOLE-2338: Add opt-in fast lossless RGB PNG encoding - #721
JohnXu22786 wants to merge 10 commits into
Conversation
|
Thanks @JohnXu22786 - a couple of notes for you:
You can see the full list of contribution guidelines here: https://guacamole.apache.org/open-source/ |
|
Thanks for the reminder. These PRs aren't fully finished yet and I'm
still refining them. I'll make sure to add the required Jira issue
reference, and I'll only mark them as ready for review once they're
actually ready. Thanks again for the guidance.
…On Sat, 03 Oct 2026 05:54:14 -0700, Virtually Nick ***@***.***> wrote:
necouchman left a comment [(apache/guacamole-server#721)](#721 (comment))
Thanks ***@***.***(https://github.com/JohnXu22786) - a couple of notes for you:
- All pull requests must have a Jira issue created for them and have the pull request and commit messages tagged with the Jira issue. You can see plenty of examples of this in other pull requests, and you can request a Jira account but going to the following page and clicking the Request Account link at the top of the page: https://issues.apache.org/jira/projects/GUACAMOLE/issues
- You don't need to submit as a draft to prevent it from being merged - we do not automatically merge pull requests, there will be a review and some changes requested, most likely, before it is merged. Please mark it as "Ready for review" when you actually want it reviewed, else it will probably not get much attention.
You can see the full list of contribution guidelines here: https://guacamole.apache.org/open-source/
—
Reply to this email directly, [view it on GitHub](#721?email_source=notifications&email_token=A2H24OAPZ7ZQBJKC765NKRL5SDZHNA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKOJWHEZTKOJUHAYKM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-5969359480), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/A2H24OERUQ3Z7SDDEXCBH735SDZHNAVCNFSNUABEKJSXA33TNF2G64TZHM2TINBVGI3DENZ3JFZXG5LFHM2TMOBXHEYTINBTG2QXMAQ).
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for [iOS](https://github.com/notifications/mobile/ios/A2H24OBU5T4TS22IORBLA3L5SDZHNA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKOJWHEZTKOJUHAYKM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJKTGN5XXIZLSL5UW64Y) and [Android](https://github.com/notifications/mobile/android/A2H24ODK5FYW5NWRELRL2ED5SDZHNA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKOJWHEZTKOJUHAYKM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI). Download it today!
You are receiving this because you were mentioned.
|
Reduce PNG compression work for opaque RGB24 updates while preserving the existing codec selection and default encoder. The opt-in path trades compression effort for encoding speed without changing decoded pixels.\n\nAdd six production-path pixel round trips covering transparency fallback, odd dimensions, padded strides, and conservative option values.\n\nTracks GUACAMOLE-2338; the environment-variable interface and performance/bandwidth trade-off remain proposed for discussion.
80bf82f to
9488ad0
Compare
necouchman
left a comment
There was a problem hiding this comment.
Thanks, @JohnXu22786, I've a couple of more issues with this:
- We generally do not use
getenv()throughout the code for configuring guacd, and I'm not sure that this feature warrants that sort of change. Is there some reason why using thegetenv()method is preferable to something like a command line flag or configuration file directive? - Is there any value in making this opt-in flag a per-connection parameter that could be requested by a client for a specific connection?
- Your code needs to follow established style - in particular, you need to properly document the code. Most of the functions you've added are missing documentation, and the one that has it doesn't have complete documentation (missing @PARAM and @return tags).
…c API Remove getenv(), preserve the existing legacy encoder API, and pass an explicit connection option through client and user PNG streams. Document fast writer parameters and return value.
Parse fast-png through existing Guacamole handshake settings and propagate only the owner's setting to the shared connection. Default remains disabled; joining users cannot override it.
Replace environment mutation with per-invocation option testing, preserve legacy/default and alpha fallback checks, and add documented parameters and return semantics.
|
Follow-up is pushed at Validation: full Autotools PR remains open and awaits review of the latest changes. |
Propagate PNG transport failures so incomplete image streams cannot be marked successful. Add reproducible local timing and size evidence for the opt-in path.
Keep PR apache#721 aligned with its current base while preserving both PNG and display test wiring.
necouchman
left a comment
There was a problem hiding this comment.
A few updates - in general, please make sure documentation is complete and follows established style throughout the code, even in the test classes.
What this PR does
Before this PR:
RDP and VNC connections had no per-connection option for a faster lossless PNG path for opaque RGB24 images. PNG stream wrappers also did not report encoder write failures to the client or user.
After this PR:
Adds a default-off
fast-pngconnection option for RDP and VNC. When the owning connection enables it, opaque RGB24 surfaces use an internal truecolor PNG writer with low compression effort and the SUB filter. Decoded pixels remain lossless; the existing default encoding and non-RGB24/alpha fallback remain in place.PNG write failures now abort the client or user stream instead of marking a truncated image complete. The change includes public API documentation, failure-injection tests, and an optional reproducible encoder benchmark.
Type of change
Experimental opt-in performance feature and PNG error-handling fix.
Validation and limitations
make -C src/libguacfollowed bymake -C src/libguac/tests check: 96/96 tests passed.make -C src/libguac/tests png-benchmark: 1280x720 RGB24 inputs, two warmups and seven alternating timed samples per encoder. Reported bytes include Guacamole blob framing, not network I/O.Breaking changes
None.
Jira
GUACAMOLE-2338: Provide an opt-in faster lossless encoding path for opaque RGB24 PNG images