优化:完善麒麟2K显示与逐主机视频范围协商
This commit is contained in:
1 parent
b1082f8465
commit
e35abf6dc0
78 files changed
+2040
No files matched your search
@@ -17,4 +17,22 @@ export HEVC_DECODER_HINT=hevc_rkmpp
|
||||
# Only affects unpaced rendering in the patched client. Leave the last presented
|
||||
# frame and decoder references intact; replace only waiting decoded frames.
|
||||
export VDI_LATEST_FRAME="${VDI_LATEST_FRAME:-1}"
|
||||
# A host can negotiate limited range to avoid Sunshine's software full-range
|
||||
# conversion. The decoder still expands the negotiated range for display.
|
||||
# Keep this per host: hardware-encoded desktops need no override.
|
||||
if [ "${1:-}" = stream ] && [ -z "${COLOR_RANGE_OVERRIDE+x}" ]; then
|
||||
case "${2:-}" in
|
||||
''|*[!a-zA-Z0-9._-]*) ;;
|
||||
*)
|
||||
range_file="${XDG_CONFIG_HOME:-$HOME/.config}/vdi-terminal/host-color-range/$2"
|
||||
if [ -f "$range_file" ]; then
|
||||
color_range=$(cat "$range_file")
|
||||
case "$color_range" in
|
||||
0|1) export COLOR_RANGE_OVERRIDE="$color_range" ;;
|
||||
*) echo 'Invalid host color range (expected 0 or 1)' >&2; exit 78 ;;
|
||||
esac
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
exec "$client" "$@"
|
||||
Reference in new issue
Block a user