Skip to content

Commit

Permalink
cut&paste gone wrong: changing the lossless threshold would affect th…
Browse files Browse the repository at this point in the history
…e subsampling threshold!

git-svn-id: https://xpra.org/svn/Xpra/trunk@18927 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Mar 31, 2018
1 parent 5cd256d commit dbe66c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/codecs/webp/encode.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ from xpra.util import envbool, envint
cdef int LOG_CONFIG = envbool("XPRA_WEBP_LOG_CONFIG", False)
cdef int WEBP_THREADING = envbool("XPRA_WEBP_THREADING", True)
cdef int LOSSLESS_THRESHOLD = envint("XPRA_WEBP_LOSSLESS_THRESHOLD", 75)
cdef int SUBSAMPLING_THRESHOLD = envint("XPRA_WEBP_LOSSLESS_THRESHOLD", 40)
cdef int SUBSAMPLING_THRESHOLD = envint("XPRA_WEBP_SUBSAMPLING_THRESHOLD", 40)
assert SUBSAMPLING_THRESHOLD<=LOSSLESS_THRESHOLD, "lossless threshold must be higher than subsampling threshold"
assert LOSSLESS_THRESHOLD>=0 and LOSSLESS_THRESHOLD<=100, "invalid lossless threshold: %i" % LOSSLESS_THRESHOLD

Expand Down

0 comments on commit dbe66c2

Please sign in to comment.