+-- A debugging scene to show a simple multiviewer. HQ only, since there is no preview.
+function make_multiview_scene()
+ local scene = Scene.new(16, 9)
+ local bg = scene:add_input(ImageInput.new(cef_path .. "/nageru/white.png"))
+ local mv_width = 1280 / 3
+ local mv_height = 720 / 3
+ local mv_offset = (720 - mv_height * 2) / 2
+
+ for input_idx=0,5 do
+ local input = scene:add_input(input_idx)
+
+ local resize = scene:add_effect(ResizeEffect.new())
+ resize:set_int("width", mv_width)
+ resize:set_int("height", mv_height)
+
+ local padding = scene:add_effect(IntegralPaddingEffect.new())
+ padding:set_int("width", 1280)
+ padding:set_int("height", 720)
+ padding:set_int("left", (input_idx % 3) * mv_width)
+ padding:set_int("top", math.floor(input_idx / 3) * mv_height + mv_offset)
+
+ local overlay = scene:add_effect(OverlayEffect.new(), bg, padding)
+ bg = overlay
+ end
+
+ scene:finalize(true)
+ return scene
+end
+local multiview_scene_hq = make_multiview_scene()
+