Skip to content

Commit

Permalink
#2023 boost quality for text, lower it for video
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@21248 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Dec 19, 2018
1 parent 7b94358 commit 1e55517
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/xpra/server/window/window_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -1076,6 +1076,10 @@ def update_quality(self):
return
now = monotonic_time()
info, target = get_target_quality(self.window_dimensions, self.batch_config, self.global_statistics, self.statistics, self.bandwidth_limit, self._fixed_min_quality, self._fixed_min_speed)
if self.content_type=="text":
target = min(100, target+20)
elif self.content_type=="video":
target = max(0, target-20)
#make a copy to work on:
ves_copy = list(self._encoding_quality)
ves_copy.append((now, target))
Expand Down

0 comments on commit 1e55517

Please sign in to comment.