local INPUT3_SIGNAL_NUM = 3
local INPUT4_SIGNAL_NUM = 4
local INPUT5_SIGNAL_NUM = 5
-local SBS_SIGNAL_NUM = NUM_CAMERAS
-local STATIC_SIGNAL_NUM = NUM_CAMERAS + 1
-local VIDEO_SIGNAL_NUM = NUM_CAMERAS + 2
+local VIDEO_SIGNAL_NUM = NUM_CAMERAS
+local SBS_SIGNAL_NUM = NUM_CAMERAS + 1
+local STATIC_SIGNAL_NUM = NUM_CAMERAS + 2
-- Preview-only signal showing the current signal with the overlay.
-- Not valid for live_signal_num!
function make_sbs_input(scene, has_overlay)
local input = scene:add_input()
- local overlay = has_overlay and make_overlay(scene, input) or nil
+ local wb_effect = scene:add_auto_white_balance()
+ local overlay = has_overlay and make_overlay(scene, wb_effect) or nil
local resample_effect = scene:add_effect({ResampleEffect.new(), ResizeEffect.new()})
- local wb_effect = scene:add_auto_white_balance(resample_effect, input)
local padding_effect = scene:add_effect(IntegralPaddingEffect.new())
return {
input = input,
-- Load all the stinger frames.
local stinger_images = {}
for idx=0,24 do
- local filename = cef_path .. "/stinger/blur" .. string.rep("0", 3 - string.len(tostring(idx))) .. idx .. ".png"
+ local filename = cef_path .. "/stinger/esk-blur" .. string.rep("0", 3 - string.len(tostring(idx))) .. idx .. ".png"
stinger_images[idx] = ImageInput.new(filename)
end
elseif signal_num == INPUT3_SIGNAL_NUM then
return "Goal R (" .. get_channel_resolution(signal_num) .. ")"
elseif signal_num == INPUT4_SIGNAL_NUM then
- return "Commentators (" .. get_channel_resolution(signal_num) .. ")"
+ return "Ambience (" .. get_channel_resolution(signal_num) .. ")"
elseif signal_num == INPUT5_SIGNAL_NUM then
- return "Laptop (" .. get_channel_resolution(signal_num) .. ")"
- elseif signal_num == SBS_SIGNAL_NUM then
- return "Side-by-side"
- elseif signal_num == STATIC_SIGNAL_NUM then
- return "Static picture"
+ return "Commentators (" .. get_channel_resolution(signal_num) .. ")"
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
else
return "Futatabi (" .. get_futatabi_status(res.last_subtitle) .. ")"
end
+ elseif signal_num == SBS_SIGNAL_NUM then
+ return "Side-by-side"
+ elseif signal_num == STATIC_SIGNAL_NUM then
+ return "Static picture"
elseif signal_num == OVERLAY_SIGNAL_NUM then
return "Overlay"
end
function prepare_sbs_scene(state, scene, t, transition_type, src_signal, dst_signal, screen_width, screen_height, input_resolution, hq)
scene.input0.input:display(0)
- scene.input1.input:display(4)
+ scene.input1.input:display(5)
-- Both inputs are the same size (true side-by-side).
local pos0 = pos_from_top_left(1280 - 616 - 16, 186, 616, 347, screen_width, screen_height)