Skip to content

Commit

Permalink
#2100: don't use video encoders for windows with the text content-typ…
Browse files Browse the repository at this point in the history
…e hint

git-svn-id: https://xpra.org/svn/Xpra/trunk@21303 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jan 9, 2019
1 parent da58270 commit d4a0488
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/xpra/server/window/window_video_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
regionrefreshlog = Logger("regionrefresh")


TEXT_USE_VIDEO = envbool("XPRA_TEXT_USE_VIDEO", False)
MAX_NONVIDEO_PIXELS = envint("XPRA_MAX_NONVIDEO_PIXELS", 1024*4)
MIN_VIDEO_FPS = envint("XPRA_MIN_VIDEO_FPS", 10)
MIN_VIDEO_EVENTS = envint("XPRA_MIN_VIDEO_EVENTS", 20)
Expand Down Expand Up @@ -423,6 +424,8 @@ def lossless(reason):
cwh = wh & self.height_mask
video_hint = self.content_type=="video"
text_hint = self.content_type=="text"
if text_hint and not TEXT_USE_VIDEO:
return nonvideo(info="text content-type")

rgbmax = self._rgb_auto_threshold
videomin = cww*cwh // (1+video_hint*2)
Expand Down

0 comments on commit d4a0488

Please sign in to comment.