X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=theme.lua;h=b91e0fadfe8240c924d8f462380b0c053a206f20;hb=390521f709026cb1acdbde84ef77d1490da1ffa2;hp=543857f4f79826160a3e8e19b23e45c5222640b3;hpb=5c12e871c54ae453cdc2eb81cb437b02c56ebb4b;p=nageru diff --git a/theme.lua b/theme.lua index 543857f..b91e0fa 100644 --- a/theme.lua +++ b/theme.lua @@ -100,6 +100,24 @@ function num_channels() return 3 end +-- Returns the name for each additional channel (starting from 2). +-- Called only once for each channel, at the start of the program. +function channel_name(channel) + if channel == 2 then + return "Input 1" + elseif channel == 3 then + return "Input 2" + else + return "Side-by-side" + end +end + +-- Returns if a given channel supports setting white balance (starting from 2). +-- Called only once for each channel, at the start of the program. +function supports_set_wb(channel) + return channel == 2 or channel == 3 +end + function finish_transitions(t) -- If live is 2 (SBS) but de-facto single, make it so. if live_signal_num == 2 and t >= transition_end and zoom_dst == 1.0 then