]> git.sesse.net Git - nageru/blobdiff - theme.h
Add red and green borders around channels to mark them as used for live and preview.
[nageru] / theme.h
diff --git a/theme.h b/theme.h
index 48039734a840f58f90924b514eeaaf27f1f61657..264b5ac67f86086f35a5a1555a9f071356fecbf3 100644 (file)
--- a/theme.h
+++ b/theme.h
@@ -2,8 +2,7 @@
 #define _THEME_H 1
 
 #include <epoxy/gl.h>
-#include <lauxlib.h>
-#include <lua.h>
+#include <lua.hpp>
 #include <movit/effect_chain.h>
 #include <movit/deinterlace_effect.h>
 #include <movit/ycbcr_input.h>
@@ -54,9 +53,12 @@ public:
 
        int get_num_channels() const { return num_channels; }
        int map_signal(int signal_num);
+       void set_signal_mapping(int signal_num, int card_num);
        std::string get_channel_name(unsigned channel);
+       int get_channel_signal(unsigned channel);
        bool get_supports_set_wb(unsigned channel);
        void set_wb(unsigned channel, double r, double g, double b);
+       std::string get_channel_color(unsigned channel);
 
        std::vector<std::string> get_transition_names(float t);
 
@@ -75,7 +77,9 @@ private:
        movit::ResourcePool *resource_pool;
        int num_channels;
        unsigned num_cards;
-       std::set<int> signals_warned_about;
+
+       std::mutex map_m;
+       std::map<int, int> signal_to_card_mapping;  // Protected by <map_m>.
 
        friend class LiveInputWrapper;
 };