sams last ladspa icons, libopus/vp9, mixer fixer, plugin resets, fmt frmsz, shm fixes
[goodguy/history.git] / cinelerra-5.1 / plugins / chromakeyhsv / chromakey.h
index d8007109b066565efb633fc450b0957e5fe8115a..51bcbcf75ab52997fb0580494f06d3d59da4befb 100644 (file)
@@ -45,7 +45,7 @@ class ChromaKeyConfig
 {
 public:
        ChromaKeyConfig();
-
+       void reset();
        void copy_from(ChromaKeyConfig &src);
        int equivalent(ChromaKeyConfig &src);
        void interpolate(ChromaKeyConfig &prev,
@@ -90,6 +90,16 @@ public:
        ChromaKeyWindow *gui;
 };
 
+class ChromaKeyReset : public BC_GenericButton
+{
+public:
+       ChromaKeyReset(ChromaKeyHSV *plugin, ChromaKeyWindow *gui, int x, int y);
+       int handle_event();
+       ChromaKeyHSV *plugin;
+       ChromaKeyWindow *gui;
+};
+
+
 
 class ChromaKeyMinBrightness : public BC_FSlider
 {
@@ -182,7 +192,7 @@ public:
 };
 
 
-class ChromaKeyColorThread : public ColorThread
+class ChromaKeyColorThread : public ColorPicker
 {
 public:
        ChromaKeyColorThread(ChromaKeyHSV *plugin, ChromaKeyWindow *gui);
@@ -209,6 +219,8 @@ public:
 
        void create_objects();
        void update_sample();
+       void update_gui();
+       void done_event(int result);
 
        ChromaKeyColor *color;
        ChromaKeyUseColorPicker *use_colorpicker;
@@ -223,6 +235,7 @@ public:
        ChromaKeySpillThreshold *spill_threshold;
        ChromaKeySpillAmount *spill_amount;
        ChromaKeyShowMask *show_mask;
+       ChromaKeyReset *reset;
        BC_SubWindow *sample;
        ChromaKeyHSV *plugin;
        ChromaKeyColorThread *color_thread;