X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fchromakeyhsv%2Fchromakey.h;h=51bcbcf75ab52997fb0580494f06d3d59da4befb;hp=d8007109b066565efb633fc450b0957e5fe8115a;hb=667ff598ae2a94f48c7056aee1d77d7cde39066b;hpb=21c2e6b36d6a96c2f662a89459d607b5a387f4eb diff --git a/cinelerra-5.1/plugins/chromakeyhsv/chromakey.h b/cinelerra-5.1/plugins/chromakeyhsv/chromakey.h index d8007109..51bcbcf7 100644 --- a/cinelerra-5.1/plugins/chromakeyhsv/chromakey.h +++ b/cinelerra-5.1/plugins/chromakeyhsv/chromakey.h @@ -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;