support png encoding of pixel data as an alternative to jpeg and raw
android currently uses jpeg because BitmapFactory cannot handle the raw pixel data sent by xpra.
We should add a --encoding=[jpeg|png|raw]
option passed to the server via capabilities to allow us to encode pixel data as png.
As far as I can tell, this is the easiest way of getting non-lossy pixel data on android clients.
The code can simply use the same method as used for the window icon in r176
Then probably do #31 as it will be easy.
Change History (5)
Description: |
modified (diff)
|
Status: |
new →
accepted
|
Description: |
modified (diff)
|
Resolution: |
→ fixed
|
Status: |
accepted →
closed
|
r183 introduces
--encoding=[rgb24|jpeg|png]
The client sends its desired encoding to the server together with the list of supported encodings, the server can then decide which one to use based on the intersection with what it supports with this list.
The server will default to just rgb24 and png for older clients so things work as before if nothing is specified, one can also specify
--encoding
on the server, this will be used as default encoding value should the client not specify which encoding it wants to use.