Skip to content

Commit

Permalink
#1951 approximate the compression ratio of video encoders
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@20368 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Sep 10, 2018
1 parent 55cad93 commit e620ffb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xpra/server/window/window_video_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -1279,8 +1279,8 @@ def getfps():
scaling = get_min_required_scaling()
else:
sscaling = {}
pps = ffps*width*height #Pixels/s
target = self.bandwidth_limit//24 #assume 24 bits per pixel
pps = ffps*width*height #Pixels/s
target = self.bandwidth_limit//24*10 #assume 24 bits per pixel, compressed by 90%
if target==0:
target = SCALING_PPS_TARGET #ie: 1080p
else:
Expand Down

0 comments on commit e620ffb

Please sign in to comment.