From a3cb1c2baddd107e6ac45a6f14d543617736dc14 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Wed, 16 Oct 2019 21:46:09 +0200 Subject: [PATCH] Some tweaks for Futatabi. --- nageru/ultimate.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/nageru/ultimate.lua b/nageru/ultimate.lua index c271bf5..6053440 100644 --- a/nageru/ultimate.lua +++ b/nageru/ultimate.lua @@ -240,6 +240,13 @@ function needs_scale(signals, signal_num, width, height) end function set_scale_parameters_if_needed(scene, signals, signal_num, width, height, hq) + -- Futatabi rescaling will be linear, but original frames come back unscaled; + -- make them linear, too, so that we don't get more sharpness on every other + -- frame. This won't be right for fading, but it's probably hard to notice. + if signal_num == VIDEO_SIGNAL_NUM then + hq = false + end + if needs_scale(signals, signal_num, width, height) then if hq then scene.resample_effect:choose(ResampleEffect) -- High-quality resampling. @@ -346,9 +353,9 @@ function channel_name(channel) elseif signal_num == VIDEO_SIGNAL_NUM then local res = last_resolution[iptv_video:get_signal_num()] if (not res) or res.last_subtitle == nil then - return "IPTV" + return "Futatabi" else - return "IPTV (" .. get_futatabi_status(res.last_subtitle) .. ")" + return "Futatabi (" .. get_futatabi_status(res.last_subtitle) .. ")" end elseif signal_num == OVERLAY_SIGNAL_NUM then return "Overlay" -- 2.39.2