]> git.sesse.net Git - nageru/blobdiff - nageru/theme.lua
Fix a Clang 19 warning.
[nageru] / nageru / theme.lua
index 195e89b88ab11e5bbcfc9eb7e187dc4514e690de..1fc7d117ea49e4e8e8dc91fb8f1680d5e6b49064 100644 (file)
@@ -35,7 +35,7 @@ function make_sbs_input(scene)
        return {
                input = scene:add_input(0),  -- Live inputs only.
                resample_effect = scene:add_effect({ResampleEffect.new(), ResizeEffect.new()}),
-               wb_effect = scene:add_auto_white_balance(),
+               wb_effect = scene:add_white_balance(),
                padding_effect = scene:add_effect(IntegralPaddingEffect.new())
        }
 end
@@ -67,7 +67,7 @@ function make_fade_input(scene)
        return {
                input = scene:add_input(),
                resample_effect = scene:add_optional_effect(ResampleEffect.new()),  -- Activated if scaling.
-               wb_effect = scene:add_auto_white_balance()  -- Activated for video inputs.
+               wb_effect = scene:add_white_balance()  -- Activated for video inputs.
        }
 end
 
@@ -95,7 +95,7 @@ local simple_scene = {
        scene = scene,
        input = scene:add_input(),
        resample_effect = scene:add_effect({ResampleEffect.new(), ResizeEffect.new(), IdentityEffect.new()}),
-       wb_effect = scene:add_auto_white_balance()
+       wb_effect = scene:add_white_balance()
 }
 scene:finalize()
 
@@ -325,12 +325,13 @@ end
 -- the output, although you can ignore them if you don't need them
 -- (they're useful if you want to e.g. know what to resample by).
 --
--- <signals> is basically an exposed InputState, which you can use to
--- query for information about the signals at the point of the current
--- frame. In particular, you can call get_frame_width() and get_frame_height()
--- for any signal number, and use that to e.g. assist in scene selection.
--- (You can also use get_width() and get_height(), which return the
--- _field_ size. This has half the height for interlaced signals.)
+-- <signals> is an object which you can query for information
+-- about the signals at the point of the current frame. In particular,
+-- you can call get_frame_width() and get_frame_height() for any
+-- signal number, and use that to e.g. see if you wish to enable
+-- a scaler or not. (You can also use get_width() and get_height(),
+-- which return the _field_ size. This has half the height for
+-- interlaced signals.)
 --
 -- You should return scene to use, after having set any parameters you
 -- want to set (through set_int() etc.). The parameters will be snapshot