Skip to content

Commit

Permalink
enable faster codecs in some corner cases
Browse files Browse the repository at this point in the history
enc_spng can be used for 'png/L' and enc_jpeg for 'jpega'
  • Loading branch information
totaam committed Jan 2, 2023
1 parent 63b6400 commit ac2ca38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xpra/server/mixins/encoding_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ def setup(self):
if "webp" in ae:
#try to load the fast webp encoder:
load_codec("enc_webp")
if "png" in ae:
if "png" in ae or "png/L" in ae:
#try to load the fast png encoder:
load_codec("enc_spng")
if "jpeg" in ae:
if "jpeg" in ae or "jpega" in ae:
#try to load the fast jpeg encoders:
load_codec("enc_jpeg")
if "avif" in ae:
Expand Down

0 comments on commit ac2ca38

Please sign in to comment.