00001 #ifndef FLIP_H 00002 #define FLIP_H 00003 00004 // the simplest plugin possible 00005 00006 class InvertMain; 00007 00008 #include "bcbase.h" 00009 #include "invertwindow.h" 00010 #include "pluginvclient.h" 00011 00012 00013 class InvertMain : public PluginVClient 00014 { 00015 public: 00016 InvertMain(int argc, char *argv[]); 00017 ~InvertMain(); 00018 00019 // required for all realtime plugins 00020 int process_realtime(long size, VFrame **input_ptr, VFrame **output_ptr); 00021 int plugin_is_realtime(); 00022 int plugin_is_multi_channel(); 00023 char* plugin_title(); 00024 int start_realtime(); 00025 int stop_realtime(); 00026 int start_gui(); 00027 int stop_gui(); 00028 int show_gui(); 00029 int hide_gui(); 00030 int set_string(); 00031 int save_data(char *text); 00032 int read_data(char *text); 00033 00034 // parameters needed for invert 00035 int invert; 00036 00037 // a thread for the GUI 00038 InvertThread *thread; 00039 00040 private: 00041 // Utilities used by invert. 00042 }; 00043 00044 00045 #endif
1.5.5