Xpra: Ticket #233: XOR mode problems with lossy encodings

The XOR mode seems to be bad if the ecoding is lossy. See the attached picture. This is the Xpra timeline scrolled down some pages (by page down). Encoding was webp (from my experience the fastest encoding with best picture quality) and quality was set to 20%. The same applies to png and jpeg. rgb24 shows no problems.

Is XOR mode even possible with lossy encodings? I thought it needs the same page content on both sides. Because of the lossy encoding the page content on the client side will be different ...

The other point is, that the page content is changing alot by scrolling with "page down". It seems that the detection if xor is a good idea or not is wrong here.



Fri, 11 Jan 2013 07:07:11 GMT - Mike: attachment set


Fri, 11 Jan 2013 07:08:32 GMT - Mike: keywords set


Fri, 11 Jan 2013 07:41:58 GMT - Antoine Martin: status changed; resolution set

Good catch, xor is not meant to be used with any of the lossy encodings. Fixed in r2511 I'm not sure we can ever get it to work well with lossy encodings:

I thought it needs the same page content on both sides.

That's the problem, the errors accumulate.. The server has the pixel-perfect copy whereas the client does not.

The other point is, that the page content is changing alot by scrolling with "page down".

Scrolling is problematic, no matter what encoder / xor-mode you use, and it is a tough one to solve.

It seems that the detection if xor is a good idea or not is wrong here.

There is no detection going on, we xor if we can as it is relatively cheap and more often than not it is beneficial.

webp (from my experience the fastest encoding with best picture quality)

FYI: webp is ok, but x264/vpx are a lot better - they do pretty much the same thing (in fact, exactly the same thing in the case of vpx) but you get the benefit of delta frame compression, which makes a huge difference.


Sat, 23 Jan 2021 04:49:09 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/233