Skip to content

Commit

Permalink
#1260: increase advertised quality when we have a lossless mode (H264…
Browse files Browse the repository at this point in the history
… only)

git-svn-id: https://xpra.org/svn/Xpra/trunk@14320 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Oct 28, 2016
1 parent c173c11 commit 0c074ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xpra/codecs/nvenc7/encoder.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1241,9 +1241,10 @@ def get_spec(encoding, colorspace):
if encoding=="h265":
#undocumented and found the hard way!
min_w, min_h = 72, 72
has_lossless_mode = colorspace in ("BGRX", ) and encoding=="h264"
cs = video_spec(encoding=encoding, output_colorspaces=get_COLORSPACES(encoding)[colorspace], has_lossless_mode=LOSSLESS_ENABLED,
codec_class=Encoder, codec_type=get_type(),
quality=80, speed=100, setup_cost=80, cpu_cost=10, gpu_cost=100,
quality=60+has_lossless_mode*40, speed=100, setup_cost=80, cpu_cost=10, gpu_cost=100,
#using a hardware encoder for something this small is silly:
min_w=min_w, min_h=min_h,
max_w=max_w, max_h=max_h,
Expand Down

0 comments on commit 0c074ec

Please sign in to comment.